* config/i386/nm-i386sco.h: Add protection against
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
af0b2512
MK
12002-10-06 Mark Kettenis <kettenis@gnu.org>
2
3 * config/i386/nm-i386sco.h: Add protection against
4 multiple-inclusion. Include "i386/nm-i386v.h".
5 (REGISTER_U_ADDR): Remove define.
6 (i386_register_u_addr): Remove prototype.
7
d6020d45
MS
82002-10-04 Michael Snyder <msnyder@redhat.com>
9
10 * m32r-stub.c (handle_exception): Make sure exception is "trap"
11 before treating it as a single-step event.
12
7248f48e
AF
132002-10-03 Adam Fedor <fedor@gnu.org>
14
15 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
16 (objc_demangle): Remove assignment in if statements, Replace
17 free with xfree.
18 (add_msglist): Likewise.
19 (end_msglist): Likewise.
20 (complare_selectors): Likewise.
21 (selectors_info): Likewise.
22 (compare_classes): Likewise.
23 (classes_info): Likewise.
24 (print_object_command): Likewise.
25 (find_objc_msgcall_submethod): Replace PTR with void *.
26 * objc-lang.h: Remove check for __STDC__.
27
52c6a6ac
JJ
282002-10-03 Jeff Johnston <jjohnstn@redhat.com>
29
30 * ui-out.h (ui_out_field_fmt_int): New prototype.
31 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
32 of field width and alignment.
33 * stack.c (print_frame_info_base): When printing frame level, use
34 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
35 PR gdb/192
36
7e3cec17
JJ
372002-10-03 Jeff Johnston <jjohnstn@redhat.com>
38
39 * MAINTAINERS: Add self to Write After Approval list.
40
a58dd373
EZ
412002-10-02 Elena Zannoni <ezannoni@redhat.com>
42
43 * infcmd.c (interrupt_target_command_wrapper): Delete.
44 (interrupt_target_command): Make non static.
45 (nofp_registers_info): Make static.
46 * stack.c (return_command_wrapper): Delete.
47 (return_command): Make non static.
48
cee6ddeb
EZ
492002-10-02 Elena Zannoni <ezannoni@redhat.com>
50
51 * event-top.c (gdb_setup_readline): New function. Code moved from
52 _initialize_event_loop().
53 (_initialize_event_loop): Call gdb_setup_readline().
54
c4ed33b9
AC
552002-10-02 Andrew Cagney <ac131313@redhat.com>
56
57 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
58 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
59 * gdbarch.h, gdbarch.c: Re-generate.
60
cef4f5dd
DJ
612002-10-02 Daniel Jacobowitz <drow@mvista.com>
62
63 Fix PR gdb/778
64 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
65 before recursing.
66 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
67 of fill_in_vptr_fieldno.
68
36dc181b 692002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 70
36dc181b
EZ
71 * inferior.h (registers_info, stepi_command, nexti_command,
72 continue_command, interrupt_target_command): Export from infcmd.c.
73 * frame.h (args_info, selected_frame_level_changed_hook,
74 return_command): Export from stack.c.
75 * v850ice.c (stepi_command, nexti_command, continue_command): use
76 prototypes from inferior.h.
77 * tracepoint.c (registers_info, args_info, locals_info): Use
78 prototypes from frame.h and inferior.h.
79 * Makefile.in (mi-main.o): Add dependency on frame.h.
80
6f99cb26
AC
812002-10-02 Andrew Cagney <ac131313@redhat.com>
82
da3eff49
AC
83 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
84 value in register 3 adjusted by ppc_gp0_regnum.
85
6f99cb26
AC
86 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
87
da615bee
MM
882002-10-02 Marko Mlinar <markom@opencores.org>
89
90 * MAINTAINERS: Add myself to the Write After Approval list.
91
d154bee2
AO
922002-10-01 Alexandre Oliva <aoliva@redhat.com>
93
62a49b2c
AO
94 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
95 of the section for the N64 ABI, fixed.
96
d154bee2
AO
97 * config/mips/tm-irix6.h: Include solib.h.
98
ed348acc
EZ
992002-10-01 Elena Zannoni <ezannoni@redhat.com>
100
101 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
102 GNU operators.
103
da0f9dcd
AC
1042002-10-01 Andrew Cagney <ac131313@redhat.com>
105
106 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
107 and that "mi0" syntax has been removed.
108
bdf64bac
DC
1092002-09-30 David Carlton <carlton@math.stanford.edu>
110
111 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
112 * ppc-sysv-tdep.c: #include "gdb_string.h".
113 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
114 pacify GCC.
115
54c2a1e6
AC
1162002-10-01 Andrew Cagney <ac131313@redhat.com>
117
118 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
119 "vrsave"'s register number.
120
cedea778
AC
1212002-09-30 Andrew Cagney <ac131313@redhat.com>
122
123 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
124 use frame_unwind_signed_register to obtain the PC.
125 (mips_frame_chain): Handle a generic dummy frame.
126 (mips_init_extra_frame_info): When a generic dummy frame, don't
127 re-compute the frame base.
128 (mips_pop_frame): Handle generic dummy frames.
129 (mips_gdbarch_init): When generic dummy frames, set
130 use_generic_dummy_frames, push_dummy_frame to
131 generic_push_dummy_frame, pc_in_call_dummy to
132 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
133 generic_save_dummy_frame_tos.
134
68315eb8
AC
1352002-09-30 Andrew Cagney <ac131313@redhat.com>
136
137 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
138 against TOP when TOP was explictly set.
139 (generic_push_dummy_frame): Set TOP to zero.
140
3b8630c3
EZ
1412002-09-30 Elena Zannoni <ezannoni@redhat.com>
142
143 * event-loop.c (start_event_loop): Rename variable 'result' to
144 'gdb_result', to avoid conflicts with upcoming intepreters changes.
145
28ee05e9
KS
1462002-09-30 Keith Seitz <keiths@redhat.com>
147
148 * gdb-events.sh (selected_thread_changed): New event.
149 * gdb-events.c: Regenerated.
150 * gdb-events.h: Regenerated.
151
6eecb1c8
HPN
1522002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
153
154 * MAINTAINERS: Add self to Write After Approval list.
155
92df71f0
FN
1562002-09-30 Fernando Nasser <fnasser@redhat.com>
157
3b8630c3
EZ
158 * disasm.c: New file.
159 * disasm.h: New file.
92df71f0
FN
160 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
161 (compare_lines): Ditto.
162 (dump_insns): Ditto.
3b8630c3
EZ
163 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
164 argument.
92df71f0 165 (do_assembly_only): Ditto.
3b8630c3
EZ
166 (do_disassembly): Renamed to gdb_disassembly and moved to
167 disasm.c. Sdded uiout argument.
168 * Makefile.in: Add new files. Reorder SFILES list. Update
169 dependencies. Include libgdb.a later in the insight executable.
92df71f0 170
0c22854d
AC
1712002-09-29 Andrew Cagney <ac131313@redhat.com>
172
173 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
174 bfd/elf64-alpha-fbsd.c.
175
e67f2023
AC
1762002-09-29 Andrew Cagney <ac131313@redhat.com>
177
178 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
179 i386gnu-tdep.c.
180
89396210
AC
1812002-09-29 Andrew Cagney <ac131313@redhat.com>
182
183 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
184 __FUNCTION__.
185 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
186 function name.
187 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
188 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
189 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
190 (S_msg_sig_post_reply): Ditto.
191
7079c36c
CV
1922002-09-28 Corinna Vinschen <vinschen@redhat.com>
193
89396210
AC
194 * sh-tdep.c (sh_use_struct_convention): Use definition according
195 to ABI.
7079c36c
CV
196 (sh_push_arguments): Store in register with correct endianess.
197 (sh_default_store_return_value): Ditto.
198 (sh_gdbarch_init): Set sizeof long double to 8.
199
975ac915
MK
2002002-09-27 Mark Kettenis <kettenis@gnu.org>
201
202 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
203 Fix some whitespace problems.
204
9bbe19fb
DC
2052002-09-27 David Carlton <carlton@math.stanford.edu>
206
207 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
208 (mcore-tdep.o): Ditto.
209 (ns32k-tdep.o): Ditto.
210 (ns32knbsd-tdep.o): Ditto.
211 (sh3-rom.o): Ditto.
212 (vax-tdep.o): Ditto.
213 * cris-tdep.c: #include "gdb_string.h"
214 * mcore-tdep.c: Ditto.
215 * ns32k-tdep.c: Ditto.
216 * ns32knbsd-tdep.c: Ditto.
217 * sh3-rom.c: Ditto.
218 * vax-tdep.c: Ditto.
219
43b2fdc7
DC
2202002-09-27 David Carlton <carlton@math.stanford.edu>
221
222 * config/djgpp/fnchange.lst: Add entries for
223 gdb/testsuite/gdb.c++/m-static files.
224
e8cfbbd9
JW
2252002-09-27 Jim Wilson <wilson@redhat.com>
226
227 * MAINTAINERS: Add myself to the Write After Approval list.
228
43b2fdc7 2292002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
230
231 * mips-tdep.c (find_proc_desc): Initialize startaddr.
232
233
9f3b7f07
AC
2342002-09-26 Andrew Cagney <ac131313@redhat.com>
235
236 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
237 frame.
238
11269d7e
AC
2392002-09-26 Andrew Cagney <ac131313@redhat.com>
240
241 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
242 (rs6000_struct_return_address): Delete variable.
243 (rs6000_store_struct_return): Update.
244 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
245 deprecated_extract_struct_value_address.
246 (rs6000_frame_align): New function.
247 (rs6000_gdbarch_init): Set frame_align.
248
f15ab4a7
AC
2492002-09-26 Andrew Cagney <ac131313@redhat.com>
250
251 From Grace Sainsbury <graces@redhat.com>:
252 * Makefile.in (gdbtk-main.o): New target.
253 (gdb.o): New target.
254 (main_h): Define.
255 (main.o): Update dependencies.
256 (gdb$(EXEEXT)): Add gdb.o.
257 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
258 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
259 (SUBDIR_GDBTK_CLEAN): Set.
260 (install-gdbtk): Install the insight binary.
261 (uninstall-gdbtk): New target.
262 (all-gdbtk, clean-gdbtk): New rule.
263 * top.c (use_windows): Default to zero.
264 * main.c: Include "main.h".
265 (main): Delete.
266 (struct captured_main_args): Delete.
267 (gdb_main): New function.
268 * main.h: New file.
269 * gdb.c: New File.
270
e36180d7
AC
2712002-09-25 Andrew Cagney <cagney@redhat.com>
272
273 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
274 (frame_map_regnum_to_name): New function.
275 (frame_map_name_to_regnum): New function.
276 * frame.h (frame_map_name_to_regnum): Declare.
277 (frame_map_regnum_to_name): Declare.
278 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
279 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
280 * parse.c: Do not include "builtin-regs.h".
281 (target_map_name_to_register): Delete function.
282 (write_dollar_variable): Use frame_map_name_to_regnum.
283 * parser-defs.h (target_map_name_to_register): Delete declaration.
284 * expprint.c: Include "frame.h".
285 (print_subexp): Use frame_map_regnum_to_name.
286 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
287 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
288
8b69000d
AC
2892002-09-25 Andrew Cagney <ac131313@redhat.com>
290
291 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
292 wasn't saved, and the next innermost frame is a dummy, return the
293 dummy frame's link register.
294
046ca86a
JB
2952002-09-24 Jim Blandy <jimb@redhat.com>
296
297 Fix from Paul Breed:
298 * main.c (captured_main): Add a `break' after the case for 'b'.
299
94b66fa7
KS
3002002-09-24 Keith Seitz <keiths@redhat.com>
301
302 * varobj.c (c_type_of_child): Use get_target_type instead
303 of TYPE_TARGET_TYPE.
304
c214a6fd
FN
3052002-09-22 Fernando Nasser <fnasser@redhat.com>
306
53cb0458
FN
307 * source.c (get_current_or_default_source_symtab_and_line): Remove
308 function.
309 (set_default_source_symtab_and_line): New function. Attempts to
310 determine a source file to list lines from if one is not currently
311 defined.
312 (get_current_source_symtab_and_line): Initialize sal.pc and
313 sal.end fields.
314 (set_current_source_symtab_and_line): Mark argument as const.
315 * source.h: Update declarations and comments.
316 * linespec.c (decode_line_1): Replace call to removed routine above.
317 * stack.c (print_frame_info_base): Ditto.
318 * cli/cli-cmds.c (edit_command): Ditto.
319 (list_command): Ditto.
320
3212002-09-22 Fernando Nasser <fnasser@redhat.com>
322
d6020d45 323 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 324 sal.pc and sal.end fields.
c214a6fd
FN
325 (get_current_or_default_source_symtab_and_line): Ditto.
326 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
327 so we do not cause a new source symtab to be searched for (reverting an
328 unintentional change from the 2002-09-20 patch).
329 * scm-lang.c (scm_unpac): Ditto.
330
cc3b68a5
AC
3312002-09-21 Andrew Cagney <cagney@redhat.com>
332
333 * complaints.c (symfile_explanations): Remove new-line from
334 ``isolated_message''.
335 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
336 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
337
5835abe7
NC
3382002-09-20 Nick Clifton <nickc@redhat.com>
339
340 * NEWS: Announce that V850EA ISA is no longer supported.
341 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
342
a15ef5f5
DC
3432002-09-20 David Carlton <carlton@math.stanford.edu>
344
06ba1b39
DC
345 * Makefile.in (c-lang.o): Correct dependencies.
346 (utils.o): Gather dependencies.
347 (charset.o): Move.
a15ef5f5
DC
348 * c-lang.c: #include "gdb_string.h"
349
87885426
FN
3502002-09-20 Fernando Nasser <fnasser@redhat.com>
351
352 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
353 * cli/cli-cmds.c (list_command): New function. Implements the new
354 cli edit command.
355 (_init_cli_cmds): Add new command definition.
356 * gdb.1: Document edit command.
357 * doc/gdb.texinfo: Document edit command.
358
3592002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
360
361 * source.c: Make global variables current_source_symtab and
362 current_source_line static.
363 (list_command): Moved to cli/cli-cmds.c.
364 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
365 (get_first_line_listed): New accessor function.
366 (get_lines_to_list): New accessor function.
367 (get_current_source_symtab_and_line): New function. Retrieves the
368 position in the source code that we consider current.
369 (get_current_or_default_source_symtab_and_line): New function.
370 Like the above but attempts to determine a default position if one
371 is not currently defined.
372 (set_current_source_symtab_and_line): New function. Sets the source
373 code position considered current and returns the previously set one.
374 (clear_current_source_symtab_and_line): Reset stored information about
375 a current source line.
376 (_initialize_source): Remove registration for the "list" command and
377 its alias.
378 * source.h: Add declarations for the new functions above.
379 * symtab.h: Remove declarations for the global variables mentioned
380 above.
381 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
382 obtain current source line.
383 * linespec.c (decode_line_1): Ditto.
384 * macroscope.c (default_macro_scope): Ditto.
385 * scm-lang.c (scm_unpac): Ditto.
386 * stack.c (print_frame_info_base): Ditto.
387 * symfile.c (clear_symtab_users): Ditto.
388 * symtab.c (decode_line_spec): Ditto.
389 * cli/cli-cmds.c (list_command): Moved here from source.c.
390 (ambiguous_line_spec): Moved here from source.c.
391 (_init_cli_cmds): Add definition for "list" and its alias.
392 * Makefile.in: Update dependencies.
393
ddd216ea
CV
3942002-09-20 Corinna Vinschen <vinschen@redhat.com>
395
396 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
397 with what gcc thinks is correct.
398
6d305052
CV
3992002-09-20 Corinna Vinschen <vinschen@redhat.com>
400
401 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
402 multiple register push instruction.
403
234b45d4
KB
4042002-09-19 Jim Blandy <jimb@redhat.com>
405
406 Add support for distinct host and target character sets.
407 * charset.c, charset.h: New files.
408 * c-exp.y: #include "charset.h".
409 (yylex): Convert character and string literals to the target
410 character set, before returning them as the semantic value of the
411 token.
412 * c-lang.c: #include "charset.h".
413 (c_emit_char): Use charset-specific methods to recognize
414 characters with backslash escape forms, to decide which characters
415 to print literally and which to print using numeric escape
416 sequences, and to convert target characters to host characters
417 before printing.
418 * utils.c: #include "charset.h".
419 (no_control_char_error): New function.
420 (parse_escape): Use charset-specific methods to recognize
421 backslash escapes, parse `control character' notation, and convert
422 characters from the host character set to the target character set.
423 * configure.in: Set the default host character set.
424 Check where to find iconv, and what its argument types might be.
425 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
426 * Makefile.in (SFILES): List charset.c.
427 (COMMON_OBS): List charset.o.
428 (charset.o): New rule.
429 (charset_h): New header dependency variable.
430 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
431 (LIBICONV): New variable, set by configure.
432 (CLIBS): Include $(LIBICONV) here.
433 * aclocal.m4, config.in, configure: Regenerated.
434
525d6a61
JB
4352002-09-19 Joel Brobecker <brobecker@gnat.com>
436
437 * ada-exp.y: Add missing semicolons to end rules. Fixes a
438 bison 1.35 warning.
439
3ed93867
RE
4402002-09-19 Richard Earnshaw <rearnsha@arm.com>
441
442 * gdb_mbuild.sh: New file.
443
437666f8
AC
4442002-09-19 Andrew Cagney <ac131313@redhat.com>
445
446 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
447
389e51db
AC
4482002-09-18 Andrew Cagney <ac131313@redhat.com>
449
450 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
451 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
452 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
453 valops.c, value.h: Revert previous change.
454
3b4efeaa
MS
4552002-09-18 Michael Snyder <msnyder@redhat.com>
456
457 Preliminary support for Objective-C:
458 * defs.h (language_objc): New enum value.
459 (puts_filtered_tabular): Declaration only, exported from utils.c.
460 (skip_quoted): Delete, declared in completer.h.
461 * c-exp.y: Include completer.h.
462 * p-exp.y: Ditto.
463 * jv-exp.y: Ditto.
464 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
465 New operator enum values.
466 * language.h (CAST_IS_CONVERSION): Test for language_objc.
467 * language.c (binop_result_type): Handle language_objc case.
468 (integral_type, character_type, string_type, boolean_type,
469 structured_type, binop_type_check): Ditto.
470 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
471 (struct objc_specific): Add to general_symbol_info.
472 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
473 (SYMBOL_DEMANGLED_NAME): Handle objc case.
474 * parser-defs.h (struct objc_class_str): New struct type.
475 (start_msglist, end_msglist, add_msglist): Declaration only,
476 exported from objc-lang.c.
477 * value.h (value_of_local, value_nsstring,
478 call_function_by_hand_expecting_type): Exported from valops.c.
479 * valops.c (find_function_addr): Export.
480 (call_function_by_hand_expecting_type): New function.
481 (value_of_local): New function.
482 * symfile.c (init_filename_language_table): Add ".m" extension
483 for Objective-C.
484 * utils.c (puts_filtered_tabular): New function.
485 (fprintf_symbol_filtered): Add objc demangling support (disabled).
486 (set/show demangle): Extend help-string to refer to ObjC.
487 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
488 * stabsread.c (symbol_reference_defined): Objective-C symbols
489 may contain colons: make allowances when scanning stabs strings
490 for colons.
491 (objc_find_colon): New function.
492 * printcmd.c (address_info): If language == objc then print
493 "self" instead of "this".
494 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
495 OP_NSSTRING, and OP_SELF.
496 (prefixify_subexp): Ditto.
497 * source.c (print_source_lines): Mention objc in comment.
498 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
499 method names.
500
b9caf505
AC
5012002-09-18 Andrew Cagney <ac131313@redhat.com>
502
503 * complaints.h: Update copyright.
504 (struct complaints): Declare.
505 (struct complaint): Make `message' constant.
506 (internal_complaint): Declare.
507 (complaint): Declare.
508 (complaint_root): Delete declaration.
509 (symfile_complaints): Delete declaration.
510 (struct complaints): Add opaque declaration.
511 (clear_complaints): Add a complaints parameter.
512 * complaints.c: Update copyright.
513 (enum complaint_series): Define.
514 (complaint_root): Delete.
515 (struct complaints): Define.
516 (complaint_sentinel, symfile_complaint_book): New variables.
517 (symfile_explanations, symfile_complaints): New variables.
518 New variables.
519 (get_complaints): New function.
520 (vcomplaint): New function.
521 (complaint): New function.
522 (internal_complaint): New function.
523 (complain): Call vcomplain with symfile_complaint.
524 (clear_complaints): Rewrite.
525 (_initialize_complaints): Use add_setshow_command.
526 * Makefile.in (complaints.o): Update dependencies.
527 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
528 to call to clear_complaints.
529 (new_symfile_objfile, reread_symbols): Ditto.
530 (oldsyms_complaint): Delete.
531 (empty_symtab_complaint, unknown_option_complaint): Delete.
532 (free_named_symtabs): Use complaint instead of complain.
533
d2e6263c
MS
5342002-09-18 Michael Snyder <msnyder@redhat.com>
535
5fb2031a
AC
536 Contributed by Apple Computer, Inc. Merged with current sources
537 by Adam Fedor <fedor@doc.com> [cagney].
538
d2e6263c
MS
539 * objc-lang.c: First clean-up round: comments, indentation.
540 * objc-lang.h: Ditto.
541 * objc-lang.y: Ditto.
542
dec43320
AC
5432002-09-18 Andrew Cagney <ac131313@redhat.com>
544
545 * maint.c (maintenance_internal_error): Print the parameter as the
546 error message.
547 (maintenance_internal_warning): New function.
548 (_initialize_maint_cmds): Add command `maint internal-warning'.
549
550 * defs.h (internal_warning, internal_vwarning): Declare.
551 * utils.c (struct internal_problem): Define.
552 (internal_vproblem): New function.
553 (internal_warning): New function.
554 (internal_vwarning): New function.
555 (internal_warning_problem, internal_error_problem): New variables.
556 (internal_verror): Just call internal_vproblem.
557
b81654f1
MS
5582002-09-18 Michael Snyder <msnyder@redhat.com>
559
560 * objc-lang.c: New file, support for Objective-C.
561 Preliminary check-in, not yet integrated into gdb.
562 * objc-lang.h: New file.
563 * objc-exp.y: New file.
564
0542c381
AC
5652002-09-18 Andrew Cagney <ac131313@redhat.com>
566
7bda5e4a
AC
567 * infrun.c (signal_stop_update): Convert definition to ISO C.
568 (signal_print_update): Ditto.
569 (signal_pass_update): Ditto.
570 * inflow.c (terminal_save_ours): Ditto.
571
5247b418
AC
572 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
573 comments.
574
fc60962c
AC
575 * config/djgpp/fnchange.lst: Handle name clashes between
576 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
577 bfd/coff-tic80.c.
578
0542c381
AC
579 * i386-linux-tdep.h: Fix tipo.
580
5b924b9b
AF
5812002-09-18 Adam Fedor <fedor@gnu.org>
582
583 * MAINTAINERS: Add myself to the Write After Approval list.
584
5afc051b
JB
5852002-09-18 Jim Blandy <jimb@redhat.com>
586
587 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
588 texthigh and textlow to reader-specific structs caused
589 objfile_relocate to miss them. This is fixable, but the work that
590 the change was supposed to prepare GDB for never got done anyway.
591
eb944380
DC
5922002-09-18 David Carlton <carlton@math.stanford.edu>
593
594 * MAINTAINERS: Alphabetize Write After Approval list.
595
948e66d9
DJ
5962002-09-18 Daniel Jacobowitz <drow@mvista.com>
597
598 Fix PR gdb/709
599 * values.c (value_static_field): Call read_var_value.
600
dc604539
AC
6012002-09-18 Andrew Cagney <ac131313@redhat.com>
602
603 * valops.c (hand_function_call): Align the initial stack pointer
604 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
605 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
606 return value.
607 * mips-tdep.c (mips_frame_align): New function.
608 (mips_gdbarch_init): Set frame_align.
609 * gdbarch.sh (FRAME_ALIGN): New method.
610 * gdbarch.h, gdbarch.c: Re-generate.
611
cb7e422f
ML
6122002-09-18 Michal Ludvig <mludvig@suse.cz>
613
614 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
615 registers.
616
a094c6fb
AC
6172002-09-17 Andrew Cagney <ac131313@redhat.com>
618
619 * NEWS: Mention that MIPS $fp behavior changed.
620 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
621 reference to FP_REGNUM.
622 (mipsnbsd_cannot_store_register): Ditto.
623 * mips-linux-nat.c: Update copyright.
624 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
625 (mips_linux_cannot_store_register): Ditto.
626 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
627 * config/mips/tm-mips.h: Update copyright.
628 (FP_REGNUM): Delete macro.
629 (MIPS_REGISTER_NAMES): Replace "fp" with "".
630 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
631 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
632 (mips_r3041_reg_names, mips_r3051_reg_names)
633 (mips_r3081_reg_names): Replace "fp" with "".
634 Fix PR gdb/480.
635
45cf40d1
TR
6362002-09-17 Theodore A. Roth <troth@verinet.com>
637
638 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
639 generic_read_register_dummy() (PR gdb/703).
640 (avr_push_return_address): #if 0 out unused vars.
641 (avr_gdbarch_init): Enable use of avr_push_return_address().
642
c7e701b5
MS
6432002-09-17 Michael Snyder <msnyder@redhat.com>
644
d76ba2a5 645 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
646 RTE will take care of it.
647
20bcf01c
AC
6482002-09-17 Andrew Cagney <ac131313@redhat.com>
649
650 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
651 invalid, return SP_REGNUM.
652
009a9971 6532002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
654
655 * mips-tdep.c (mips_pop_frame): Read saved values of floating
656 point registers without sign extension.
657
135c175f
AC
6582002-09-17 Andrew Cagney <cagney@redhat.com>
659
660 * blockframe.c (deprecated_read_register_dummy): Rename
661 generic_read_register_dummy.
662 * frame.c (frame_unwind_signed_register): New function.
663 (frame_unwind_unsigned_register): New function.
664 * frame.h (frame_unwind_signed_register): Declare.
665 (frame_unwind_unsigned_register): Declare.
666 (deprecated_read_register_dummy): Rename
667 generic_read_register_dummy.
668
669 * h8300-tdep.c (h8300_frame_chain): Update.
670 (h8300_frame_saved_pc): Update.
671 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
672 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
673 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
674 (s390_frame_chain): Update.
675 * v850-tdep.c (v850_find_callers_reg): Update.
676 (v850_frame_saved_pc): Update.
677 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
678 (m32r_find_callers_reg): Update.
679 (m32r_frame_saved_pc): Update.
680 * sh-tdep.c (sh_find_callers_reg): Update.
681 (sh64_get_saved_pr): Update.
682 (sh_init_extra_frame_info): Update.
683 (sh_init_extra_frame_info): Update.
684 (sh64_init_extra_frame_info): Update.
685 (sh64_init_extra_frame_info): Update.
686 * mcore-tdep.c (mcore_find_callers_reg): Update.
687 (mcore_frame_saved_pc): Update.
688 (mcore_init_extra_frame_info): Update.
689 * i386-tdep.c (i386_frame_saved_pc): Update.
690 * ia64-tdep.c (ia64_frame_saved_pc): Update.
691 (ia64_init_extra_frame_info): Update.
692 (ia64_init_extra_frame_info): Update.
693 * d10v-tdep.c (d10v_frame_saved_pc): Update.
694 * cris-tdep.c (cris_init_extra_frame_info): Update.
695 * avr-tdep.c (avr_frame_chain): Update.
696 (avr_init_extra_frame_info): Update.
697 (avr_frame_saved_pc): Update.
698 * arm-tdep.c (arm_find_callers_reg): Update.
699 (arm_init_extra_frame_info): Update.
700 (arm_frame_saved_pc): Update.
701
a741e514
TT
7022002-09-17 Tom Tromey <tromey@redhat.com>
703
704 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
705 is "'".
706
d1a8e808
CV
7072002-09-17 Corinna Vinschen <vinschen@redhat.com>
708
709 * MAINTAINERS: Remove "non multi-arched" text from h8300.
710 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
711 NEXT_PROLOGUE_INSN.
712 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
713 NEXT_PROLOGUE_INSN.
714
d9025a18
JB
7152002-09-16 Joel Brobecker <brobecker@gnat.com>
716
717 * osfsolib.c: Remove file, replaced by solib-osf.c.
718 * Makefile.in: Remove compilation rules for osfsolib.c.
719
1b2ef1b6
DC
7202002-09-16 David Carlton <carlton@math.stanford.edu>
721
722 * cp-valprint.c (cp_print_class_method): Correct args to
723 check_stub_method_group.
724
928e48af
CV
7252002-09-16 Corinna Vinschen <vinschen@redhat.com>
726
727 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
728 `set architecture'. Unify naming convention of functions.
729 (h8300_skip_prologue): Improve prologue analysis.
730 (h8300_push_arguments): Rewritten to more closely match GCC's
731 bizarre argument-passing behavior, along with the comment describing
732 said behavior.
733 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
734 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
735 sim, remote-e7000.c, remote-hms.c and remote.c
736
5e3397bb
MK
7372002-09-15 Mark Kettenis <kettenis@gnu.org>
738
739 * i386-tdep.c (gdb_print_insn_i386): Removed.
740 (i386_print_insn): New function.
741 (i386_gdbarch_init): Set print_insn to i386_print_insns.
742 (_initialize_i386_tdep): Don't initialize tm_print_insn and
743 tm_print_insn_info.
744
f710f4fc
MK
7452002-09-14 Mark Kettenis <kettenis@gnu.org>
746
747 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
748 zero.
749
db54fef4
CV
7502002-09-14 Corinna Vinschen <vinschen@redhat.com>
751
752 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
753 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
754 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
755
2becadee
CF
7562002-09-13 Christopher Faylor <cgf@redhat.com>
757
758 * win32-nat.c (child_create_inferior): Honor 'tty' command.
759
de17c821
DJ
7602002-09-13 Daniel Jacobowitz <drow@mvista.com>
761
762 * gdbtypes.c (check_stub_method): Make static.
763 (check_stub_method_group): New function.
764 * gdbtypes.h: Update prototypes.
765 * cp-support.c: New file.
766 * cp-support.h: New file.
767
768 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
769 (update_method_name_from_physname): New function.
770 (read_member_functions): Correct method names for operators
771 and v3 constructors/destructors. Separate v2 constructors and
772 destructors.
773 * Makefile.in (stabsread.o): Update dependencies.
774 (SFILES): Add cp-support.c.
775 (COMMON_OBS): Add cp-support.o.
776 (cp_support_h, cp-support.o): Add.
777
778 * cp-valprint.c (cp_print_class_method): Call
779 check_stub_method_group instead of check_stub_method. Remove
780 extraneous QUITs.
781 * p-valprint.c (pascal_object_print_class_method): Likewise.
782 * valops.c (search_struct_method): Likewise.
783 (find_method_list, value_struct_elt_for_reference): Likewise.
784
e76cff22
AC
7852002-09-13 Andrew Cagney <cagney@redhat.com>
786
787 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
788 * gdbarch.h, gdbarch.c: Regenerate.
789
905abb3f
AC
7902002-09-13 Andrew Cagney <ac131313@redhat.com>
791
792 * frame.c (find_saved_register): Delete function.
793 * frame.h (find_saved_register): Delete declaration.
794 Fix PR gdb/631.
795
64159455
AC
796Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
797
798 * mips-tdep.c (read_next_frame_reg): Re-hack using
799 frame_register_unwind.
800
795e1e11
AC
801Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
802
803 * mips-tdep.c (mips_get_saved_register): Re-hack using
804 frame_register_unwind.
805
5720643c
JB
8062002-09-12 Joel Brobecker <brobecker@gnat.com>
807
808 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
809 vector. Will be useful for Interix.
810 * gdbarch.h, gdbarch.c: Regenerate.
811
812 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
813 name of the malloc function by NAME_OF_MALLOC.
814
3bada2a2
JB
8152002-09-12 Joel Brobecker <brobecker@gnat.com>
816
817 * value.h (find_function_in_inferior): Add const keyword to
818 one of the parameters. Allows us to invoke this function with
819 a const char *.
820 * valops.c (find_function_in_inferior): Likewise.
821
3db26b01
JB
8222002-09-12 Joel Brobecker <brobecker@gnat.com>
823
824 * exec.c (xfer_memory): Fix compilation warning with old versions
825 of GCC.
826 * tracepoint.c (trace_find_tracepoint_command): Likewise.
827
17c5ed2c
DC
8282002-09-12 David Carlton <carlton@math.stanford.edu>
829
830 * symtab.h: Run through gdb_indent.h.
831 Add 2002 to Copyright year list.
832
ecd1107e
AM
8332002-09-12 Alan Modra <amodra@bigpond.net.au>
834
835 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
836 mach constants.
837 * MAINTAINERS: Add myself to write after approval list.
838
e64f66d1
JB
8392002-09-11 J. Brobecker <brobecker@gnat.com>
840
841 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
842
f9395794
JB
8432002-09-11 J. Brobecker <brobecker@gnat.com>
844
845 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
846 Interix.
847
1a303dec
MS
8482002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
849
850 * procfs.c (do_detach): Clear current signal, not just fault.
851 Corrects problem with breakpoint trap signal leaking to detached
852 process on Tru64.
853
c0219d42
MS
8542002-09-10 Michael Snyder <msnyder@redhat.com>
855
856 * buildsym.c (finish_block): Protect against null pointer.
857
9d84ac84
AC
8582002-09-10 Andrew Cagney <cagney@redhat.com>
859
860 * infcmd.c (default_print_registers_info): Send all output to
861 ``file'' instead of ``gdb_stdout''.
862
77d8f2b4
MS
8632002-09-10 Michael Snyder <msnyder@redhat.com>
864
865 * mips-tdep.c (mips_extract_struct_value_address): Make val a
866 LONGEST, and use signed register read (addresses are sign-
867 extended for mips).
868
99656a61
SC
8692002-09-10 Stephane Carrez <stcarrez@nerim.fr>
870
871 * event-loop.c (gdb_do_one_event): Make public.
872 * event-loop.h (gdb_do_one_event): Declare.
873
da12f4d8
JL
8742002-09-10 Jeff Law <law@redhat.com>
875
876 * infttrace.c (child_resume): Simplify and rework to avoid
877 TT_PROC_CONTINUE.
878
d0aee0c4
FF
8792002-09-09 Fred Fish <fnf@intrinsity.com>
880
881 * printcmd.c (print_scalar_formatted): "len" is the number of
882 target bytes, NOT the number of target bits.
883
7cb3ec5e
EZ
8842002-09-09 Elena Zannoni <ezannoni@redhat.com>
885
886 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
887 * top.c (init_main): Set rl_terminal_name.
888
4dc81987
AS
8892002-09-08 Aidan Skinner <aidan@velvet.net>
890
891 * ada-lang.c (ada_array_bound, ada_type_match,
892 _initialize_ada_language): Fix K&R definitions.
893 * ada-tasks.c (get_current_task): Fix K&R definitions.
894 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
895
842330b4
CF
8962002-09-07 Christopher Faylor <cgf@redhat.com>
897
898 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
899 Add XP.
900
43156d82
MK
9012002-09-06 Mark Kettenis <kettenis@gnu.org>
902
66da5fd8
MK
903 * i386-tdep.c (i386_register_virtual_type,
904 i386_register_convertible, i386_register_convert_to_virtual,
905 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
906 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
907 (i386_gdbarch_init): Fix comment. Add comments on calls that set
908 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
909 Don't set push_arguments twice.
910
4b218c18
MK
911 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
912 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
913 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
914 sigtramp_end to NULL.
915 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
916 defines.
917 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
918
4cc314d5
MK
919 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
920 whitespace.
921
43156d82
MK
922 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
923 * gdbarch.h, gdbarch.c: Re-generate.
924 * blockframe.c (find_pc_sect_partial_function): Convert to use
925 SIGTRAMP_START_P predicate.
926
6672060b
MS
9272002-09-05 Michael Snyder <msnyder@redhat.com>
928
a90c3637
MS
929 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
930 generic_dummy_frame method and old method. Also distinguish
931 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 932 (arm_extract_return_value): Use new regcache method.
a90c3637 933
6672060b
MS
934 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
935 adjustment that doesn't conform to the ABI.
936 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
937 saved regcache, not from current regcache.
938
299ffc64
AC
9392002-09-05 Andrew Cagney <ac131313@redhat.com>
940
941 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
942 * README: Update.
943
a3a2ee65
JT
9442002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
945
946 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
947 if arm_apcs_32 is false.
948
2bc7eea9
AC
9492002-09-04 Andrew Cagney <ac131313@redhat.com>
950
951 GDB 5.3 branch created.
952
8a55a7c5
TR
9532002-09-03 Theodore A. Roth <troth@verinet.com>
954
955 * gdb/avr-tdep.c (avr_gdbarch_init): Use
956 generic_unwind_get_saved_register.
957
e26fb1d7
DC
9582002-09-03 David Carlton <carlton@math.stanford.edu>
959
960 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
961 argument (PR gdb/653). Update call to smash_to_method_type.
962 (read_structure_scope): Update call to dwarf2_add_member_fn.
963
30d52491
ML
9642002-09-03 Michal Ludvig <mludvig@suse.cz>
965
966 * x86-64-linux-tdep.c: Include gdb_string.h
967 * x86-64-linux-nat.c: Ditto.
968
06891d83
JT
9692002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
970
971 * ada-exp.y (yyname, yyrule): Remap global variables that appear
972 when YYDEBUG is set to 1.
973 * c-exp.y: Likewise.
974 * f-exp.y: Likewise.
975 * jv-exp.y: Likewise.
976 * m2-exp.y: Likewise.
977 * p-exp.y: Likewise.
978
7d400e77
JT
9792002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
980
981 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
982 dependency list.
983 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
984 solib_svr4_fetch_link_map_offsets to
985 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
986 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
987 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
988 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
989 solib-svr4.o, and solib-legacy.o.
990 * config/i386/tm-nbsd.h: Include solib.h.
991
704a27c4
JT
9922002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
993
994 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
995 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
996 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
997 comment noting that this needs its own target configuration.
998 * config/i386/nbsd.mt: New file.
999 * config/i386/nbsdaout.mt: Remove.
1000 * config/i386/nbsdelf.mt: Ditto.
1001 * config/i386/tm-nbsdaout.h: Ditto.
1002
d66198e1
JT
10032002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1004
1005 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1006 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1007 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1008 tdep->sigtramp_end.
1009 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1010 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1011 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1012
3cac699e
JT
10132002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1014
1015 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1016 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1017 * i386-tdep.h (i386bsd_init_abi): New prototype.
1018 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1019 function declaration.
1020 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1021 for NetBSD-a.out or NetBSD-ELF.
1022 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1023 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1024 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1025 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1026 and nbsd-tdep.h.
1027 (i386nbsd_pc_in_sigtramp): New function.
1028 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1029 i386nbsd_pc_in_sigtramp.
1030 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1031 and i386nbsdelf_init_abi OS ABI handlers.
1032 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1033 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1034
7010ca0a
MK
10352002-09-02 Mark Kettenis <kettenis@gnu.org>
1036
1037 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1038 registers if the target really has them.
1039
6dd93b72
JT
10402002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1041
1042 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1043 than nbsd-tdep.h.
1044
2ca8ae21
JT
10452002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1046
1047 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1048 list.
1049 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1050 (alphanbsd_skip_sigtramp_frame): New functions.
1051 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1052 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1053 to alphanbsd_sigcontext_addr.
1054
3d9b49b0
JT
10552002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1056
1057 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1058 list.
1059 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1060 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1061 nbsd_pc_in_sigtramp.
1062 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1063 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1064 * nbsd-tdep.c: Include gdb_string.h.
1065 (nbsd_pc_in_sigtramp): New function.
1066 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1067 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1068 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1069 ppcnbsd_pc_in_sigtramp.
1070 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1071 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1072 shnbsd_pc_in_sigtramp.
1073 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1074 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1075 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1076
c860120c
PM
10772002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1078
1079 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1080 watchpoints to NULL.
1081 (insert_breakpoints): set val field of watchpoints if NULL.
1082
1083
c7612d53
JB
10842002-08-29 Jim Blandy <jimb@redhat.com>
1085
1086 * symtab.c (lookup_symbol_aux): In the cases where we find a
1087 minimal symbol of an appropriate name and use its address to
1088 select a symtab to read and search, use `name' (as passed to us)
1089 as the demangled name when searching the symtab's global and
1090 static blocks, not the minsym's name.
1091
66609862
KS
10922002-08-29 Keith Seitz <keiths@redhat.com>
1093
1094 * stack.c (print_frame_info_base): Always set current_source_symtab
1095 and current_source_line.
1096
151fefe2
JB
10972002-08-29 Donn Terry <donnte@microsoft.com>
1098
1099 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1100
bfb3754e
KS
11012002-08-28 Keith Seitz <keiths@redhat.com>
1102
1103 * stack.c (select_frame): Add FIXME concerning selected-frame
1104 events.
1105 (select_frame_command): Send selected-frame-level-changed
1106 event notification, but only if the level actually changed.
1107 (up_silently_base): Add selected-frame-level-changed event
1108 notification.
1109 (down_silently_base): Likewise.
1110
e822a2a0
AC
11112002-08-28 Andrew Cagney <ac131313@redhat.com>
1112
1113 * Makefile.in: Update dependencies for all gdb/*.c files.
1114
309367d4
TT
11152002-08-27 Tom Tromey <tromey@redhat.com>
1116
1117 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1118 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1119 Update dependencies.
1120 * i387-tdep.c: Include gdb_string.h.
1121 * osabi.c: Likewise.
1122 * i386-linux-nat.c: Likewise.
1123 * lin-lwp.c: Likewise.
1124 * ax-gdb.c: Likewise.
1125 * signals/signals.c: Likewise.
1126 * jv-valprint.c: Likewise.
1127 * p-lang.c: Likewise.
1128 * c-valprint.c: Likewise.
1129 * cp-abi.c: Likewise.
1130
e1507482
EZ
11312002-08-27 Elena Zannoni <ezannoni@redhat.com>
1132
1133 * cli/cli-script.h (copy_command_lines): Export.
1134 * breakpoint.c: Include cli/cli-script.h.
1135 * Makefile.in (breakpoint.o): Update dependencies.
1136
c6510018
MS
11372002-08-26 Michael Snyder <msnyder@redhat.com>
1138
1139 * breakpoint.c (insert_breakpoints): Protect all references
1140 to 'process_warning'. Shorten long lines.
1141
c2b8ed2c
MS
11422002-08-26 Joel Brobecker <brobecker@gnat.com>
1143
1144 * cli/cli-script.c (copy_command_lines): New function.
1145 * defs.h (copy_command_lines): Export.
1146 * testsuite/gdb.base/commands.exp: New tests for commands
1147 attached to a temporary breakpoint, and for commands that
1148 delete the breakpoint they are attached to.
1149
11502002-08-26 Michael Snyder <msnyder@redhat.com>
1151
1152 * breakpoint.c (bpstat_stop_status): Instead of copying the
1153 pointer to the breakpoint commands struct, make a new copy
1154 of the struct and point to that.
1155 (bpstat_clear): Free the commands struct.
1156 (bpstat_clear_actions): Free the commands struct.
1157 (bpstat_do_actions): Free the command actions. Also execute
1158 the local cleanups, instead of deleting them.
1159 (delete_breakpoint): Leave the commands field of the bpstat
1160 chain alone -- it will be freed later.
1161
64b84175
KB
11622002-08-26 Kevin Buettner <kevinb@redhat.com>
1163
1164 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1165 deleted in 2002-08-20 commit. This function is still used by
1166 ppc-linux-nat.c.
1167
55970da6
KS
11682002-08-26 Keith Seitz <keiths@redhat.com>
1169
1170 * gdb-events.sh: Add selected-frame-level-changed event.
1171 * gdb-events.c: Regenerated.
1172 * gdb-events.h: Regenerated.
1173
a790ad35
SC
11742002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1175
1176 Fix PR gdb/393:
1177 * inflow.c (terminal_save_ours): New function to save terminal
1178 settings.
1179 * inferior.h (terminal_save_ours): Declare.
1180 * target.c (debug_to_terminal_save_ours): New function.
1181 (cleanup_target): Defaults to_terminal_save_ours.
1182 (update_current_target): Inherit to_terminal_save_ours.
1183 (setup_target_debug): Set to_terminal_save_ours.
1184 * target.h (target_terminal_save_ours): New to save terminal settings.
1185 (target_ops): New member to_terminal_save_ours.
1186 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1187 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1188 * inftarg.c (init_child_ops): Likewise.
1189 * m3-nat.c (init_m3_ops): Likewise.
1190 * procfs.c (init_procfs_ops): Likewise.
1191 * wince.c (init_child_ops): Likewise.
1192 * win32-nat.c (init_child_ops): Likewise.
1193 * sol-thread.c (init_sol_thread_ops): Likewise.
1194
c00dcbe9
MK
11952002-08-26 Mark Kettenis <kettenis@gnu.org>
1196
3d7f4f49
MK
1197 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1198 use regcache_* functions.
1199 (i386_gdbarch_init): Set store_return_value instead of
1200 deprecated_store_return_value.
1201
c00dcbe9
MK
1202 * regcache.c (regcache_raw_write_signed,
1203 regcache_raw_write_unsigned): New functions.
1204 * regcache.h (regcache_raw_write_signed,
1205 regcache_raw_write_unsigned): New prototypes.
1206
0e0d15ca
AC
12072002-08-25 Andrew Cagney <ac131313@redhat.com>
1208
1209 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1210 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1211 source file dependencies. Cleanup corresponding generator rules.
1212
d3b22ed5
AC
12132002-08-25 Andrew Cagney <ac131313@redhat.com>
1214
1215 * regcache.h (register_offset_hack): Declare.
1216 (regcache_cooked_read_using_offset_hack): Declare.
1217 (regcache_cooked_write_using_offset_hack): Declare.
1218
1219 * regcache.c (register_offset_hack): New function.
1220 (regcache_cooked_read_using_offset_hack): New function.
1221 (regcache_cooked_write_using_offset_hack): New function.
1222 (regcache_dump): Check that the registers, according to their
1223 offset, are packed hard against each other.
1224 (cooked_xfer_using_offset_hack): New function.
1225
bb425013
AC
12262002-08-25 Andrew Cagney <ac131313@redhat.com>
1227
1228 * regcache.c (struct regcache_descr): Add field register_type.
1229 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1230 in as a parameter
1231 (init_regcache_descr): Initialize register_type. Pass the descr
1232 to init_legacy_regcache_descr. Use register_type instead of
1233 REGISTER_VIRTUAL_TYPE.
1234 (register_type): New function.
1235 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1236 * regcache.h (register_type): Declare.
1237
d0403e00
AC
12382002-08-25 Andrew Cagney <ac131313@redhat.com>
1239
1240 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1241 instead of deprecated_store_return_value. Fix fallout from
1242 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1243
0ed04cce
AC
12442002-08-25 Andrew Cagney <ac131313@redhat.com>
1245
1246 * regcache.c (max_register_size): New function.
1247 (init_legacy_regcache_descr): Ensure that max_register_size is
1248 large enough for REGISTER_VIRTUAL_SIZE.
1249 * regcache.h (max_register_size): Declare.
1250
46d79c04
AC
12512002-08-24 Andrew Cagney <ac131313@redhat.com>
1252
1253 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1254 store_return_value.
1255 (e500_extract_return_value): Change type of valbuf pointer to
1256 void.
1257
853c7bd0
MK
12582002-08-24 Mark Kettenis <kettenis@gnu.org>
1259
cd87e769
MK
1260 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1261 workaround.
1262
853c7bd0
MK
1263 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1264 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1265 long long) to prevent compiler warning on 64-bit systems.
1266
ebba8386
AC
12672002-08-23 Andrew Cagney <cagney@redhat.com>
1268
1269 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1270 (DEPRECATED_STORE_RETURN_VALUE): New method.
1271 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1272 * gdbarch.h, gdbarch.c: Re-generate.
1273
1274 * values.c (set_return_value): Pass current_regcache to
1275 STORE_RETURN_VALUE.
1276 * arch-utils.h (legacy_store_return_value): Declare.
1277 * arch-utils.c (legacy_store_return_value): New function.
1278 (legacy_extract_return_value): Update parameters.
1279
1280 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1281 STORE_RETURN_VALUE.
1282 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1283 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1284 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1285 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1286 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1287 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1288 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1289 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1290 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1291 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1292
1293 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1294 * i386-tdep.c (i386_extract_return_value): Update.
1295 * arch-utils.c (legacy_extract_return_value): Update.
1296 * frv-tdep.c (frv_gdbarch_init): Update.
1297 * cris-tdep.c (cris_gdbarch_init): Update.
1298 * d10v-tdep.c (d10v_gdbarch_init): Update.
1299 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1300 * m68k-tdep.c (m68k_gdbarch_init): Update.
1301 * mcore-tdep.c (mcore_gdbarch_init): Update.
1302 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1303 * s390-tdep.c (s390_gdbarch_init): Update.
1304 * sparc-tdep.c (sparc_gdbarch_init): Update.
1305 * sh-tdep.c (sh_gdbarch_init): Update.
1306 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1307 * v850-tdep.c (v850_gdbarch_init): Update.
1308 * avr-tdep.c (avr_gdbarch_init): Update.
1309 * ia64-tdep.c (ia64_gdbarch_init): Update.
1310 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1311 * vax-tdep.c (vax_gdbarch_init): Update.
1312 * alpha-tdep.c (alpha_gdbarch_init): Update.
1313 * arm-tdep.c (arm_gdbarch_init): Update.
1314 * mips-tdep.c (mips_gdbarch_init): Update.
1315 * i386-tdep.c (i386_gdbarch_init): Update.
1316
5bd8c6d0
AC
13172002-08-23 Andrew Cagney <ac131313@redhat.com>
1318
1319 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1320 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1321
e73e1724
MK
13222002-08-24 Mark Kettenis <kettenis@gnu.org>
1323
1324 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1325 problems.
1326
3e6564e1
JB
13272002-08-23 Joel Brobecker <brobecker@gnat.com>
1328
1329 * infrun.c (handle_inferior_event): Move a comment outside of a
1330 function call, in order to avoid indent reformatting this part
1331 of the code in an unreadable way.
1332
81d0cc19
GS
13332002-08-23 Grace Sainsbury <graces@redhat.com>
1334
1335 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1336 when breakpoints fail. Move general breakpoint error messages to
1337 insert_breakpoints.
1338 * breakpoint.c (insert_breakpoints): Change warnings when
1339 breakpoints are nto inserted to specify the type. Remove call to
1340 memory_error when hardware breakpoints can't be inserted. Remove
1341 multiple calls to warning so all messages are sent to the user at
1342 once.
1343 (delete_breakpoints): Make insert error messsages more explicit.
1344
17574093
DJ
13452002-08-23 Daniel Jacobowitz <drow@mvista.com>
1346
1347 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1348 gdbserver/ChangeLog.
1349
8acc2935
MK
13502002-08-23 Mark Kettenis <kettenis@gnu.org>
1351
dfe01d39
MK
1352 * i386-tdep.c: Include "objfiles.h".
1353 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1354 skip_trampoline_code.
1355 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1356 (CPLUS_MARKER): Define to '.'.
1357
8acc2935
MK
1358 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1359 member.
1360 (linux_corefile_thread_callback): Increase args->num_notes.
1361 (linux_make_note_section): Initialize thread_args.num_notes, and
1362 use it to determine whether notes for any threads were created.
1363
151fefe2 13642002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1365
1366 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1367 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1368 and PCUNKILL.
1369 (write_with_trace): Conditionalize out the switch branch handling
1370 PCSHOLD if the corresponding macro is not defined. Likewise for
1371 PRSABORT and PRSTOP.
1372 This change will be needed by the Interix port.
1373
e1507482
EZ
13742002-08-22 Elena Zannoni <ezannoni@redhat.com>
1375
1376 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1377 write_register wherever possible instead of manipulating the
1378 register bytes directly.
1379 Assign VALUE_CONTENTS to a variable and use that.
1380 The GPR numbers are now dependent on the architecture.
1381
96ff0de4
EZ
13822002-08-22 Elena Zannoni <ezannoni@redhat.com>
1383
1384 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1385 ev_offset fields.
1386 (skip_prologue): Add support for BookE/e500 instructions.
1387 (e500_extract_return_value): New function.
1388 (frame_get_saved_regs): Add support for saving ev registers and
1389 pseudo gpr's.
1390 (e500_store_return_value): New function.
1391 (rs6000_gdbarch_init): Move up default intializations of
1392 deprecated_extract_return_value and store_return_value. Overwrite
1393 init of store_return_value with e500 specific version.
1394 Set extract_return_value for e500.
1395
fbefca5b
EZ
13962002-08-22 Elena Zannoni <ezannoni@redhat.com>
1397
1398 * blockframe.c (generic_call_dummy_register_unwind): Use
1399 regcache_cooked_read to catch cases in which the variable is
1400 stored in a pseudo register.
1401
4d210288
AC
14022002-08-22 Andrew Cagney <cagney@redhat.com>
1403
1404 * NEWS: Mention that the i960 has been made obsolete.
1405 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1406 i960-tdep.c
1407 (remote-nrom.o): Obsolete target.
1408 (remote-nindy.o, i960-tdep.o): Ditto.
1409 * remote-nrom.c: Make file obsolete.
1410 * remote-nindy.c, remote-vx960.c: Ditto.
1411 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1412 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1413 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1414 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1415 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1416 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1417 i960-*-vxworks* obsolete.
1418 * MAINTAINERS: Note that the i960 is obsolete.
1419
6c0c456d
CV
14202002-08-21 Corinna Vinschen <vinschen@redhat.com
1421
1422 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1423 detach to allow reinitialization.
1424
9f9d12b3
AC
14252002-08-22 Andrew Cagney <ac131313@redhat.com>
1426
1427 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1428 attempt).
1429
ebeb39fe
JB
14302002-08-22 Jim Blandy <jimb@redhat.com>
1431
1432 * coffread.c (coff_symfile_read): Don't try to read the line
1433 number table from disk if the image file doesn't have a symbol
1434 table; we'll never actually look at the info anyway, and Windows
1435 ships DLL's with bogus file offsets for the line number data.
1436
5bf1c677
EZ
14372002-08-21 Elena Zannoni <ezannoni@redhat.com>
1438
1439 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1440 an e500 executable.
1441
71b8ef93
MS
14422002-08-21 Michael Snyder <msnyder@redhat.com>
1443
1444 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1445 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1446 (DEFAULT_MIPS_TYPE): Delete unused macro.
1447 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1448 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1449
d174216d
JB
14502002-08-21 Jim Blandy <jimb@redhat.com>
1451
1452 * valops.c (value_cast): Simplify and correct logic for doing a
1453 static cast from a pointer to a base class to a pointer to a
1454 derived class.
1455
0ab7a791
AC
14562002-08-21 Andrew Cagney <ac131313@redhat.com>
1457
1458 * infcmd.c (default_print_registers_info): Replace
1459 do_registers_info.
1460 (registers_info): Use gdbarch_print_registers_info instead of
1461 DO_REGISTERS_INFO.
1462 * inferior.h (default_print_registers_info): Replace
1463 do_registers_info.
1464 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1465 (DO_REGISTERS_INFO): Change to a predicate function.
1466 * gdbarch.h, gdbarch.c: Regenerate.
1467
e23792cc
KS
14682002-08-21 Keith Seitz <keiths@redhat.com>
1469
1470 * gdb-events.sh: Add target-changed event.
1471 * gdb-events.c: Regenerated.
1472 * gdb-events.c: Regenerated.
1473 * valops.c (value_assign): Add target-changed event notification
1474 to inlval_register, lval_memory, and lval_reg_frame_relative.
1475
9fb14e79
JB
14762002-08-21 Joel Brobecker <brobecker@gnat.com>
1477
1478 * NEWS: Add an entry regarding the improvement of the next/step
1479 operation on Alpha Tru64 multi-processor machines.
1480
6d39a69f
AC
14812002-08-21 Andrew Cagney <ac131313@redhat.com>
1482
72acd513
AC
1483 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1484 directores.
342af04b 1485 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1486 * Makefile.in (install-gdbtk): Move to install section.
1487 (rdi-share/libangsd.a): Move to end of file.
1488
fa5f27c7
AC
14892002-08-19 Andrew Cagney <ac131313@redhat.com>
1490
1491 * frame.c (frame_register_unwind): When a register, set addrp to
1492 the register's byte.
1493
5a89d8aa
MS
14942002-08-20 Michael Snyder <msnyder@redhat.com>
1495
1496 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1497 used locally, so move them from the target machine header to here.
1498 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1499 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1500 Make static.
1501 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1502
822e978b
AC
15032002-08-20 Andrew Cagney <cagney@redhat.com>
1504
1505 * NEWS: Mention that the Apollo line was made obsolete.
1506 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1507 m68*-hp-hpux* obsolete.
1508 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1509 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1510 * buildsym.c (make_blockvector): Make static.
1511 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1512 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1513 (ALLDEPFILES): Remove dstread.c.
1514 (dstread.o): Obsolete make rule.
1515 * dstread.c: Makefile obsolete.
1516 * dst.h: Ditto.
1517 * config/m68k/hp300hpux.mt: Ditto.
1518 * config/m68k/hp300hpux.mh: Ditto.
1519 * config/m68k/hp300bsd.mt: Ditto.
1520 * config/m68k/hp300bsd.mh: Ditto.
1521 * config/m68k/apollo68b.mt: Ditto.
1522 * config/m68k/apollo68v.mh: Ditto.
1523 * config/m68k/apollo68b.mh: Ditto.
1524
e41b17f0
MS
15252002-08-20 Michael Snyder <msnyder@redhat.com>
1526
1527 * mips-tdep.c (mips_in_return_stub): Make static.
1528 (mips_gdbarch_init): Set in_solib_return_trampoline.
1529 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1530
d50355b6
MS
15312002-08-20 Michael Snyder <msnyder@redhat.com>
1532
1533 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1534 * gdbarch.c, gdbarch.h: Regenerate.
1535 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1536 Add.
1537 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1538
757a7cc6
MS
15392002-08-20 Michael Snyder <msnyder@redhat.com>
1540
1541 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1542 (mips_gdbarch_init): Set skip_trampoline_code,
1543 in_solib_call_trampoline.
1544 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1545 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1546
c8001721
EZ
15472002-08-20 Elena Zannoni <ezannoni@redhat.com>
1548
1549 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1550
1551 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1552 vector type for ev registers.
1553 (e500_pseudo_register_read): New function.
1554 (e500_pseudo_register_write): New function.
1555 (e500_dwarf2_reg_to_regnum): New function.
1556 (PPC_UISA_NOFP_SPRS): New macro.
1557 (PPC_EV_REGS): New macro.
1558 (PPC_GPRS_PSEUDO_REGS): New macro.
1559 (registers_e500): New register set for e500.
1560 (variants): Add e500 variant.
1561 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1562 before setting architectural dependent variations. Initialize ev
1563 registers numbers. Add case for e500 architecture. Set the
1564 number of pseudo registers.
1565
64366f1c
EZ
15662002-08-20 Elena Zannoni <ezannoni@redhat.com>
1567
1568 * rs6000-tdep.c: Clean up comments.
1569
7e78f0ca
AC
15702002-08-20 Andrew Cagney <cagney@redhat.com>
1571
1572 * h8300-tdep.c: Re-indent file.
1573
697f7479
JB
15742002-08-20 Jim Blandy <jimb@redhat.com>
1575
1576 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1577 default for this.
697f7479 1578
e86ae29f
KS
15792002-08-20 Keith Seitz <keiths@redhat.com>
1580
1581 * breakpoints.c (watch_command_1): Use internal breakpoint
1582 when setting a watchpoint_scope breakpoint.
1583
216b504f
EZ
15842002-08-20 Elena Zannoni <ezannoni@redhat.com>
1585
1586 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1587 (build_builtin_type_vec64i): Ditto.
1588 (build_builtin_type_vec128): Ditto.
1589 (build_builtin_type_vec128i): Ditto.
1590
f7ab6ec6
MS
15912002-08-19 Michael Snyder <msnyder@redhat.com>
1592
1593 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1594 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1595 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1596 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1597 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1598 CALL_DUMMY_ADDRESS): Delete.
1599 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1600 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1601 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1602 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1603 push_return_address.
1604 (mips_register_raw_size, mips_eabi_use_struct_convention,
1605 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1606 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1607 mips_init_extra_frame_info, mips_eabi_push_arguments,
1608 mips_n32n64_push_arguments, mips_push_return_address,
1609 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1610 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1611
b5d1566e
MS
16122002-08-19 Michael Snyder <msnyder@redhat.com>
1613
1614 * mips-tdep.c (mips_frame_num_args): New function.
1615 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1616 frame_saved_pc, frame_args_address, frame_locals_address,
1617 frame_num_args, and frame_args_skip.
1618 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1619 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1620 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1621 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1622
2f1488ce
MS
16232002-08-20 Michael Snyder <msnyder@redhat.com>
1624
1625 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1626 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1627 * mips-tdep.c (mips_store_struct_return): New function.
1628 (mips_extract_struct_value_address): New function.
1629 (mips_gdbarch_init): Set store_struct_return and
1630 extract_struct_value_address.
1631
41ff2da1
DC
16322002-08-20 David Carlton <carlton@math.stanford.edu>
1633
1634 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1635 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1636 (read_file_scope): Check that line_header is nonzero before
1637 decoding macro information.
1638
e5451d58
MK
16392002-08-20 Mark Kettenis <kettenis@gnu.org>
1640
1641 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1642 flag the general-purpose registers as floating-point on targets
1643 that don't support the floating-point registers.
1644
4a6daafa
EZ
16452002-08-20 Elena Zannoni <ezannoni@redhat.com>
1646
1647 * rs6000-tdep.c (altivec_register_p): Delete.
1648 (rs6000_do_altivec_registers): Delete.
1649 (rs6000_altivec_registers_info): Delete.
1650 (rs6000_do_registers_info): Delete.
1651 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1652 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1653
ab4327e0
EZ
16542002-08-20 Elena Zannoni <ezannoni@redhat.com>
1655
1656 * infcmd.c (do_registers_info): Print vector registers in hex
1657 format only.
1658 (print_vector_info): Check that printing registers
1659 makes sense.
1660 (print_float_info): Ditto.
1661
cb1d2653
AC
16622002-08-20 Andrew Cagney <ac131313@redhat.com>
1663
1664 * mips-tdep.c (mips_gdbarch_init): Update.
1665 (mips_o32_extract_return_value): Rewrite.
1666 (mips_o32_store_return_value): Rewrite.
1667 (mips_o32_xfer_return_value): New function.
1668 (mips_xfer_register): Tweak debug print message. Allow for
1669 buf_offset when dumping the value transfered.
1670
dfc3d9b2
AC
16712002-08-20 Andrew Cagney <ac131313@redhat.com>
1672
1673 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1674 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1675 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1676 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1677 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1678
7807aa61
MS
16792002-08-14 Michael Snyder <msnyder@redhat.com>
1680
1681 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1682
489461e2
EZ
16832002-08-19 Elena Zannoni <ezannoni@redhat.com>
1684
1685 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1686 register.
1687 (P): New macro to define a register as a pseudo register.
1688 (R, R4, R8, R16, FR32, R64, R0): Updated.
1689 (struct variant): Add new fields for number of pseudo registers
1690 and number of total registers.
1691 (tot_num_registers): New macro replacing....
1692 (num_registers): ...deleted macro.
1693 (num_registers): New function.
1694 (num_pseudo_registers): New function.
1695 (variants): Update all variants to intialize new fields correctly.
1696 Postpone initialization of number of pseudo regs and real regs.
1697 (init_variants): New function.
1698 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1699 registers offsets.
1700
fcaffe4c
DC
17012002-08-19 David Carlton <carlton@math.stanford.edu>
1702
2c2738a0
DC
1703 * valops.c (search_struct_field): Change error message to treat
1704 return value of 0 from value_static_field as meaning that field is
1705 optimized out.
1706 (value_struct_elt_for_reference): Ditto.
1707 * values.c (value_static_field): Treat an unresolved location the
1708 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1709 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1710 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1711 * MAINTAINERS: Add self to Write After Approval list.
1712
88658117
AC
17132002-08-19 Andrew Cagney <ac131313@redhat.com>
1714
1715 * mips-tdep.c (mips_xfer_register): New function.
1716 (mips_n32n64_extract_return_value): Rewrite.
1717 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1718 instead of deprecated_extract_return_value.
1719
21283beb
EZ
17202002-08-19 Elena Zannoni <ezannoni@redhat.com>
1721
1722 * rs6000-tdep.c (TDEP): Delete macro.
1723 (branch_dest): Replace use of TDEP macro with its body.
1724 (rs6000_pop_frame): Ditto.
1725 (rs6000_push_arguments): Ditto.
1726 (rs6000_skip_trampoline_code): Ditto.
1727 (rs6000_frame_saved_pc): Ditto.
1728 (rs6000_frame_chain): Ditto.
1729 (rs6000_register_name): Ditto.
1730 (rs6000_register_byte): Ditto.
1731 (rs6000_register_raw_size): Ditto.
1732 (rs6000_register_virtual_type): Ditto.
1733 (rs6000_register_convertible): Ditto.
1734 (rs6000_convert_from_func_ptr_addr): Ditto.
1735
bf072999
DJ
17362002-08-19 Daniel Jacobowitz <drow@mvista.com>
1737
1738 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1739 conditionally.
1740 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1741 MIPS_LINUX_JB_ELEMENT_SIZE.
1742 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1743 for MAX_REGISTER_RAW_SIZE arrays.
1744 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1745 MIPS_LINUX_JB_ELEMENT_SIZE.
1746
9b949a49
PM
17472002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1748
1749 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1750
6d3e79c6
AS
17512002-08-19 Aidan Skinner <aidan@velvet.net>
1752
1753 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1754 ada-valprint.c ada-tasks.c.
1755 (YYFILES): Add ada-exp.y.
1756 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1757 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1758 (ada-exp.tab.o): New target.
1759
06c0b04e
AC
17602002-08-18 Andrew Cagney <ac131313@redhat.com>
1761
1762 * regcache.c (regcache_xfer_part): New function.
1763 (regcache_raw_read_part): New function.
1764 (regcache_raw_write_part): New function.
1765 (regcache_cooked_read_part): New function.
1766 (regcache_cooked_write_part): New function.
1767 * regcache.h (regcache_raw_read_part): Declare.
1768 (regcache_raw_write_part): Declare.
1769 (regcache_cooked_read_part): Declare.
1770 (regcache_cooked_write_part): Declare.
1771
92d1e331
DJ
17722002-08-18 Daniel Jacobowitz <drow@mvista.com>
1773
1774 * remote.c (remote_open_1): Add async_p.
1775 (remote_async_open_1): Delete.
1776 (open_remote_target): Delete.
1777 (remote_open, extended_remote_open): Update calls to remote_open_1.
1778 (remote_async_open, extended_remote_async_open): Call
1779 remote_open_1 instead of remote_async_open_1.
1780
247055de
MK
17812002-08-19 Mark Kettenis <kettenis@gnu.org>
1782
1783 * blockframe.c: Fix a few coding standard violations.
1784
641eda39
MK
17852002-08-19 Mark Kettenis <kettenis@gnu.org>
1786
0b717710
MK
1787 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1788 here from ...
1789 * config/i386/tm-i386sco5.h: ... here. File removed.
1790 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1791
26d28e12 1792 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1793 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1794 (TM_FILE): Set to tm-i386.h.
1795 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1796 * config/i386/tm-i386v.h: Remove file.
1797 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1798 instead of "i386/tm-i386v.h".
1799 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1800 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1801 "i386/tm-i386v.h".
1802 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1803 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1804 "i386/tm-i386.h".
1805
d4e0bab4
MK
18062002-08-18 Mark Kettenis <kettenis@gnu.org>
1807
1808 * config/i386/nm-i386v.h: Add protection against
1809 multiple-inclusion.
1810 (i386_register_u_addr): Remove prototype.
1811 (register_u_addr): New prototype.
1812 (REGISTER_U_ADDR): Redefine accordingly.
1813 * i386v-nat.c: Improve several comments.
1814 (i386_register_u_addr): Change signature and rename to
1815 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1816 ubase variable.
1817
46cac009
AC
18182002-08-18 Andrew Cagney <ac131313@redhat.com>
1819
1820 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1821 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1822 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1823 deprecated_extract_return_value.
1824 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1825 rename mips_o32o64_push_arguments.
1826 (mips_gdbarch_init): Update.
1827 (mips_extract_return_value): Delete.
1828 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1829 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1830 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1831 (mips_n32n64_extract_return_value): Clone
1832 mips_extract_return_value.
1833 (mips_store_return_value): Delete.
1834 (mips_o32_store_return_value): Clone mips_store_return_value.
1835 (mips_o64_store_return_value): Clone mips_store_return_value.
1836 (mips_eabi_store_return_value): Clone mips_store_return_value.
1837 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1838
d2e4a39e
AS
18392002-08-18 Aidan Skinner <aidan@velvet.net>
1840
0c30c098
AS
1841 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1842 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1843
18442002-08-18 Aidan Skinner <aidan@velvet.net>
1845
1846 * ada-lang.c: Run through gdb_indent.sh.
1847 * ada-lang.h: Run through gdb_indent.sh.
1848 * ada-tasks.c: Run through gdb_indent.sh.
1849 * ada-typeprint.c: Run through gdb_indent.sh.
1850 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1851
01fc4e33
AC
18522002-08-18 Andrew Cagney <ac131313@redhat.com>
1853
1854 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1855 ABI.
1856
d8ee244c
MK
18572002-08-18 Mark Kettenis <kettenis@gnu.org>
1858
c38d8261
MK
1859 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1860
222db64c
MK
1861 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1862 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1863
c2848c82
MK
1864 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1865 write_register_gen instead of write_register_bytes.
1866
d8ee244c
MK
1867 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1868 i[3456]-*-osf1mk* configurations have been made obsolete.
1869 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1870 i[3456]86-*-osf1mk* hosts obsolete.
1871 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1872 targets obsolete.
1873 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1874 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1875 config/i386/i386m3.mt, config/i386/nm-m3.h,
1876 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1877 config/i386/i386mk.mh, config/i386/i386mk.mt,
1878 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1879 obsolete.
1880 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1881 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1882 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1883
61d8d407
AC
18842002-08-18 Andrew Cagney <ac131313@redhat.com>
1885
1886 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1887 (hppa_value_returned_from_stack): Declare.
1888 (hppa_extract_return_value): Declare.
1889 * config/pa/hppa.mt: New file.
1890 * configure.tgt: Recognize hppa*-*-*.
1891 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1892
0c52bd59
MK
18932002-08-18 Mark Kettenis <kettenis@gnu.org>
1894
1895 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1896 comment.
1897
b5686e99
MK
18982002-08-17 Mark Kettenis <kettenis@gnu.org>
1899
1900 * top.c (gdb_rl_operate_and_get_next): Make sure
1901 operate-and-get-next functions correctly even when the history
1902 list is completely filled.
1903
c1bab85b
AC
19042002-08-18 Andrew Cagney <ac131313@redhat.com>
1905
1906 * MAINTAINERS (Target Instruction Set Architectures): Rename
1907 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1908 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1909 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1910 already listed under Host/Native.
1911
1912 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1913 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1914 mips*-*-*.
1915
32089c7c
AC
19162002-08-17 Andrew Cagney <ac131313@redhat.com>
1917
1918 * config/ia64/ia64.mt: New file.
1919 * config/alpha/alpha.mt: New file.
1920 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1921 ia64-linux-gnu. Mention that ia64-elf is broken.
1922 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1923
b4671f85
MK
19242002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1925
1926 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1927 generic_func_frame_valid instead of func_frame_valid.
1928
c8edd8b4
JB
19292002-08-16 Joel Brobecker <brobecker@gnat.com>
1930
1931 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1932 procfs appears to be broken when debugging on multi-processor
1933 machines. So enable software single stepping in order to avoid
1934 using the procfs interface to do next/step operations, using
1935 internal breakpoints instead.
1936
1937 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1938 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1939 make this pc address equal to the value it would have if the
1940 system stepping capability was used. Also set a new flag used
1941 to ensure that we don't readjust the PC one more time later.
1942
1943 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1944 address by DECR_PC_AFTER_BREAK when software single step is
1945 in use for this architecture, as this has already been taken
1946 care of in handle_inferior_event().
1947
238617f6
JB
19482002-08-16 Joel Brobecker <brobecker@gnat.com>
1949
1950 * infrun.c (handle_inferior_event): Minor reformatting, to make
1951 a rather long condition expression easier to read.
1952
541a7aac
AC
19532002-08-16 Andrew Cagney <ac131313@redhat.com>
1954
1955 * Makefile.in (gdbtk.o): Move to end of file.
1956 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1957 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1958 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1959 (gdbtk-wrapper.o, gdbres.o): Ditto.
1960
f92d4a7b
AC
19612002-08-16 Andrew Cagney <ac131313@redhat.com>
1962
1963 * Makefile.in (copying.o): Separate out compile rule.
1964 (hpux-thread.o, procfs.o, signals.o): Ditto.
1965 (v850ice.o, z8k-tdep.o): Ditto.
1966 (tui-file.o): Move to TUI section.
1967 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1968 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1969
1cce71eb
JB
19702002-08-16 Joel Brobecker <brobecker@gnat.com>
1971
1972 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1973 skip_trampoline_code, for better namespace-proofing.
1974
1975 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1976
0851f23d
JB
19772002-08-16 Joel Brobecker <brobecker@gnat.com>
1978
1979 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1980
f8d40ec8
JB
19812002-08-16 Joel Brobecker <brobecker@gnat.com>
1982
1983 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1984 signal, check whether we hit a breakpoint before checking for a
1985 single step breakpoint. Otherwise, GDB fails to notice that a
1986 breakpoint has been hit when stepping onto a breakpoint.
1987
63d022e0
KS
19882002-08-16 Keith Seitz <keiths@redhat.com>
1989
1990 * gdb-events.sh (clear_gdb_event_hooks): New function.
1991 * gdb-events.c: Regenerate.
1992 * gdb-events.h: Regenerate.
1993
6e31adb3
AC
19942002-08-16 Andrew Cagney <ac131313@redhat.com>
1995
1996 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1997 not_a_sw_breakpoint.
1998 * breakpoint.h (bpstat_stop_status): Add parameter names.
1999
c8189ed1
GS
20002002-08-16 Grace Sainsbury <graces@redhat.com>
2001
2002 * remote.c (remote_insert_hw_breakpoint)
2003 (remote_remove_hw_breakpoint): Fix calculation of length field
2004 for Z-packet.
2005
d05285fa
MS
20062002-08-15 Michael Snyder <msnyder@redhat.com>
2007
466d7106
MS
2008 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2009 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2010 (supply_fpregset): Ditto.
2011
d05285fa
MS
2012 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2013 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2014 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2015 (TARGET_READ_SP): Delete.
bf1f5b4c 2016 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2017 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2018 Delete.
2019 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2020 from macros to functions.
bf1f5b4c 2021
d05285fa
MS
2022 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2023 (mips_register_convertible, mips_register_convert_to_virtual,
2024 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2025 (mips_read_sp): New function.
2026 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2027 (mips_do_registers_info): Make static.
2028 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2029 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2030 (mips_register_convert_from_type, mips_register_convert_to_type):
2031 New functions.
2032 (mips_gdbarch_init): Set up function_start_offset,
2033 register_virtual_size, pc_in_sigtramp.
d05285fa 2034
e76f1f2e
AC
20352002-08-15 Andrew Cagney <ac131313@redhat.com>
2036
2037 * infcmd.c (vector_info): New function.
2038 (_initialize_infcmd): Add command "info vector".
2039 (print_vector_info): New function.
2040
2041 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2042 * gdbarch.h, gdbarch.c: Regenerate.
2043
4782dc19
AC
20442002-08-15 Andrew Cagney <ac131313@redhat.com>
2045
2046 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2047 ``print_all''. Only print vector registers when ``print_all''.
2048
23e3a7ac
AC
20492002-08-15 Andrew Cagney <ac131313@redhat.com>
2050
8e186fd6
AC
2051 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2052 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2053
23e3a7ac
AC
2054 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2055 Add `args' parameter.
2056 * gdbarch.h, gdbarch.c: Regenerate.
2057
2058 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2059
2060 * infcmd.c (float_info): Call print_float_info.
2061 (print_float_info): New function. By default, print the
2062 floating-point registers.
2063
2064 * arch-utils.h (default_print_float_info): Delete declaration.
2065 * arch-utils.c (default_print_float_info): Delete function.
2066
e0ca2bb9
MK
20672002-08-16 Mark Kettenis <kettenis@gnu.org>
2068
3f733acc
MK
2069 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2070 out define.
2071
7d8d2918
MK
2072 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2073 FRAME.
2074
1c7cc583
MK
2075 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2076 * configure.host: Make i[3456]86-*-aix host obsolete.
2077 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2078 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2079 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2080 config/i386/xm-i386aix.h: Make files obsolete.
2081 * i386aix-nat.c: Make file obsolete.
2082 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2083 (i386aix-nat.o): Make target obsolete.
2084
e0ca2bb9
MK
2085 * config/i386/nm-gnu.h: Removed.
2086 * config/i386/nm-i386gnu.h: New file.
2087 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2088 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2089 Moved here from ...
2090 * config/i386/tm-i386gnu.h: ... here. Removed.
2091 * config/i386/xm-i386gnu.h: Removed.
2092 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2093 (NAT_FILE): Set to nm-i386gnu.h.
2094 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2095 * i386-tdep.c: New file.
2096 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2097 (i386gnu-tdep.o): Specify dependencies.
2098
16057ec7 20992002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2100
6b99ee2e
MK
2101 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2102 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2103 Adjust a few comments to reflect reality a bit closer.
2104 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2105 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2106 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2107 target_insert_watchpoint, target_remove_watchpoint):
2108 Move defines to ...
2109 * config/i386/nm-i386sco5.h: ... here.
2110 (kernel_u_size): Add prototype. Improve a few comments and add
2111 protection against multiple inclusion.
2112
d9a6f65c
MK
2113 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2114 out define.
2115
047eff6a
MK
2116 * uw-thread.c (SP_ARG0): Define if not already defined.
2117 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2118
dcdb1290
MK
2119 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2120
5d2d0b2a
MK
2121 * config/i386/tm-i386.h: Don't include "regcache.h".
2122
61113f8b
MK
2123 * i387-tdep.h (i387_print_float_info): New prototype.
2124 * i387-tdep.c (print_i387_value, print_i387_ext,
2125 print_i387_status_word, print_i387_control_word): Add `struct
2126 ui_file *' argument and use it for output.
2127 (i387_print_float_info): Renamed from i387_float_info. Add
2128 `struct gdbarch *' and `struct ui_file *' arguments and use the
2129 latter for output.
2130 * i386-tdep.c: Include "i387-tdep.h".
2131 (i386_gdbarch_init): Set print_float_info.
2132 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2133 (FLOAT_INFO): Remove define.
2134
46e0f506
MS
21352002-08-13 Michael Snyder <msnyder@redhat.com>
2136
2137 * mips-tdep.c (mips_push_arguments): Rename to
2138 mips_eabi_push_arguments, and tune for EABI.
2139 (MIPS_REGS_HAVE_HOME_P): Delete.
2140 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2141 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2142 Delete references to mips_regs_have_home_p.
2143
409268de
KS
21442002-08-14 Keith Seitz <keiths@redhat.com>
2145
2146 * Makefile.in (install-gdbtk): Create insight plugin directory.
2147 Install plugins.tcl file.
2148
ffc6a242
KS
21492002-08-14 Keith Seitz <keiths@redhat.com>
2150
2151 * configure.in: Move SUBDIRS to near top of the file so that
2152 --enable options may add things to it.
2153 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2154 * configure: Regenerate.
2155
ebafbe83
MS
21562002-08-13 Michael Snyder <msnyder@redhat.com>
2157
2158 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2159 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2160 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2161
32f6f25d
AC
21622002-08-13 Andrew Cagney <ac131313@redhat.com>
2163
2164 * vax-tdep.c (vax_get_saved_register): Delete function.
2165 (vax_gdbarch_init): Update.
2166 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2167 (ns32k_gdbarch_init): Update.
2168 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2169 (alpha_gdbarch_init): Update.
2170
53826de9
AC
21712002-08-13 Andrew Cagney <cagney@redhat.com>
2172
2173 * regcache.c (init_regcache_descr): Overallocate the
2174 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2175 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2176 nr_raw_registers.
2177 (set_register_cached): Add range checking assertions. Use
2178 current_regcache.
2179
16057ec7 21802002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2181
2182 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2183 numbers for MMX registers.
2184
7b4c2dce
AC
21852002-08-13 Andrew Cagney <cagney@redhat.com>
2186
2187 * i386-tdep.c (i386_gdbarch_init): Use
2188 generic_unwind_get_saved_register.
2189
1e03ad20
KB
21902002-08-13 Kevin Buettner <kevinb@redhat.com>
2191
2192 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2193 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2194 target vector.
2195 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2196 Delete. Add comment regarding this now-deleted target method.
2197
548bcbec
SC
21982002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2199
2200 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2201 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2202 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2203 real PC and the page number (if it's within the memory bank window).
2204 (m68hc11_pseudo_register_write): Likewise when saving.
2205 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2206 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2207 (m68hc11_register_raw_size): And use 32-bit for it.
2208 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2209 16K memory bank is used by the prog; also use the virtual pc.
2210
7df11f59
SC
22112002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2212
2213 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2214 (m68hc11_gdbarch_init): Install it in gdbarch.
2215 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2216 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2217 (MSYMBOL_SIZE): New for documentation.
2218 (insn_return_kind): Enum to specify how a function returns.
2219 (frame_extra_info): Cleanup and record the return mode.
2220 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2221 register in address computation.
2222 (m68hc11_get_return_insn): New to obtain the return instruction used
2223 by the function.
2224 (m68hc11_frame_init_saved_regs): Take into account the return
2225 instruction used by the function for far and interrupt functions.
2226 (m68hc11_init_extra_frame_info): Take into account page register.
2227 (m68hc11_frame_args_address): Adjust according to the return mode.
2228 (show_regs): Print page register only when it's used.
2229
5706502a
SC
22302002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2231
2232 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2233 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2234 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2235 registers.
2236 (m68hc11_register_raw_size): Likewise.
2237
28fc6740
AC
22382002-08-13 Andrew Cagney <cagney@redhat.com>
2239
2240 * i386-tdep.c (i386_register_name): Handle mmx registers.
2241 (mmx_regnum_p): New function.
2242 (i386_mmx_names): New array.
2243 (mmx_num_regs): New variable.
2244 (i386_pseudo_register_read): New function.
2245 (i386_pseudo_register_write): New function.
2246 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2247
2248 * regcache.c (regcache_raw_read_unsigned): New function.
2249 (regcache_raw_read_signed): New function.
2250 * regcache.h (regcache_raw_read_unsigned): Declare.
2251 (regcache_raw_read_signed): Declare.
2252
a378f419
AC
22532002-08-13 Andrew Cagney <cagney@redhat.com>
2254
2255 * regcache.c (regcache_raw_read_as_address): Delete function.
2256 (regcache_cooked_read_signed): New function.
2257 (regcache_cooked_read_unsigned): New function.
2258 * regcache.h (regcache_cooked_read_signed): Declare.
2259 (regcache_cooked_read_unsigned): Declare.
2260 (regcache_raw_read_as_address): Delete declaration.
2261
2262 * blockframe.c (generic_read_register_dummy): Use
2263 regcache_cooked_read_unsigned.
2264 * i386-tdep.c (i386_extract_struct_value_address): Use
2265 regcache_cooked_read_unsigned.
2266
81967506
SC
22672002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2268
2269 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2270 double sizes according to ELF ABI flags.
2271 (gdbarch_tdep): Record elf_flags.
2272
ffe1f3ee
SC
22732002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2274
2275 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2276 (m6812_prolog): They can appear in 68HC12 function prologue.
2277 (m68hc11_frame_chain): Cleanup.
2278
98216c5d
AC
22792002-08-12 Andrew Cagney <cagney@redhat.com>
2280
2281 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2282 declarations.
2283 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2284 (i386_linux_register_raw_size): Delete function.
2285 (i386_linux_init_abi): Update.
2286 * i386-tdep.c (i386_register_raw_size): Delete function.
2287 (i386_register_byte): Delete function.
2288 (i386_gdbarch_init): Update.
2289 (i386_register_size): Delete array.
2290 (i386_register_offset): Delete array.
2291
2292 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2293 (REGISTER_RAW_SIZE): Delete macro.
2294 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2295 (REGISTER_BYTE): Delete macro.
2296
3b19021e
AS
22972002-08-11 Aidan Skinner <aidan@velvet.net>
2298
2299 * ada-lang.c (ada_lookup_partial_symbol)
2300 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2301 prototype names so that grep ^func works properly.
2302
2303 * ada-lang.c (ada_array_element_type)
2304 (ada_lookup_partial_symbol): Fix typos in parameter list.
2305
2306 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2307 Fix prototype names so that grep ^func works properly.
2308
b063e7a2
AC
23092002-08-10 Andrew Cagney <cagney@redhat.com>
2310 Elena Zannoni <ezannoni@redhat.com>
2311 Martin M. Hunt <hunt@redhat.com>
2312
2313 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2314 (build_builtin_type_vec128i): Set the vector bit.
2315 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2316 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2317 (build_builtin_type_vec64): New function.
2318 (build_builtin_type_vec64i): New function.
2319 (build_gdbtypes): Initialize builtin_type_vec64 and
2320 builtin_type_vec64i.
2321
a7e3c2ad
AC
23222002-08-09 Andrew Cagney <cagney@redhat.com>
2323
2324 * regcache.c (regcache_dump): Compare the register offset
2325 with REGISTER_BYTE.
2326 * arch-utils.c (generic_register_byte): New function.
2327 * arch-utils.h (generic_register_byte): Declare.
2328 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2329 * gdbarch.h, gdbarch.c: Regenerate.
2330
af030b9a
AC
23312002-08-09 Andrew Cagney <cagney@redhat.com>
2332
2333 * regcache.c: Include "gdbcmd.h"
2334 (_initialize_regcache): Add commands "maintenance print
2335 registers", "maintenance print raw-registers" and "maintenance
2336 print cooked-registers".
2337 (enum regcache_dump_what): Define.
2338 (dump_endian_bytes): New function.
2339 (regcache_dump): New function.
2340 (regcache_print): New function.
2341 (maintenance_print_registers): New function.
2342 (maintenance_print_raw_registers): New function.
2343 (maintenance_print_cooked_registers): New function.
2344 * Makefile.in (regcache.o): Update dependencies.
2345
cb3d25d1
MS
23462002-08-09 Michael Snyder <msnyder@redhat.com>
2347
2348 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2349 (mips_push_arguments): Correct some comments. Use paddr_nz
2350 for printing addresses in debug output. Replace static
2351 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2352 (mips_n32n64_push_arguments): New function, cloned from
2353 mips_push_arguments and tuned for the n32/n64 ABI.
2354 (mips_push_register): Buffer needs dynamic allocation.
2355 (mips_print_register): Ditto.
2356 (do_gp_register_row): Ditto.
2357 (mips_store_return_value): Ditto.
2358 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2359
2163ab9d
DH
23602002-08-09 Don Howard <dhoward@redhat.com>
2361
2362 * memattr.c (mem_info_command): Print special case of upper bound
2363 as max CORE_ADDR + 1.
2364
b78bcb18
MS
23652002-08-08 Michael Snyder <msnyder@redhat.com>
2366
2367 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2368 returns structs by ref if they're too big to fit in two registers.
2369
ffabd70d
KB
23702002-08-09 Kevin Buettner <kevinb@redhat.com>
2371
2372 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2373 saved regs value.
2374 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2375 mips_find_saved_regs().
2376 (mips_pop_frame): Likewise.
2377
fbcdb4a3
KB
23782002-08-09 Kevin Buettner <kevinb@redhat.com>
2379
2380 * blockframe.c (frame_saved_regs_register_unwind): Revise
2381 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2382 frames are in use.
2383
3c3bea1c
GS
23842002-08-09 Grace Sainsbury <graces@redhat.com>
2385
2386 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2387 T-packets; the 'a' is not taken as a register number.
2388 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2389 (remote_stopped_data_address): New functions; add to target
2390 vector.
2391 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2392 prototypes to match other implementations of this
2393 function. replace integer argument with pointer -- the length
2394 field in the Z-packet is the length of what is pointed to or 1 if
2395 pointer is null. Add to target vector.
2396 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2397 target vector.
2398
2399 From Mark Salter:
2400 * remote.c (remote_wait): Add support to extract optional
2401 watchpoint information from T-packet. Ignore unrecognized
2402 optional info in T-packet.
2403 (remote_async_wait): Ditto.
2404
5d1d95de
CV
24052002-08-09 Corinna Vinschen <vinschen@redhat.com>
2406
2407 * cli/cli-dump.c: Change fopen modes to use binary open modes
2408 as defined in include/fopen-bin.h throughout.
2409
c86b5b38
MS
24102002-08-08 Michael Snyder <msnyder@redhat.com>
2411
2412 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2413
b30590dc
KB
24142002-08-08 Kevin Buettner <kevinb@redhat.com>
2415
2416 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2417 assertion failure by returning early after a warning.
2418
498868ed
KB
24192002-08-08 Kevin Buettner <kevinb@redhat.com>
2420
2421 * mips-tdep.c (mips_find_saved_regs): Make static.
2422 (mips_frame_init_saved_regs): New function.
2423 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2424 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2425 (mips_find_saved_regs): Delete declaration.
2426
b2dd6311
GS
24272002-08-08 Grace Sainsbury <graces@redhat.com>
2428
3c3bea1c
GS
2429 * remote.c (remote_wait, remote_async_wait): Change
2430 thread_num from int to ULONGEST.
2431 (unpack_varlen_hex): Change result parameter from
2432 int * to ULONGEST *.
b2dd6311 2433
ea47855f
AC
24342002-08-08 Andrew Cagney <ac131313@redhat.com>
2435
2436 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2437 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2438 powerpc*-*-*.
2439 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2440
69db8bae
AC
24412002-08-08 Andrew Cagney <cagney@redhat.com>
2442
2443 * gcore.c (override_derive_stack_segment): Delete variable.
2444 (preempt_derive_stack_segment): Delete function.
2445 (derive_stack_segment): Delete function.
2446 (default_derive_stack_segment): Renamed to derive_stack_segment.
2447 (override_derive_heap_segment): Delete variable.
2448 (preempt_derive_heap_segment): Delete function.
2449 (derive_heap_segment): Delete function.
2450 (default_derive_heap_segment): Rename to derive_heap_segment.
2451
cb811fe7
MS
24522002-08-06 Michael Snyder <msnyder@redhat.com>
2453
2454 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2455 * mips-tdep.c (mips_EABI_use_struct_convention,
2456 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2457 New functions. (mips_use_struct_convention): Delete.
2458 (mips_gdbarch_init): set use_gdbarch_convention.
2459
8b389c40
MS
24602002-08-06 Michael Snyder <msnyder@redhat.com>
2461
2462 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2463 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2464 mips_o32_reg_struct_has_addr): New functions.
2465 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2466
5c27f28a
AC
24672002-08-07 Andrew Cagney <ac131313@redhat.com>
2468
2469 * regcache.c (pseudo_register): Delete function.
2470 (fetch_register): Delete function.
2471 (store_register): Delete function.
2472 (regcache_raw_read, legacy_read_register_gen): Use
2473 target_fetch_registers instead of fetch_register.
2474 (legacy_write_register_gen, regcache_raw_write): Use
2475 target_store_register instead of store_register.
2476 (write_register_bytes): Ditto.
2477
2478 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2479 (STORE_PSEUDO_REGISTER): Delete.
2480 * gdbarch.h, gdbarch.c: Regenerate.
2481
5b331675
CV
24822002-08-06 Corinna Vinschen <vinschen@redhat.com>
2483
2484 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2485 write dump file binary.
2486
6acdf5c7
MS
24872002-08-05 Michael Snyder <msnyder@redhat.com>
2488
2489 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2490 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2491 (mips_gdbarch_init): Set N32 target to be mips64.
2492
b2f01c35
KB
24932002-08-06 Kevin Buettner <kevinb@redhat.com>
2494
2495 * frame.c (find_saved_register): Break out of loop once saved
2496 register address is found. Don't mention sparc in loop comment
2497 anymore.
2498
63db5580
KB
24992002-08-06 Kevin Buettner <kevinb@redhat.com>
2500
2501 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2502 mips_default_saved_regsize to 8.
2503
5e34e75e
AC
25042002-08-06 Andrew Cagney <ac131313@redhat.com>
2505
2506 * gcore.c: Do not include <sys/procfs.h>.
2507 * Makefile.in (gcore.o): Update dependencies.
2508
eb4c54a2
AC
25092002-08-06 Andrew Cagney <cagney@redhat.com>
2510
2511 * configure.tgt: Make arc-*-* obsolete.
2512 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2513 * MAINTAINERS: Make arc-elf obsolete.
2514 * arc-tdep.c: Make file obsolete.
2515 * config/arc/arc.mt: Ditto.
2516 * config/arc/tm-arc.h: Ditto.
2517
ced15480
TR
25182002-08-05 Theodore A. Roth <troth@verinet.com>
2519
c1bab85b 2520 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2521
b4743822
AC
25222002-08-05 Andrew Cagney <ac131313@redhat.com>
2523
2524 * mcore-tdep.c (mcore_gdbarch_init): Use
2525 generic_unwind_get_saved_register instead of
2526 generic_get_saved_register.
2527 * v850-tdep.c (v850_gdbarch_init): Ditto.
2528 * frv-tdep.c (frv_gdbarch_init): Ditto.
2529 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2530 * s390-tdep.c (s390_gdbarch_init): Ditto.
2531 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2532 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2533 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2534
3956d554
JB
25352002-08-05 Joel Brobecker <brobecker@gnat.com>
2536
2537 * objfiles.h: Add missing #include "symfile.h"
2538
2539 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2540
8249c0d6
AC
25412002-08-04 Andrew Cagney <ac131313@redhat.com>
2542
2543 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2544 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2545 of FIELD_BITSIZE.
2546
b9d14705
DJ
25472002-08-04 Daniel Jacobowitz <drow@mvista.com>
2548
2549 * NEWS: Cleanup and nitpick.
2550
dd73b9bb
AC
25512002-08-03 Andrew Cagney <ac131313@redhat.com>
2552
2553 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2554
043a27f8
AC
25552002-08-03 Andrew Cagney <ac131313@redhat.com>
2556
2557 * Makefile.in (gdbtk-bp.o): Update dependencies.
2558 (gdbtk-register.o): Ditto.
2559 (gdbtk-varobj.o): Ditto.
2560
46ce284d
AC
25612002-08-03 Andrew Cagney <cagney@redhat.com>
2562
2563 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2564 m68hc11_fetch_pseudo_register.
2565 (m68hc11_pseudo_register_write): Replace
2566 m68hc11_store_pseudo_register.
2567 (m68hc11_gdbarch_init): Update.
2568
b66d6d2e
AC
2569Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2570
2571 * gdbarch.sh: Include "gdb_string.h".
2572 * gdbarch.c: Regenerate.
2573
2574 * regcache.c: Include "gdb_string.h".
2575 * ax-general.c: Ditto.
2576 * varobj.c: Ditto.
2577 * std-regs.c: Ditto.
2578 * fbsd-proc.c: Ditto.
2579 * thread.c: Ditto.
2580
2581 * Makefile.in (regcache.o): Update dependencies.
2582 (thread.o, gdbarch.o): Ditto.
2583 (ax-general.o, gdbarch.o): Ditto.
2584 (varobj.o, std-regs.o): Ditto.
2585 (fbsd-proc.o): Specify dependencies.
2586
29e1842b
AC
25872002-08-02 Andrew Cagney <cagney@redhat.com>
2588
2589 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2590 regnum.
2591 (regcache_cooked_write): Ditto.
2592
68365089
AC
25932002-08-02 Andrew Cagney <ac131313@redhat.com>
2594
2595 * regcache.c (regcache_cooked_read): New function.
2596 (regcache_cooked_write): New function.
2597 (read_register_gen): Rewrite using regcache_cooked_read.
2598 (write_register_gen): Rewrite using regcache_cooked_write.
2599
2600 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2601 Declare.
2602
d8124050
AC
26032002-08-02 Andrew Cagney <cagney@redhat.com>
2604
2605 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2606 Replace the architecture methods register_read and register_write.
2607 * gdbarch.h, gdbarch.c: Regenerate.
2608 * regcache.c (init_regcache_descr): Update.
2609 (read_register_gen): Update.
2610 (write_register_gen): Update.
2611 (supply_register): Update comment.
2612
2613 * sh-tdep.c (sh_gdbarch_init): Update.
2614 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2615 `regcache' and `gdbarch' parameters. Make `buffer' a void
2616 pointer. Update code.
2617 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2618 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2619 void pointer. Update code.
2620 (sh64_register_write): Delete.
2621 (sh4_register_read): Delete.
2622 (sh64_register_read): Delete.
2623 (sh4_register_write): Delete.
2624 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2625 void pointer, `to' parameter a void pointer.
2626 (sh_sh64_register_convert_to_raw): Ditto.
2627
a6425924
KB
26282002-08-01 Kevin Buettner <kevinb@redhat.com>
2629
2630 * mips-tdep.c (mips_register_virtual_type): Use architecture
2631 invariant return values.
2632
ff5922b5
AC
26332002-08-01 Andrew Cagney <cagney@redhat.com>
2634
2635 * linux-proc.c: Include "gdb_string.h".
2636 * Makefile.in (linux-proc.o): Update dependency list.
2637
32a6503c
KB
26382002-08-01 Kevin Buettner <kevinb@redhat.com>
2639
2640 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2641 comment.
2642
ccaa32c7
GS
26432002-08-01 Grace Sainsbury <graces@redhat.com>
2644
2645 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2646 to_insert_watchpoint, to_remove_watchpoint,
2647 to_stopped_by_watchpoint, to_stopped_data_address,
2648 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2649 target vecctor. Define their corresponding macros so they call
2650 them.
2651
2652 * target.c: Add default and debug versions of for
2653 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2654 to_insert_watchpoint, to_remove_watchpoint,
2655 to_stopped_by_watchpoint, to_stopped_data_address,
2656 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2657
78fde5f8
KB
26582002-08-01 Kevin Buettner <kevinb@redhat.com>
2659
2660 * mips-tdep.c (mips_register_virtual_type): New function.
2661 (mips_gdbarch_init): Register mips_register_virtual_type()
2662 with gdbarch machinery.
2663 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2664 this file instead of tm-bigmips.h.
2665 (MIPS_REGSIZE): Delete this macro.
2666 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2667 multiarch version in mips-tdep.c will be found.
2668
db034ac5
AC
26692002-08-01 Andrew Cagney <cagney@redhat.com>
2670
2671 * NEWS: Menion that CHILL has been made obsolete.
2672
2673 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2674 * stabsread.c (read_range_type): Ditto.
2675 * gdbtypes.h: Ditto.
2676 * language.c (binop_type_check): Ditto.
2677 (binop_result_type): Ditto.
2678 (integral_type): Ditto.
2679 (character_type): Ditto.
2680 (string_type): Ditto.
2681 (boolean_type): Ditto.
2682 (structured_type): Ditto.
2683 (lang_bool_type): Ditto.
2684 (binop_type_check): Ditto.
2685 * language.h (_LANG_chill): Ditto.
2686 * dwarfread.c (set_cu_language): Ditto.
2687 * dwarfread.c (CHILL_PRODUCER): Ditto.
2688 * dwarfread.c (handle_producer): Ditto.
2689 * expression.h (enum exp_opcode): Ditto.
2690 * eval.c: Ditto for comments.
2691 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2692 * expprint.c (print_subexp): Ditto.
2693 (print_subexp): Ditto.
2694 * valops.c (value_cast): Ditto.
2695 (search_struct_field): Ditto.
2696 * value.h (COERCE_VARYING_ARRAY): Ditto.
2697 * symfile.c (init_filename_language_table): Ditto.
2698 (add_psymbol_with_dem_name_to_list): Ditto.
2699 * valarith.c (value_binop): Ditto.
2700 (value_neg): Ditto.
2701 * valops.c (value_slice): Ditto.
2702 * symtab.h (union language_specific): Ditto.
2703 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2704 (SYMBOL_DEMANGLED_NAME): Ditto.
2705 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2706 * defs.h (enum language): Ditto.
2707 * symtab.c (got_symtab): Ditto.
2708 * utils.c (fprintf_symbol_filtered): Ditto.
2709
2710 * ch-typeprint.c: Make file obsolete.
2711 * ch-valprint.c: Make file obsolete.
2712 * ch-lang.h: Make file obsolete.
2713 * ch-exp.c: Make file obsolete.
2714 * ch-lang.c: Make file obsolete.
2715
2716 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2717 CHILL_LIB.
2718 (TARGET_FLAGS_TO_PASS): Ditto.
2719 (CHILLFLAGS): Obsolete.
2720 (CHILL): Obsolete.
2721 (CHILL_FOR_TARGET): Obsolete.
2722 (CHILL_LIB): Obsolete.
2723 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2724 ch-valprint.c.
2725 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2726 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2727 ch-lang.o.
2728 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2729 targets.
2730
8aaf0b47
JB
27312002-07-31 Joel Brobecker <brobecker@gnat.com>
2732
2733 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2734 This does not change anything at the moment, but will be helpful
2735 later when full Ada support is integrated.
2736
f3a7b3a5
KB
27372002-07-31 Kevin Buettner <kevinb@redhat.com>
2738
2739 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2740 help message.
2741
fb850278
KB
27422002-07-31 Kevin Buettner <kevinb@redhat.com>
2743
2744 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2745 and save it in a local variable. Use variable in later test.
2746
e3bddbfa
KB
27472002-07-31 Kevin Buettner <kevinb@redhat.com>
2748
2749 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2750 test. (Thanks to Daniel Jacobowitz.)
2751
28d169de
KB
27522002-07-31 Kevin Buettner <kevinb@redhat.com>
2753
2754 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2755 (mips_abi_strings): Add "n64".
2756 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2757
7fe7e44e
KB
27582002-07-31 Kevin Buettner <kevinb@redhat.com>
2759
2760 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2761 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2762
c6caf090
KB
27632002-07-31 Kevin Buettner <kevinb@redhat.com>
2764
2765 * utils.c (host_pointer_to_address, address_to_host_pointer):
2766 Use gdb_assert() instead of explicit call to internal_error().
2767
c41669e0
KB
27682002-07-30 Kevin Buettner <kevinb@redhat.com>
2769
2770 * Makefile.in (rs6000-nat.o): Update dependencies.
2771
2772 From Nicholas Duffek:
2773 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2774 (aix-thread.o): New rule.
2775 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2776 * config/powerpc/aix432.mh: New file.
2777
2fda4977
DJ
27782002-07-30 Daniel Jacobowitz <drow@mvista.com>
2779
2780 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2781 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2782 (fetch_core_registers, ppc_linux_supply_gregset)
2783 (ppc_linux_supply_fpregset): New functions.
2784 (ppc_linux_regset_core_fns): New.
2785 (_initialize_ppc_linux_tdep): Call add_core_fns.
2786 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2787 and ppc_linux_supply_gregset.
2788 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2789 (supply_fpregset): Call ppc_linux_supply_fpregset.
2790 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2791 corelow.o.
2792 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2793
729051e6
DJ
27942002-07-30 Daniel Jacobowitz <drow@mvista.com>
2795
2796 * symtab.c (lookup_symbol): Demangle before lowercasing.
2797
5f8a3188
AC
27982002-07-30 Andrew Cagney <ac131313@redhat.com>
2799
2800 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2801 declaration.
2802 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2803 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2804 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2805 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2806 "gdb_string.h".
2807 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2808 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2809 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2810 (avr-tdep.o, mon960-rom.o): Ditto.
2811 (aout_stabs_gnu_h): Define.
2812 (symtab_h): Remove $(gdb_obstack_h).
2813
67f07146
JB
28142002-07-30 Jim Blandy <jimb@redhat.com>
2815
2816 Patch from David Carlton <carlton@math.stanford.edu>:
2817 * gdbinit.in: Move the `dir' commands that add GDB's own source
2818 directory to the search path to the end, so that the `gdb' source
2819 directory will be searched first.
2820
04ea0df1
AC
28212002-07-29 Andrew Cagney <ac131313@redhat.com>
2822
2823 * gdb_obstack.h: New file.
2824 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2825 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2826 * objfiles.h: Include "gdb_obstack.h".
2827 * Makefile.in (gdb_obstack_h): Define.
2828 (symtab_h): Add $(gdb_obstack_h).
2829 (objfiles_h): Add $(gdb_obstack_h).
2830
2831 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2832 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2833 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2834 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2835 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2836 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2837 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2838 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2839
2840 * Makefile.in (bcache.o): Update dependencies.
2841 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2842 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2843 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2844 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2845 (stabsread.o, symfile.o, symmisc.o): Ditto.
2846 (symtab.o, typeprint.o, macroexp.o): Ditto.
2847 (macrotab.o, mdebugread.o): Ditto.
2848 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2849 (coff_ecoff_h, aout_aout64_h): Define.
2850 (aout_stabs_gnu_h, libaout_h): Define.
2851
d138e37a
AC
28522002-07-29 Andrew Cagney <cagney@redhat.com>
2853
2854 * regcache.c (struct regcache_descr): Rename nr_registers to
2855 nr_cooked_registers. Revise comments describing the structure
2856 member fields.
2857 (init_regcache_descr): Update.
2858 (init_legacy_regcache_descr): Update.
2859 (read_register_gen, write_register_gen): When a cooked register in
2860 the raw register range, directly access the value from the raw
2861 register cache.
2862
460e6ec3
AC
28632002-07-29 Andrew Cagney <ac131313@redhat.com>
2864
2865 * z8k-tdep.c: Do not include "obstack.h".
2866 * h8300-tdep.c, h8500-tdep.c: Ditto.
2867 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2868 * valprint.c, v850-tdep.c: Ditto.
2869 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2870 * mn10200-tdep.c: Ditto.
2871
2872 * Makefile.in (z8k-tdep.o): Update dependencies.
2873 (m68hc11-tdep.o, valprint.o): Ditto.
2874 (v850-tdep.o, d10v-tdep.o): Ditto.
2875 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2876 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2877 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2878 (sh_opc_h, gdb_sim_sh_h): Define.
2879 (elf_sh_h, elf_bfd_h): Define.
2880 (opcode_m68hc11_h): Define.
2881 (OPCODES_SRC, OPCODES_DIR): define.
2882 (OPCODES): Use $(OPCODES_DIR).
2883 (gdb_sim_d10v_h): Rename sim_d10v_h.
2884 (gdb_sim_arm_h): Rename sim_arm_h.
2885
790c9cf0
KB
28862002-07-26 Kevin Buettner <kevinb@redhat.com>
2887
2888 * utils.c (host_pointer_to_address, address_to_host_pointer):
2889 Change internal_error() message to indicate function responsible
2890 for the error.
2891
9647fa49
KB
28922002-07-26 Kevin Buettner <kevinb@redhat.com>
2893
2894 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2895 calls to local_hex_string_custom().
2896
dabbe2c0
KB
28972002-07-26 Kevin Buettner <kevinb@redhat.com>
2898
2899 * irix5-nat.c: Move IRIX shared library support from here...
2900 * solib-irix.c: ...to here. Revised substantially to work with
2901 generic solib framework.
2902
b96d0a4e
KB
2903 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2904 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2905 * mips-irix-tdep.c: New file.
2906
313fb2f6
KB
2907 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2908 (mips-irix-tdep.o, solib-irix.o): New rules.
2909 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2910 solib-irix.o.
2911 * config/mips/irix6.mt (TDEPFILES): Likewise.
2912 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2913
ab2eaf26
KB
29142002-07-26 Kevin Buettner <kevinb@redhat.com>
2915
177e4768 2916 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2917 disabled (via ``#if 0'') includes.
2918
7244546a
KB
29192002-07-26 Kevin Buettner <kevinb@redhat.com>
2920
2921 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2922 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2923 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2924 Add support for the fpscr register.
2925 * rs6000-nat.c (regmap, fetch_inferior_registers)
2926 (store_inferior_registers, fetch_core_registers): Likewise.
2927
dd7be90a
KB
29282002-07-26 Kevin Buettner <kevinb@redhat.com>
2929
2930 * rs6000-nat.c (language.h): Include.
2931 (special_regs): Delete this array.
2932 (regmap): New function.
2933 (fetch_register, store_register): Use regmap() to map gdb
2934 register numbers to ptrace register numbers. Also, use
2935 outputs from regmap() to make decisions regarding type of
2936 ptrace() call to make. In particular, don't compare against
2937 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2938 (fetch_inferior_registers, store_inferior_registers): Where
2939 possible, obtain register numbers from tdep struct. Don't
2940 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2941 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2942 (LAST_UISA_SP_REGNUM): Delete.
2943
11bf77db
KB
29442002-07-25 Kevin Buettner <kevinb@redhat.com>
2945
2946 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2947 (fetch_registers, store_register, fetch_core_registers): Don't
2948 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2949 regcache_collect() as appropriate.
2950 (find_toc_address): Format hex address with local_hex_string().
2951
06afebeb
AC
29522002-07-25 Andrew Cagney <ac131313@redhat.com>
2953
2954 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2955 bfd/elf32-frv.c.
2956
8c554d79
TT
29572002-07-24 Tom Tromey <tromey@redhat.com>
2958
2959 * jv-exp.y: Marked all strings with _().
2960 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2961 internal_error.
2962 (MethodInvocation, CastExpression, parse_number, yyerror,
2963 java_type_from_name, push_expression_name, yylex): Typo fixes.
2964
e4c242d9
DJ
29652002-07-24 Daniel Jacobowitz <drow@mvista.com>
2966
2967 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2968 (tee_file_flush, tee_file_write, tee_file_fputs)
2969 (tee_file_isatty): New.
2970 * ui-file.h (tee_file_new): Add prototype.
2971
ebf56fd3
AS
29722002-07-24 Aidan Skinner <aidan@velvet.net>
2973
2974 * ada-lang.c: Change k&r style function definitions to prototyped
2975 form.
2976 * ada-typeprint.c: Change k&r style function definitions to prototyped
2977 form.
2978 * ada-valprint.c: Change k&r style function definitions to prototyped
2979 form.
2980
7fb623f7
AC
29812002-07-24 Andrew Cagney <cagney@redhat.com>
2982
2983 * README: Remove reference to remote-bug.
2984 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2985 remote-bug.c.
2986 (m88k-nat.o): Delete rule.
2987 (m88k-tdep.o): Delete rule.
2988 (remote-bug.o): Delete rule.
2989 * MAINTAINERS: Mark as obsolete.
2990 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2991 * m88k-tdep.c: Make file obsolete.
2992 * config/m88k/m88k.mh: Ditto.
2993 * config/m88k/delta88v4.mh: Ditto.
2994 * config/m88k/delta88v4.mt: Ditto.
2995 * config/m88k/delta88.mt: Ditto.
2996 * config/m88k/delta88.mh: Ditto.
2997 * remote-bug.c: Ditto.
2998 * config/m88k/tm-delta88.h: Ditto.
2999 * config/m88k/nm-delta88v4.h: Ditto.
3000 * config/m88k/xm-delta88.h: Ditto.
3001 * config/m88k/xm-dgux.h: Ditto.
3002 * config/m88k/tm-m88k.h: Ditto.
3003 * config/m88k/nm-m88k.h: Ditto.
3004 * config/m88k/tm-delta88v4.h: Ditto.
3005 * m88k-nat.c: Ditto.
3006 * cxux-nat.c: Ditto.
3007 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3008 and m88*-*-* obsolete.
3009 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3010 m88*-*-* obsolete.
3011
37611a2b
AC
30122002-07-24 Andrew Cagney <cagney@redhat.com>
3013
3014 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3015 constant. Same for local pointer variables.
3016 (extract_signed_integer): Ditto.
3017 * defs.h (extract_unsigned_integer): Update.
3018 (extract_signed_integer): Update.
3019
1aaa5f99
AC
30202002-07-24 Andrew Cagney <cagney@redhat.com>
3021
3022 * regcache.c (regcache_raw_write): Change buf parameter to a
3023 constant void pointer.
3024 (regcache_raw_read): Change buf parameter to a void pointer.
3025 (legacy_write_register_gen): Change myaddr parameter a constant
3026 void pointer.
3027 (supply_register): Change val parameter to a const void pointer.
3028 * regcache.h (regcache_raw_write): Update declaration.
3029 (regcache_raw_read): Update declaration.
3030 (supply_register): Update declaration.
3031
b4f5539f
TT
30322002-07-24 Tom Tromey <tromey@redhat.com>
3033
3034 * defs.h (gdb_readline_wrapper): Declare.
3035 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3036 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3037 * top.c (gdb_readline_wrapper): New function.
3038 (command_line_input): Use it.
3039
0818c12a
AC
30402002-07-24 Andrew Cagney <cagney@redhat.com>
3041
3042 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3043 regcache_read and regcache_write.
3044 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3045 * regcache.c: Update.
3046 * sh-tdep.c (sh64_push_arguments): Update comment.
3047 (sh_pseudo_register_read): Update.
3048 (sh_pseudo_register_write): Update.
3049 (sh4_register_read): Update.
3050 (sh4_register_write): Update.
3051 (sh64_pseudo_register_read): Update.
3052 (sh64_pseudo_register_write): Update.
3053 (sh64_register_read): Update.
3054 (sh64_register_write): Update.
3055 * i386-tdep.c (i386_extract_return_value): Update.
3056 (i386_extract_struct_value_address): Update.
3057 (i386_extract_return_value): Update.
3058 * blockframe.c (generic_read_register_dummy): Update.
3059 (generic_call_dummy_register_unwind): Update
3060 * infrun.c (write_inferior_status_register): Update.
3061
f7321c06
JB
30622002-07-23 Jim Blandy <jimb@redhat.com>
3063
3064 * parser-defs.h (expression_context_pc): Make this extern.
3065 (Thanks to Michael Snyder.)
3066
2037aebb
AC
30672002-07-23 Andrew Cagney <ac131313@redhat.com>
3068
3069 GDB 5.2.1 released from 5.2 branch.
3070 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3071 * README: Update to mention 5.2.1.
3072
66504d44
MS
30732002-07-23 Mark Salter <msalter@redhat.com>
3074
3075 * remote.c (remote_read_bytes): Fix check for error.
3076
27bae383
KB
30772002-07-22 Kevin Buettner <kevinb@redhat.com>
3078
3079 * aix-thread.c (language.h): Include.
3080 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3081 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3082 Print newlines at end of debug messages.
3083 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3084 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3085
30862002-07-22 Kevin Buettner <kevinb@redhat.com>
3087
3088 * aix-thread.c (ppc-tdep.h): Include.
3089 (special_register_p): New function.
3090 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3091 (store_regs_user_thread): Use register number information from
3092 gdbarch_tdep struct instead of hardcoded offsets relative to
3093 FIRST_UISA_SP_REGNUM.
3094 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3095 special_register_p() instead of using FPLAST_REGNUM and
3096 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3097 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3098 will be MQ's register number.
3099
31002002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3101
3102 * aix-thread.c (ops): Rename to aix_thread_ops.
3103 (base_ops): Rename to base_target.
3104 (ops_attach): Rename to aix_thread_attach.
3105 (ops_detach): Rename to aix_thread_detach.
3106 (ops_resume): Rename to aix_thread_detach.
3107 (ops_wait): Rename to aix_thread_wait.
3108 (ops_kill): Rename to aix_thread_kill.
3109 (init_ops): Rename to init_aix_thread_ops.
3110 (ops_fetch_register): Rename to aix_thread_fetch_register.
3111 (ops_store_register): Rename to aix_thread_store_register.
3112 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3113 (ops_thread_alive): Rename to aix_thread_thread_alive.
3114 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3115 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3116 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3117 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3118 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3119 (store_regs_lib): Rename to store_regs_user_thread.
3120 (store_regs_kern): Rename to store_regs_kernel_thread.
3121
27bae383 31222002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3123
3124 * aix-thread.c (ops_prepare_to_store): Eliminate.
3125 (init_ops): Don't initialize ops.prepare_to_store.
3126 (store_regs_kern): Pre-fetch register buffers from child,
3127 because some registers may not be in the cache. Copy
3128 regs from register cache only if they are cached.
3129 (store_regs_lib): Copy regs from register cache only
3130 if they are cached.
3131 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3132 fill_gprs64): Ditto.
3133
61c5da0b
KB
31342002-07-22 Kevin Buettner <kevinb@redhat.com>
3135
3136 * aix-thread.c (gdb_assert.h): Include.
3137 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3138 register sizes (from register cache) match size of buffer holding
3139 register data.
3140 (fill_sprs32): Change parameter types to match those in the ptrace()
3141 buffer.
3142 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3143 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3144
31452002-07-22 Michael Snyder <msnyder@redhat.com>
3146
3147 * aix-thread.c (supply_sprs64): Cosmetic change.
3148 (supply_sprs32): Cosmetic change.
3149 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3150 (fill_sprs64): Use regcache_collect instead of read_register.
3151 (store_regs_lib): Use regcache_collect instead of
3152 read_register. Use fill_sprs32 instead of fill_sprs64,
3153 if debugging a 32-bit architecture.
3154 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3155 out of the register cache, instead of passing a pointer into
3156 the register cache directly to ptrace. Use regcache_collect
3157 insteaad of read_register.
3158 (ops_prepare_to_store): Use target_read_registers instead
3159 of read_register_bytes.
3160
36479eb1
AS
31612002-07-20 Aidan Skinner <aidan@velvet.net>
3162
3163 * MAINTAINERS: Add self under write after approval.
3164
80ae6ee2
AS
31652002-07-20 Aidan Skinner <aidan@velvet.net>
3166
3167 * ada-tasks.c: Change k&r style function definitions to prototyped
3168 form.
3169
8a8ab2b9
AC
31702002-07-19 Andrew Cagney <ac131313@redhat.com>
3171
3172 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3173 * x86-64-tdep.c: Include "objfiles.h".
3174 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3175 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3176
fb16b900
ML
31772002-07-17 Michal Ludvig <michal@suse.cz>
3178
3179 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3180 (update_context): Initialise cfa variable.
3181
0fe7bf7b
MS
31822002-07-17 Michael Snyder <msnyder@redhat.com>
3183
3184 * aix-thread.c: Shorten some long lines.
3185 Bring comments into line with code spec.
3186
488f131b
JB
31872002-07-18 Joel Brobecker <brobecker@gnat.com>
3188
3189 * infrun.c: Re-indent using gdb_indent.sh.
3190
46c415d2
JB
31912002-07-18 Joel Brobecker <brobecker@gnat.com>
3192
3193 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3194 Leave the indentation temporarily untouched, to minimize the diffs.
3195
cdecafbe
EZ
31962002-07-18 Elena Zannoni <ezannoni@redhat.com>
3197
3198 * stabsread.c: Make os9k sections of the code obsolete,
3199 for real this time.
3200 * stabsread.h: Make os9k sections of the code obsolete.
3201
7b6aa020
ML
32022002-07-18 Michal Ludvig <mludvig@suse.cz>
3203
09ec9b38
ML
3204 * linux-low.c (regsets_store_inferior_registers): Add free()
3205 at the end of a loop to prevent memory leak.
3206 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3207 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3208 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3209 line a comment.
4894ac5d 3210 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3211
233282cd
JB
32122002-07-17 Jim Blandy <jimb@redhat.com>
3213
3214 * macrocmd.c (info_macro_command): Remove newline from error
3215 message.
3216
7b6aa020 32172002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3218
3219 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3220 (sh_gdbarch_init): Use it for sh-dsp.
3221
f7ef9339
KB
32222002-07-16 Kevin Buettner <kevinb@redhat.com>
3223
3224 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3225 64-bit DWARF2 format.
3226
8dd72958
JB
32272002-07-16 Joel Brobecker <brobecker@gnat.com>
3228
3229 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3230 <sys/proc.h> when not available.
3231
a99a9e1b
AC
32322002-07-16 Andrew Cagney <ac131313@redhat.com>
3233
3234 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3235 * stabsread.c: Make os9k sections of the code obsolete.
3236 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3237 * config/i386/i386os9k.mt: Make file obsolete.
3238 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3239 (COMMON_OBS): Remove os9kread.o
3240 (SFILES): Remove os9kread.c.
3241 (os9kread.o, remote-os9k.o): Make target obsolete.
3242 * remote-os9k.c: Make file obsolete.
3243 * os9kread.c: Make file obsolete.
3244 * Makefile.in
3245
7a3085c1
AC
32462002-07-16 Andrew Cagney <ac131313@redhat.com>
3247
3248 * NEWS: Mention that the FR30 has been made obsolete.
3249 * fr30-tdep.c: Make file obsolete.
3250 * config/fr30/tm-fr30.h: Ditto.
3251 * config/fr30/fr30.mt: Ditto.
3252 * configure.tgt: Make fr30-*-elf obsolete.
3253 * MAINTAINERS: Make fr30-elf obsolete.
3254
28a93f5a
PM
32552002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3256
3257 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3258 found is not inside a section.
3259
be006b8b
KB
32602002-07-15 Kevin Buettner <kevinb@redhat.com>
3261
3262 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3263 strerror().
3264 (pdc_realloc): Use xrealloc() instead of realloc().
3265
14fa3751
KB
32662002-07-15 Kevin Buettner <kevinb@redhat.com>
3267
3268 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3269 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3270 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3271 macros.
3272
42cc437f
KB
32732002-07-15 Kevin Buettner <kevinb@redhat.com>
3274
3275 * aix-thread.c (ptrace_check): Eliminate goto.
3276 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3277 problem.
3278
8e2c28d4
KB
32792002-07-15 Kevin Buettner <kevinb@redhat.com>
3280
3281 * aix-thread.c (gdbcmd.h): Include.
3282 (DEBUG, DBG, DBG2, dbg): Eliminate.
3283 (debug_aix_thread): New static global.
3284 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3285 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3286 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3287 invocations to DBG and DBG2 macros to test against
3288 ``debug_aix_thread'' and call fprintf_unfiltered().
3289 (_initialize_aix_thread): Add new command "set debug aix-thread".
3290
30413464
AC
32912002-07-15 Andrew Cagney <ac131313@redhat.com>
3292
3293 From Gerhard Tonn <TON@de.ibm.com>:
3294 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3295 instead of supply_register.
3296
7c43edc1
AC
32972002-07-15 Andrew Cagney <ac131313@redhat.com>
3298
3299 * dwarf2cfi.c: Include "gdb_assert.h".
3300 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3301 non-NULL.
3302 (update_context): Do not use __func__. Add missing ``break''.
3303 (update_context): Do not use __func__.
3304
9364a0ef
EZ
33052002-07-15 Elena Zannoni <ezannoni@redhat.com>
3306
3307 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3308 and its setting. Set gdbarch instruction printing functions
3309 directly. For non-rs6000 case use new function
3310 gdb_print_insn_powerpc.
3311 (gdb_print_insn_powerpc): New function.
3312
3fbeef0b
AC
33132002-07-13 Andrew Cagney <ac131313@redhat.com>
3314
92eb23c5 3315 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3316 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3317 * configure.tgt: Mark d30v-*-* as obsolete.
3318 * d30v-tdep.c: Mark file as obsolete.
3319 * config/d30v/d30v.mt: Ditto.
3320 * config/d30v/tm-d30v.h: Ditto.
3321
aacb1f0a
AS
33222002-07-13 Aidan Skinner <aidan@velvet.net>
3323
3324 * ada-tasks.c (add_task_entry): replace calls to
3325 malloc() with xmalloc
3326 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3327
3328 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3329 ada_finish_decode_line_1, all_sals_for_line
3330 ada_breakpoint_rewrite): replace calls to free() with xfree()
3331
c11d79f2
KB
33322002-07-12 Kevin Buettner <kevinb@redhat.com>
3333
3334 From Nicholas Duffek (with minor changes by Martin Hunt,
3335 Louis Hamilton, and Kevin Buettner):
3336 * aix-thread.c: New file.
3337
8e19ed76
PS
33382002-07-12 Petr Sorfa <petrs@caldera.com>
3339
3340 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3341 complaint for invalid attribute class or form.
3342 (read_func_scope): DW_AT_frame_base
3343 better handling of DW_AT_block*.
3344 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3345 better handling of DW_AT_block*.
3346 (read_common_block): DW_AT_location
3347 better handling of DW_AT_block*.
3348 (read_partial_die): DW_AT_location better handling
3349 of DW_AT_block*.
3350 (new_symbol): DW_AT_external better handling of
3351 DW_AT_block*. Proper initialization of variable
3352 "addr".
3353 (attr_form_is_block): New function that returns true
3354 if the attribute's form is of DW_FORM_block*.
3355
295401f7
DJ
33562002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3357
3358 * valops.c (find_method_list): Remove comment about
3359 removed STATIC_MEMFUNCP argument.
3360 (value_find_oload_method_list): Likewise.
3361
e42dc924
KB
33622002-07-12 Kevin Buettner <kevinb@redhat.com>
3363
3364 From Nicholas Duffek:
3365 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3366 target_new_objfile_hook.
3367
6904b546
KB
33682002-07-12 Kevin Buettner <kevinb@redhat.com>
3369
3370 From Nicholas Duffek:
3371 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3372 csect.
3373
53fe9346
AC
33742002-07-12 Andrew Cagney <cagney@redhat.com>
3375
3376 * MAINTAINERS: Mention --enable-sim-build-warnings.
3377 (m68hc11-elf): Disable sim build warnings.
3378 (m32r-elf): Mark as broken obsolete candidate.
3379 (x86_64-linux-gnu): Mark as buildable with -Werror.
3380 (arm-elf): Change -w to ``,'' which enables warnings but not
3381 -Werror.
3382
af5f3db6
AC
33832002-07-12 Andrew Cagney <ac131313@redhat.com>
3384
3385 * bcache.h: Update copyright.
3386 (struct bstring, struct bcache): Move definition to "bcache.c".
3387 Replaced by opaque declaration.
3388 (bcache_xfree): Replace free_bcache.
3389 (bcache_xmalloc, bcache_memory_used): Declare.
3390
3391 * bcache.c: Update copyright.
3392 (struct bstring, struct bcache): Moved to here from "bcache.h".
3393 Update comments.
3394 (bcache_xmalloc, bcache_memory_used): New functions.
3395 (bcache_xfree): Replace function free_bcache.
3396
3397 * Makefile.in (objfiles.o): Add $(bcache_h).
3398 (objfiles_h): Remove $(bcache_h).
3399 (symfile.o): Add $(bcache_h).
3400
3401 * symmisc.c: Update copyright.
3402 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3403 (print_objfile_statistics): Use bcache_memory_used.
3404
3405 * symfile.c: Include "bcache.h".
3406 (reread_symbols): Use bcache_xfree.
3407 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3408 (add_psymbol_to_list): Pass psymbol_cache by value.
3409 (add_psymbol_with_dem_name_to_list): Ditto.
3410
3411 * objfiles.h: Update copyright.
3412 (struct bcache): Declare opaque. Do not include "bcache.h".
3413 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3414 bcache'' pointers.
3415 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3416
3417 * objfiles.c: Include "bcache.h". Update copyright.
3418 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3419 macro_cache.
3420 (free_objfile): Use bcache_xfree.
3421
444199e7
GS
34222002-07-11 Grace Sainsbury <graces@redhat.com>
3423
3424 * monitor.c (monitor_fetch_register): Make name a constant.
3425 (monitor_store_register): Same.
3426
261397f8
DJ
34272002-07-11 Daniel Jacobowitz <drow@mvista.com>
3428
3429 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3430 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3431 (finish_block) For non-function blocks, hash the symbol table. For
3432 function blocks, mark the symbol table as unhashed.
3433 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3434 (msymbol_hash_iw): Likewise.
3435 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3436 value.
3437 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3438 (lookup_minimal_symbol): Likewise for both.
3439 * symtab.h (struct block): Add `hashtable' flag. Comment the
3440 hashtable.
3441 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3442 (ALL_BLOCK_SYMBOLS): Update.
3443 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3444 (struct symbol): Add `hash_next' pointer.
3445 * symtab.c (lookup_block_symbol): Search using the hash table when
3446 possible.
3447 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3448 (search_symbols, find_addr_symbol): Likewise.
3449
3450 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3451 (read_dst_symtab): Likewise.
3452 * jv-lang.c (get_java_class_symtab): Likewise.
3453 * mdebugread.c: Include "gdb_assert.h".
3454 (shrink_block): Assert that the block being modified is not hashed.
3455 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3456 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3457 symbols.
3458 (dump_symtab): Recognize hashed blocks.
3459 * printcmd.c (print_frame_args): Assert that function blocks do not
3460 have hashed symbol tables.
3461 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3462 (fill_in_ada_prototype, debug_print_block): Likewise.
3463 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3464
6f0eaa01
CV
34652002-07-11 Corinna Vinschen <vinschen@redhat.com>
3466
3467 * stack.c (print_frame): Use result of frame_address_in_block()
3468 instead of fi->pc when evaluating symbols.
3469 (backtrace_command_1): Ditto.
3470
a208b0cb
AC
34712002-07-11 Andrew Cagney <cagney@redhat.com>
3472
3473 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3474 Make static.
3475
3476 * arm-tdep.c (arm_register_name): Make return type constant.
3477
a6b6b089
AC
34782002-07-10 Andrew Cagney <ac131313@redhat.com>
3479
5ae5f592
AC
3480 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3481 prototype.
3482 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3483 * s390-tdep.c (s390_fp_regnum): Ditto.
3484 (s390_read_fp): Ditto.
3485 (s390_pop_frame): Ditto.
3486 (_initialize_s390_tdep): Ditto.
3487 * remote.c (get_remote_state): Ditto.
3488 * procfs.c (mappingflags): Ditto.
3489 * memattr.c (_initialize_mem): Ditto.
3490 * mcore-tdep.c (mcore_pop_frame): Ditto.
3491 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3492 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3493 * language.c (set_case_str): Ditto.
3494 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3495 * frv-tdep.c (new_variant): Ditto.
3496 (frv_stopped_data_address): Ditto.
3497 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3498 (context_alloc): Ditto.
3499 (frame_state_alloc): Ditto.
3500 (unwind_tmp_obstack_init): Ditto.
3501 (unwind_tmp_obstack_free): Ditto.
3502 (cfi_read_fp): Ditto.
3503 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3504 (cris_pop_frame): Ditto.
3505 * c-lang.c (scanning_macro_expansion): Ditto.
3506 (finished_macro_expansion): Ditto.
3507 (c_preprocess_and_parse): Ditto.
3508 * gdbarch.sh: Ditto.
3509 * gdbarch.h, gdbarch.c: Regenerate.
3510 * config/mn10200/tm-mn10200.h: Adjust indentation.
3511 * target.c: Adjust indentation.
3512 * symtab.h: Adjust indentation.
3513 * stabsread.h: Adjust indentation.
3514 * remote-es.c: Adjust indentation.
3515 * os9kread.c: Adjust indentation.
3516
35172002-07-10 Andrew Cagney <ac131313@redhat.com>
3518
a6b6b089
AC
3519 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3520 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3521
a1789893
GS
35222002-07-10 Grace Sainsbury <graces@redhat.com>
3523
3524 * NEWS: Mention m68k, mcore multi-arching.
3525 * MAINTAINERS: Change status of m68k, mcore to reflect
3526 multi-arching.
3527
02f0d45d
DJ
35282002-07-10 Daniel Jacobowitz <drow@mvista.com>
3529
3530 * valops.c (find_overload_match): Free oload_syms.
3531
f15f768e
JB
35322002-07-09 Joel Brobecker <brobecker@gnat.com>
3533
3534 Define HAVE_SYS_PROC_H if sys/proc.h exists
3535 * configure.in: Add check for sys/proc.h
3536 * config.in: Regenerate.
3537 * configure: Regenerate.
3538
902a7139
GS
35392002-07-09 Grace Sainsbury <graces@redhat.com>
3540
3541 * config/m68k/tm-m68k.h: Remove macros wrapped in
3542 #if !GDB_MULTI_ARCH.
3543
a534e424
AC
35442002-07-08 Andrew Cagney <ac131313@redhat.com>
3545
3546 * config.in, configure: Regenerate.
3547
9b94f7bf
MK
35482002-07-08 Mark Kettenis <kettenis@gnu.org>
3549
3550 * dwarf2cfi.c: Include "gcore.h".
3551 (execute_stack_op): Fix implementation of the
3552 DW_OP_deref and DW_OP_deref_size operators by letting do their
3553 lookup in the target.
3554
1d34db41
MK
35552002-07-07 Mark Kettenis <kettenis@gnu.org>
3556
3557 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3558 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3559 tdep->sc_sp_offset.
3560
79d5b63a
DJ
35612002-07-05 Daniel Jacobowitz <drow@mvista.com>
3562
3563 Fix PR gdb/595, gdb/602
3564 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3565 Don't call value_cast, just read the vtable pointer; update comments
3566 to match.
3567
3bb912e8
GS
35682002-07-05 Grace Sainsbury <graces@redhat.com>
3569
3570 * config/mcore/tm-mcore.h: Remove file.
3571 * config/mcore/mcore.mt: Remove definition of TM_FILE
3572 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3573
ca39387d
MK
35742002-07-05 Mark Kettenis <kettenis@gnu.org>
3575
3576 * i386bsd-tdep.c: Include "gdb_string.h".
3577
efdc1108
GS
35782002-07-04 Grace Sainsbury <graces@redhat.com>
3579
3580 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3581 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3582 mcore-tdep.
3583 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3584 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3585 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3586 (RETVAL_REGNUM): Move macros from tm-mcore.h
3587 (mcore_reg_struct_has_addr): New function.
3588 (mcore_gdbarch_init): Added initializations for the macros removed
3589 from tm-mcore.h.
3590
bb21884d
MK
35912002-07-04 Mark Kettenis <kettenis@gnu.org>
3592
3593 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3594 traditonal string branding within the ELF header.
3595
228c6d41
DJ
35962002-07-04 Daniel Jacobowitz <drow@mvista.com>
3597
3598 * symtab.c (remove_params): New function.
3599 (make_symbol_overload_list): Use it instead of cplus_demangle.
3600 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3601
2404952e
MK
36022002-07-04 Mark Kettenis <kettenis@gnu.org>
3603
e5e4acad
MK
3604 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3605
baadce09
MK
3606 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3607 New variables.
3608 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3609 and tdep->sigtramp_end.
3610 * i386obsd-nat.c: New file.
3611 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3612
2404952e
MK
3613 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3614 Don't call get_current_frame().
3615
9b4f1ba7
PM
36162002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3617
3618 * i386-nat.c (child_post_startup_inferior): New function
3619 calling i386_cleanup_dregs if
3620 I386_USE_GENERIC_WATCHPOINTS is defined.
3621 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3622 conditional to acknowledge that i386-nat.c has its
3623 own child_post_startup_inferior function.
3624
c0d1d883
MK
36252002-07-04 Mark Kettenis <kettenis@gnu.org>
3626
00f8375e
MK
3627 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3628 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3629 instead of MAX_REGISTER_RAW_SIZE.
3630 (i386_extract_return_value, i386_extract_struct_value_address):
3631 Convert to use regcache.
3632 (i386_gdbarch_init): Set max_register_raw_size and
3633 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3634 Set extract_return_value and extract_struct_value_address instead
3635 of their deprecated variants.
3636
c0d1d883
MK
3637 Convert i386 target to generic dummy frames.
3638 * i386-tdep.c: Include "symfile.h".
3639 (i386_frameless_signal_p): Consider a function to be frameless if
3640 the pc points at the first instruction of the function.
3641 (i386_frame_chain): Handle (generic) call dummies.
3642 (i386_frame_saved_pc): Likewise.
3643 (i386_frame_init_saved_regs): Remove code dealing with call
3644 dummies on the stack.
3645 (i386_push_dummy_frame): Removed.
3646 (i386_call_dummy_words): Removed.
3647 (i386_fix_call_dummy): Removed.
3648 (i386_push_return_address): New function.
3649 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3650 parameter, and don't call get_current_frame.
3651 (i386_pop_frame): New function.
3652 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3653 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3654 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3655 call_dummy_length to 0, set call_dummy_words to NULL, set
3656 sizeof_call_dummy_words to 0, set fix_call_dummy to
3657 generic_fix_call_dummy, set pc_in_call_dummy to
3658 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3659 generic_push_dummy_frame, set push_return_address to
3660 i386_push_return_address and set frame_chain_valid to
3661 generic_file_frame_chain_valid.
3662
049ee0e4
AC
36632002-07-03 Andrew Cagney <ac131313@redhat.com>
3664
3665 * gdbarch.sh (struct regcache): Add opaque declaration.
3666 (EXTRACT_RETURN_VALUE): New architecture method.
3667 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3668 * gdbarch.h, gdbarch.c: Regenerate.
3669 * arch-utils.c (legacy_extract_return_value): New function.
3670 * arch-utils.h (legacy_extract_return_value): Declare.
3671 * values.c (value_being_returned): Re-enable code handling
3672 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3673 deprecated_grub_regcache_for_registers call to block handling
3674 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3675 (EXTRACT_RETURN_VALUE): Do not define.
3676
4e0d9804
GS
36772002-07-03 Grace Sainsbury <graces@redhat.com>
3678
3679 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3680 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3681 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3682 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3683 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3684 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3685 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3686 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3687 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3688 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3689 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3690 argument so the function fits the prototype in the architecture
3691 vector.
3692 (mcore_pop_frame): Remove argument so the function fits the
3693 prototype. Use get_current_frame instead of the argument.
3694 (mcore_push_arguments): Change type of struct_return so the
3695 function can be used in the architecture vector.
3696 (mcore_store_struct_return): Add.
3697 (mcore_frame_init_saved_regs): Add.
3698 (mcore_gdbarch_init): Add function calls to replace the macros
3699 removed from tm-mcore.h
3700
36160dc4
AC
37012002-07-03 Andrew Cagney <ac131313@redhat.com>
3702
3703 * infcmd.c (print_return_value): Remove compatibility code calling
3704 deprecated_grub_regcache_for_registers.
3705
3706 * values.c: Include "regcache.h".
3707 (value_being_returned): Update. Use
3708 deprecated_grub_regcache_for_registers to extract the register
3709 buffer address.
3710 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3711 ``struct regcache''.
3712 * Makefile.in (values.o): Add dependency on $(regcache_h).
3713
3714 * inferior.h (run_stack_dummy): Change type of second parameter to
3715 a ``struct regcache''.
3716 * valops.c (hand_function_call): Change type of retbuf to ``struct
3717 regcache''. Allocate using regcache_xmalloc, clean using
3718 make_cleanup_regcache_xfree.
3719 * infcmd.c (run_stack_dummy): Update. Use
3720 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3721
3722 * regcache.c (do_regcache_xfree): New function.
3723 (make_cleanup_regcache_xfree): New function.
3724 * regcache.h (make_cleanup_regcache_xfree): Declare.
3725
e64d9b3d
MH
37262002-07-03 Martin M. Hunt <hunt@redhat.com>
3727
4dd79c29
MH
3728 * event-top.c (command_line_handler): Don't read past
3729 beginning of buffer.
e64d9b3d 3730
4dd79c29
MH
37312002-07-03 Martin M. Hunt <hunt@redhat.com>
3732
e64d9b3d
MH
3733 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3734 struct frame_id.
3735 (varobj_create): Store frame_id for root.
3736 (varobj_gen_name): Use xasprintf.
3737 (varobj_update): Save and restore frame using get_frame_id() and
3738 frame_find_by_id().
3739 (create_child): Use xasprintf.
3740 (new_root_variable): Initialize frame_id.
3741 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3742 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3743 to prevent memory leak.
3744
26e6c56a
AC
37452002-07-03 Andrew Cagney <ac131313@redhat.com>
3746
3747 * valops.c (hand_function_call): Move declaration of retbuf to
3748 start of function, allocate using malloc, add a cleanup but before
3749 the inf_status cleanup, cleanup the buffer. Rename local variable
3750 old_chain to inf_status_cleanup.
3751
f436dd25
MH
37522002-07-03 Martin M. Hunt <hunt@redhat.com>
3753
3754 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3755
3756 * cli/cli-decode.c (cmd_func_p): New function.
3757 (cmd_func): New function.
3758
3759 * command.h: Add cmd_func() and cmd_func_p().
3760
4cfe2084
GS
37612002-07-03 Grace Sainsbury <graces@redhat.com>
3762
3763 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3764 (REGISTER_SIZE): Remove.
3765 (MAX_REGISTER_RAW_SIZE): Remove.
3766 (REGISTER_VIRTUAL_TYPE): Remove.
3767 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3768 (REGISTER_NAME): Remove.
3769 (USE_GENERIC_DUMMY_FRAMES): Remove.
3770 (CALL_DUMMY): Remove.
3771 (CALL_DUMMY_START_OFFSET): Remove.
3772 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3773 (CALL_DUMMY_LOCATION): Remove.
3774 (FIX_CALL_DUMMY): Remove.
3775 (CALL_DUMMY_ADDRESS): Remove.
3776 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3777 (SAVE_DUMMY_FRAME_TOS): Remove.
3778 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3779 (mcore_register_virtual_type): New function.
3780 (mcore_register_byte): New function.
3781 (mcore_register_size): New function.
3782 (mcore_register_name): New function.
3783 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3784 macros removed from tm-mcore.h.
3785 (mcore_dump_tdep): Add.
3786 (_initialize_mcore_tdep): Add gdbarch_register call.
3787
4fd667e9
MK
37882002-07-03 Mark Kettenis <kettenis@gnu.org>
3789
3790 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3791 frameless_look_for_prologue, such that we actually call this
3792 function.
3793
42f99ac2
JB
37942002-07-02 Joel Brobecker <brobecker@gnat.com>
3795
3796 * frame.h (frame_address_in_block): New function.
3797
3798 * blockframe.c (frame_address_in_block): New function extracted
3799 from get_frame_block().
3800 (get_frame_block): Use frame_address_in_block().
3801 (block_innermost_frame): Use frame_address_in_block() to match
3802 the frame pc address against the block boundaries rather than
3803 the frame pc directly. This prevents a failure when a frame pc
3804 is actually a return-address pointing immediately after the end
3805 of the given block.
3806
103a1597 38072002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3808
3809 * MAINTAINERS: Add self under write after approval.
3810
38112002-07-02 Grace Sainsbury <graces@redhat.com>
3812
103a1597
GS
3813 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3814 used in architecture vector. The default is
3815 m68k_local_breakpoint_from_pc.
3816 (m68k_local_breakpoint_from_pc): Add.
3817 (enum): Add register numbers from tm-m68k.h.
3818 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3819 vector.
3820 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3821 GDB_MULTI_ARCH_PARTIAL.
3822 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3823 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3824 m68k-tdep.c.
3825 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3826 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3827 to enum in m68k-tdep.c
3828
7a5a0534
JB
38292002-07-02 Joel Brobecker <brobecker@gnat.com>
3830
3831 * solib-osf.c (open_map): Compute the list of shared libraries
3832 loaded by the inferior, rather than the list of libraries loaded
3833 by GDB itself. Otherwise, GDB ends up reading the symbols from
3834 the wrong shared libraries...
3835
6f558d74
MK
38362002-07-02 Mark Kettenis <kettenis@gnu.org>
3837
b7d15bf7
MK
3838 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3839 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3840 macros.
3841 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3842 Remove functions.
3843 (FRAMELESS_SIGNAL): Remove function.
3844 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3845 i386_linux_saved_pc_after_call): Removed.
3846 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3847 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3848 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3849
6bff26de
MK
3850 * i386-tdep.c (i386_frameless_signal_p): New function.
3851 (i386_frame_chain): Deal with frameless signals.
3852 (i386_sigtramp_saved_sp): New function.
3853 (i386_frame_saved_pc): Deal with frameless signals.
3854 (i386_saved_pc_after_call): Make sure the correct value is
3855 returned just after entry into a sigtramp.
3856 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3857 i386fbsd4_sc_sp_offset): New variables.
3858 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3859 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3860 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3861 similiar to what we already did for sc_pc_offset.
3862 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3863 tdep->sc_sp_offset.
3864
6f558d74
MK
3865 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3866
145564b7
ML
38672002-07-02 Michal Ludvig <mludvig@suse.cz>
3868
3869 * config/i386/tm-x86-64linux.h: New.
3870 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3871 definitions.
3872 * config/i386/nm-x86-64.h: Rename to ...
3873 * config/i386/nm-x86-64linux.h: ... this one.
3874 * config/i386/x86-64linux.mh: Reflect the above change.
3875
3a1e71e3
MK
38762002-07-01 Mark Kettenis <kettenis@gnu.org>
3877
21d0e8a4
MK
3878 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3879 with sigcontext_addr. Add sc_sp_offset.
3880 (i386bsd_sigtramp_saved_pc): Remove prototype.
3881 (i386bsd_sicontext_addr): Add prototype.
3882 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3883 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3884 (i386_svr4_sigtramp_saved_pc): Removed.
3885 (i386_svr4_sigcontext_addr): New function.
3886 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3887 Initialize tdep->sigcontext_addr instead. Initialize
3888 tdep->sc_pc_offset and tdep->sc_sp_offset.
3889 (i386_gdbarch_init): Likewise.
3890 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3891 any more.
3892 (i386bsd_sigtramp_saved_pc): Remove function.
3893 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3894 Initialize tdep->sigcontext_addr instead. Initialize
3895 tdep->sc_pc_offset.
3896 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3897 of tdep->sigtramp_saved_pc.
3898 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3899 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3900 instead.
3901
3a1e71e3
MK
3902 * i386-tdep.c (i386_frameless_function_invocation,
3903 i386_frame_num_args, i386_frame_init_saved_regs,
3904 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3905 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3906 i386_extract_return_value, i386_store_return_value,
3907 i386_extract_struct_value_address, i386_register_virtual_type,
3908 i386_register_convertible, i386_register_convert_to_virtual,
3909 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3910 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3911 static.
3912
52e9098c
MK
39132002-07-01 Mark Kettenis <kettenis@gnu.org>
3914
77b13a25
MK
3915 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3916
52e9098c
MK
3917 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3918 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3919 this macro. Include "value.h".
3920
1b372fff
AS
39212002-06-30 Aidan Skinner <aidan@velvet.net>
3922
3923 * ada-exp.tab.c: remove as it's a generated file
3924 * ada-lex.c: remove as it's a generated file
3925
9c5045b5
MK
39262002-06-30 Mark Kettenis <kettenis@gnu.org>
3927
4a93c5bb
MK
3928 * config/i386/tm-i386.h (struct frame_info, struct
3929 frame_saved_regs, struct value, struct type): Remove forward
3930 declarations.
3931
322d4fe0
MK
3932 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3933 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3934 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3935 (FILL_FPXREGSET): Define.
3936
fdd8263d
MK
3937 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3938
482e577b
MK
3939 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3940 i[3456]86-*-netbsd* case.
3941 * config/i386/tm-obsd.h: Removed.
3942 * config/i386/obsd.mt: Removed.
3943 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3944 core-aout.o.
3945 (MH_CFLAGS): Add -DYYDEBUG=0.
3946
6916549a
MK
3947 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3948 i386nbsd_sc_pc_offset on OpenBSD too.
3949
9c5045b5
MK
3950 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3951 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3952 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3953 define.
3954 * i386bsd-tdep.c: Include "arch-utils.h".
3955 (i386bsd_aout_in_solib_call_trampoline): New function.
3956 (i386bsd_init_abi): Set in_solib_call_trampoline to
3957 i386bsd_aout_in_solib_call_trampoline.
3958 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3959 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3960
aa84d1bb
AC
39612002-06-28 Andrew Cagney <ac131313@redhat.com>
3962
3963 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3964 (struct obstack, struct bcache): Add opaque declarations.
3965 * Makefile.in (macrotab_h): Update
3966
b4d83933
AC
39672002-06-28 Andrew Cagney <ac131313@redhat.com>
3968
3969 * blockframe.c (generic_find_dummy_frame): Change return type to
3970 ``struct regcache''.
3971 (struct dummy_frame): Replace field ``registers'' with regcache, a
3972 struct regcache object.
3973 (generic_find_dummy_frame): Update.
3974 (generic_push_dummy_frame): Update. Use regcache_xfree,
3975 regcache_xmalloc and regcache_cpy.
3976 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3977 regcache_xfree.
3978 (deprecated_generic_find_dummy_frame): Update.
3979 (generic_read_register_dummy): Update. Use
3980 regcache_read_as_address.
3981 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3982 (generic_get_saved_register): Update. Use regcache_read.
3983
08c0b5bc
AC
39842002-06-28 Andrew Cagney <ac131313@redhat.com>
3985
3986 * Makefile.in (objfiles_h): Add $(bcache_h).
3987 * objfiles.h: Include "bcache.h".
3988
3989 * Makefile.in (symtab_h): Remove $(bcache_h).
3990 * symtab.h: Do not include "bcache.h".
3991
1f89801a
AC
39922002-06-28 Andrew Cagney <ac131313@redhat.com>
3993
3994 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3995 generic_func_frame_chain_valid.
3996
b9644b58
DB
39972002-06-28 David O'Brien <obrien@FreeBSD.org>
3998
3999 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4000 * config/i386/tm-fbsd.h: Likewise.
4001
dd486634
AC
40022002-06-28 Andrew Cagney <ac131313@redhat.com>
4003
4004 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4005 generic_unwind_get_saved_register.
4006
0b434a00
AC
40072002-06-27 Andrew Cagney <ac131313@redhat.com>
4008
4009 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4010 * regcache.c (supply_register): Add missing argument to
4011 register_buffer call.
4012
f30e5a77
AC
40132002-06-27 Andrew Cagney <ac131313@redhat.com>
4014
4015 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4016 Solaris /bin/grep does not not like it. From Peter Schauer.
4017
9f064c95
TT
40182002-06-26 Tom Tromey <tromey@redhat.com>
4019
4020 * command.h (add_setshow_cmd): Declare.
4021 (add_setshow_cmd_full): Declare.
4022 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4023 returns void. Use add_setshow_cmd_full.
4024 (add_setshow_cmd_full): New function.
4025 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4026 (add_setshow_boolean_cmd): Likewise.
4027
099c7589
JT
40282002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4029
4030 * config/vax/tm-vax.h: Protect from multiple inclusion.
4031 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4032 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4033 * config/vax/tm-vaxbsd.h: ...here. New file.
4034 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4035
1d049c5e
JT
40362002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4037
4038 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4039 (BELIEVE_PCC_PROMOTION): Remove.
4040 (AP_REGNUM): Move to...
4041 * config/vax/nm-vax.h: ...here.
4042 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4043 (vax_breakpoint_from_pc): New function.
4044 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4045 and gdbarch_believe_pcc_promotion.
4046
4791e091
JT
40472002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4048
4049 * Makefile.in (vax_tdep_h): Define.
4050 (vax-tdep.o): Use $(vax_tdep_h).
4051 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4052 (vax_dump_tdep): New function.
4053 (_initialize_vax_tdep): Register vax_dump_tdep.
4054 * vax-tdep.h: Include osabi.h.
4055 (struct gdbarch_tdep): New.
4056
da130f98
AC
40572002-06-26 Andrew Cagney <cagney@redhat.com>
4058
4059 * frame.h (deprecated_generic_find_dummy_frame): Rename
4060 generic_find_dummy_frame.
4061 * blockframe.c (generic_find_dummy_frame): Make static.
4062 (deprecated_generic_find_dummy_frame): New function.
4063 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4064 generic_find_dummy_frame with deprecated_find_dummy_frame.
4065 (sh64_nofp_frame_init_saved_regs): Ditto.
4066 (sh_fp_frame_init_saved_regs): Ditto.
4067 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4068 (s390_frame_chain): Ditto.
4069 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4070
6300c360
GS
40712002-06-26 Grace Sainsbury <graces@redhat.com>
4072
4073 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4074 gdbarch vector are at the top.
4075 (NUM_REGS): Remove.
4076 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4077 (FRAME_ARGS_ADDRESS): Remove.
4078 (FRAME_LOCALS_ADDRESS): Remove.
4079 (FRAME_NUM_ARGS): Remove.
4080 (FRAME_ARGS_SKIP): Remove.
4081 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4082 (m68k_gdbarch_init): Add gdbarch initializations for macros
4083 undefined in tm-m68k.h
4084
1c617db8
GS
40852002-06-26 Grace Sainsbury <graces@redhat.com>
4086
4087 * monitor.h: Add the function regname to monitor_ops
4088 structure. This way NUM_REGS does not have to be a constant.
4089 * monitor.c (monitor_fetch_register): Added support for regname
4090 function. The function is called if the array regnames is NULL.
4091 (monitor_store_register): Same.
da130f98
AC
4092 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4093 regnames array.
1c617db8
GS
4094 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4095 cpu32bug_cmds.regname to point to new function.
4096 * abug-rom.c (abug_regname): Same as above.
4097 (init_abug_cmds): Same.
4098 * dbug-rom.c (dbug_regname): Same as above.
4099 (init_dbug_cmds): Same.
4100 * remote-est.c (est_regname): Same.
4101 (init_est_cmds): Same.
4102 * rom68k-rom.c (rom68k_regname): Same.
4103 (init_rom68k_cmds): Same.
4104
ea9365bb
TT
41052002-06-25 Tom Tromey <tromey@redhat.com>
4106
4107 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4108
72cec141
AC
41092002-06-25 Andrew Cagney <cagney@redhat.com>
4110
4111 * infrun.c (stop_registers): Change variable's type to ``struct
4112 regcache'''.
4113 (xmalloc_inferior_status): Delete function.
4114 (free_inferior_status): Delete function.
4115 (normal_stop): Use regcache_cpy.
4116 (struct inferior_status): Change type of fields ``stop_registers''
4117 and ``registers'' to ``struct regcache''.
4118 (write_inferior_status_register): Use regcache_write.
4119 (save_inferior_status): Instead of calling
4120 xmalloc_inferior_status, allocate the inf_status buffer directly.
4121 Use regcache_dup_no_passthrough and regcache_dup to save the
4122 buffers.
4123 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4124 Replace the stop_registers regcache instead of overriding it. Use
4125 regcache_xfree. Instead of calling free_inferior_status, xfree
4126 the buffer directly.
4127 (discard_inferior_status): Use regcache_xfree. Instead of calling
4128 free_inferior_status, xfree the buffer directly.
4129 (build_infrun): Use regcache_xmalloc.
4130 (_initialize_infrun): Delete redundant call to build_infrun.
4131
4132 * Makefile.in (infcmd.o): Add $(regcache_h).
4133
4134 * infcmd.c: Include "regcache.h".
4135 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4136 obtain the address of `stop_registers' register buffer.
4137 (print_return_value): Ditto.
4138
4139 * inferior.h (struct regcache): Add opaque declaration.
4140 (stop_registers): Change variable's declared type to ``struct
4141 regcache''.
4142
defc6f8c
TT
41432002-06-24 Tom Tromey <tromey@redhat.com>
4144
c0e624e7
TT
4145 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4146 * target.c (initialize_targets): Fixed typo in
4147 trust-readonly-sections `show' documentation.
4148
defc6f8c
TT
4149 * main.c: Marked all strings with _().
4150
2b236d82
DH
41512002-06-24 Don Howard <dhoward@redhat.com>
4152
4153 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4154 that means max CORE_ADDR+1.
4155 (lookup_mem_region): Ditto.
4156 (mem_info_command): Ditto.
4157
942dc0e9
GS
41582002-06-24 Grace Sainsbury <graces@redhat.com>
4159
4160 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4161 (REGISTER_BYTES_OK): Remove.
4162 (REGISTER_BYTES): Remove.
4163 (STORE_STRUCT_RETURN): Remove.
4164 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4165 (STORE_RETURN_VALUE): Remove.
4166 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4167 (FRAME_CHAIN): Remove.
4168 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4169 (FRAME_SAVED_PC): Remove.
4170 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4171 (m68k_store_struct_return): Add.
4172 (m68k_deprecated_extract_return_value): Add.
4173 (m68k_deprecated_extract_struct_value_address): Add.
4174 (m68k_store_return_value): Add.
4175 (m68k_frame_chain): Add.
4176 (m68k_frameless_function_invocation): Add.
4177 (m68k_frame_saved_pc): Add.
4178 (m68k_gdbarch_init): added set_gdbarch calls for new
4179 functions and deleted macros.
4180
03c30d4d
TT
41812002-06-23 Tom Tromey <tromey@redhat.com>
4182
4183 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4184 (ALLDEPFILES): Likewise.
4185 (udiheaders): Removed.
4186 (udip2soc.o): Likewise.
4187 (udi2go32.o): Likewise.
4188 (udr.o): Likewise.
4189 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4190
37e71372
AC
41912002-06-22 Andrew Cagney <ac131313@redhat.com>
4192
06a6ac57
AC
4193 * infrun.c (_initialize_infrun): Delete unnecessary call to
4194 build_infrun.
4195
37e71372
AC
4196 * regcache.h: Update comments describing the regcache_cpy family
4197 of functions.
4198 (regcache_save, regcache_restore): Delete declaration.
4199 (regcache_save_no_passthrough): Delete declaration.
4200 (regcache_restore_no_passthrough): Delete declaration.
4201 * regcache.c (regcache_save): Delete function.
4202 (regcache_save_no_passthrough): Delete function.
4203 (regcache_restore): Delete function.
4204 (regcache_restore_no_passthrough): Delete function.
4205
78f6d055
AC
42062002-06-21 Andrew Cagney <ac131313@redhat.com>
4207
4208 * config/m68k/tm-m68k.h: Fix typo.
4209 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4210 (m68k_frame_init_saved_regs): Declare.
4211
78b119cb
JB
42122002-06-21 Jim Blandy <jimb@redhat.com>
4213
4214 Remove some vestiges of Harris 88k support.
4215 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4216 register numbering quirk.
4217 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4218 odd symbols occurring in Harris 88k ELF targets.
4219
0fbb3da7
TT
42202002-06-21 Tom Tromey <tromey@redhat.com>
4221
4222 * gdb_locale.h: New file.
4223 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4224 (defs_h): Added gdb_locale.h.
4225 * configure, config.in: Rebuilt.
4226 * configure.in (PACKAGE): Define.
4227 * defs.h: Include gdb_locale.h.
4228 * main.c (captured_main): Call setlocale, bindtextdomain,
4229 textdomain.
4230
456f8b9d
DB
42312002-06-21 Dave Brolley <brolley@redhat.com>
4232
4233 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4234 * config/frv/frv.mt: New file.
4235 * config/frv/tm-frv.h: New file.
4236 * configure.tgt: Support frv-*-*.
4237 * Makefile.in (frv-tdep.o): New target.
4238 * frv-tdep.c: New file.
4239 * NEWS: Mention frv.
4240
cdd463f9
DB
42412002-06-21 Dave Brolley <brolley@redhat.com>
4242
4243 * MAINTAINERS: Add self to "Write After Approval" list.
4244
5d3ed2e3
GS
42452002-06-21 Grace Sainsbury <graces@redhat.com>
4246
4247 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4248 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4249 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4250 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4251 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4252
4253 * m68k-tdep.c: Include arch-utils.h
4254 (m68k_register_raw_size): Add.
4255 (m68k_register_virtual_size): Add.
4256 (m68k_register_virtual_type): Add.
4257 (m68k_register_name): Add.
4258 (m68k_stack_align): Add.
4259 (m68k_register_byte): Add.
4260 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4261 tm-m68k.h.
4262
7f8e7424
GS
42632002-06-21 Grace Sainsbury <graces@redhat.com>
4264
a2c6a6d5 4265 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4266 m68k_find_saved_regs.
4267 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4268 references to it with frame->saved_regs.
7f8e7424
GS
4269 (m68k_gdbarch_init): Added function calls to initialize the
4270 gdbarch structure.
a2c6a6d5
GS
4271 (m68k_fix_call_dummy): Add.
4272 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4273 (CALL_DUMMY): Remove.
4274 (CALL_DUMMY_LENGTH): Remove.
4275 (CALL_DUMMY_START_OFFSET): Remove.
4276 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4277 (FIX_CALL_DUMMY): Remove.
4278 (PUSH_DUMMY_FRAME): Remove.
4279 (POP_FRAME): Remove.
7f8e7424 4280
f461f5cf
PM
42812002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4282
4283 * parse.c (parse_fprintf): New function used to avoid calls to
4284 fprintf in bison parser generated debug code.
4285 * parser-defs.h: Declaration of new parse_fprintf function.
4286 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4287 Set YYDEBUG to 1 by default.
4288 Set YYFPRINTF as parse_fprintf.
4289
7f0c12ed
ML
42902002-06-21 Michal Ludvig <mludvig@suse.cz>
4291
4292 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4293 encoding anymore.
4294 (pointer_encoding, enum ptr_encoding): New.
4295 (execute_cfa_program): Take care about pointer encoding.
4296 (dwarf2_build_frame_info): Only call parse_frame_info for
4297 .debug_frame and .eh_frame.
4298 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4299 fixed augmentation handling, added relative addressing,
4300 ignore duplicate FDEs. Added comments.
19d833a2 4301 * dwarf2cfi.c: Reindented.
7f0c12ed 4302
87c4a039
EZ
43032002-06-20 Elena Zannoni <ezannoni@redhat.com>
4304
4305 * event-top.c (command_handler): Don't use space_at_cmd_start
4306 unless there is sbrk() on the host. Assign time and space data
4307 to union fields of the appropriate length.
4308
1cf877ad
ML
43092002-06-20 Michal Ludvig <mludvig@suse.cz>
4310
4311 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4312 x86_64_register_name. Return type changed to 'const char *'.
4313 (x86_64_register_name2nr): Rename to x86_64_register_number.
4314 (x86_64_gdbarch_init): Update to reflect the change.
4315 * x86-64-tdep.h: Ditto.
4316 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4317 (supply_fpregset): Ditto.
4318
3fadccb3
AC
43192002-06-19 Andrew Cagney <cagney@redhat.com>
4320
4321 * regcache.h: Update copyright.
4322 (struct regcache, struct gdbarch): Add opaque declarations.
4323 (current_regcache): Declare global variable.
4324 (regcache_read, regcache_write): Add gdbarch parameter.
4325 (regcache_save, regcache_save_no_passthrough)
4326 (regcache_restore, regcache_restore_no_passthrough)
4327 (regcache_dup, regcache_dup_no_passthrough)
4328 (regcache_cpy, regcache_cpy_no_passthrough)
4329 (deprecated_grub_regcache_for_registers)
4330 (deprecated_grub_regcache_for_register_valid)
4331 (regcache_valid_p): Add function declarations.
4332
4333 * regcache.c: Update copyright.
4334 (regcache_descr_handle): New global variable.
4335 (struct regcache_descr): Define.
4336 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4337 (regcache_descr, xfree_regcache_descr): New functions.
4338 (struct regcache): Define.
4339 (regcache_xmalloc, regcache_xfree): New functions.
4340 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4341 (regcache_dup, regcache_dup_no_passthrough): New functions.
4342 (regcache_valid_p, regcache_read_as_address): New functions.
4343 (deprecated_grub_regcache_for_registers): New function.
4344 (deprecated_grub_regcache_for_register_valid): New function.
4345 (current_regcache): New global variable.
4346 (register_buffer): Add regcache parameter. Update calls.
4347 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4348 (read_register_gen, write_register_gen): Update register_buffer
4349 call. Test for legacy_p instead of gdbarch_register_read_p or
4350 gdbarch_register_write_p.
4351 (regcache_collect): Update register_buffer call.
4352 (build_regcache): Rewrite. Use deprecated grub functions.
4353 (regcache_save, regcache_save_no_passthrough): New functions.
4354 (regcache_restore, regcache_restore_no_passthrough): New
4355 functions.
4356 (_initialize_regcache): Create the regcache_data_handle. Swap
4357 current_regcache global variable.
4358
4359 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4360 parameter to regcache_read and regcache_write calls.
4361 (sh4_register_read): Ditto.
4362 (sh64_pseudo_register_read): Ditto.
4363 (sh64_register_read): Ditto.
4364 (sh_pseudo_register_write): Ditto.
4365 (sh4_register_write): Ditto.
4366 (sh64_pseudo_register_write): Ditto.
4367 (sh64_register_write): Ditto.
4368
4369 * defs.h (XCALLOC): Define.
4370
152d9db6
GS
43712002-06-19 Grace Sainsbury <graces@redhat.com>
4372
4373 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4374 * m68k-tdep.c (m68k_gdbarch_init): Added.
4375 (m68k_dump_tdep): Added.
4376
170911c7
DJ
43772002-06-19 Daniel Jacobowitz <drow@mvista.com>
4378
4379 * ada-lang.c (fill_in_ada_prototype): Update comment.
4380
2e4ebe70
DJ
43812002-06-19 Daniel Jacobowitz <drow@mvista.com>
4382
4383 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4384 MIPS_ABI_LAST.
4385 (mips_abi_string, mips_abi_strings): New.
4386 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4387 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4388 tdep->mips_abi_string. Honor mips_abi_string. Default to
4389 O32 if no ABI is found.
4390 (mips_dump_tdep): Use mips_abi_strings.
4391 (mips_abi_update): New function.
4392 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4393 ``set mips abi'' and ``show mips abi''. Check the size of
4394 mips_abi_strings.
4395
16775908
AC
43962002-06-19 Andrew Cagney <cagney@redhat.com>
4397
4398 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4399 constant.
4400
5051bfa4 44012002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4402
5051bfa4
JB
4403 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4404 current frame using only the first stack size adjustment. All
4405 subsequent size adjustments are not considered to be part of
4406 the "static" part of the current frame.
4407 Compute the address of the saved registers relative to the
4408 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4409 in use in this frame.
4410
56468235
DH
44112002-06-18 Don Howard <dhoward@redhat.com>
4412
4413 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4414 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4415 suggesting this solution.
4416
0b624158
AC
44172002-06-18 Andrew Cagney <ac131313@redhat.com>
4418
4419 * config/romp/xm-rtbsd.h: Delete file.
4420 * config/romp/rtbsd.mh: Delete file.
4421
221ea385
KS
44222002-06-18 Keith Seitz <keiths@redhat.com>
4423
4424 * breakpoint.c (condition_command): Post breakpoint_modify
4425 when a condition is added to an existing breakpoint.
4426 (commands_command): Likewise for commands.
4427 (set_ignore_count): Likewise for ignore counts.
4428 If no tty, do not simply return, still need to send event
4429 notification.
4430 (ignore_command): Only print a newline if the command came
4431 from a tty.
4432 Don't call breakpoints_changed, since this is now properly
4433 handled by set_ignore_count.
4434
5402eed1
AC
44352002-06-18 Andrew Cagney <cagney@redhat.com>
4436
4437 * MAINTAINERS: Note that cris-elf target can be compiled with
4438 -Werror.
4439 * cris-tdep.c (cris_register_name): Make return type constant.
4440 (cris_breakpoint_from_pc): Ditto.
4441
cc22880b
ML
44422002-06-18 Michal Ludvig <mludvig@suse.cz>
4443
4444 * frame.h (struct frame_info): Change type of context to
4445 'struct context'.
4446
fa88f677
AC
44472002-06-17 Andrew Cagney <cagney@redhat.com>
4448
4449 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4450 pointer.
4451 * gdbarch.h, gdbarch.c: Regenerate.
4452 * config/mips/tm-mips.h (mips_register_name): Update.
4453 * i386-tdep.h (i386_register_name): Update.
4454 * mips-tdep.c (mips_register_name): Update
4455 * alpha-tdep.c (alpha_register_name): Update.
4456 * arch-utils.c (legacy_register_name): Update.
4457 * arch-utils.h (legacy_register_name): Update.
4458 * avr-tdep.c (avr_register_name): Update.
4459 * ia64-tdep.c (ia64_register_name): Update.
4460 * i386-tdep.c (i386_register_name): Update.
4461 * sparc-tdep.c (sparc32_register_name): Update.
4462 (sparc64_register_name): Update.
4463 (sparclite_register_name): Update.
4464 (sparclet_register_name): Update.
4465 * sh-tdep.c (sh_generic_register_name): Update.
4466 (sh_sh_register_name): Update.
4467 (sh_sh3_register_name): Update.
4468 (sh_sh3e_register_name): Update.
4469 (sh_sh_dsp_register_name): Update.
4470 (sh_sh3_dsp_register_name): Update.
4471 (sh_sh4_register_name): Update.
4472 (sh_sh64_register_name): Update.
4473 * s390-tdep.c (s390_register_name): Update.
4474 * rs6000-tdep.c (rs6000_register_name): Update.
4475 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4476 (ns32k_register_name_32382): Update.
4477 * d10v-tdep.c (d10v_ts2_register_name): Update.
4478 (d10v_ts3_register_name): Update.
4479 * xstormy16-tdep.c (xstormy16_register_name): Update.
4480 * vax-tdep.c (vax_register_name): Update.
4481 * v850-tdep.c (v850_register_name): Update.
4482 * m68hc11-tdep.c (m68hc11_register_name): Update.
4483 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4484 (am33_register_name): Update.
4485
ea1e7ef6
GS
44862002-06-17 Grace Sainsbury <graces@redhat.com>
4487
4488 * m68k-tdep.c: Reindented.
4489
9b02dd1b
AC
44902002-06-17 Andrew Cagney <ac131313@redhat.com>
4491
4492 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4493 list of predefined types.
4494
8758dec1
MK
44952002-06-16 Mark Kettenis <kettenis@gnu.org>
4496
b6197528
MK
4497 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4498 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4499 REGISTER_CONVERT_TO_RAW): Remove defines.
4500 (i386_register_virtual_type, i386_register_convertible,
4501 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4502 Remove prototypes.
4503 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4504 macros mentioned above.
4505
82b47e62
MK
4506 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4507 (i386lynx_saved_pc_after_call): Remove prototype.
4508 * i386ly-tdep.c: Include "i386-tdep.h".
4509 (i386lynx_saved_pc_after_call): Make static. Use
4510 read_memory_nobpt instead of read_memory. Use
4511 read_memory_unsigned_integer instead of read_memory_integer.
4512 (i386lynx_init_abi): New function.
4513 (i386lynx_coff_osabi_sniffer): New function.
4514 (_initialize_i386bsd_tdep): New function.
4515
8758dec1
MK
4516 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4517 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4518 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4519 (i386_fix_call_dummy): Remove prototype.
4520 * i386-tdep.c (i386_call_dummy_words): New variable.
4521 (i386_gdbarch_init): Adjust for removal of the
4522 macros mentioned above.
4523
e9e68a56
AC
45242002-06-15 Andrew Cagney <ac131313@redhat.com>
4525
4526 * command.h (add_setshow_auto_boolean_cmd): Replace
4527 add_set_auto_boolean_cmd.
4528 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4529 add_set_auto_boolean_cmd.
4530 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4531 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4532 mask-address'' command.
4533 (show_mask_address): Add cmd parameter.
4534 * remote.c (add_packet_config_cmd): Update. Change type of
4535 set_func and show_func to cmd_sfunc_ftype.
4536 (_initialize_remote): Update `set remote Z-packet'
4537 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4538 (show_remote_protocol_e_packet_cmd): Ditto.
4539 (show_remote_protocol_E_packet_cmd): Ditto.
4540 (show_remote_protocol_P_packet_cmd): Ditto.
4541 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4542 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4543 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4544 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4545 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4546 (show_remote_protocol_Z_packet_cmd): Ditto.
4547 (show_remote_protocol_binary_download_cmd): Ditto.
4548 (show_remote_cmd): Pass NULL to all of above.
4549
fc08ec52
MK
45502002-06-15 Mark Kettenis <kettenis@gnu.org>
4551
4552 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4553 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4554 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4555 POP_FRAME): Remove defines.
4556 (i386_push_arguments, i386_store_struct_return,
4557 i386_extract_return_value, i386_store_return_value,
4558 i386_extract_struct_value_address, i386_push_dummy_frame,
4559 i386_pop_frame): Renove prototypes.
4560 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4561 macros mentioned above.
4562
e707bbc2
AC
45632002-06-15 Andrew Cagney <ac131313@redhat.com>
4564
4565 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4566 add_set_boolean_cmd.
4567 (add_setshow_cmd): New function.
4568 * command.h (add_setshow_boolean_cmd): Replace
4569 add_set_boolean_cmd.
4570 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4571 and ``set rdiromatzero''.
4572 * maint.c (_initialize_maint_cmds): Update commented out code.
4573 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4574 * target.c (initialize_targets): Update `set
4575 trust-readonly-sections'.
4576 * remote.c (_initialize_remote): Update `set remotebreak'.
4577
42fdc8df
MK
45782002-06-15 Mark Kettenis <kettenis@gnu.org>
4579
93924b6b
MK
4580 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4581 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4582 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4583 fit into multi-arch framework.
4584 (i386_breakpoint_from_pc): New function.
4585 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4586 above.
4587
42fdc8df
MK
4588 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4589 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4590 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4591 (i386_frameless_function_invocation, i386_frame_num_args,
4592 i386_frame_init_saved_regs): Remove prototypes.
4593 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4594 macros mentioned above.
4595
9773a94b
AC
45962002-06-15 Andrew Cagney <ac131313@redhat.com>
4597
4598 * cli/cli-decode.c (set_cmd_cfunc): Update.
4599 (set_cmd_sfunc): Update.
4600 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4601 (set_cmd_sfunc, set_cmd_cfunc): Update.
4602 * cli/cli-decode.h: Update.
4603
6e157172
MK
46042002-06-15 Mark Kettenis <kettenis@gnu.org>
4605
4606 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4607 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4608
7f19b9a2
AC
46092002-06-15 Andrew Cagney <ac131313@redhat.com>
4610
4611 * defs.h (auto_boolean): Declare enum.
4612 * command.h (cmd_auto_boolean): Delete enum.
4613 * mips-tdep.c (mask_address_var): Update.
4614 (mips_mask_address_p): Update.
4615 (show_mask_address): Update.
4616 * remote.c (struct packet_config): Update.
4617 (update_packet_config): Update.
4618 (show_packet_config_cmd): Update.
4619 (packet_ok): Update.
4620 (add_packet_config_cmd): Update.
4621 (_initialize_remote):
4622 * command.h: Update.
4623 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4624 (do_setshow_command): Update.
4625 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4626 * cli/cli-decode.h: Update.
4627
1cf88de5
MK
46282002-06-15 Mark Kettenis <kettenis@gnu.org>
4629
22ba8cf2
MK
4630 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4631 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4632 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4633 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4634 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4635 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4636
762c5349
MK
4637 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4638 list of DJGPP COFF targets.
4639
091198bb
MK
4640 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4641 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4642 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4643 (FP0_REGNUM): Remove define.
4644 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4645 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4646 (i386_register_virtual_size): Remove protoype.
4647 * i386-tdep.c (i386_register_virtual_size): Removed.
4648 (i386_extract_return_value, i386_store_return_value): Use
4649 FP0_REGNUM instead of NUM_FREGS to determine whether the
4650 floating-point registers are available.
4651 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4652 Adjust for removal of macros mentioned above.
4653
46542002-06-15 Mark Kettenis <kettenis@gnu.org>
4655
fcc9bf01
MK
4656 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4657 comments.
4658 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4659 Remove prototypes.
4660 (supply_gregset, fill_gregset): Remove use of register keyword and
4661 remove declaration for regmap. Use I386_NUM_GREGS instead of
4662 NUM_REGS and NUM_FREGS.
4663 (FPREGSET_FSAVE_OFFSET): Remove.
4664 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4665 NUM_FREGS to determine whether the floating-point registers are
4666 available.
4667
65e78234
MK
4668 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4669 gnu_store_registers): Replace usage of NUM_GREGS with
4670 I386_NUM_GREGS.
4671
98df6387
MK
4672 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4673 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4674 usage of NUM_GREGS with I386_NUM_GREGS.
4675
099a9414
MK
4676 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4677
57976e88
MK
4678 * i386bsd-nat.c: Include "i386-tdep.h".
4679 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4680 I386_NUM_GREGS.
4681
b335f4a6
MK
4682 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4683 and associated comment. They no longer make any sense, since we
4684 don't use this file anymore on Linux.
4685
1cf88de5
MK
4686 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4687 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4688 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4689 elements in these arrays.
4690 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4691 MAX_NUM_REGS.
4692
daa66587
MK
46932002-06-15 Mark Kettenis <kettenis@gnu.org>
4694
4695 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4696 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4697
26e9b323
AC
46982002-06-14 Andrew Cagney <cagney@redhat.com>
4699
4700 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4701 EXTRACT_RETURN_VALUE.
4702 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4703 EXTRACT_STRUCT_VALUE_ADDRESS.
4704 * gdbarch.h, gdbarch.c: Regenerate.
4705
4706 * values.c (value_being_returned): Handle
4707 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4708 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4709
4710 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4711 * arm-tdep.c (arm_gdbarch_init): Update.
4712 * avr-tdep.c (avr_gdbarch_init): Update.
4713 * cris-tdep.c (cris_gdbarch_init): Update.
4714 * d10v-tdep.c (d10v_gdbarch_init): Update.
4715 * ia64-tdep.c (ia64_gdbarch_init): Update.
4716 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4717 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4718 * s390-tdep.c (s390_gdbarch_init): Update.
4719 * sh-tdep.c (sh_gdbarch_init): Update.
4720 * s390-tdep.c (s390_gdbarch_init): Update.
4721 * sparc-tdep.c (sparc_gdbarch_init): Update.
4722 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4723 * v850-tdep.c (v850_gdbarch_init): Update.
4724 * vax-tdep.c (vax_gdbarch_init): Update.
4725 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4726 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4727
4728 * config/arc/tm-arc.h: Update.
4729 * config/d30v/tm-d30v.h: Update.
4730 * config/fr30/tm-fr30.h: Update.
4731 * config/h8300/tm-h8300.h: Update.
4732 * config/h8500/tm-h8500.h: Update.
4733 * config/i386/tm-i386.h: Update.
4734 * config/i386/tm-ptx.h: Update.
4735 * config/i386/tm-symmetry.h: Update.
4736 * config/i960/tm-i960.h: Update.
4737 * config/m32r/tm-m32r.h: Update.
4738 * config/m68k/tm-delta68.h: Update.
4739 * config/m68k/tm-linux.h: Update.
4740 * config/m68k/tm-m68k.h: Update.
4741 * config/m88k/tm-m88k.h: Update.
4742 * config/mcore/tm-mcore.h: Update.
4743 * config/mips/tm-mips.h: Update.
4744 * config/mn10200/tm-mn10200.h: Update.
4745 * config/pa/tm-hppa.h: Update.
4746 * config/pa/tm-hppa64.h: Update.
4747 * config/sparc/tm-sp64.h: Update.
4748 * config/sparc/tm-sparc.h: Update.
4749 * config/sparc/tm-sparclet.h: Update.
4750 * config/z8k/tm-z8k.h: Update.
4751
5179e78f
AC
47522002-06-14 Andrew Cagney <cagney@redhat.com>
4753
4754 * Makefile.in (i386_linux_tdep_h): Define.
4755 (i386_tdep_h, i387_tdep_h): Define.
4756 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4757 $(i386_tdep_h) and $(i387_tdep_h).
4758 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4759
8201327c
MK
47602002-06-14 Mark Kettenis <kettenis@gnu.org>
4761
edf393ac
MK
4762 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4763 Already covered by the default.
4764
896fb97d
MK
4765 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4766 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4767 (i386_gdbarch_init): Initialize long_double_format and long_double
4768 bit.
4769
8201327c
MK
4770 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4771 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4772 Move these to ...
4773 * config/i386/i386sol2.mh: ... here.
4774 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4775 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4776 (SIGCONTEXT_PC_OFFSET): Remove define.
4777 (IN_SIGTRAMP): Remove define.
4778 * i386-sol2-tdep.c: New file.
4779
4780 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4781 * config/i386/tm-i386nw.h: Removed.
4782
4783 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4784 USE_STRUCT_CONVENTION): Remove defines.
4785 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4786 (get_longjmp_target): Remove prototype.
4787 (IN_SIGTRAMP): Remove define.
4788 (i386bsd_in_sigtramp): Remove prototype.
4789 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4790 function. Update comment accordingly
4791 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4792 (FRAME_SAVED_PC): Remove define.
4793 (i386bsd_frame_saved_pc): Remove prototype.
4794 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4795 GET_LONGJMP_TARGET): Remove defines.
4796 (get_longjmp_target): Remove prototype.
4797 (IN_SIGTRAMP): Remove define.
4798 (i386bsd_in_sigtramp): Remove prototype.
4799 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4800 function. Update comment accordingly
4801 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4802 (FRAME_SAVED_PC): Remove define.
4803 (i386bsd_frame_saved_pc): Remove prototype.
4804 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4805 Remove prototype.
4806 (USE_STRUCT_CONVENTION): Remove prototype.
4807 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4808 declaration.
4809 (_initialize_i386bsd_nat): Revise logic to determine some
4810 constants at compile time when compiling a native GDB. Warn if
4811 things don't match up with what we expect.
4812 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4813 Remove variables.
4814 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4815 to use date stored in `struct gdbarch_tdep'.
4816 (i386bsd_sigcontext_offset): Remove varaible.
4817 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4818 stored in `struct gdbarch_tdep'.
4819 (i386bsd_frame_saved_pc): Make static.
4820 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4821 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4822 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4823 i386fbsd4_sc_pc_offset): New variables.
4824 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4825 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4826 functions.
4827 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4828 functions.
4829 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4830 Modify the value of i386fbsd_sigtramp_start and
4831 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4832 i386fbsd_sigtramp_end.
4833 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4834 function.
4835
4836 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4837 define to i386-linux-tdep.h.
4838 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4839 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4840 defines.
4841 (i386_linux_register_name, i386_linux_register_byte,
4842 i386_linux_register_raw_size): Remove prototypes.
4843 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4844 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4845 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4846 TARGET_WRITE_PC): Remove defines.
4847 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4848 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4849 i386_linux_write_pc): Remove prototypes.
4850 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4851 (get_longjmp_target): Remove prototype.
4852 * i386-linux-tdep.h: New file.
4853 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4854 * i386-linux-tdep.c: Include "i386-tdep.h" and
4855 "i386-linux-tdep.h".
4856 (i386_linux_register_name, i386_linux_register_byte,
4857 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4858 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4859 Make static.
4860 (i386_linux_init_abi): New function.
4861 (_initialize_i386_linux_tdep): New function.
4862
4863 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4864 (i386_saved_pc_after_call): Remove prototype.
4865 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4866 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4867 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4868 (i386_register_name, i386_stab_reg_to_regnum,
4869 i386_dwarf_reg_to_regnum): Remove prototypes.
4870 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4871 SIZEOF_SSE_REGS): Remove defines.
4872 (REGISTER_BYTES): Remove define.
4873 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4874 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4875 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4876 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4877 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4878 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4879 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4880 (get_longjmp_target): Remove prototype.
4881 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4882 (sigtramp_saved_pc): Remove define.
4883 (i386v4_sigtramp_saved_pc): Remove prototype.
4884 * config/i386/tm-go32.h (FRAME_CHAIN,
4885 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4886 (i386go32_frame_saved_pc): Remove prototype.
4887 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4888 (get_longjmp_target): Remove prototype.
4889 * i386-tdep.h: Include "osabi.h".
4890 (enum i386_abi): Removed.
4891 (enum struct_return): New enum.
4892 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4893 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4894 sc_pc_offset members.
4895 (i386_gdbarch_register_os_abi): Remove prototype.
4896 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4897 I386_SSE_NUM_REGS): New defines.
4898 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4899 I386_SSE_SIZEOF_REGS): New defines.
4900 (i386_register_name, i386_register_byte, i386_register_raw_size):
4901 New prototypes.
4902 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4903 (i386bsd_sigtramp_saved_pc): New prototype.
4904 * i386-tdep.c: Don't include "elf-bfd.h".
4905 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4906 i386_frame_chain, i386_saved_pc_after_call): Make static.
4907 (i386_frame_saved_pc): Rewrite to call architecture dependent
4908 function to deal with signal handlers. Make static.
4909 (i386go32_frame_saved_pc): Removed.
4910 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4911 Removed.
4912 (i386_get_longjmp_target): New function.
4913 (default_struct_convention, pcc_struct_convention,
4914 reg_struct_convention, valid_conventions, struct_convention): New
4915 variables.
4916 (i386_use_struct_convention): New function.
4917 (i386v4_sigtramp_saved_pc): Renamed to
4918 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4919 (i386_pc_in_sigtramp): New function.
4920 (i386_abi_names): Removed.
4921 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4922 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4923 Removed.
4924 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4925 i386_gdbarch_register_os_abi): Removed.
4926 (struct i386_abi_handler): Removed.
4927 (i386_abi_handler_list): Removed.
4928 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4929 functions.
4930 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4931 i386_nw_init_abi): New functions.
4932 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4933 Use set_gdbarch_xxx() calls instead of relying on macros for a
4934 number of calls.
4935 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4936 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4937 Register the various architecture variants defined in this file.
4938
ad2f7632
DJ
49392002-06-14 Daniel Jacobowitz <drow@mvista.com>
4940
4941 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4942 (struct main_type): Remove arg_types member. Update comments for
4943 struct field.
4944 (TYPE_ARG_TYPES): Remove.
4945 (TYPE_FN_FIELD_ARGS): Update.
4946 (smash_to_method_type): Update prototype.
4947
4948 * c-typeprint.c (cp_type_print_method_args): Take method type
4949 instead of argument list. Use new argument layout. Simplify.
4950 (c_type_print_args): Use new argument layout. Simplify.
4951 (c_type_print_base): Update call to cp_type_print_method_args.
4952 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4953 argument; use die->type instead. Update call to
4954 smash_to_method_type.
4955 (read_structure_scope): Update call to dwarf2_add_member_fn.
4956 * gdbtypes.c (allocate_stub_method): Update comment.
4957 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4958 Use new argument layout.
4959 (check_stub_method): Use new argument layout. Don't count
4960 void as an argument.
4961 (print_arg_types): Update comments. Use new argument layout.
4962 (recursive_dump_type): Don't print arg_types member.
4963 * hpread.c (hpread_read_struct_type): Use new argument layout.
4964 (fixup_class_method_type): Likewise.
4965 (hpread_type_lookup): Likewise.
4966 * stabsread.c (read_type): Update calls to read_args and
4967 smash_to_method_type.
4968 (read_args): Use new argument layout. Simplify.
4969 * valops.c (typecmp): Use new argument layout. Update parameters
4970 and comments. Simplify.
4971 (hand_function_call): Use new argument layout.
4972 (search_struct_method): Update call to typecmp.
4973 (find_overload_match): Use new argument layout.
4974
6da02953
DJ
49752002-06-13 Daniel Jacobowitz <drow@mvista.com>
4976
4977 * NEWS: Mention multithreaded debug support for gdbserver.
4978
519b2366
DJ
49792002-06-13 Daniel Jacobowitz <drow@mvista.com>
4980
4981 * MAINTAINERS: Mention NEWS.
4982
6c0d6680
DJ
49832002-06-13 Daniel Jacobowitz <drow@mvista.com>
4984
4985 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4986 (struct mips_objfile_private, compare_pdr_entries): New.
4987 (non_heuristic_proc_desc): Read the ".pdr" section if it
4988 is present.
4989
6529d2dd
AC
49902002-06-12 Andrew Cagney <ac131313@redhat.com>
4991
4992 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4993 (arm_debug): New static variable.
4994 (_initialize_arm_tdep): Add ``set debug arm'' command.
4995
26216b98
AC
49962002-06-12 Andrew Cagney <ac131313@redhat.com>
4997
4998 * Makefile.in (sim_arm_h): Define.
4999 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5000 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5001 (arm_register_sim_regno): New function, map an internal REGNUM
5002 onto a simulator register number.
5003 (arm_gdbarch_init): Set register_sim_regno.
5004
814b3ba0
AH
50052002-06-09 Aldy Hernandez <aldyh@redhat.com>
5006
5007 * MAINTAINERS: Add self.
5008
475b0867
JB
50092002-06-11 Jim Blandy <jimb@redhat.com>
5010
919d772c
JB
5011 * source.c (source_info): Mention whether the symtab has
5012 information about preprocessor macros.
5013
475b0867
JB
5014 Call the command `info macro', not `show macro'.
5015 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5016 Fix error message.
5017 (_initialize_macrocmd): Register `info_macro_command' in
5018 `infolist', not `showlist'.
5019
9e364162
DJ
50202002-06-11 Daniel Jacobowitz <drow@mvista.com>
5021
5022 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5023 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5024 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5025 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5026 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5027 unconditionally.
5028 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5029 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5030 (_initialize_mips_tdep): Remove dead code.
5031 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5032 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5033 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5034 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5035 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5036 MIPS_LAST_FP_ARG_REGNUM): Remove.
5037
23aa4c72
ML
50382002-06-11 Michal Ludvig <mludvig@suse.cz>
5039
5040 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5041 (unwind_tmp_obstack_free, parse_frame_info)
5042 (update_context, cfi_read_fp, cfi_write_fp)
5043 (cfi_frame_chain, cfi_init_extra_frame_info)
5044 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5045 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5046
70eb15a4
CV
50472002-06-11 Corinna Vinschen <vinschen@redhat.com>
5048
5049 * v850-tdep.c (v850_type_is_scalar): New function.
5050 (v850_use_struct_convention): Match current gcc implementation
5051 as close as possible.
5052 (v850_push_arguments): Fix stack_offset handling. Don't write
5053 struct_addr into register. This is done by v850_store_struct_return.
5054 (v850_extract_return_value): Care for structs.
5055 (v850_store_return_value): Ditto.
5056 (v850_store_struct_return): Actually write address.
5057
482a4d06
ML
50582002-06-11 Michal Ludvig <mludvig@suse.cz>
5059
5060 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5061 without debug information too.
5062
d855c300
AC
50632002-06-10 Andrew Cagney <ac131313@redhat.com>
5064
5065 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5066 Make multi-arch pure.
5067 * gdbarch.h, gdbarch.c: Re-generate.
5068 * arm-tdep.c (arm_print_float_info): Update.
5069 * arch-utils.h (default_print_float_info): Update.
5070 * arch-utils.c (default_print_float_info): Update.
5071 * infcmd.c (float_info): Update call.
5072
dd12a101
AC
50732002-06-10 Andrew Cagney <ac131313@redhat.com>
5074
5075 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5076 the front of the initialize list.
5077
101dcfbe
AC
50782002-06-10 Andrew Cagney <ac131313@redhat.com>
5079
5080 * infrun.c (struct inferior_status): Replace fields
5081 selected_frame_address and selected_level with field
5082 selected_frame_id.
5083 (save_inferior_status): Update. Use get_frame_id.
5084 (struct restore_selected_frame_args): Delete.
5085 (restore_selected_frame): Update. Use frame_find_by_id.
5086 (restore_inferior_status): Update.
5087
5088 * breakpoint.h (struct breakpoint): Change type of
5089 watchpoint_frame to frame_id.
5090 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5091 call to get_current_frame.
5092 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5093 get_current_frame.
5094 (watchpoint_check): Use frame_find_by_id.
5095
5096 * frame.h (record_selected_frame): Delete declaration.
5097 * stack.c (record_selected_frame): Delete function.
5098
5099 * frame.h (struct frame_id): Define.
5100 (get_frame_id): Declare.
5101 (frame_find_by_id): Declare.
5102 * frame.c (frame_find_by_id): New function.
5103 (get_frame_id): New function.
5104
304270b6
AV
51052002-06-10 Andrey Volkov <avolkov@transas.com>
5106
5107 * ser-e7kpc.c: Fix duplicated define and call of
5108 _initialize_ser_e7000pc
5109
2f2cf184
DJ
51102002-06-09 Daniel Jacobowitz <drow@mvista.com>
5111
5112 * signals/signals.c (target_signal_from_host): Fix #ifdef
5113 SIGRTMIN case.
5114 (do_target_signal_to_host): Likewise.
5115
caaa3122
DJ
51162002-06-09 Daniel Jacobowitz <drow@mvista.com>
5117
5118 * mips-tdep.c (mips_find_abi_section): New function.
5119 (mips_gdbarch_init): Call it.
5120
6ac5df3a
MK
51212002-06-09 Mark Kettenis <kettenis@gnu.org>
5122
5123 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5124 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5125 after Andrew's 2002-06-08 gdbarch change.
5126
82ea117a
MK
51272002-06-09 Mark Kettenis <kettenis@gnu.org>
5128
5129 * i386-linux-nat.c (suppy_gregset): Don't supply
5130 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5131 register cache.
5132 (fill_gregset): Don't fetch it under the same circumstances.
5133
3c25f8c7
AC
51342002-06-09 Andrew Cagney <cagney@redhat.com>
5135
5136 * Makefile.in (callback_h): Define.
5137 (remote_sim_h): Update path to remote-sim.h.
5138 (remote-rdp.o): Add $(callback_h).
5139 (remote-sim.o): Use $(callback_h).
5140 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5141 * remote-rdp.c: Include "gdb/callback.h".
5142
1029b7fa
MK
51432002-06-09 Mark Kettenis <kettenis@gnu.org>
5144
5145 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5146 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5147
616675d3
AC
51482002-06-08 Andrew Cagney <ac131313@redhat.com>
5149
a3efda28
AC
5150 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5151 * rdi-share/serpardr.c: Ditto.
5152 * rdi-share/unixcomm.c: Ditto.
5153 * rdi-share/serdrv.c: Ditto.
5154 * rdi-share/hostchan.h: Ditto.
5155 * rdi-share/hostchan.c: Ditto.
5156 * rdi-share/host.h: Ditto.
5157 * rdi-share/devsw.c: Ditto.
5158
c5f10366
AC
5159 * objfiles.h: Change type of obj_private to void pointer.
5160 * pa64solib.c: Update copyright. Don't include "assert.h", use
5161 strcmp instead of STREQ, use LONGEST, do not use PTR
5162 * somsolib.c: Ditto.
5163
616675d3
AC
5164 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5165 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5166 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5167
e4b415d9
AC
51682002-06-08 Andrew Cagney <ac131313@redhat.com>
5169
5170 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5171 (default_get_saved_register): Delete function.
5172 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5173 generic_unwind_get_saved_register.
5174 * gdbarch.h, gdbarch.c: Re-generate.
5175
ca0d0b52
AC
51762002-06-08 Andrew Cagney <ac131313@redhat.com>
5177
5178 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5179 generic_func_frame_chain_valid.
5180 * gdbarch.h, gdbarch.c: Re-generate.
5181 * blockframe.c (generic_func_frame_chain_valid): Only check
5182 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5183 passing FP to PC_IN_CALL_DUMMY.
5184 Fix PR gdb/360.
5185
76860b5f
AC
51862002-06-08 Andrew Cagney <ac131313@redhat.com>
5187
5188 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5189 (register_gdbarch_data): Initialize init_p.
5190 (gdbarch_data): Initialize data pointer using the init function.
5191 (init_gdbarch_data): Delete function.
5192 (gdbarch_update_p): Update.
5193 (initialize_non_multiarch): Update.
5194 (struct gdbarch): Add field initialized_p.
5195 * gdbarch.h, gdbarch.c: Re-generate.
5196
8dda9770
ML
51972002-06-07 Michal Ludvig <mludvig@suse.cz>
5198
5199 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5200 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5201 better do the things actually here.
5202 * x86-64-tdep.c (x86_64_register_name2nr): New.
5203 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5204 (x86_64_gdbarch_init): Respect the above change.
5205 * x86-64-tdep.h (x86_64_register_name2nr)
5206 (x86_64_register_nr2name): Add prototypes.
5207 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5208
3d79a47c
MS
52092002-06-06 Michael Snyder <msnyder@redhat.com>
5210
7bd91a28
MS
5211 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5212 Delete extra braces and re-indent.
5213 (d10v_store_return_value): Char return values
3d79a47c
MS
5214 must be shifted over by one byte in R0.
5215 (d10v_extract_return_value): Delete extra braces, re-indent.
5216
095a4c96
EZ
52172002-06-06 Elena Zannoni <ezannoni@redhat.com>
5218
5219 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5220 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5221 (d10v_integer_to_address): Rewrite.
5222 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5223 the d10v specific functions which take care of converting to the
5224 correct space.
5225
e8a77ca4
EZ
52262002-06-06 Elena Zannoni <ezannoni@redhat.com>
5227
5228 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5229 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5230
4f2e4a4f
AC
52312002-06-02 Andrew Cagney <ac131313@redhat.com>
5232
5233 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5234 includes.
5235 * config/tm-linux.h: Ditto.
5236 * config/alpha/tm-alphalinux.h: Ditto.
5237 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5238 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5239 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5240 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5241 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5242 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5243 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5244 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5245 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5246 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5247 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5248 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5249 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5250 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5251 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5252 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5253 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5254 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5255 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5256 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5257 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5258 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5259 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5260 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5261 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5262 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5263 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5264 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5265 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5266 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5267 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5268 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5269 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5270 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5271 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5272 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5273 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5274
ae2ab2ce
AS
52752002-05-04 Aidan Skinner <aidan@velvet.net>
5276
5277 * ada-exp.tab.c: New file
5278 * ada-exp.y: New file
5279 * ada-lang.c: New file
5280 * ada-lang.h: New file
5281 * ada-lex.c: New file
5282 * ada-lex.l: New file
5283 * ada-tasks.c: New file
5284 * ada-typeprint.c: New file
5285 * ada-valprint.c: New file
5286
0ddd0135
JT
52872002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5288
5289 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5290 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5291
750fbacc
JT
52922002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5293
5294 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5295 insetead of ppc-linux-tdep.o.
5296 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5297 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5298
df94e18a
AC
52992002-06-02 Andrew Cagney <ac131313@redhat.com>
5300
5301 2002-05-07 Christian Groessler <chris@groessler.org>
5302 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5303 bit register contents for little endian hosts.
5304
1a38ab75
AC
53052002-06-01 Andrew Cagney <ac131313@redhat.com>
5306
5307 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5308 any maintainer.
5309
8b1632ac
AC
53102002-06-01 Andrew Cagney <ac131313@redhat.com>
5311
5312 * gdbarch.h: Regenerate.
5313
627054c8
AC
53142002-06-01 Andrew Cagney <ac131313@redhat.com>
5315
5316 * MAINTAINERS: Add everyone to write-after-approval list.
5317
4f460812
AC
53182002-06-01 Andrew Cagney <ac131313@redhat.com>
5319
5320 * stack.c (frame_info): Use frame_register_unwind instead of
5321 saved_regs. Mention when the SP is on the stack or in a register.
5322
5323 * frame.h (frame_register_unwind_ftype): Define. Document.
5324 (struct frame_info): Add field register_unwind and
5325 register_unwind_cache.
5326 (frame_register_unwind): Declare.
5327 (generic_unwind_get_saved_register): Declare.
5328
5329 * frame.c (frame_register_unwind): New function.
5330 (generic_unwind_get_saved_register): New function.
5331
5332 * blockframe.c (generic_call_dummy_register_unwind): New function.
5333 (frame_saved_regs_register_unwind): New function.
5334 (set_unwind_by_pc): New function.
5335 (create_new_frame): New function.
5336 (get_prev_frame): New function.
5337
de888f76
AC
53382002-05-30 Andrew Cagney <ac131313@redhat.com>
5339
5340 * a29k-share/: Delete directory.
5341 * remote-vx29k.c: Delete file.
5342
2f2c3626
JT
53432002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5344
5345 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5346 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5347
9ce5c36a
JT
53482002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5349
5350 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5351 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5352 (sparc64nbsd-nat.o)
5353 (sparcnbsd-nat.o)
5354 (sparcnbsd-tdep.o): New dependency lists.
5355 * NEWS: Note new UltraSPARC NetBSD native configuration.
5356 * configure.host (sparc64-*-netbsd*): New host.
5357 * configure.tgt (sparc-*-netbsdelf*)
5358 (sparc-*-netbsd*): Set gdb_target to nbsd.
5359 (sparc64-*-netbsd*): New target.
5360 * sparc64nbsd-nat.c: New file.
5361 * sparcnbsd-nat.c: New file.
5362 * sparcnbsd-tdep.c: New file.
5363 * sparcnbsd-tdep.h: New file.
5364 * config/sparc/nbsd.mt: New file.
5365 * config/sparc/nbsd64.mh: New file.
5366 * config/sparc/nbsd64.mt: New file.
5367 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5368 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5369 (HOST_IPC): Remove.
5370 * config/sparc/nbsdaout.mt: Remove.
5371 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5372 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5373 (HOST_IPC): Remove.
5374 * config/sparc/nbsdelf.mt: Remove.
5375 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5376 sparc-nat.c compatiblity defines.
5377 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5378 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5379 * config/sparc/tm-nbsd64.h: New file.
5380 * config/sparc/tm-nbsdaout.h: Remove.
5381 * config/sparc/xm-nbsd.h: Remove.
5382
ef3cf062
JT
53832002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5384
5385 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5386 * sparc-tdep.c: Include osabi.h.
5387 (gdbarch_tdep): Add osabi member.
5388 (_initialize_sparc_tdep): Use gdbarch_register.
5389 (sparc_gdbarch_init): Use generic OS ABI framework.
5390 (sparc_dump_tdep): New function.
5391
ee8ff470
KB
53922002-05-30 Kevin Buettner <kevinb@redhat.com>
5393
5394 * corefile.c (do_captured_read_memory_integer): Return non-zero
5395 result.
5396 (safe_read_memory_integer): Copy result of memory read when
5397 status is non-zero. Also, add comments.
5398
7b112f9c
JT
53992002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5400
5401 * Makefile.in (ppc_tdep_h): Define.
5402 (ppc-linux-nat.o)
5403 (ppc-linux-tdep.o)
5404 (rs6000-tdep.o): Use $(ppc_tdep_h).
5405 (ppc-sysv-tdep.o)
5406 (ppcnbsd-nat.o)
5407 (ppcnbsd-tdep.o): New dependency lists.
5408 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5409 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5410 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5411 (ppc_sysv_abi_broken_use_struct_convention)
5412 (ppc_sysv_abi_use_struct_convention)
5413 (ppc_sysv_abi_push_arguments): Move to...
5414 * ppc-sysv-tdep.c: ...here.
5415 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5416 * rs6000-tdep.c (process_note_abi_tag_sections)
5417 (get_elfosabi): Remove.
5418 (rs6000_gdbarch_init): Use generic OS ABI framework.
5419 (rs6000_dump_tdep): New function.
5420 (_initialize_rs6000_tdep): Use gdbarch_register.
5421 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5422 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5423 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5424 of ppc-linux-tdep.o.
5425 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5426 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5427 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5428 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5429 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5430 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5431
480dd42a
JB
54322002-05-29 Jim Blandy <jimb@redhat.com>
5433
5434 * macroscope.c (default_macro_scope): Put `void' in empty argument
5435 list.
5436
4182591f
AC
54372002-05-29 Andrew Cagney <ac131313@redhat.com>
5438
5439 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5440 * arch-utils.c: Include "sim-regno.h".
5441 * gdbarch.sh: Don't include "sim-regno.h".
5442 * gdbarch.h, gdbarch.c: Regenerate.
5443 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5444 here.
5445 * arch-utils.h (legacy_register_sim_regno): To here.
5446 * remote-sim.c (legacy_register_sim_regno): Move function from
5447 here.
5448 * arch-utils.c (legacy_register_sim_regno): To here.
5449
8238d0bf
AC
54502002-05-28 Andrew Cagney <ac131313@redhat.com>
5451
5452 * sim-regno.h: New file.
5453 * Makefile.in (sim_regno_h): Define.
5454 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5455 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5456 (legacy_register_sim_regno): New function.
5457 (one2one_register_sim_regno): New function.
5458 (gdbsim_fetch_register): Rewrite.
5459 (gdbsim_store_register): Only store a register when
5460 REGISTER_SIM_REGNO is valid.
5461 * d10v-tdep.c: Include "sim-regno.h".
5462 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5463 (d10v_ts3_register_sim_regno): Ditto.
5464 * gdbarch.sh: Include "sim-regno.h".
5465 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5466 * gdbarch.h, gdbarch.c: Regenerate.
5467 * arch-utils.h (default_register_sim_regno): Delete declaration.
5468 * arch-utils.c (default_register_sim_regno): Delete function.
5469
485721b1
JT
54702002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5471
5472 * ppcnbsd-nat.c: Rewrite.
5473 * ppcnbsd-tdep.c: New file.
5474 * ppcnbsd-tdep.h: New file.
5475 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5476 solib.o, and solib-svr4.o.
5477 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5478 nbsd-tdep.o, and corelow.o.
5479
697f244d
AC
54802002-05-28 Andrew Cagney <ac131313@redhat.com>
5481
5482 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5483 `tr' and `sed'. Mention that `broken' targets are not expected to
5484 build.
5485
f08caad1 54862002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5487
5488 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5489 Let PC point right after the prologue before looking up symbols.
5490
3139facc
MH
54912002-05-27 Martin M. Hunt <hunt@redhat.com>
5492
5493 * i386-tdep.c (i386_register_virtual_type): Return
5494 builtin_type_vec128i for SSE registers.
5495
5496 * gdbtypes.h (builtin_type_vec128i): Declare.
5497
5498 * gdbtypes.c (build_builtin_type_vec128i): New function.
5499 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5500 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5501 (build_gdbtypes): Initialize new builtin vector types.
5502 (_initialize_gdbtypes): Register new vector types with gdbarch.
5503
6e3ba3b8
JT
55042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5505
5506 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5507 since it has been multi-arch'd.
5508 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5509 Move Alpha and VAX multi-arch news entries to same section
5510 as other multi-arch news.
5511
93d5585d
JT
55122002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5513
5514 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5515 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5516 static. Rename some register numbers to put them in ns32k-tdep
5517 private namespace.
5518 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5519 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5520 functions.
5521 (_initialize_ns32k_tdep): Use gdbarch_register.
5522 * ns32k-tdep.h: New file.
5523 * ns32knbsd-tdep.c: New file.
5524 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5525 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5526 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5527 REGISTER_BYTES, REGISTER_BYTE): Remove.
5528 * config/ns32k/tm-ns32k.h: New file.
5529 * config/ns32k/tm-umax.h: Remove.
5530
efb2c70e
JT
55312002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5532
5533 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5534 ns32k_store_struct_return, ns32k_extract_return_value,
5535 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5536 functions.
5537 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5538 ns32k_saved_pc_after_call.
5539 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5540 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5541 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5542 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5543 ns32k_extract_struct_value_address.
5544
7bcc927b
JT
55452002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5546
5547 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5548 ns32k_fix_call_dummy): New.
5549 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5550 ns32k_call_dummy_words.
5551 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5552 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5553 CALL_DUMMY_NARGS): Remove.
5554 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5555
78f9d765
JT
55562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5557
5558 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5559 ns32k_frame_saved_pc, ns32k_frame_args_address,
5560 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5561 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5562 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5563 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5564 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5565 (BREAKPOINT): Remove..
5566 (FRAME_CHAIN): Define as ns32k_frame_chain.
5567 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5568 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5569 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5570 (FRAME_FIND_SAVED_REGS): Remove.
5571 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5572 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5573 (POP_FRAME): Define as ns32k_pop_frame.
5574
f2c762e0
JT
55752002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5576
5577 * ns32k-tdep.c (ns32k_register_byte_32082,
5578 ns32k_register_byte_32382, ns32k_register_raw_size,
5579 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5580 functions.
5581 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5582 ns32k_register_byte_32382.
5583 * config/ns32k/tm-umax.h: Update copyright years.
5584 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5585 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5586 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5587 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5588 (ns32k_get_enter_addr): Fix prototype.
5589
af137673
JT
55902002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5591
5592 * ns32k-tdep.c: Update copyright years.
5593 (ns32k_register_name_32082): New function.
5594 (ns32k_register_name_32382): Ditto.
5595 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5596 (REGISTER_NAME): Define as ns32k_register_name_32382.
5597 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5598 (REGISTER_NAME): Define as ns32k_register_name_32082.
5599
a8bc7b56
JB
56002002-05-24 Jim Blandy <jimb@redhat.com>
5601
5602 * dwarf2read.c (free_line_header): Use xfree, not free.
5603
83a45910
JT
56042002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5605
5606 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5607 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5608
0db71247
AC
56092002-05-23 Andrew Cagney <ac131313@redhat.com>
5610
5611 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5612
b9e5e4dd
AC
56132002-05-23 Andrew Cagney <ac131313@redhat.com>
5614
5615 From Ross Alexander at NEC Europe:
5616 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5617
de530e84
MS
56182002-05-23 Michael Snyder <msnyder@redhat.com>
5619
5620 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5621 for input, rather than parse_and_eval_address.
5622
b91b96f4
AC
56232002-05-23 Andrew Cagney <ac131313@redhat.com>
5624
5625 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5626 * Makefile.in (sim_d10v_h): Update definition.
5627
8b279e7a
AC
56282002-05-24 Andrew Cagney <cagney@redhat.com>
5629
5630 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5631 change `2002-05-22 Michael Snyder' below.
5632 (d10v_push_arguments): Ditto.
5633 (d10v_extract_return_value): Ditto.
5634
0a3d0425
JB
56352002-05-23 Jim Blandy <jimb@redhat.com>
5636
5637 * macrotab.c (check_for_redefinition): Don't complain if the new
5638 definition is the same as the previous one. Take more arguments
5639 to allow the comparison.
5640 (macro_define_object, macro_define_function): Pass more arguments
5641 to check_for_redefinition.
5642
78eac43e
MS
56432002-05-22 Michael Snyder <msnyder@redhat.com>
5644
5645 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5646 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5647 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5648 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5649 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5650 Add a temp variable to save a call (and a memory read).
5651 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5652 if possible (so that PC_IN_CALL_DUMMY will work).
5653
9bc1edb8
CV
56542002-05-22 Corinna Vinschen <vinschen@redhat.com>
5655
5656 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5657
005ef3d2
ML
56582002-05-22 Michal Ludvig <mludvig@suse.cz>
5659
5660 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5661 fde->cie_ptr.
5662 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5663 (dwarf2_build_frame_info): Add offset to fde->initial_location
5664 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5665 (execute_stack_op): Change type of 'result' from ULONGEST to
5666 CORE_ADDR.
005ef3d2 5667
fcf4f891
JT
56682002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5669
5670 * config/alpha/tm-nbsd.h: Include solib.h.
5671
cfef91e4
JT
56722002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5673
5674 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5675 assumptions about the host's byte order.
5676
9964235a
JT
56772002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5678
5679 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5680 to dependency list.
5681 * alphanbsd-tdep.c: Include solib-svr4.h.
5682 * shnbsd-tdep.c: Ditto.
5683
9eeef8ef
JT
56842002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5685
5686 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5687 nbsd-tdep.h to dependency list.
5688 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5689 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5690 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5691 nbsdaout.mh and nbsdelf.mh consistently.
5692 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5693 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5694 nbsdaout.mt and nbsdelf.mh consistently.
5695 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5696 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5697 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5698 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5699 a.out shared library stuff from here...
5700 * config/nm-nbsdaout.h: ...to here.
5701 * config/tm-nbsd.h: Remove.
5702 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5703 * config/arm/nbsd.mh: Remove.
5704 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5705 nbsd-tdep.o.
5706 * config/arm/nbsdaout.mh: New file.
5707 * config/arm/nbsdelf.mh: New file.
5708 * config/arm/nm-nbsdaout.h: New file.
5709 * config/i386/nbsd.mh: Remove.
5710 * config/i386/nbsd.mt: Remove.
5711 * config/i386/nbsdaout.mh: New file.
5712 * config/i386/nbsdaout.mt: New file.
5713 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5714 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5715 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5716 i386_register_u_addr): Remove.
5717 * config/i386/nm-nbsdaout.h: New file.
5718 * config/i386/nm-nbsdelf.h: Remove.
5719 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5720 (USE_STRUCT_CONVENTION): Remove.
5721 * config/i386/tm-nbsdaout.h: New file.
5722 * config/i386/tm-nbsdelf.h: Remove.
5723 * config/m68k/nbsd.mh: Remove.
5724 * config/m68k/nbsd.mt: Remove.
5725 * config/m68k/nbsdaout.mh: New file.
5726 * config/m68k/nbsdaout.mt: New file.
5727 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5728 * config/m68k/nm-nbsdaout.h: New file.
5729 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5730 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5731 * config/ns32k/nbsd.mh: Remove.
5732 * config/ns32k/nbsd.mt: Remove.
5733 * config/ns32k/nbsdaout.mh: New file.
5734 * config/ns32k/nbsdaout.mt: New file.
5735 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5736 * config/ns32k/nm-nbsdaout.h: New file.
5737 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5738 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5739 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5740 (SVR4_SHARED_LIBS): Remove.
5741 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5742 * config/sparc/nbsd.mh: Remove.
5743 * config/sparc/nbsd.mt: Remove.
5744 * config/sparc/nbsdaout.mh: New file.
5745 * config/sparc/nbsdaout.mt: New file.
5746 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5747 * config/sparc/nbsdelf.mt: New file.
5748 * config/sparc/nm-nbsdaout.h: New file.
5749 * config/sparc/nm-nbsdelf.h: Remove.
5750 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5751 * config/sparc/tm-nbsdaout.h: New file.
5752
257ce470
JT
57532002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5754
5755 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5756 mipsnbsd-tdep.c
5757 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5758
76a6d5fe
JT
57592002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5760
5761 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5762 shnbsd-nat.c.
5763 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5764
45888261
JT
57652002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5766
5767 * NEWS: Note new MIPS NetBSD native configuration.
5768 * configure.host (mips*-*-netbsd*): New host.
5769 * configure.tgt (mips*-*-netbsd*): New target.
5770 * mipsnbsd-nat.c: New file.
5771 * mipsnbsd-tdep.c: New file.
5772 * mipsnbsd-tdep.h: New file.
5773 * config/mips/nbsd.mh: New file.
5774 * config/mips/nbsd.mt: New file.
5775 * config/mips/nm-nbsd.h: New file.
5776 * config/mips/tm-nbsd.h: New file.
5777
70f80edf
JT
57782002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5779
5780 * Makefile.in (SFILES): Add osabi.c.
5781 (COMMON_OBS): Add osabi.o.
5782 (osabi.o): New dependency list.
5783 * osabi.c: New file.
5784 * osabi.h: New file.
5785 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5786
5787 * Makefile.in (alpha_tdep_h): Define and use instead of
5788 alpha-tdep.h.
5789 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5790 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5791 Remove.
5792 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5793 * alpha-tdep.h: Include osabi.h.
5794 (alpha_abi): Remove.
5795 (gdbarch_tdep): Use generic OS ABI framework.
5796 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5797 gdbarch_register_osabi.
5798 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5799 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5800 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5801
5802 * Makefile.in (sh_tdep_h): Add osabi.h.
5803 * sh-tdep.h (sh_osabi): Remove.
5804 (gdbarch_tdep): Use generic OS ABI framework.
5805 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5806 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5807 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5808 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5809
5810 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5811 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5812 gdbarch_register_osabi.
5813 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5814 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5815 (get_elfosabi): Rename to...
5816 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5817 ABI framework support routines.
5818 (arm_gdbarch_init): Use generic OS ABI framework.
5819 (arm_dump_tdep): Likewise.
5820 (_initialize_arm_tdep): Likewise.
5821 * arm-tdep.h: Include osabi.h.
5822 (arm_abi): Remove.
5823 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5824 osabi member.
5825 (arm_gdbarch_register_os_abi): Remove prototype.
5826 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5827 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5828
5829 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5830 * mips-tdep.c: Include osabi.h.
5831 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5832 OS ABI framework.
5833
d194345b
KH
58342002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5835
5836 * h8300-tdep.c: Fix formatting.
5837
70c6b0d1
EZ
58382002-05-20 Elena Zannoni <ezannoni@redhat.com>
5839
5840 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5841 printing vector registers.
5842
165b8e33
AC
58432002-05-19 Andrew Cagney <ac131313@redhat.com>
5844
5845 From Fernando Nasser:
5846 * remote.c (remote_async_open_1): Re-throw the exception when the
5847 connection fails.
5848 (remote_cisco_open): Ditto.
5849 (remote_open_1): Ditto.
5850
36918e70
AC
58512002-05-19 Andrew Cagney <ac131313@redhat.com>
5852
5853 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5854 (remote_start_remote): Add uiout parameter. Pass through to
5855 remote_start_remote_dummy.
5856 (remote_open_1): Use catch_exception instead of catch_errors.
5857 (remote_async_open_1): Ditto.
5858 (remote_cisco_open): Ditto.
5859
ae44c0c4
AC
58602002-05-19 Andrew Cagney <ac131313@redhat.com>
5861
5862 * remote.c (remote_start_remote): Replace PTR with void pointer.
5863 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5864 static.
5865
8efe637d
AC
58662002-05-18 Andrew Cagney <ac131313@redhat.com>
5867
5868 * gdb_indent.sh: Allow the script to be run in the sim directory.
5869
2f1b5984
MK
58702002-05-18 Mark Kettenis <kettenis@gnu.org>
5871
f0f625e2
MK
5872 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5873 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5874
2f1b5984
MK
5875 * corelow.c (core_open): Only call set_gdbarch_from_file if
5876 exec_bfd is NULL.
5877
fc974602
AV
58782002-05-17 Andrey Volkov <avolkov@transas.com>
5879
5880 * h8300-tdep.c: Add support of EXR register
5881 * config/h8300/tm-h8300.h: Ditto.
5882
906709f4
AV
58832002-05-17 Andrey Volkov <avolkov@transas.com>
5884
5885 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5886
6e591d68
AV
58872002-05-17 Andrey Volkov <avolkov@transas.com>
5888
5889 * h8300-tdep.c: Change literal regnums to REGNO.
5890
84f0252a
JB
58912002-05-17 Jim Blandy <jimb@redhat.com>
5892
e0e9281e
JB
5893 * NEWS: Note addition of macro support.
5894
84f0252a
JB
5895 Expand preprocessor macros in C expressions.
5896 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5897 (scan_macro_expansion, scanning_macro_expansion,
5898 finished_macro_expansion): New function declarations.
5899 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5900 variable declarations.
5901 * parser-defs.h (expression_context_pc): New declaration.
5902 * parse.c (expression_context_pc): New variable.
5903 (parse_exp_1): Set expression_context_pc, as well as
5904 expression_context_block.
5905 * c-exp.y (yylex): If we're not already reading the result of a
5906 macro expansion, try to macro-expand the next token. When we're
5907 done scanning a macro expansion, switch back to the mainline text.
5908 Commas and `if's in a macro's expansion don't terminate the input.
5909 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5910 (macro_original_text, macro_expanded_text,
5911 expression_macro_lookup_func, expression_macro_lookup_baton): New
5912 variables.
5913 (scan_macro_expansion, scanning_macro_expansion,
5914 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5915 c_preprocess_and_parse): New functions.
5916 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5917 c_preprocess_and_parse, instead of c_parse.
5918 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5919 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5920
1c509ca8
JR
5921Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5922
5923 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5924 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5925 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5926
2250ee0c
CV
59272002-05-17 Corinna Vinschen <vinschen@redhat.com>
5928
5929 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5930
ab3b8126
JT
59312002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5932
5933 * Makefile.in (sh_tdep_h): Define and use.
5934 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5935 register enum): Move to...
5936 * * sh-tdep.h: ...here.
5937 * sh-tdep.c: Include sh-tdep.h.
5938 * sh3-rom.c: Likewise.
5939 * shnbsd-tdep.c: Likewise.
5940
ed9d4749
MS
59412002-05-16 Michael Snyder <msnyder@redhat.com>
5942
5943 * arm-tdep.c: Spelling fix in comment.
5944
2e276125
JB
59452002-05-16 Jim Blandy <jimb@redhat.com>
5946
6821892e
JB
5947 Add commands for manually expanding macros and showing their
5948 definitions.
5949 * macrocmd.c, macroscope.c, macroscope.h: New files.
5950 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5951 (macroscope_h): New variable.
5952 (HFILES_NO_SRCDIR): Add macroscope.h.
5953 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5954 (macroscope.o, macrocmd.o): New rules.
5955
2e276125
JB
5956 Teach the Dwarf 2 reader to read macro information.
5957 * dwarf2read.c: #include "macrotab.h".
5958 (dwarf_macinfo_buffer): New variable.
5959 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5960 dwarf_macinfo_size.
5961 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5962 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5963 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5964 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5965 dwarf2_macro_spaces_in_definition): New complaints.
5966 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5967 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5968 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5969 the partial symbol table.
5970 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5971 from what's recorded in the partial symbol table.
5972 (read_file_scope): If the compilation unit has a
5973 `DW_AT_macro_info' attribute, read its macro information.
5974 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5975
2f53fe6c
DJ
59762002-05-16 Daniel Jacobowitz <drow@mvista.com>
5977
5978 Fix PR gdb/546
5979 * ser-tcp.c: Don't include <netinet/udp.h>.
5980
2be99286
SC
59812002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5982
5983 * MAINTAINERS: Update my email address.
5984
c9af212b 59852002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5986
5987 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5988 include file of the same name.
5989
bf5f1a52
CV
59902002-05-16 Corinna Vinschen <vinschen@redhat.com>
5991
5992 * configure.tgt: Mark v850 as multi-arched.
5993 * config/v850/tm-v850.h: Remove file.
5994 * config/v850/v850.mt: Eliminate TM_FILE.
5995
435e042a
CV
59962002-05-16 Corinna Vinschen <vinschen@redhat.com>
5997
5998 * v850-tdep.c: Full multi-arch.
5999 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6000 Define GDB_MULTI_ARCH to 2.
6001
9819c6c8
PM
60022002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6003
6004 * p-exp.y (current_type): New static variable.
6005 Carries the type of the expression at the position that is parsed.
6006 (push_current_type, pop_current_type): Two new functions. Used
6007 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6008 (search_field): New static variable. Set to one after parsing a point
6009 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6010 (FIELDNAME): New token. After a point only a token belonging to
6011 current_type type definition is allowed.
6012 (all over token rules): reset and change current_type according
6013 to rules.
6014 (exp '[' rule): insert implicit array index field if
6015 exp is a pascal string type.
6016
3a06899a
CV
60172002-05-16 Corinna Vinschen <vinschen@redhat.com>
6018
6019 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6020 frame info. Use frame_info's saved_regs instead of matching member
6021 in extra_frame_info throughout.
6022 (v850_frame_init_saved_regs): New function.
6023 (v850_init_extra_frame_info): Move most functionality into
6024 v850_frame_init_saved_regs().
6025 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6026 (v850_frame_find_saved_regs): Remove declaration.
6027 (FRAME_FIND_SAVED_REGS): Remove definition.
6028 (v850_frame_init_saved_regs): Add declaration.
6029 (FRAME_INIT_SAVED_REGS): Add definition.
6030
6ed14b0e
CV
60312002-05-16 Corinna Vinschen <vinschen@redhat.com>
6032
6033 * v850-tdep.c: Begin multi-arch'ing v850.
6034 (v850_target_architecture_hook): Remove function.
6035 (v850_gdbarch_init): New function. Add code previously in
6036 v850_target_architecture_hook().
6037 (_initialize_v850_tdep): Don't set target_architecture_hook.
6038 Call register_gdbarch_init() instead.
6039
42725910
DJ
60402002-05-16 Daniel Jacobowitz <drow@mvista.com>
6041
6042 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6043 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6044 (fixup_class_method_type): Likewise.
6045
99d9066e
JB
60462002-05-15 Jim Blandy <jimb@redhat.com>
6047
6048 Add macro structures to GDB's symbol tables. Nobody puts anything
6049 in them yet.
6050 * symtab.h (struct symtab): New member: `macro_table'.
6051 * buildsym.h (pending_macros): New global variable.
6052 * buildsym.c: #include "macrotab.h".
6053 (buildsym_init): Initialize `pending_macros'.
6054 (end_symtab): If we found macro information while reading a CU's
6055 debugging info, do build a symtab structure for it. Make the
6056 symtab point to the macro information, and clear the
6057 `pending_macros' pointer which held it while we were reading the
6058 debug info.
6059 (really_free_pendings): Free any pending macro table.
6060 * objfiles.h (struct objfile): New member: `macro_cache'.
6061 * objfiles.c (allocate_objfile): Set allocate and free functions
6062 for the macro cache's objstack.
6063 (free_objfile): Empty the macro cache's obstack.
6064 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6065 set new allocate and free functions for it.
6066 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6067 free functions for the macro cache's objstack. (Why is this
6068 function building its own objfile?)
6069 * symmisc.c (print_objfile_statistics): Print statistics on the
6070 macro bcache.
6071 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6072
c899585b
RE
60732002-05-15 Richard Earnshaw <rearnsha@arm.com>
6074
6075 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6076 (REGISTER_U_ADDR): Delete definition.
6077 (arm_register_u_addr): Delete declaration.
6078
a6cdd8c5
RE
60792002-05-15 Richard Earnshaw <rearnsha@arm.com>
6080
6081 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6082 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6083
c97dcfc7
AC
60842002-05-14 Andrew Cagney <ac131313@redhat.com>
6085
6086 * regcache.c (register_valid): Revise comments refering to "Not
6087 available" and "unavailable".
6088 * frame.c (frame_register_read): Ditto.
6089 * findvar.c (value_of_register): Ditto.
6090
93021b7d
AC
60912002-05-15 Andrew Cagney <cagney@redhat.com>
6092
6093 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6094 (remote-sim.o): Update dependencies.
6095 (d10v-tdep.o): Specify dependencies.
6096 (sim_d10v_h): Define.
6097
a86bc61c
JB
60982002-05-14 Jim Blandy <jimb@redhat.com>
6099
6100 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6101 * macrotab.c (macro_lookup_inclusion, find_definition,
6102 new_macro_table): Same.
6103
6104 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6105 not `! strcmp ()'. This is a dubious improvement.
6106 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6107
6108 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6109 although it's not necessary, to avoid a warning.
6110
2fdde8f8
DJ
61112002-05-14 Daniel Jacobowitz <drow@mvista.com>
6112
6113 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6114 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6115 TYPE_INSTANCE_FLAGS.
6116 (struct main_type): New.
6117 (struct type): Move most members to struct main_type. Change
6118 cv_type and as_type to new type_chain member. Add instance_flags.
6119 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6120 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6121 (finish_cv_type): Remove prototype.
6122 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6123 Set TYPE_CHAIN.
6124 (alloc_type_instance): New function.
6125 (smash_type): New function.
6126 (make_pointer_type, make_reference_type, make_function_type)
6127 (smash_to_member_type, smash_to_method_type): Call smash_type.
6128 (make_qualified_type): New function.
6129 (make_type_with_address_space): Call make_qualified_type.
6130 (make_cv_type): Likewise.
6131 (finish_cv_type): Remove unnecessary function.
6132 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6133 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6134 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6135 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6136 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6137 * hpread.c (hpread_read_struct_type): Likewise.
6138 * stabsread.c (read_struct_type): Likewise.
6139
843fedf4
EZ
61402002-05-14 Elena Zannoni <ezannoni@redhat.com>
6141
6142 * configure.tgt: Add a catch all sh* target, for cases like
6143 sh[2,3,4]-elf and sh-hms.
6144
05a6c72c
KS
61452002-05-14 Keith Seitz <keiths@redhat.com>
6146
6147 * event-loop.c (create_file_handler): Don't do anything but
6148 update data when we are given a fd which we are already
6149 monitoring.
6150
5d085aaf
ML
61512002-05-14 Michal Ludvig <mludvig@suse.cz>
6152
6153 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6154 (update_context): Use __func__ in warnings.
6155
9db8d71f
DJ
61562002-05-14 Daniel Jacobowitz <drow@mvista.com>
6157
6158 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6159 and tcp_close to net_open and net_close.
6160 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6161 using UDP if requested. Don't try to disable Nagle on UDP
6162 sockets.
6163 * remote.c (remote_serial_open): New function. Warn about UDP.
6164 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6165
5dbc6baa
EZ
61662002-05-13 Elena Zannoni <ezannoni@redhat.com>
6167
6168 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6169
cc3023f7
EZ
61702002-05-13 Elena Zannoni <ezannoni@redhat.com>
6171
6172 * configure.tgt: Remove sh-hms target.
6173 * MAINTAINERS: Don't list sh-hms as a separate target.
6174
ec2bcbe7
JB
61752002-05-13 Jim Blandy <jimb@redhat.com>
6176
6177 Add first preprocessor macro-expansion files.
6178 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6179 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6180 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6181 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6182 (COMMON_OBS): Add macrotab.o, macroexp.o.
6183 (macroexp.o, macrotab.o): New rules.
6184
6d531722
AC
61852002-05-13 Andrew Cagney <ac131313@redhat.com>
6186
6187 * config/m88k/tm-m88k.h: Update copyright.
6188 (m88k_target_write_pc): Declare
6189 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6190 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6191 (SHIFT_INST_REGS): Update definition.
6192 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6193 using old definition of TARGET_WRITE_PC.
6194 * regcache.c (generic_target_write_pc): Delete code handling
6195 NNPC_REGNUM.
6196 * gdbarch.sh (NNPC_REGNUM): Delete.
6197 * gdbarch.h, gdbarch.c: Regenerate.
6198
3e3f2739
RE
61992002-05-13 Richard Earnshaw <rearnsha@arm.com>
6200
6201 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6202 builtin reg number.
6203
0004e5a2
DJ
62042002-05-13 Daniel Jacobowitz <drow@mvista.com>
6205
6206 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6207 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6208 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6209 access macros.
6210 * c-typeprint.c (cp_type_print_method_args): Likewise.
6211 (c_type_print_args): Likewise.
6212 * d10v-tdep.c (d10v_push_arguments): Likewise.
6213 (d10v_extract_return_value): Likewise.
6214 * expprint.c (print_subexp): Likewise.
6215 * gdbtypes.c (lookup_primitive_typename): Likewise.
6216 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6217 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6218 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6219 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6220 (TYPE_VECTOR): Likewise.
6221 * hpread.c (hpread_read_struct_type)
6222 (fix_static_member_physnames, fixup_class_method_type)
6223 (hpread_type_lookup): Likewise.
6224 * mdebugread.c (parse_symbol, parse_type): Likewise.
6225 * p-lang.c (is_pascal_string_type): Likewise.
6226 * valops.c (hand_function_call): Likewise.
6227 * x86-64-tdep.c (classify_argument): Likewise.
6228
6229 * hpread.c (hpread_read_function_type)
6230 (hpread_read_doc_function_type): Call replace_type.
6231 * dstread.c (create_new_type): Delete.
6232 (decode_dst_structure, process_dst_function): Call alloc_type.
6233 Use type access macros.
6234
dff95cc7
MK
62352002-05-12 Mark Kettenis <kettenis@gnu.org>
6236
6237 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6238 the're not supported by the current architecture.
6239 (i387_fill_fxsave): Likewise.
6240
bbcd32ad
FF
62412002-05-12 Fred Fish <fnf@redhat.com>
6242
6243 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6244 sect_index_xxx members to index the first slot in section_offsets
6245 if all of the section_offsets are zero.
6246
89cf4787
MK
62472002-05-12 Mark Kettenis <kettenis@gnu.org>
6248
6249 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6250 checked in with last change.
6251
1f77ffc5
MK
62522002-05-12 Mark Kettenis <kettenis@gnu.org>
6253
6254 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6255 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6256 config.sub.
6257
89b8b4a9
DJ
62582002-05-12 Daniel Jacobowitz <drow@mvista.com>
6259
6260 * Makefile.in: Update dependencies.
6261
14a5e767
AC
62622002-05-11 Andrew Cagney <ac131313@redhat.com>
6263
6264 * language.c (local_hex_string_custom): Simplify. Do not depend
6265 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6266
6267 * memattr.c (mem_info_command): Replace calls to
6268 longest_local_hex_string and longest_local_hex_string_custom.
6269 * buildsym.c (make_blockvector): Ditto.
6270 * solib.c (info_sharedlibrary_command): Ditto.
6271 * tracepoint.c (tracepoints_info): Ditto.
6272 * symtab.c (print_msymbol_info): Ditto.
6273
6274 * language.c (local_hex_string): Delete.
6275 (local_hex_string_custom): Delete.
6276 (longest_local_hex_string): Rename to local_hex_string.
6277 (longest_local_hex_string_custom): Rename to
6278 local_hex_string_custom.
6279 * language.h (local_hex_string): Change parameter type to LONGEST.
6280 (local_hex_string_custom): Ditto.
6281 (longest_local_hex_string): Delete declaration.
6282 (longest_local_hex_string_custom): Ditto.
6283
6284 * solib.c: Update copyright.
6285 * memattr.c: Update copyright.
6286
13d01224
AC
62872002-05-11 Andrew Cagney <ac131313@redhat.com>
6288
6289 * arch-utils.h (legacy_register_to_value): Declare.
6290 (legacy_value_to_register): Declare.
6291 (legacy_convert_register_p): Declare.
6292 * arch-utils.c (legacy_register_to_value): New function.
6293 (legacy_value_to_register): New function.
6294 (legacy_convert_register_p): New function.
6295
6296 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6297 (VALUE_TO_REGISTER): Define.
6298 (CONVERT_REGISTER_P): Define.
6299 * gdbarch.h, gdbarch.c: Regenerate.
6300
6301 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6302 VALUE_TO_REGISTER.
6303 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6304 CONVERT_REGISTER_P.
6305
4a1970e4
DJ
63062005-05-11 Daniel Jacobowitz <drow@mvista.com>
6307 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6308
6309 * Makefile.in: Update dependencies for valops.c.
6310 * valops.c: Include "gdb_assert.h".
6311 (typecmp): Skip THIS parameter to methods.
6312 (find_method_list): Remove static_memfuncp argument,
6313 update callers. Check for stub methods.
6314 (find_value_oload_method_list): Don't set *static_memfuncp.
6315 (find_overload_match): Don't check for stub methods. Assert
6316 that methods are not stubbed. Handle static methods.
6317 (value_find_oload_method_list): Remove static_memfuncp argument.
6318 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6319 to the argument list for static stub methods.
6320 * value.h (value_find_oload_method_list): Update prototype.
6321
b2e75d78
AC
63222002-05-11 Andrew Cagney <ac131313@redhat.com>
6323
6324 * arch-utils.h (generic_register_size): Declare.
6325 (generic_register_raw_size, generic_register_virtual_size): Delete
6326 declarations.
6327 * arch-utils.c (generic_register_raw_size): Delete.
6328 (generic_register_size): New function.
6329 (generic_register_virtual_size): Delete.
6330
6331 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6332 default generic_register_size.
6333 * gdbarch.h, gdbarch.c: Re-generate.
6334
6335 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6336 register_virtual_size.
6337 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6338 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6339
451fbdda
AC
63402002-05-11 Andrew Cagney <ac131313@redhat.com>
6341
6342 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6343 * gdbarch.h, gdbarch.c: Regenerate.
6344 * gnu-v3-abi.c: Update copyright.
6345 (vtable_address_point_offset): Update.
6346 (gnuv3_rtti_type): Update.
6347 (gnuv3_baseclass_offset): Update.
6348 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6349 (init_fetch_link_map_offsets): Update.
6350 * remote.c (get_remote_state): Update.
6351
6d2f5cea
DJ
63522002-05-11 Daniel Jacobowitz <drow@mvista.com>
6353
6354 * TODO: Remove value_headof/value_from_vtable_info comment.
6355 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6356 * values.c (value_headof, value_from_vtable_info): Delete.
6357 * value.h (value_from_vtable_info): Delete prototype.
6358
d2324da4
AC
63592002-05-11 Andrew Cagney <ac131313@redhat.com>
6360
6361 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6362 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6363 $(gdb_regex_h).
6364 (gdb_assert_h): Define.
6365 (gdb_wait_h): Define.
6366 (gdb_regex_h): Define.
6367
5c717440
DJ
63682002-05-11 Daniel Jacobowitz <drow@mvista.com>
6369
6370 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6371 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6372
6c7861b3
JT
63732002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6374
6375 * nbsd-tdep.c: Fix comment.
6376
ea5bc2a6
JT
63772002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6378
6379 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6380 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6381 (nbsd-tdep.o): New dependency list.
6382 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6383 nbsd-tdep.h.
6384 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6385 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6386 * nbsd-tdep.c: New file.
6387 * nbsd-tdep.h: New file.
6388 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6389 nbsd-tdep.h.
6390 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6391 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6392 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6393 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6394
b28da865
JT
63952002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6396
6397 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6398 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6399 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6400 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6401 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6402 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6403
4b8ff1fa
JT
64042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6405
6406 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6407 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6408 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6409 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6410 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6411 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6412 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6413
dfe6eb1f
JT
64142002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6415
6416 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6417 fetch_elfcore_registers to...
6418 * i386nbsd-tdep.c: ...here.
6419 (i386nbsd_use_struct_convention): Rename to...
6420 (i386nbsd_aout_use_struct_convention): ...this.
6421 (i386nbsd_supply_reg): New function.
6422 (i386nbsd_fill_reg): New function.
6423 (fetch_core_registers): Use i386nbsd_supply_reg.
6424 (fetch_elfcore_registers): Likewise.
6425 (_initialize_i386nbsd_tdep): New function.
6426 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6427 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6428 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6429 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6430 (i386nbsd_aout_use_struct_convention): ...this.
6431
20cb8cda
JT
64322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6433
6434 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6435 (store_inferior_registers): Use shnbsd_fill_reg.
6436 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6437 sh_nbsd_supply_register): Collapse into...
6438 (shnbsd_supply_reg): ...this.
6439 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6440 (shnbsd_fill_reg): ...this.
6441 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6442 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6443 (fetch_core_registers): Use shnbsd_supply_reg.
6444 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6445 (sh_nbsd_core_fns): Rename to...
6446 (shnbsd_core_fns): ...this.
6447 (sh_nbsd_elfcore_fns): Rename to...
6448 (shnbsd_elfcore_fns): ...this.
6449 (sh_nbsd_init_abi): Rename to...
6450 (shnbsd_init_abi): ...this.
6451 (_initialize_sh_nbsd_tdep): Rename to...
6452 (_initialize_shnbsd_tdep): ...this.
6453 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6454 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6455 sh_nbsd_fill_register): Remove prototypes.
6456 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6457
e750d25e
JT
64582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6459
6460 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6461 (i387-nat.o): Delete dependency list.
6462 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6463 (x86-64-linux-nat.o): Likewise.
6464 * i387-nat.c: Delete file, moving contents to...
6465 * i387-tdep.c: ...here.
6466 * i387-nat.h: Rename...
6467 * i387-tdep.h: ...to this.
6468 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6469 * i386-linux-nat.c: Likewise.
6470 * i386bsd-nat.c: Likewise.
6471 * i386gnu-nat.c: Likewise.
6472 * i386nbsd-nat.c: Likewise.
6473 * i386v4-nat.c: Likewise.
6474 * x86-64-linux-nat.c: Likewise.
6475 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6476 * config/i386/go32.mh (NATDEPFILES): Likewise.
6477 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6478 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6479 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6480 * config/i386/linux.mh (NATDEPFILES): Likewise.
6481 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6482 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6483 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6484 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6485
1aee598a
JT
64862002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6487
6488 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6489 (alphanbsd-nat.o): Remove dependency list.
6490 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6491 * alphanbsd-nat.c: Delete. Contents moved to...
6492 * alphanbsd-tdep.c: ...here.
6493 (_initialize_alphanbsd_tdep): Register core functions.
6494 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6495
12bcb0fe
JT
64962002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6497
6498 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6499 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6500 (alphanbsd-nat.o): Likewise.
6501 (alphabsd-tdep.o): New dependency list.
6502 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6503 (fill_gregset): Use alphabsd_fill_reg.
6504 (supply_fpregset): Use alphabsd_supply_fpreg.
6505 (fill_fpregset): Use alphabsd_fill_fpreg.
6506 (fetch_inferior_registers): Use struct reg and struct fpreg
6507 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6508 and alphabsd_supply_fpreg.
6509 (store_inferior_registers): Use struct reg and struct fpreg
6510 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6511 and alphabsd_fill_fpreg.
6512 * alphabsd-tdep.c: New file.
6513 * alphabsd-tdep.h: New file.
6514 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6515 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6516 alphabsd_supply_fpreg.
6517 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6518 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6519
361d1df0
EC
65202002-05-11 Eric Christopher <echristo@redhat.com>
6521
6522 * mips-tdep.c (mips_double_register_type): Fix thinko.
6523 (mips_single_register_type): Ditto.
6524 * MAINTAINERS: Add self.
6525
92dd7cee
MK
65262002-05-11 Mark Kettenis <kettenis@gnu.org>
6527
6528 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6529 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6530 right thing on architectures with different endianness and/or
6531 integer sizes.
6532
e27da16d
JT
65332002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6534
6535 From Christian Limpach <chris@Pin.LU>
6536 * configure.in: Change sed expression which comments out
6537 NATDEPFILES to also comment out continuation lines.
6538 * configure: Regenerate.
6539
ddde02bd
EZ
65402002-05-10 Elena Zannoni <ezannoni@redhat.com>
6541
6542 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6543 big patch.
6544
1c922164
EZ
65452002-05-10 Elena Zannoni <ezannoni@redhat.com>
6546
6547 * sh-tdep.c: Include correct file.
6548
283150cd
EZ
65492002-05-10 Elena Zannoni <ezannoni@redhat.com>
6550
6551 New support for sh64-elf (sh5) target.
6552
6553 * configure.tgt: For sh64-elf target, default to sh-elf.
6554
6555 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6556 (struct gdbarch_tdep): Add new fields for new registers and ABI
6557 info.
361d1df0 6558
283150cd
EZ
6559 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6560 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6561 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6562 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6563 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6564 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6565 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6566 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6567 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6568 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6569 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6570 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6571 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6572 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6573 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6574 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6575 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6576 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6577 sign_extend, sh64_nofp_frame_init_saved_regs,
6578 sh64_init_extra_frame_info, sh64_get_saved_register,
6579 sh64_extract_struct_value_address, sh64_pop_frame,
6580 sh64_push_arguments, sh64_extract_return_value,
6581 sh64_store_return_value, sh64_show_media_regs,
6582 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6583 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6584 sh_sh64_register_virtual_type,
6585 sh_sh64_register_convert_to_virtual,
6586 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6587 sh64_register_read, sh64_pseudo_register_write,
6588 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6589 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6590 sh64_do_pseudo_register, sh_compact_do_registers_info,
6591 sh64_do_registers_info, sh_gdbarch_init): New functions.
6592
3117ed25
EZ
65932002-05-10 Elena Zannoni <ezannoni@redhat.com>
6594
6595 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6596
2654e6d4
DJ
65972002-05-10 Daniel Jacobowitz <drow@mvista.com>
6598
6599 * linespec.c (decode_line_1): Check for a double quote after
6600 a filename correctly.
6601
9ab3e532
JB
66022002-05-10 Jim Blandy <jimb@redhat.com>
6603
6604 Properly track the size of the current objfile's .debug_line section.
6605 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6606 (DWARF_LINE_SIZE): New macro.
6607 (dwarf2_build_psymtabs_hard): Record the line section's size in
6608 the partial symbol table.
6609 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6610 symbol table.
6611
126fa72d
PS
66122002-05-10 Petr Sorfa <petrs@caldera.com>
6613
6614 * ia64-tdep.c: Handle breakpoints on L instruction type
6615 in MLX instruction bundle by moving the breakpoint to
6616 the third slot (X instruction type) as L holds only data.
6617
1f077a3e
KB
66182002-05-10 Kevin Buettner <kevinb@redhat.com>
6619
6620 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6621 (process_one_symbol): Complain about discarding local symbols
6622 due to a misplaced N_LBRAC entry.
6623
8120c9d5 66242002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6625
6626 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6627 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6628 decrease the depth we are at, in the case of templates.
361d1df0 6629
67b2c998
DJ
66302002-05-09 Daniel Jacobowitz <drow@mvista.com>
6631
6632 * mips-tdep.c (mips_float_register_type): New function.
6633 (mips_double_register_type): New function.
6634 (mips_print_register): Use them.
6635 (do_fp_register_row): Likewise.
6636
fd326606
DJ
66372002-05-09 Daniel Jacobowitz <drow@mvista.com>
6638
6609d9af 6639 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6640 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6641 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6642
bef35864
MS
66432002-05-09 Michael Snyder <msnyder@redhat.com>
6644
6645 * remote-rdp.c (remote_rdp_can_run): Remove.
6646
c55a3f73
TT
66472002-05-09 Tom Tromey <tromey@redhat.com>
6648
6649 * jv-valprint.c (java_val_print): Handle `char' as a special case
6650 of TYPE_CODE_INT.
6651
b8d5e71d
MS
66522002-05-09 Michael Snyder <msnyder@redhat.com>
6653
6654 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6655 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6656 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6657 str r(0123),[sp,#nn].
361d1df0 6658 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6659 order-independent by placing it in a loop.
6660
e2cd42dd
MS
66612002-05-06 Michael Snyder <msnyder@redhat.com>
6662
6663 * stabsread.c (read_type): Add recognition for new attribute:
6664 "@V;" means that an array type is actually a vector.
6665 This is analogous to the vector flag that's been added to dwarf2.
6666
3ce1502b
MK
66672002-05-09 Mark Kettenis <kettenis@gnu.org>
6668
6669 * i386-tdep.h (i386_abi): New enum.
6670 (struct gdbarch_tdep): Replace os_ident member with abi.
6671 (i386_gdbarch_register_os_abi): New prototype.
6672 * i386-tdep.c (i386_abi_names): New array.
6673 (process_note_abi_tag_sections): Removed.
6674 (process_note_sections): New function.
6675 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6676 (struct i386_abi_handler): New struct.
6677 (i386_abi_handler_list): New variable.
6678 (i386_gdbarch_register_os_abi): New function.
6679 (i386_gdbarch_init): Adapt for the changes given above.
6680
084c156a
DJ
66812002-05-08 Daniel Jacobowitz <drow@mvista.com>
6682
6683 * gregset.h: Say "GNU/Linux".
6684
6599f021
EZ
66852002-05-08 Elena Zannoni <ezannoni@redhat.com>
6686
6687 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6688 (build_gdbtypes): Build builtin_type_v2_float.
6689 (_initialize_gdbtypes): Register new builtin type.
6690
40af4b0c
AC
66912002-05-08 Andrew Cagney <ac131313@redhat.com>
6692
6693 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6694 (clear_gdbarch_swap): New function.
6695 (initialize_non_multiarch): Call.
6696 (gdbarch_update_p): Before calling init(), swap out and clear the
6697 existing architecture.
6698 * gdbarch.c: Regenerate.
6699
4fe84f46
JT
67002002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6701
6702 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6703 alphanbsd-tdep.c.
6704
4015edd1
JT
67052002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6706
6707 * sh-nbsd-nat.c: Rename to...
6708 * shnbsd-nat.c: ...this.
6709 * sh-nbsd-tdep.c: Rename to...
6710 * shnbsd-tdep.c: ...this.
6711 * sh-nbsd-tdep.h: Rename to...
6712 * shnbsd-tdep.h: ...this.
6713 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6714 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6715
0e2bd219
RE
67162002-05-08 Richard Earnshaw <rearnsha@arm.com>
6717
6718 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6719 concatenation for command help messages.
6720
13a38d45
JT
67212002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6722
6723 * NEWS: Note new sh*-*-netbsdelf* configuration.
6724 * configure.host: Set gdb_host_cpu to sh for all sh*.
6725 (sh*-*-netbsdelf*): New host.
6726 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6727 (sh*-*-netbsdelf*): New target.
6728 * sh-nbsd-nat.c: New file.
6729 * sh-nbsd-tdep.c: New file.
6730 * sh-nbsd-tdep.h: New file.
6731 * config/sh/nbsd.mh: New file.
6732 * config/sh/nbsd.mt: New file.
6733 * config/sh/nm-nbsd.h: New file.
6734 * config/sh/tm-nbsd.h: New file.
6735
d658f924
JT
67362002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6737
6738 * sh-tdep.c (sh_osabi_names): Declare.
6739 (process_note_abi_tag_sections): New function.
6740 (get_elfosabi): Ditto.
6741 (sh_gdbarch_register_os_abi): Ditto.
6742 (sh_dump_tdep): Ditto.
6743 _initialize_sh_tdep): Use gdbarch_register to register
6744 sh_gdbarch_init and sh_dump_tdep.
6745 * config/sh/tm-sh.h (sh_osabi): Declare.
6746 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6747
848cfffb
AC
67482002-05-07 Andrew Cagney <ac131313@redhat.com>
6749
6750 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6751 (thumb_scan_prologue): Ditto.
6752 (arm_find_callers_reg): Ditto.
6753 (arm_frame_chain): Ditto.
6754 (arm_init_extra_frame_info): Ditto.
6755 (arm_frame_saved_pc): Ditto.
6756 (arm_pop_frame): Ditto.
6757 (arm_push_return_address): New function.
6758 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6759 call_dummy_location, call_dummy_breakpoint_offset_p,
6760 call_dummy_breakpoint_offset, call_dummy_p,
6761 call_dummy_stack_adjust_p, call_dummy_words,
6762 sizeof_call_dummy_words, call_dummy_start_offset,
6763 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6764 call_dummy_address, push_return_address and push_dummy_frame for
6765 generic dummy frames.
6766
e7d717c0
JT
67672002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6768
6769 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6770 size computation for alloca.
6771 (sh_fp_frame_init_saved_regs): Likewise.
6772
7bbcf283
RE
67732002-05-07 Richard Earnshaw <rearnsha@arm.com>
6774
6775 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6776 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6777 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6778 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6779 * remote-rdp.c (remote_rdp_fetch_register): Use
6780 ARM_MAX_REGISTER_RAW_SIZE.
6781 (remote_rdp_store_register): Likewise.
6782
4657573b
ML
67832002-05-07 Michal Ludvig <mludvig@suse.cz>
6784
361d1df0 6785 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6786 added default labels to switch {} statements.
6787 * x86-64-tdep.c: Ditto.
6788 * x86-64-linux-nat.c: Ditto.
6789
010f3b2f
JT
67902002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6791
6792 * solib.h: Protect against multiple inclusion.
6793
debd256d
JB
67942002-05-06 Jim Blandy <jimb@redhat.com>
6795
9ab3e532
JB
6796 Add first preprocessor macro-expansion files.
6797 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6798 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6799 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6800 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6801 (COMMON_OBS): Add macrotab.o, macroexp.o.
6802 (macroexp.o, macrotab.o): New rules.
6803
debd256d
JB
6804 Separate the job of reading the line number info statement program
6805 header (...expialidocious) out into its own function.
6806 * dwarf2read.c (struct line_head, struct filenames, struct
6807 directories): Replace with...
6808 (struct line_header): New structure, containing the full
6809 contents of the statement program header, including the
6810 include directory and file name tables.
6811 (read_file_scope): If we have line number info, instead of just
6812 calling dwarf_decode_lines to do all the work, call
6813 dwarf_decode_line_header first to get a `struct line_header'
6814 containing the data in the statement program header, and then
6815 pass that to dwarf_decode_lines, which will pick up where that
6816 left off. Be sure to clean up the `struct line_header' object.
6817 (dwarf_decode_line_header, free_line_header, add_include_dir,
6818 add_file_name): New functions.
6819 (dwarf_decode_lines): Move all the code to read the statement
6820 program header into dwarf_decode_line_header. Take the line
6821 header it built as the first argument, instead of the offset to
6822 the compilation unit's line number info. Use the new `struct
6823 line_header' type instead of the old structures. No need to do
6824 cleanups here now, since we don't allocate anything.
6825 (dwarf2_statement_list_fits_in_line_number_section,
6826 dwarf2_line_header_too_long): New complaints.
6827
ac3aafc7
EZ
68282002-05-06 Elena Zannoni <ezannoni@redhat.com>
6829
6830 * gdbtypes.c (init_vector_type): New function.
6831 (build_builtin_type_vec128): Simplify the representation of SIMD
6832 registers.
6833 (build_gdbtypes): Initialize new builtin vector types.
6834 (_initialize_gdbtypes): Register new vector types with gdbarch.
6835 (builtin_type_v4_float, builtin_type_v4_int32,
6836 builtin_type_v8_int16, builtin_type_v16_int8,
6837 builtin_type_v2_int32, builtin_type_v4_int16,
6838 builtin_type_v8_int8): New (renamed) SIMD types.
6839
13e49980
MK
68402002-05-06 Mark Kettenis <kettenis@gnu.org>
6841
6842 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6843 (i387_fill_fxsave): Likewise.
6844
997b20b8
AO
68452002-05-05 Alexandre Oliva <aoliva@redhat.com>
6846
6847 * alpha-tdep.c (alpha_extract_return_value): Don't use
6848 non-constant array size in prototype.
6849
535c96ce
AC
68502002-05-04 Andrew Cagney <ac131313@redhat.com>
6851
6852 From Brian Taylor <briant at model dot com>:
6853 * ui-out.c (ui_out_field_core_addr): Use the function
6854 longest_local_hex_string_custom'to format addresses > 32 bits
6855 wide.
6856
6857 * ui-out.c (ui_out_field_core_addr): Update comment.
6858
bedfa57b
AC
68592002-05-04 Andrew Cagney <ac131313@redhat.com>
6860
6861 * stack.c (select_and_print_frame): Make static. Delete the
6862 parameter `level'.
6863 (func_command): Update call.
6864 (select_frame_command): Delete code computing the frame level.
6865 * frame.h (select_and_print_frame): Delete declaration.
6866
f621c63e
AC
68672002-05-04 Andrew Cagney <ac131313@redhat.com>
6868
6869 * sparc-tdep.c (sparc_get_saved_register): Comment why
6870 get_prev_frame call is safe.
6871
0f7d239c
AC
68722002-05-04 Andrew Cagney <ac131313@redhat.com>
6873
6874 * frame.h (select_frame): Delete level parameter.
6875 * stack.c (select_frame): Update. Use frame_relative_level to
6876 obtain the frame's level.
6877 (select_and_print_frame): Update call.
6878 (select_frame_command): Ditto.
6879 (up_silently_base): Ditto.
6880 (down_silently_base): Ditto.
6881 * ocd.c (ocd_start_remote): Ditto.
6882 * remote-rdp.c (remote_rdp_open): Ditto.
6883 * remote-mips.c (mips_initialize): Ditto.
6884 (common_open): Ditto.
6885 * remote-e7000.c (e7000_start_remote): Ditto.
6886 * m3-nat.c (select_thread): Ditto.
6887 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6888 (child_get_current_exception_event): Ditto.
6889 * varobj.c (varobj_create): Ditto.
6890 (varobj_update): Ditto.
6891 (c_value_of_root): Ditto.
6892 * tracepoint.c (finish_tfind_command): Ditto.
6893 * corelow.c (core_open): Ditto.
6894 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6895 * thread.c (info_threads_command): Ditto.
6896 (switch_to_thread): Ditto.
6897 * infrun.c (normal_stop): Ditto.
6898 (restore_selected_frame): Ditto.
6899 (restore_inferior_status): Ditto.
6900 * breakpoint.c (insert_breakpoints): Ditto.
6901 (watchpoint_check): Ditto.
6902 (bpstat_stop_status): Ditto.
6903 (do_enable_breakpoint): Ditto.
6904 * blockframe.c (flush_cached_frames): Ditto.
6905 (reinit_frame_cache): Ditto.
6906
71d6c7b1
AC
69072002-05-04 Andrew Cagney <ac131313@redhat.com>
6908
6909 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6910 maintainer.
6911
cda6c68a
JB
69122002-05-04 Jim Blandy <jimb@redhat.com>
6913
6914 * gdbtypes.c (replace_type): Doc fix.
6915
5c1c87f0
AC
69162002-05-04 Andrew Cagney <ac131313@redhat.com>
6917
6918 * valprint.c (strcat_longest): Delete commented out function.
6919 Update copyright.
6920
cd9bfe15
AC
69212002-05-04 Andrew Cagney <ac131313@redhat.com>
6922
6923 * MAINTAINERS: Mark a29k as deleted.
6924 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6925 Move new configurations to the top.
6926 * configure.tgt: Remove a29k.
6927 * config/a29k/tm-vx29k.h: Delete.
6928 * config/a29k/vx29k.mt: Delete.
6929 * config/a29k/tm-a29k.h: Delete.
6930 * config/a29k/a29k-udi.mt: Delete.
6931 * config/a29k/a29k.mt: Delete.
6932 * a29k-tdep.c: Delete.
6933 * remote-udi.c: Delete.
6934 * remote-mm.c: Delete.
6935 * remote-eb.c: Delete.
6936 * remote-adapt.c: Delete.
6937 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6938 * config/s390/s390x.mt: Ditto.
6939 * config/s390/s390.mt: Ditto.
6940 * config/sparc/sparclynx.mh: Ditto.
6941 * config/sparc/linux.mh: Ditto.
6942 * config/pa/hppaosf.mh: Ditto.
6943 * config/pa/hppabsd.mh: Ditto.
6944 * config/ns32k/nbsd.mt: Ditto.
6945 * config/mips/vr5000.mt: Ditto.
6946 * config/m68k/sun3os4.mh: Ditto.
6947 * config/m68k/nbsd.mt: Ditto.
6948 * config/m68k/m68klynx.mh: Ditto.
6949 * config/m32r/m32r.mt: Ditto.
6950 * config/i386/x86-64linux.mt: Ditto.
6951 * config/i386/nbsdelf.mt: Ditto.
6952 * config/i386/nbsd.mt: Ditto.
6953 * config/i386/i386lynx.mh: Ditto.
6954
bf0c5130
AC
69552002-05-04 Andrew Cagney <ac131313@redhat.com>
6956
6957 * target.c (debug_print_register): New function. Handle oversize
6958 registers.
6959 (debug_to_fetch_registers): Call.
6960 (debug_to_store_registers): Call.
6961
2ae1c2d2
JB
69622002-05-03 Jim Blandy <jimb@redhat.com>
6963
13a393b0
JB
6964 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6965 (read_type): Doc fix.
6966 * gdbtypes.c (replace_type): Doc fix.
6967
2ae1c2d2
JB
6968 * stabsread.c (multiply_defined_struct): New complaint.
6969 (read_struct_type): If the type we were passed isn't empty, or
6970 incomplete, don't read the new struct type into it; complain,
6971 and return the original type unchanged. Take a new `type_code'
6972 argument, which is the type code for the new type.
6973 (read_type): Rather than storing the type's type code here, pass
6974 it as an argument to read_struct_type, and let that take care of
6975 storing it. That way, we don't overwrite the original type code,
6976 so read_struct_type can use it to decide whether we're overwriting
6977 something we shouldn't.
6978 (complain_about_struct_wipeout): New function.
6979
8de9bdc4
AC
69802002-05-03 Andrew Cagney <ac131313@redhat.com>
6981
6982 * gdbarch.sh: Assert that gdbarch is non-NULL.
6983 * gdbarch.c: Regenerate.
6984
f773fdbb
JM
69852002-05-03 Jason Merrill <jason@redhat.com>
6986
6987 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6988 and return NULL.
6989
0e04a514
ML
69902002-05-03 Michal Ludvig <mludvig@suse.cz>
6991
6992 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6993 (x86_64_dwarf2gdb_regno_map_length),
6994 (x86_64_dwarf2_reg_to_regnum): Added.
6995 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6996 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6997 (_initialize_x86_64_tdep): Synced with the change above.
6998 (x86_64_skip_prologue): Reformulated message.
6999
065432a8
PM
70002002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7001
7002 * f-exp.y: Also use new prev_lexptr variable
7003 to improve error reporting. Based on Michael Snyder
7004 2002-04-24 dated patch to c-exp.y.
7005 * jv-exp.y: Likewise.
7006 * m2-exp.y: Likewise.
7007
a3162708
EZ
70082002-05-02 Elena Zannoni <ezannoni@redhat.com>
7009
7010 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7011 we are dealing with vectors.
7012
03620c38
PM
70132002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7014
7015 * config/m68k/tm-nbsd.h: Obvious fix,
7016 correct machine name.
7017
6604db2e
PM
70182002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7019
7020 * p-typeprint.c (pascal_type_print_base): Add support
7021 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7022
0906b739
PM
70232002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7024
7025 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7026 for fondamental pascal 'char' type.
7027
e2625b33
PM
70282002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7029
7030 * p-lang.h (is_pascal_string_type): Declaration changed,
7031 new sixth argument of type char ** added.
361d1df0 7032 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7033 changed. Args length_pos, length_size, string_pos, char_size
7034 can now be NULL. New argument arrayname set to the field
7035 name of the char array. Return value set to char array
7036 field index plus one.
361d1df0 7037 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7038 is_pascal_string_type function.
7039
cf17c188
AC
70402002-05-02 Andrew Cagney <cagney@redhat.com>
7041
7042 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7043 <cagney@redhat.com> change.
7044 * gdbarch.c: Regenerate.
7045
52bca491
AC
70462002-05-02 Andrew Cagney <cagney@redhat.com>
7047
7048 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7049 before probing for a new one. Detect errorenous gdbarch_init
7050 functions.
7051 * gdbarch.c: Regenerate.
7052
d5e72505
AC
70532002-05-01 Andrew Cagney <cagney@redhat.com>
7054
7055 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7056 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7057 * config/v850/tm-v850.h: Ditto. Update copyright.
7058
af566d9f
AC
70592002-04-30 Andrew Cagney <ac131313@redhat.com>
7060
7061 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7062 current_gdbarch.
7063
880d85fa
MS
70642002-04-30 Michael Snyder <msnyder@redhat.com>
7065
94c30b78
MS
7066 * arm-tdep.c: Whitespace clean-ups.
7067 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7068 should have been removed as part of 4/24 change.
7069
6f5987a6
KB
70702002-04-30 Kevin Buettner <kevinb@redhat.com>
7071
7072 * rs6000-tdep.c: Added comment describing how fpscr register
7073 numbers were chosen.
7074
1a113c93
MS
70752002-04-30 Michael Snyder <msnyder@redhat.com>
7076
7077 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7078
9a6f53fe
EZ
70792002-04-29 Elena Zannoni <ezannoni@redhat.com>
7080
7081 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7082 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7083 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7084
11ed25ac
KB
70852002-04-29 Kevin Buettner <kevinb@redhat.com>
7086
7087 From Louis Hamilton <hamilton@redhat.com>:
7088 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7089 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7090 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7091 not bfd-private xcoff data, to determine wordsize.
7092 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7093
ae232405
AC
70942002-04-29 Andrew Cagney <ac131313@redhat.com>
7095
7096 GDB 5.2 released from 5.2 branch.
7097
91fd20f7
ML
70982002-04-29 Michal Ludvig <mludvig@suse.cz>
7099
7100 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7101 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7102 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7103
2dc5091b
EZ
71042002-04-29 Elena Zannoni <ezannoni@redhat.com>
7105
7106 * rs6000-tdep.c (rs6000_extract_return_value,
7107 rs6000_store_return_value): Handle returning vectors.
7108 (rs6000_gdbarch_init): Use
7109 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7110 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7111 New function.
7112 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7113 vectors.
7114 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7115 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7116
2b9848d8
PM
71172002-04-24 Pierre Muller <ics.u-strasbg.fr>
7118
7119 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7120 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7121 with fprintf_unfiltered (gdb_stderr,...).
7122
f8d17dc5
PM
71232002-04-24 Pierre Muller <ics.u-strasbg.fr>
7124
7125 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7126 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7127 Replace fprintf (stderr,...
7128 with fprintf_unfiltered (gdb_stderr,....
7129 * remote-es.c: Likewise.
7130 * remote-os9k.c: Likewise.
7131 * remote-st.c: Likewise.
7132
2f2f1ad1
AS
71332002-04-28 Andreas Schwab <schwab@suse.de>
7134
7135 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7136 linux-proc.o and gcore.o.
7137
b6779aa2
AC
71382002-04-26 Michal Ludvig <mludvig@suse.cz>
7139
7140 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7141 code without frame pointers.
7142
7e57f5f4
AC
71432002-04-26 Andrew Cagney <ac131313@redhat.com>
7144
7145 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7146 ON_STACK is needed.
7147
2ceb85d0
BE
71482002-04-26 Ben Elliston <bje@redhat.com>
7149
7150 * target.c (do_xfer_memory): Correct reference to the new option
7151 "trust-readonly-sections".
7152
f5f8a009
EZ
71532002-04-26 Elena Zannoni <ezannoni@redhat.com>
7154
7155 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7156 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7157 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7158 vectors.
7159 (read_array_type): Record the fact that this array type is really a
7160 vector (i.e. are passed in by value).
7161
5868c862
JT
71622002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7163
7164 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7165 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7166 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7167 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7168 * alpha-linux-tdep.c: Include frame.h.
7169 (alpha_linux_sigcontext_addr): New function.
7170 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7171 alpha_linux_sigcontext_addr.
7172 * alpha-osf1-tdep.c: Include gdbcore.h.
7173 (alpha_osf1_sigcontext_addr): New function.
7174 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7175 alpha_osf1_sigcontext_addr.
7176 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7177 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7178
bfb01f37
AC
71792002-04-26 Andrew Cagney <ac131313@redhat.com>
7180
361d1df0 7181 * stack.c (selected_frame_level):
bfb01f37
AC
7182 (select_frame): Do not set selected_frame_level.
7183 * frame.h (selected_frame_level): Delete declaration.
7184
15813d3f
AC
71852002-04-26 Andrew Cagney <ac131313@redhat.com>
7186
7187 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7188 convert_from_func_ptr-addr when AIX / PowerOpen.
7189
6096c27a
AC
71902002-04-25 Andrew Cagney <ac131313@redhat.com>
7191
7192 * valops.c (hand_function_call): Call
7193 generic_save_call_dummy_addr.
7194 * frame.h (generic_save_call_dummy_addr): Declare.
7195 * blockframe.c (struct dummy_frame): Add fields call_lo and
7196 call_hi.
7197 (generic_find_dummy_frame): Check for PC in range call_lo to
7198 call_hi instead of entry_point_address.
7199 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7200 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7201 (generic_save_call_dummy_addr): New function.
7202
f510d44e
DM
72032002-04-24 David S. Miller <davem@redhat.com>
7204
7205 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7206 sparc_skip_prologue.
7207 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7208 information to find prologue when possible.
7209 (sparc_prologue_frameless_p): Call examine_prologue directly.
7210 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7211 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7212 second argument.
7213 (SKIP_PROLOGUE): Likewise.
7214
15d72a92
JT
72152002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7216
7217 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7218 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7219 indicate that the condition it was testing is always true.
7220 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7221 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7222 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7223
accc6d1f
JT
72242002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7225
7226 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7227 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7228 tdep->jb_pc and tdep->jb_elt_size.
7229 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7230 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7231 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7232 * alpha-nat.c (get_longjmp_target): Remove.
7233 (JB_ELEMENT_SIZE): Ditto.
7234 (JB_PC): Ditto.
7235 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7236 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7237 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7238 to alpha_get_longjmp_target.
7239 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7240 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7241 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7242
1bfdc549
AC
72432002-04-25 Andrew Cagney <ac131313@redhat.com>
7244
7245 * README: Update to GDB 5.2.
7246
1bd316f0
AC
72472002-04-25 Andrew Cagney <ac131313@redhat.com>
7248
7249 * gdbarch.sh (LC_ALL): Set to `c'.
7250
2e5ff58c
TR
72512002-04-25 Theodore A. Roth <troth@verinet.com>
7252
7253 * avr-tdep.c: Ran through gdb_indent.sh.
7254
e33ce519
TR
72552002-04-25 Theodore A. Roth <troth@verinet.com>
7256
7257 * MAINTAINERS: Add myself as AVR maintainer.
7258 * NEWS: Note new target avr.
7259
8818c391
TR
72602002-04-25 Theodore A. Roth <troth@verinet.com>
7261
7262 * Makefile.in: Add support for AVR target.
7263 * configure.tgt: Add support for AVR target.
7264 * avr-tdep.c: New file
7265 * config/avr/avr.mt: New file.
7266
79509c2d
TR
72672002-04-25 Theodore A. Roth <troth@verinet.com>
7268
7269 * MAINTAINERS: Add myself to write-after-approval.
7270
dac8068e
PM
72712002-04-24 Pierre Muller <ics.u-strasbg.fr>
7272
7273 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7274 with fprintf_unfiltered (gdb_stderr,....
7275
25bf3106
PM
72762002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7277
7278 Fix PR gdb/508.
7279 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7280
24467a86
PM
72812002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7282
7283 * p-exp.y: Also use new prev_lexptr variable
7284 to improve error reporting. Based on Michael Snyder
7285 2002-04-24 dated patch to c-exp.y.
7286
95b80706
JT
72872002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7288
7289 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7290 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7291 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7292 to 0.
7293 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7294 and struct value.
7295 (FUNCTION_START_OFFSET): Remove.
7296 (BREAKPOINT): Ditto.
7297
e90cc612
JT
72982002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7299
7300 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7301 * NEWS: Ditto.
7302
6c72f9f9
JT
73032002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7304
7305 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7306 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7307 alpha_linux_pc_in_sigtramp.
7308 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7309 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7310 alpha_osf1_pc_in_sigtramp.
7311 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7312 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7313 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7314 alphafbsd_pc_in_sigtramp.
7315 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7316 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7317 alphanbsd_pc_in_sigtramp.
7318 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7319 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7320
5e4f3379
JT
73212002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7322
7323 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7324
da8ca43d
JT
73252002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7326
7327 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7328 alphanbsd-tdep.c.
7329 (alphanbsd-nat.o): New dependency list.
7330 (alphanbsd-tdep.o): Ditto.
7331 * NEWS: Note new native NetBSD/alpha configuration.
7332 * alphanbsd-nat.c: New file.
7333 * alphanbsd-tdep.c: Ditto.
7334 * configure.host (alpha*-*-netbsd*): New host.
7335 * configure.tgt (alpha*-*-netbsd*): New target.
7336 * config/alpha/nbsd.mh: New file.
7337 * config/alpha/nbsd.mt: Ditto.
7338 * config/alpha/nm-nbsd.h: Ditto.
7339 * config/alpha/tm-nbsd.h: Ditto.
7340
36a6271d
JT
73412002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7342
7343 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7344 (alpha-osf1-tdep.o): New dependency list.
7345 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7346 and skip_sigtramp_frame members.
7347 * alpha-linux-tdep.c: Include gdbcore.h.
7348 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7349 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7350 * alpha-osf1-tdep.c: New file.
7351 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7352 alpha-osf1-dep.c.
7353 (alpha_frame_past_sigtramp_frame): New function.
7354 (alpha_dynamic_sigtramp_offset): Ditto.
7355 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7356 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7357 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7358 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7359 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7360 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7361 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7362 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7363 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7364 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7365 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7366 to find_solib_trampoline_target.
7367 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7368 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7369 (SKIP_TRAMPOLINE_CODE): Remove.
7370 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7371 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7372 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7373 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7374 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7375 (PROC_SIGTRAMP_MAGIC): Ditto.
7376 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7377 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7378 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7379 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7380 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7381
2f4bc57b
JT
73822002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7383
7384 * NEWS: Note that Alpha targets are now multi-arch.
7385
665132f9
MS
73862002-04-24 Michael Snyder <msnyder@redhat.com>
7387
7388 * parser-defs.h (prev_lexptr): New external variable.
7389 * parse.c (parse_exp_1): Set prev_lexptr to null before
7390 calling the language-specific parser.
7391 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7392 (yyerror): Use prev_lexptr in error reporting.
7393
32872fa7
DJ
73942002-04-24 Daniel Jacobowitz <drow@mvista.com>
7395
7396 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7397 * gregset.h: If FILL_FPXREGSET is defined, provide
7398 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7399 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7400 is defined, call fill_fpxregset.
7401
57e76fac
MS
74022002-04-24 Roland McGrath <roland@frob.com>
7403
7404 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7405 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7406 (supply_gregset, supply_fpregset): New functions.
7407
7408 * gnu-nat.c (gnu_find_memory_regions): New function.
7409 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7410 (gnu_xfer_memory): Add a cast.
7411
f43845b3
MS
74122002-04-24 Michael Snyder <msnyder@redhat.com>
7413
361d1df0 7414 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7415 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7416 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7417 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7418 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7419 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7420
a0abec03
AC
7421Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7422
7423 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7424 NUM_PSEUDO_REGS can be used.
7425
d7bd68ca
AC
74262002-04-24 Andrew Cagney <ac131313@redhat.com>
7427
7428 * arch-utils.h: Update copyright.
7429
7430 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7431 * gdbarch.h, gdbarch.c: Re-generate.
7432
7433 * inferior.h (IN_SIGTRAMP): Delete definition.
7434 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7435 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7436
7437 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7438 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7439 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7440 (find_proc_framesize): Ditto.
7441 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7442 (alpha_init_extra_frame_info): Ditto.
7443 * infrun.c (handle_inferior_event): Ditto.
7444 (handle_inferior_event): Ditto.
7445 (check_sigtramp2): Ditto.
7446 * blockframe.c (create_new_frame): Ditto.
7447 (get_prev_frame): Ditto.
7448 * ppc-linux-tdep.c: Update comments.
7449 * i386-linux-tdep.c: Update comments.
7450 * breakpoint.c (bpstat_what): Update comment.
7451
4867e41e
DM
74522002-04-24 David S. Miller <davem@redhat.com>
7453
21d83aa5
DM
7454 * i960-tdep.c (register_in_window_p): New function.
7455 (i960_find_saved_register): Use it instead of
7456 REGISTER_IN_WINDOW_P.
7457 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7458
4867e41e
DM
7459 * symtab.h (find_stab_function_addr): Kill extern.
7460 * minsyms.c (find_stab_function_addr): Remove from here...
7461 * dbxread.c: ... to here, and mark it static.
7462
69cdf6a2
DM
74632002-04-20 David S. Miller <davem@redhat.com>
7464
7465 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7466 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7467
5a595886
DM
74682002-04-21 David S. Miller <davem@redhat.com>
7469
7470 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7471 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7472 (vx_write_register): Likewise.
7473
1da1a192
JB
74742002-04-23 J. Brobecker <brobecker@gnat.com>
7475
7476 * source.c (is_regular_file): New function.
7477 (openp): Check wether file to open is a regular file
7478 to avoid opening directories.
7479
baa6f10b
JT
74802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7481
7482 * findvar.c (extract_signed_integer): Cast printf argument
7483 to suppress format warning.
7484 (extract_unsigned_integer): Likewise.
7485 * infcmd.c (registers_info): Likewise.
7486 * top.c (get_prompt_1): Likewise.
7487 * valops.c (value_assign): Likewise.
7488 * valprint.c (print_decimal): Likewise.
7489
b2c4da81
L
74902002-04-22 H.J. Lu (hjl@gnu.org)
7491
7492 * c-exp.y (typebase): Support
361d1df0 7493
b2c4da81
L
7494 [long|long long|short] [signed|unsigned] [int|]
7495
7496 and
7497
7498 signed [long|long long|short] int
7499
f267bd6a
JT
75002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7501
7502 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7503 and vax-tdep.h.
7504 * vax-tdep.h: New file.
7505 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7506 Make several routines static.
7507 (vax_get_saved_register): New function.
7508 (vax_gdbarch_init): New function.
7509 (_initialize_vax_tdep): Register vax_gdbarch_init.
7510 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7511 Remove macros now under the control of gdbarch.
7512
da3c6d4a
MS
75132002-04-22 Michael Snyder <msnyder@redhat.com>
7514
11d3b27d
MS
7515 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7516 Some whitespace and coding standards tweaks.
da3c6d4a 7517
a33f7558
JT
75182002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7519
7520 * vax-tdep.c: Include regcache.h.
7521 (vax_call_dummy_words): New.
7522 (sizeof_vax_call_dummy_words): New.
7523 (vax_fix_call_dummy): New function.
7524 (vax_saved_pc_after_call): Ditto.
7525 * config/vax/tm-vax.h: Don't include regcache.h.
7526 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7527 (CALL_DUMMY): Remove.
7528 (CALL_DUMMY_WORDS): Define.
7529 (SIZEOF_CALL_DUMMY_WORDS): Define.
7530 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7531
47a73475
MS
75322002-04-18 Michael Snyder <msnyder@redhat.com>
7533
7534 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7535
52efde73
JT
75362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7537
7538 * vax-tdep.c (vax_frame_chain): New function.
7539 (vax_push_dummy_frame): Ditto.
7540 (vax_pop_frame): Ditto.
7541 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7542 (FRAMELESS_FUNCTION_INVOCATION): Use
7543 generic_frameless_function_invocation_not.
7544 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7545 (POP_FRAME): Use vax_pop_frame.
7546
ea74468c
JT
75472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7548
7549 * vax-tdep.c (vax_store_struct_return): New function.
7550 (vax_extract_return_value): Ditto.
7551 (vax_store_return_value): Ditto.
7552 (vax_extract_struct_value_address): Ditto.
7553 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7554 vax_store_struct_return.
7555 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7556 (STORE_RETURN_VALUE): Use vax_store_return_value.
7557 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7558
5516aa92
JT
75592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7560
7561 * vax-tdep.c (vax_frame_saved_pc): New function.
7562 (vax_frame_args_address_correct): Ditto.
7563 (vax_frame_args_address): Ditto.
7564 (vax_frame_locals_address): Ditto.
7565 (vax_frame_num_args): Move code to be in proximity to
7566 other frame-related functions.
7567 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7568 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7569 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7570 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7571 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7572
36af0b35
L
75732002-04-22 H.J. Lu (hjl@gnu.org)
7574
7575 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7576 includedir.
7577
ab62c900
JT
75782002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7579
7580 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7581 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7582 (FRAME_INIT_SAVED_REGS): New macro.
7583
7232b100
JT
75842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7585
7586 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7587
b70d2aee
JT
75882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7589
7590 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7591 where needed.
7592 (fetch_osf_core_registers): Likewise.
7593 (supply_gregset): Likewise.
7594
a0e8a2d1 75952002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7596
a0e8a2d1
JB
7597 * symfile.h (get_section_index): Define.
7598 * symfile.c (get_section_index): New function.
7599 * mdebugread.c (SC_IS_SBSS): New macro.
7600 (SC_IS_BSS): Return true for the scBss storage class only, as
7601 the scSBss storage class refers to the .sbss section.
7602 (parse_partial_symbols): Discard the symbols which associated
7603 section does not exist.
7604 Make sure to use the .sbss section index for symbols which
7605 storage class is scBss, rather than using the .bss section index.
7606
51eb8b08
JT
76072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7608
7609 * vax-tdep.c: Update copyright years.
7610 (vax_register_name): New function.
7611 (vax_register_byte): Ditto.
7612 (vax_register_raw_size): Ditto.
7613 (vax_register_virtual_size): Ditto.
7614 (vax_register_virtual_type): Ditto.
7615 * config/vax/tm-vax.h: Update copyright years.
7616 (REGISTER_NAMES): Remove.
7617 (REGISTER_NAME): Define.
7618 (REGISTER_BYTE): Use vax_register_byte.
7619 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7620 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7621 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7622
6cc1c0a8
AC
76232002-04-21 Andrew Cagney <ac131313@redhat.com>
7624
7625 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7626 declaration
7627 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7628
9319a2fe
DM
76292002-04-21 David S. Miller <davem@redhat.com>
7630
7631 * arch-utils.c (generic_prologue_frameless_p): Kill
7632 SKIP_PROLOGUE_FRAMELESS_P code.
7633 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7634 references.
7635 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7636 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7637 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7638 references.
7639 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7640 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7641 (sparc_gdbarch_init): Pass it to
7642 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7643
e9ed6d01
JT
76442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7645
7646 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7647 (alphabsd-nat.o): New dependency list.
7648
36012033
JT
76492002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7650
7651 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7652 alphafbsd-tdep.c.
7653 (alpha-linux-tdep.o): New dependency list.
7654 (alphafbsd-tdep.o): Likewise.
7655
3379287a
JT
76562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7657
7658 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7659 to here...
7660 * alpha-tdep.c: ...from here.
7661 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7662
4bcbd6cb
JT
76632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7664
7665 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7666 prototype from here...
7667 * alpha-tdep.h: ...to here.
7668
b31da25e
AC
76692002-04-21 Andrew Cagney <ac131313@redhat.com>
7670
7671 * frame.h (selected_frame_level): Document as deprecated.
7672 (frame_relative_level): Declare.
7673 * stack.c (frame_relative_level): New function.
7674 (selected_frame_level): Document as deprecated.
7675 (select_frame): Do not set the selected_frame_level.
7676
7677 * stack.c (frame_info, record_selected_frame): Update.
7678 (frame_command, current_frame_command): Update.
7679 (up_silently_base, up_command, down_silently_base): Update.
7680 (down_command): Update.
7681 * inflow.c (kill_command): Update.
7682 * tracepoint.c (finish_tfind_command): Update.
7683 * corelow.c (core_open): Update.
7684 * thread.c (info_threads_command): Update.
7685 (do_captured_thread_select): Update.
7686 * infcmd.c (finish_command): Update.
7687 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7688
9c1d6fe5
JT
76892002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7690
7691 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7692
ab89facf
AC
76932002-04-21 Andrew Cagney <ac131313@redhat.com>
7694
7695 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7696 type const.
7697
82a4efa1
JT
76982002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7699
7700 * alphafbsd-tdep.c: Update copyright years. Include
7701 alpha-tdep.h.
7702 (alphafbsd_use_struct_convention): Make static.
7703 (alphafbsd_init_abi): New function.
7704 (_initialize_alphafbsd_tdep): New function.
7705 * config/alpha/tm-fbsd.h: Update copyright years.
7706 (USE_STRUCT_CONVENTION): Remove.
7707
44dffaac
JT
77082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7709
7710 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7711 an Alpha ABI variant.
7712 (alpha_abi_handler_list): Declare.
7713 (alpha_gdbarch_register_os_abi): New function.
7714 (alpha_gdbarch_init): Give registered ABI variant handlers a
7715 chance to tweak the gdbarch once we have set up defaults.
7716 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7717
65585be4
JT
77182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7719
7720 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7721 to standard_coerce_float_to_double.
7722 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7723
d9b023cc
JT
77242002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7725
7726 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7727 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7728 from gdbarch_tdep rather than a constant.
7729 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7730 the default text address for all Alpha Unix ABIs.
7731 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7732 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7733
dc129d82
JT
77342002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7735
7736 * alpha-tdep.h: New file. Includes several Alpha target constants
7737 taken from...
7738 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7739 let gdbarch deal with.
7740 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7741 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7742 to dependency list.
7743 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7744 Alpha target register names.
7745 * alphabsd-nat.c: Likewise.
7746 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7747 Alpha target register names. Make serveral routines static.
7748 (alpha_get_saved_register): New function.
7749 (alpha_abi_names): New.
7750 (process_note_abi_tag_sections): New function.
7751 (get_elfosabi): New function.
7752 (alpha_gdbarch_init): New function.
7753 (alpha_dump_tdep): New function.
7754 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7755
d49d1e0a
AC
77562002-04-21 Andrew Cagney <ac131313@redhat.com>
7757
7758 * frame.c (find_saved_register): Delete #ifdef
7759 HAVE_REGISTER_WINDOWS code.
7760 * config/sparc/tm-sparc.h: Update comments.
7761 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7762
92e8c9ed
AC
77632002-04-21 Andrew Cagney <ac131313@redhat.com>
7764
7765 * i960-tdep.c (i960_find_saved_register): New function.
7766 (i960_get_saved_register): New function.
7767 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7768 (i960_get_saved_register): Declare.
7769 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7770
e1925118
DM
77712002-04-20 David S. Miller <davem@redhat.com>
7772
7773 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7774
29673b29
AC
77752002-04-20 Andrew Cagney <ac131313@redhat.com>
7776
7777 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7778 instead of NUM_PSEUDO_REGS.
7779
6c86dcd5
DM
77802002-04-20 David S. Miller <davem@redhat.com>
7781
7782 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7783 GDB_MULTI_ARCH_PARTIAL
7784 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7785 define, let tm-sp64.h do it.
7786
aa40ec90
JT
77872002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7788
7789 * frame.c (find_saved_register): Avoid a NULL pointer
7790 dereference and actually walk the frame list.
7791
0f79675b
AC
77922002-04-20 Andrew Cagney <ac131313@redhat.com>
7793
7794 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7795 sorted in most most-recent-used order. Document.
7796 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7797
f91305dd 77982002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7799
7800 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7801 instead of ->prev.
7802 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7803 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7804 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7805 instead of ->prev.
7806
73d322b1
EZ
78072002-04-19 Elena Zannoni <ezannoni@redhat.com>
7808
7809 Fix PR gdb/471.
7810 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7811 (build_builtin_type_vec128): Ditto.
7812 (append_composite_type_field): Fix calculation of type length in
7813 union case.
7814
ccd9a834
EZ
78152002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7816
7817 * config/djgpp/README: Update.
7818
7819 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7820 compiler warnings.
7821
a57f9e49
JT
78222002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7823
7824 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7825 (alpha_setup_arbitrary_frame): ...to this.
7826 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7827 for alpha_setup_arbitrary_frame.
7828
f4f9705a
AC
78292002-04-18 Andrew Cagney <cagney@redhat.com>
7830
7831 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7832 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7833
f4f9705a
AC
7834 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7835 * target.h (memory_breakpoint_from_pc): Update declaration.
7836 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7837
7838 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7839 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7840 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7841 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7842 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7843 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7844 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7845 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7846 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7847 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7848 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7849 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7850
7851 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7852 const pointer.
7853 * monitor.c (monitor_insert_breakpoint): Ditto.
7854 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7855
7856 * config/mcore/tm-mcore.h: Update copyright.
7857 * mem-break.c: Ditto.
7858 * xstormy16-tdep.c: Ditto.
7859
29f319b8
PM
78602002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7861
7862 * p-exp.y: Add precedence rule for '^' token.
7863 This removes the shift/reduce conflicts.
7864 Remove the comment concerning these shift/reduce conflicts.
7865
ebeac11a
EZ
78662002-04-18 Elena Zannoni <ezannoni@redhat.com>
7867
7868 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7869 (registers_powerpc_nofp): New register set for processors
7870 without floating point unit.
7871
27c31547
DM
78722002-04-18 David S. Miller <davem@redhat.com>
7873
7874 * MAINTAINERS: Add myself to write-after-approval.
7875
47a73475
MS
78762002-04-17 Michael Snyder <msnyder@redhat.com>
7877
7878 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7879
953836b2
AC
78802002-04-17 Andrew Cagney <ac131313@redhat.com>
7881
7882 * rs6000-tdep.c (frame_initial_stack_address): Use
7883 frame_register_read to read the alloca_reg.
7884
8b0d4340
AC
78852002-04-17 Andrew Cagney <ac131313@redhat.com>
7886
7887 * frame.c (find_saved_register): Find saved registers in the next
7888 not prev frame.
7889 Fix PR gdb/365.
7890
d8864532
AC
78912002-04-17 Andrew Cagney <ac131313@redhat.com>
7892
7893 * gdbarch.sh (LANG): Set to ``c''.
7894
36cc83a3 78952002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7896
36cc83a3 7897 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7898
2f4150cc 78992002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7900
7901 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7902 Update copyright.
7903
628703c6 7904 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7905 Also fix PR gdb/391.
361d1df0 7906
56157b4a
AC
79072002-04-14 Andrew Cagney <ac131313@redhat.com>
7908
7909 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7910 * aclocal.m4, configure: Re-generate.
7911 Fix PR gdb/391.
361d1df0 7912
6d1e3329
EZ
79132002-04-14 Elena Zannoni <ezannoni@redhat.com>
7914
7915 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7916 instead of tm_print_insn.
7917
cb06fa07
EZ
79182002-04-14 Elena Zannoni <ezannoni@redhat.com>
7919
7920 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7921
f208ba17
AC
79222002-04-14 Andrew Cagney <ac131313@redhat.com>
7923
7924 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7925 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7926 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7927
20f01a46
DH
79282002-04-12 Don Howard <dhoward@redhat.com>
7929
7930 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7931 max_user_call_depth.
7932 (init_cmd_lists): Initialize the new value;
7933 * cli/cli-script.c (execute_user_command): Limit the call depth of
7934 user defined commands. This avoids a core-dump when user commands
7935 are infinitly recursive.
7936
a88376a3
KB
79372002-04-12 Kevin Buettner <kevinb@redhat.com>
7938
7939 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7940 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7941 from tdep struct instead of DEFAULT_LR_SAVE.
7942 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7943 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7944 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7945
f2172603
MS
79462002-04-12 Michael Snyder <msnyder@redhat.com>
7947
694f61fb 7948 * Remote.c: Spelling fix.
20fe79c8
MS
7949 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7950 If no symbol found for "sbrk", try "_sbrk".
7951 (make_output_phdrs): Use bfd_section_name.
7952 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7953 * eval.c: Indentation fix-ups.
169a7369
MS
7954 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7955 in case it gets applied to an address that is already
7956 in the instruction space.
de74f71f
MS
7957 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7958 * symfile.c: Fix indentation, long lines.
f2172603
MS
7959 * source.c: White space fix-up.
7960
cda5a58a
AC
79612002-04-12 Andrew Cagney <cagney@redhat.com>
7962
7963 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7964 * frame.c (frame_register_read): New function. Return non-zero on
7965 success.
7966 (read_relative_register_raw_bytes_for_frame): Delete.
7967 (read_relative_register_raw_bytes): Delete.
7968 * frame.h (frame_register_read): Declare.
7969 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7970 * sh-tdep.c: Ditto.
7971 * infcmd.c (do_registers_info): Ditto.
7972 * hppa-tdep.c: Ditto.
7973 * rs6000-tdep.c: Ditto.
7974 * h8500-tdep.c: Ditto.
7975 * mips-tdep.c: Ditto.
7976 * h8300-tdep.c: Ditto.
7977 * z8k-tdep.c: Ditto.
7978
2ea5f656
KB
79792002-04-12 Kevin Buettner <kevinb@redhat.com>
7980
7981 From Jimi X <jimix@watson.ibm.com>:
7982 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7983 64-bit SysV ABI.
7984
27b15785
KB
79852002-04-12 Kevin Buettner <kevinb@redhat.com>
7986
7987 From Jimi X <jimix@watson.ibm.com>:
7988 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7989 bfd info.
7990
5d57ee30
KB
79912002-04-12 Kevin Buettner <kevinb@redhat.com>
7992
7993 From Jimi X <jimix@watson.ibm.com>:
7994 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7995 register sets for these processor variants.
7996
bc1e36ca
DJ
79972002-04-11 Daniel Jacobowitz <drow@mvista.com>
7998
bc1e36ca
DJ
7999 * regformats/reg-ppc.dat: Support FPSCR.
8000
e3f36dbd
KB
80012002-04-11 Kevin Buettner <kevinb@redhat.com>
8002
8003 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8004 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8005 Add fpscr as an invalid/unfetchable register.
8006 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8007 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8008 (fill_fpregset): Add support for register fpscr.
8009 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8010 (fill_gregset): Account for the fact that register ``mq'' might
8011 not exist.
8012 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8013 (registers_power): Add fpscr to register set at slot 71.
8014 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8015 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8016
943c9c25
MS
80172002-04-11 Michael Snyder <msnyder@redhat.com>
8018
8019 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8020 * configure: Regenerate.
8021 * config.in: Regenerate.
8022 * acconfig.h: Add define for _SYSCALL32.
8023 * core-sol2.c: Remove #define _SYSCALL32.
8024 * solib-legacy.c: Remove #define _SYSCALL32.
8025
d8c0a2e7
AC
80262002-04-10 Andrew Cagney <ac131313@redhat.com>
8027
8028 * stack.c (select_frame): Cleanup internal error message, do not
8029 use %p.
8030
7cc19214
AC
80312002-04-10 Andrew Cagney <ac131313@redhat.com>
8032
8033 * stack.c (select_frame): Check that selected_frame and the
8034 specified level are as expected.
8035 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8036 Update copyright.
8037 * frame.h (struct frame_info): Add field `level'. Update
8038 copyright.
8039 Work-in-progress PR gdb/464.
8040
67a2b77e
AC
80412002-04-10 Andrew Cagney <ac131313@redhat.com>
8042
8043 * maint.c (maint_print_section_info): Rename print_section_info.
8044 (print_bfd_section_info, print_objfile_section_info): Update.
8045 * inferior.h (struct gdbarch): Add opaque declaration.
8046 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8047 * gdbarch.h: Regenerate.
8048
8cfda98c
ML
80492002-04-10 Michal Ludvig <mludvig@suse.cz>
8050
8051 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8052 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8053 (kernel_u_size): Added.
8054 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8055 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8056
ca439ad2 80572002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8058
ca439ad2
JI
8059 * valarith.c (find_size_for_pointer_math): New function, either returns
8060 the size for a pointer's target, returns 1 for void *, or errors for
8061 incomplete types.
8062 (value_add, value_sub): use find_size_for_pointer_math.
8063
2f2893d9
DJ
80642002-04-09 Daniel Jacobowitz <drow@mvista.com>
8065
8066 * linux-low.c (linux_look_up_symbols): New hook.
8067 (linux_target_ops): Add linux_look_up_symbols.
8068 * remote-utils.c (decode_address): New function.
8069 (look_up_one_symbol): New function.
8070 * server.c (handle_query): Call target look_up_symbols hook.
8071 * server.h (look_up_one_symbol): Add prototype.
8072 * target.h (struct target_ops): Add look_up_symbols hook.
8073
96cb11df
AC
80742002-04-09 Andrew Cagney <ac131313@redhat.com>
8075
8076 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8077 override FP_REGNUM with frame->fp. Update copyright.
8078 * parse.c (num_std_regs, std_regs): Delete.
8079 (target_map_name_to_register): Do not search std_regs. Update
8080 function description.
8081 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8082 declarations. Update copyright.
8083 Fix PR gdb/251.
361d1df0 8084
97658e92
DJ
80852002-04-09 Daniel Jacobowitz <drow@mvista.com>
8086
8087 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8088 after the last symbol in a block.
8089
6044e3eb
PM
80902002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8091
8092 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8093 is non zero as a found symbol.
8094
0406ec40
AC
80952002-04-08 Andrew Cagney <ac131313@redhat.com>
8096
8097 * findvar.c: Include "builtin-regs.h".
8098 (value_of_register): Call value_of_builtin_reg when applicable.
8099 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8100 (target_map_name_to_register): Call
8101 builtin_reg_map_name_to_regnum.
8102 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8103 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8104 (builtin_regs_h): Define.
8105 (builtin-regs.o): New target.
8106 (findvar.o): Add $(builtin_regs_h).
8107 * builtin-regs.c, builtin-regs.h: New files.
8108 * std-regs.c: New file.
8109 Partial fix for PR gdb/251.
8110
56a6dfb9
KB
81112002-04-08 Kevin Buettner <kevinb@redhat.com>
8112
8113 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8114 it's no longer required.
8115
3a808432
AC
81162002-04-08 Andrew Cagney <ac131313@redhat.com>
8117
8118 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8119
7c40d541
KB
81202002-04-08 Kevin Buettner <kevinb@redhat.com>
8121
8122 From Jimi X <jimix@watson.ibm.com>:
8123 * rs6000-tdep.c (rs6000_software_single_step): Use
8124 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8125 and size. Use target_insert_breakpoint() and
8126 target_remove_breakpoint() to insert and remove breakpoints
8127 instead of explicit memory reads and writes.
8128
cc9836a8
KB
81292002-04-08 Kevin Buettner <kevinb@redhat.com>
8130
8131 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8132 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8133 ELF_OBJECT_FORMAT ifdef.
8134
7495d1dc
KB
81352002-04-08 Kevin Buettner <kevinb@redhat.com>
8136
8137 From Jimi X <jimix@watson.ibm.com>:
8138 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8139
4288e836
KB
81402002-04-08 Kevin Buettner <kevinb@redhat.com>
8141
8142 From Jimi X <jimix@watson.ibm.com>:
8143 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8144 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8145
a4e4e501
MK
81462002-04-07 Mark Kettenis <kettenis@gnu.org>
8147
8148 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8149 s/asprintf/xasprintf/.
8150 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8151
006defba
AC
81522002-04-07 Andrew Cagney <ac131313@redhat.com>
8153
8154 I believe Jeff Law denies responsability for this one:
8155 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8156 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8157 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8158 Work-around for PR gdb/366.
8159
7aa83cac
EZ
81602002-04-07 Elena Zannoni <ezannoni@redhat.com>
8161
8162 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8163 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8164 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8165
cf1fcca1
EZ
81662002-04-07 Elena Zannoni <ezannoni@redhat.com>
8167
8168 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8169 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8170 information.
8171
3f289e6f
AC
81722002-04-07 Andrew Cagney <ac131313@redhat.com>
8173
8174 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8175 maintainer.
8176
129188f6
AC
81772002-04-07 Andrew Cagney <ac131313@redhat.com>
8178
8179 * README (Reporting Bugs in GDB): Document the bug web page as the
8180 prefered way of submitting bugs.
8181 Fix PR gdb/402.
8182
1200cd6e
AC
81832002-04-06 Andrew Cagney <ac131313@redhat.com>
8184
8185 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8186 -1. Update comment.
8187 * gdbarch.h, gdbarch.c: Re-generate.
8188
2853c33c
AS
81892002-04-07 Andreas Schwab <schwab@suse.de>
8190
8191 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8192 buffer to regcache_collect.
8193
c2169756
AC
81942002-04-06 Andrew Cagney <ac131313@redhat.com>
8195
8196 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8197 * gdbarch.c, gdbarch.h: Re-generate.
8198
25f1b008
AC
81992002-04-06 Andrew Cagney <ac131313@redhat.com>
8200
8201 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8202 declaration. Fix -Werror.
8203
59263426
DJ
82042002-04-05 Daniel Jacobowitz <drow@mvista.com>
8205
8206 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8207 * gdbarch.c: Regenerate.
8208
f5db4da3
MS
82092002-04-05 Michael Snyder <msnyder@redhat.com>
8210
80f8a6eb
MS
8211 * breakpoint.c (clear_command): Rewrite middle section to
8212 combine two loops with identical control conditions.
8213 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8214 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8215
ad3dcc5c
L
82162002-04-05 H.J. Lu (hjl@gnu.org)
8217
8218 * solib-svr4.c (bkpt_names): Add "__start".
8219
f32e7a74
AC
82202002-04-04 Andrew Cagney <ac131313@redhat.com>
8221
8222 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8223 as test for 64 bit target.
8224
8227c0ff
AC
82252002-04-05 Andrew Cagney <ac131313@redhat.com>
8226
8227 * h8500-tdep.c (h8500_write_fp): Delete function.
8228 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8229 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8230 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8231 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8232 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8233 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8234 (s390_write_fp):
8235 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8236 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8237 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8238 (d10v_write_fp): Delete function.
8239 * inferior.h (write_fp, generic_target_write_fp): Delete
8240 declarations.
8241 * regcache.c (generic_target_write_fp): Delete function.
8242 (write_fp): Delete function.
8243 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8244 * gdbarch.h, gdbarch.c: Regenerate.
8245 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8246 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8247 (sparc64_write_fp): Delete declaration.
8248 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8249 (h8500_write_fp): Delete declaration.
8250
2757dd86
AC
82512002-04-04 Andrew Cagney <ac131313@redhat.com>
8252
8253 * sparc-tdep.c (sparc64_write_fp): Delete.
8254 (sparc_push_dummy_frame): Replace write_fp call with code to store
8255 the FP directly.
8256 (sparc_gdbarch_init): Do not initialize write_fp.
8257
c69255e1
KB
82582002-04-05 Kevin Buettner <kevinb@redhat.com>
8259
8260 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8261 clause.
8262
ae767bfb
JB
82632002-03-29 Jim Blandy <jimb@redhat.com>
8264
8265 * stack.c (get_selected_block): Add new argument `addr_in_block',
8266 used to return the exact code address we used to select the block,
8267 not just the block.
8268 * blockframe.c (get_frame_block, get_current_block): Same.
8269 * frame.h (get_frame_block, get_current_block,
8270 get_selected_block): Update declarations.
8271 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8272 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8273
84d2ac95
MS
82742002-04-05 Michael Snyder <msnyder@redhat.com>
8275
8276 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8277 warning message.
8278
596aa3bf
JB
82792002-04-05 J. Brobecker <brobecker@gnat.com>
8280
8281 * utils.c (xfullpath): New function.
8282 * defs.h (xfullpath): Add declaration.
8283 * source.c (openp): Use xfullpath in place of gdb_realpath to
8284 avoid resolving the basename part of filenames when the
8285 associated file is a symbolic link. This fixes a potential
8286 inconsistency between the filenames known to GDB and the
8287 filenames it prints in the annotations.
8288 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8289 to be able to match a filename with either the real filename, or
8290 the name of any symbolic link to this file.
8291 (lookup_partial_symtab): Ditto.
8292
c02f5703
MS
82932002-04-04 Michael Snyder <msnyder@redhat.com>
8294
8295 * breakpoint.c: Add support for hardware breakpoints in overlays.
8296 (overlay_events_enabled): New state variable.
8297 (insert_breakpoints): Use overlay_events_enabled to decide
8298 whether to attempt to set a breakpoint at the overlay load addr.
8299 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8300 (remove_breakpoint): Use overlay_events_enabled to decide
8301 whether breakpoints need to be removed from overlay load addr.
8302 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8303 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8304 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8305 disable_overlay_breakpoints): Update overlay_events_enabled.
8306
5fb290d7
DJ
83072002-04-04 Daniel Jacobowitz <drow@mvista.com>
8308
8309 * dwarf2read.c (struct function_range): New.
8310 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8311 (check_cu_functions): New.
8312 (read_file_scope): Initialize global function lists.
8313 Call dwarf_decode_line after processing children.
8314 (read_func_scope): Add to global function list.
8315 (dwarf_decode_lines): Call check_cu_functions everywhere
8316 record_line is called. Call record_line with a linenumber
8317 of 0 to mark sequence ends.
8318
7b3fabf0
ML
83192002-04-04 Michal Ludvig <mludvig@suse.cz>
8320
361d1df0 8321 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8322 change sync with glibc.
8323
bce58c09
JB
83242002-04-03 Jim Blandy <jimb@redhat.com>
8325
8326 * configure.in: Call AC_C_INLINE.
8327 * configure: Regenerated.
361d1df0 8328
2fccf04a
DJ
83292002-04-01 Daniel Jacobowitz <drow@mvista.com>
8330
8331 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8332 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8333
2d1bfe2e
MK
83342002-03-31 Mark Kettenis <kettenis@gnu.org>
8335
a5941fbf
MK
8336 * NEWS: Mention gcore support on FreeBSD/i386.
8337
a90cd31d
MK
8338 * fbsd-proc.c: New file.
8339 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8340 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8341
2d1bfe2e
MK
8342 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8343 while statement.
8344
9eb6e5a1
JB
83452002-03-29 Jim Blandy <jimb@redhat.com>
8346
8347 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8348 unescaped newlines in string literals, but newer ones don't. So
8349 escape them.
8350
f02df580
MS
83512002-03-26 Michael Snyder <msnyder@redhat.com>
8352 Andrew Cagney <cagney@redhat.com>
8353
361d1df0 8354 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8355 restore file to memory.
8356 * cli/cli-dump.h: New file.
8357 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8358 * NEWS: Mention new commands.
f02df580 8359
109f874e
MS
83602002-03-28 Michael Snyder <msnyder@redhat.com>
8361
8362 * symfile.c (symbol_file_add): Move test for null symbols to later.
8363
520f6ade
AC
83642002-03-27 Andrew Cagney <ac131313@redhat.com>
8365
8366 From veksler at il.ibm.com:
8367 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8368 the xstrduped original path.
8369 Fix PR gdb/417.
8370
d4654627
MS
83712002-03-27 Michael Snyder <msnyder@redhat.com>
8372
8373 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8374 * infcmd.c (_initialize_infcmd): Ditto.
8375 * language.c (_initialize_language): Ditto.
8376 * symfile.c (_initialize_symfile): Ditto.
8377 * top.c (_init_main): Ditto.
8378 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8379
6be8bc0c
EZ
83802002-03-27 Elena Zannoni <ezannoni@redhat.com>
8381
8382 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8383 vector registers handling.
8384 (skip_prologue): Handle new AltiVec instructions. Fill in new
8385 fields of frame data.
8386 (frame_get_saved_regs): Fill in information for AltiVec registers.
8387
12af6855
JB
83882002-03-27 Jim Blandy <jimb@redhat.com>
8389
8390 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8391 a function; leave this macro here to invoke that function.
8392 (symbol_init_mangled_name): Declaration for that function.
8393 * symtab.c (symbol_init_mangled_name): New function.
8394
dc672865
AC
83952002-03-27 Andrew Cagney <ac131313@redhat.com>
8396
8397 * valarith.c: Replace strerror with safe_strerror.
8398 * tracepoint.c: Ditto.
8399 * lin-lwp.c: Ditto.
8400 * go32-nat.c: Ditto.
8401 * inflow.c: Ditto.
8402 * gnu-nat.c: Ditto.
8403
d96429cd
AS
84042002-03-27 Andreas Schwab <schwab@suse.de>
8405
8406 * event-top.c (command_line_handler): Remove useless if.
8407
7e336ba1
AJ
84082002-03-27 Andreas Jaeger <aj@suse.de>
8409
8410 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8411 comment.
8412
de220d0f
ML
84132002-03-27 Michal Ludvig <mludvig@suse.cz>
8414
8415 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8416 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8417 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8418 (x86_64_linux_dr_get_status, supply_gregset),
8419 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8420 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8421 (x86_64_register_info_table): Add.
8422 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8423 (x86_64_register_raw_size, x86_64_register_virtual_type),
8424 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8425 general x86_64_register_info_table.
8426 (i386_gdbarch_init): gdbarch_register_bytes is now set
8427 dynamicaly during initialization.
8428 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8429 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8430
0e98d0a7
DJ
84312002-03-27 Daniel Jacobowitz <drow@mvista.com>
8432
8433 * gdbserver/server.c (main): Call target_signal_to_host_p
8434 and target_signal_to_host on signals received from the remote.
8435 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8436 target_signal_from_host on signals sent to the remote.
8437 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8438 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8439
3130066b
DJ
84402002-03-27 Daniel Jacobowitz <drow@mvista.com>
8441
8442 * signals/signals.c: Include "server.h" in gdbserver build.
8443 (target_signal_from_name): Don't use STREQ.
8444 (_initialize_signals): Likewise. Don't include function in
8445 gdbserver build.
8446
9aedf4f4
DJ
84472002-03-27 Daniel Jacobowitz <drow@mvista.com>
8448
8449 * signals.c: Moved to...
8450 * signals/signals.c: Here.
7e336ba1 8451 * Makefile (signals.o): Update.
9aedf4f4 8452
3fa41cdb
JL
84532002-03-26 Jeff Law (law@redhat.com)
8454
8455 * somread.c (som_symtab_read): Remove some commented out code and
8456 updated related comments. Do not set the minimal symbol table to
8457 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8458 in a dynamic executable.
8459 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8460 where we are unable to find the minimal symbol for the given
8461 PC value.
8462
ee677e8d
MS
84632002-03-25 Jeff Law (law@redhat.com)
8464
8465 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8466
e76e1718
ML
84672002-03-25 Michal Ludvig <mludvig@suse.cz>
8468
8469 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8470
18a642a1
AC
84712002-03-23 Andrew Cagney <ac131313@redhat.com>
8472
8473 * command.h: Update copyright.
8474 (struct cmd_list_element): Replace definition with opaque
8475 declaration.
8476 (enum cmd_types): Document that it will eventually be moved to
8477 cli/cli-decode.h
8478 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8479 (MALLOCED_REPLACEMENT): Delete macro.
8480 * Makefile.in (cli_decode_h): Add $(command_h).
8481 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8482 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8483 * completer.c: Include "cli/cli-decode.h".
8484 * maint.c: Include "cli/cli-decode.h".
8485 * cli/cli-decode.h: Include "command.h".
8486 (enum command_class): Delete.
8487 (enum cmd_types): Comment out.
8488 (enum cmd_auto_boolean): Delete.
8489 (enum var_types): Delete.
8490
b2875cc0
AC
84912002-03-23 Andrew Cagney <ac131313@redhat.com>
8492
8493 * cli/cli-decode.c: Include "gdb_assert.h".
8494 (add_set_or_show_cmd): New static function.
8495 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8496 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8497 all fields, such as func, from the set command.
8498
3b45974e
AC
84992002-03-23 Andrew Cagney <ac131313@redhat.com>
8500
8501 * MAINTAINERS (sh-elf): Change warning flag to -w.
8502
823ca731
AC
85032002-03-23 Andrew Cagney <cagney@redhat.com>
8504
8505 * defs.h (error): Add printf format attribute.
8506 * thread-db.c (thread_from_lwp): Fix error format string.
8507 * stack.c (parse_frame_specification): Ditto.
8508 * cli/cli-decode.c (undef_cmd_error): Ditto.
8509 * scm-lang.c (scm_lookup_name): Ditto.
8510 * tracepoint.c (trace_error): Ditto.
8511 * remote-utils.c (usage): Ditto.
8512 * remote.c (compare_sections_command): Ditto.
8513 Fix PR gdb/328.
8514
0e101458
AC
85152002-03-22 Andrew Cagney <ac131313@redhat.com>
8516
8517 * gdbtypes.c (append_composite_type_field): New function.
8518 (init_composite_type): New function.
8519 * gdbtypes.h (append_composite_type_field): Declare.
8520 (init_composite_type): Ditto.
8521
8e0662df
EZ
85222002-03-22 Elena Zannoni <ezannoni@redhat.com>
8523
8524 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8525 function.
8e0662df
EZ
8526 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8527 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8528 structure returning convention for SYSV ABI case, but not
8529 for GNU/Linux, FreeBSD, or NetBSD.
8530
3121eff0
DJ
85312002-03-22 Daniel Jacobowitz <drow@mvista.com>
8532
8533 * symtab.h (lookup_block_symbol): Add mangled_name argument
8534 to prototype.
8535
8536 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8537 with new mangled_name argument.
8538 * linespec.c (decode_line_1): Likewise.
8539 * valops (value_of_this): Likewise.
8540 * symtab.c (lookup_transparent_type): Likewise.
8541 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8542 (lookup_symbol): If we are given a mangled name, pass it down
8543 to lookup_symbol_aux.
8544 (lookup_block_symbol): If we are given a mangled name to check
8545 against, only return symbols which match it.
8546
349b409f
CF
85472002-03-22 Christopher Faylor <cgf@redhat.com>
8548
8549 * win32-nat.c (child_create_inferior): Check for proper shell to use
8550 here, in case the user changes it on the fly.
8551 (_initialize_inftarg): Remove shell path considerations.
8552
2a873819
EZ
85532002-03-21 Elena Zannoni <ezannoni@redhat.com>
8554
8555 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8556 for gdbarch_max_register_raw_size and max_register_virtual_size.
8557 Adjust copyright year.
8558
a1b9830c
DJ
85592002-03-21 Daniel Jacobowitz <drow@mvista.com>
8560
8561 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8562 in a function to cover the entire beginning of the function
8563 as well if it does not already.
8564
8b5790f2
TR
85652002-03-21 Tom Rix <trix@redhat.com>
8566
8567 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8568 (rs6000_ptrace64): Renamed from ptrace64.
8569
bdbe5747
MH
85702002-03-20 Martin M. Hunt <hunt@redhat.com>
8571
8572 * gdbserver/remote-utils.c (remote_open): Don't call
8573 getprotobyname, we're all using TCP here so just use
8574 IPPROTO_TCP.
7e336ba1 8575 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8576
85772002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8578
bdbe5747
MH
8579 * regcache.c (_initialize_regcache): No need to call
8580 build_regcache() at this time; it gets called whenever
8581 the gdbarch changes.
8582
7781cd62
DB
85832002-03-20 David O'Brien <obrien@FreeBSD.org>
8584
8585 * sparc-nat.c: Include sys/param.h where possible.
8586
f65ca430
DJ
85872002-03-20 Daniel Jacobowitz <drow@mvista.com>
8588
8589 Fix PR gdb/422.
8590 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8591 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8592 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8593 complex types.
8594 * stabsread.c (rs6000_builtin_type): Likewise.
8595 (read_sun_floating_type): Likewise.
8596
0c867556
PS
85972002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8598
8599 * stabsread.c (read_member_functions): Remove skip code for duplicate
8600 constructor/destructor methods. Use standard parsing for these
8601 methods and just do not chain them to the list of methods after
8602 parsing.
8603
12b9c64f
AO
86042002-03-19 Alexandre Oliva <aoliva@redhat.com>
8605
8606 * coffread.c: Remove redundant static declarations. Replace
8607 occurrences of `PTR' with `void *'.
8608 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8609 * top.h (quit_cover): Likewise.
8610 * defs.h (catch_errors): Likewise.
8611
349c5d5f
AC
86122002-03-18 Andrew Cagney <ac131313@redhat.com>
8613
8614 * defs.h (XMALLOC): Define.
8615 * gdb-events.sh (XMALLOC): Delete macro.
8616 * gdb-events.c, gdb-events.h: Regenerate.
8617 * gdbarch.sh (XMALLOC): Delete macro.
8618 * gdbarch.c: Regenerate.
8619 * serial.c (XMALLOC): Delete macro.
8620 * ui-file.c (XMALLOC): Ditto.
8621 * ser-unix.h (XMALLOC): Ditto.
8622 * sh-tdep.c (XMALLOC): Ditto.
8623 * ui-out.c (XMALLOC): Ditto.
8624 * utils.c (XMALLOC): Ditto.
8625 * i386-tdep.c (XMALLOC): Ditto.
8626 * gdb-events.c (XMALLOC): Ditto.
8627 * d10v-tdep.c (XMALLOC): Ditto.
8628 * cli-out.c (XMALLOC): Ditto.
8629
8630 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8631 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8632 * ui-file.c, ui-out.c: Ditto.
8633
7d0766f3
AC
86342002-03-18 Andrew Cagney <ac131313@redhat.com>
8635
8636 * command.h (struct cmd_list_element): Add field context.
8637 (set_cmd_context, get_cmd_context): Declare.
8638 * cli/cli-decode.h: Ditto.
8639 * cli/cli-decode.c (get_cmd_context): New function.
8640 (set_cmd_context): New function.
8641 (add_cmd): Initialize context.
8642 Part of fixing PR gdb/145 and PR gdb/146.
8643
5913bcb0
AC
86442002-03-17 Andrew Cagney <ac131313@redhat.com>
8645
1868c04e
AC
8646 * cli/cli-decode.c (cmd_type): New function.
8647 * command.h (cmd_type): Declare.
8648 * infrun.c (set_schedlock_func): Call function cmd_type.
8649 * kod.c (kod_set_os): Call cmd_type.
8650 * cris-tdep.c (cris_version_update): Use function cmd_type.
8651 (cris_mode_update, cris_abi_update): Ditto.
8652
5913bcb0
AC
8653 * command.h: (execute_cmd_post_hook): Declare.
8654 (execute_cmd_pre_hook): Declare.
8655 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8656 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8657 functions. Execute pre/post hook while ensuring that afterwords
8658 hook_in is cleared.
8659 * top.c (execute_command): Use execute_cmd_post_hook, and
8660 execute_cmd_pre_hook to execute pre/post commands.
8661 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8662 hook_stop_stub.
8663 (hook_stop_stub): Call execute_cmd_pre_hook.
8664
b51450c9
AC
86652002-03-17 Andrew Cagney <ac131313@redhat.com>
8666
8667 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8668 set'' and this leads to a core dump. Move xstrdup of
8669 operating_system to after check that it is not NULL.
8670
f66c9f11
AC
86712002-03-17 Andrew Cagney <ac131313@redhat.com>
8672
8e694ecf
AC
8673 * kod.c (kod_set_os): Remove unnecessary check that
8674 ``command->type'' is set_cmd.
8675
f66c9f11
AC
8676 * valprint.c (set_input_radix): Use input_radix.
8677 (set_output_radix): Use output_radix.
8678 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8679 isn't reverted.
8680
9d01611c
AC
86812002-03-16 Andrew Cagney <ac131313@redhat.com>
8682
8683 * value.h (struct value): Delete field ``substring_addr''. Change
8684 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8685 force_core_addr_align and force_pointer_aligh.
8686
8687 * value.h (struct value): Fix typo in above change.
9d01611c 8688
4156bb53
PS
86892002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8690
8691 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8692 to fix internal_error from ``maintenance print architecture''.
8693
0e5e3ea6
PS
86942002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8695
8696 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8697 for gcc versions after gcc-2.8.1.
8698
9b013045
PS
86992002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8700
8701 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8702 for method resolution. Restore adjustment of ``this'' pointer after
8703 calling value_struct_elt, which was accidentally removed during the
8704 HP merge.
8705
376c9600
AC
87062002-03-15 Andrew Cagney <ac131313@redhat.com>
8707
8708 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8709 value_of_register.
8710 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8711 get_saved_register.
8712 * value.h (value_of_register): Update.
8713
a4db0f07
RH
87142002-03-14 Richard Henderson <rth@redhat.com>
8715
8716 * configure.in: Detect declaration for canonicalize_file_name.
8717 * utils.c (canonicalize_file_name): Declare, if needed.
8718 (gdb_realpath): Prefer realpath if available and usable.
8719 * config.in, configure: Rebuild.
8720
96383835
RH
87212002-03-14 Richard Henderson <rth@redhat.com>
8722
8723 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8724 a constant array bound.
8725
8726 * MAINTAINERS: Add myself to write-after-approval.
8727
75245b24
MS
87282002-03-14 Michael Snyder <msnyder@redhat.com>
8729
8730 * symfile.c (syms_from_objfile): Return immediately if no syms.
8731 (symbol_file_add): Return immediately if no syms.
8732 (find_sym_fns): Return immediately if no syms.
8733
e641a1ca
ML
87342002-03-13 Michal Ludvig <mludvig@suse.cz>
8735
8736 * gdbserver/remote-util.c (remote_open): Print remote-side's
8737 IP address when remote debugging over the network.
7e336ba1 8738
df08bfec
DB
87392002-03-12 David O'Brien <obrien@FreeBSD.org>
8740
8741 * config/sparc/fbsd.mh: Fix copyright.
8742 * config/sparc/fbsd.mt: Likewise.
8743
9a57864f
RE
87442002-03-11 Richard Earnshaw <rearnsha@arm.com>
8745
8746 * MAINTAINERS: Fix typo in name of gdb warnings option.
8747 (x86-64): Fix formating so that this can be parsed by awk.
8748
dd7bf85e
DJ
87492002-03-10 Daniel Jacobowitz <drow@mvista.com>
8750
8751 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8752 * defs.h: Include "gdb/signals.h".
8753 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8754
33a0a2ac
ML
87552002-03-10 Michal Ludvig <mludvig@suse.cz>
8756
8757 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8758 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8759 from x86-64-tdep.h
8760
dd824b04
DJ
87612002-03-10 Daniel Jacobowitz <drow@mvista.com>
8762 Don Howard <dhoward@redhat.com>
8763
8764 * mips-tdep.c (ST0_FR): Define.
8765 (mips2_fp_compat): New function, temporarily disabled.
8766 (mips_read_fp_register_single): New function.
8767 (mips_read_fp_register_double): New function.
8768 (mips_print_register): Use them.
8769 (do_fp_register_row): Likewise.
8770
6a41ff59
AC
87712002-03-09 Andrew Cagney <ac131313@redhat.com>
8772
8773 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8774 approval''.
8775
4ea09c10
PS
87762002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8777
8778 * stabsread.c (read_member_functions): Fix is_stub test for
8779 static member functions, improve comment.
8780
6ccc741d
RE
87812002-03-07 Richard Earnshaw <rearnsha@arm.com>
8782
8783 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8784 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8785 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8786 commands that set boolean values.
8787 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8788 (arm_rdi_resume): Always initialize PC.
8789 (arm_rdi_open): Don't use rslt as a boolean.
8790 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8791 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8792 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8793 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8794
438013df
AO
87952002-03-06 Alexandre Oliva <aoliva@redhat.com>
8796
8797 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8798 * configure: Rebuilt.
8799
70ed8774
SC
88002002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8801
8802 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8803 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8804
5ba2abeb
AC
88052002-03-06 Andrew Cagney <ac131313@redhat.com>
8806
8807 * cli/cli-decode.c (set_cmd_completer): New function.
8808 * command.h (set_cmd_completer): Declare.
8809 * cli/cli-decode.h (set_cmd_completer): Ditto.
8810
8811 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8812 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8813 * win32-nat.c (_initialize_inftarg): Ditto.
8814 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8815 * proc-api.c (_initialize_proc_api): Ditto.
8816 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8817 * source.c (_initialize_source): Ditto.
8818 * exec.c (_initialize_exec): Ditto.
8819 * solib.c (_initialize_solib): Ditto.
8820 * top.c (init_main): Ditto.
8821 * tracepoint.c (_initialize_tracepoint): Ditto.
8822 * symfile.c (_initialize_symfile): Ditto.
8823 * printcmd.c (_initialize_printcmd): Ditto.
8824 * infcmd.c (_initialize_infcmd): Ditto.
8825 * corefile.c (_initialize_core): Ditto.
8826
f779ca99
AC
88272002-03-05 Andrew Cagney <ac131313@redhat.com>
8828
8829 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8830
01a3934b
AC
88312002-03-05 Andrew Cagney <ac131313@redhat.com>
8832
8833 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8834
37057839
AC
88352002-03-05 Andrew Cagney <ac131313@redhat.com>
8836
8837 * NEWS: Update headings, 5.2 has branched.
8838
c6ecbae5
DJ
88392002-03-04 Daniel Jacobowitz <drow@mvista.com>
8840
8841 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8842 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8843 (register_addr, REGISTER_RAW_SIZE): Likewise.
8844 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8845 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8846
e9f30c21
ML
88472002-03-03 Michal Ludvig <mludvig@suse.cz>
8848
8849 * MAINTAINERS (x86-64): Add myself.
8850 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8851 changed value_ptr -> struct value *
8852
54394ac3
DB
88532002-03-01 David O'Brien <obrien@FreeBSD.org>
8854
8855 * configure.host (sparc64-*-freebsd): Add.
8856 * configure.tgt: Likewise.
8857 * config/sparc/fbsd.mh: New file.
8858 * config/sparc/fbsd.mt: Likewise.
8859 * config/sparc/nm-fbsd.h: Likewise.
8860 * config/sparc/tm-fbsd.h: Likewise.
8861
bfe95955
DJ
88622002-03-01 Daniel Jacobowitz <drow@mvista.com>
8863
8864 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8865 regformats/reg-s390x.dat.
8866
f33c6cbf
AC
88672002-03-01 Andrew Cagney <ac131313@redhat.com>
8868
8869 * utils.c: Add FIXME explaining true/false problem.
8870
5ecaa7dd
AC
88712002-02-28 Andrew Cagney <ac131313@redhat.com>
8872
8873 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8874
2a251cc2
MC
88752002-02-28 Michael Chastain <mec@shout.net>
8876
8877 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8878
6a8031a3 88792002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8880
8881 * gdbserver/linux-s390-low.c: New file.
8882 * regformats/reg-s390.dat: New file.
8883 * regformats/reg-s390x.dat: New file.
8884 * gdbserver/configure.srv: Add S/390.
8885 * gdbserver/Makefile.in: Add S/390.
8886 * configure.tgt: Enable gdbserver for S/390.
8887
ac469903
EZ
88882002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8889
8890 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8891 first line of the doc string for "info dos", except at the end of
8892 the sentence, since the short help stops at the first period.
8893
985cb1a3
JM
88942002-02-28 Jason Merrill <jason@redhat.com>
8895
8896 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8897
c570663e
FF
88982002-02-27 Fred Fish <fnf@redhat.com>
8899
8900 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8901 comment (dumy -> dummy).
8902
43630227
PS
89032002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8904
8905 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8906
b84911e8
RB
89072002-02-27 Rodney Brown <rbrown64@csc.com.au>
8908
8909 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8910
58caa3dc
DJ
89112002-02-27 Daniel Jacobowitz <drow@mvista.com>
8912
8913 * gdbserver/acconfig.h: New file.
8914 * gdbserver/i387-fp.c: New file.
8915 * gdbserver/i387-fp.h: New file.
8916 * gdbserver/linux-x86-64.c: New file.
8917 * regformats/reg-x86-64.dat: New file.
8918 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8919 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8920 * gdbserver/configure.in: Add support for regsets.
8921 * gdbserver/config.in: Regenerate.
8922 * gdbserver/configure: Regenerate.
8923 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8924 * gdbserver/linux-low.h: New file.
8925 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8926 for regsets.
8927 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8928 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8929 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8930 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8931 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8932 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8933 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8934 "i387-fp.h". Add PTRACE_GETREGS and friends.
8935 * gdbserver/regcache.c (supply_register): New function.
8936 (supply_register_by_name): New function.
8937 (collect_register): New function.
8938 (collect_register_by_name): New function.
8939
93652174
DJ
89402002-02-27 Daniel Jacobowitz <drow@mvista.com>
8941
8942 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8943 (config.status): Add configure.srv dependency.
8944 (server_h): Add config.h dependency.
8945
a02e4a61
DJ
89462002-02-27 Daniel Jacobowitz <drow@mvista.com>
8947
8948 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8949 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8950 * gdbserver/configure.srv: Change i386-*-linux* to use
8951 reg-i386-linux.o.
8952
ce0eebec
AC
89532002-02-26 Andrew Cagney <ac131313@redhat.com>
8954
8955 * x86-64-tdep.c: Re-indent. Update copyright date.
8956
82dbc5f7
AC
89572002-02-26 Andrew Cagney <ac131313@redhat.com>
8958
8959 From Michal Ludvig <mludvig@suse.cz>:
8960 * x86-64-tdep.c (value.h): Delete.
8961 (gdb_assert.h): Include.
8962 (x86_64_register_convert_to_virtual,
8963 x86_64_register_convert_to_raw ): Add check which lets only
8964 floating-point values to be converted.
8965 (value_push): Delete.
8966 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8967 (i386_gdbarch_init): Number of register_bytes fixed.
8968
e4621584
AC
89692002-02-26 Andrew Cagney <ac131313@redhat.com>
8970
8971 * MAINTAINERS: Add x86-64 target.
8972
81a9a963
AC
89732002-02-26 Andrew Cagney <ac131313@redhat.com>
8974
8975 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8976 * osfsolib.c (solib_map_sections): Ditto.
8977 * irix5-nat.c (solib_map_sections): Ditto.
8978 * corelow.c (gdb_check_format): Ditto.
8979 * symfile.c (symfile_bfd_open): Ditto.
8980 * solib.c (solib_map_sections): Ditto.
8981 Fix PR gdb/354.
7e336ba1 8982
0f017ab9
AC
89832002-02-26 Andrew Cagney <ac131313@redhat.com>
8984
8985 * remote.c (_initialize_remote): By default, disable ``e'' and
8986 ``E'' step out-of-range packets.
8987
75738c29
AS
89882002-02-26 Andreas Schwab <schwab@suse.de>
8989
8990 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8991 m68k_linux_frame_saved_pc.
8992 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8993 in_sigtramp.
8994 (SIGCONTEXT_PC_OFFSET): Remove.
8995 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8996 m68k_linux_sigtramp_saved_pc): New functions.
8997 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8998 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8999 (UCONTEXT_PC_OFFSET): Define.
9000 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9001 non-RT and RT signal trampolines.
9002
7e8ed687
RE
90032002-02-26 Richard Earnshaw <rearnsha@arm.com>
9004
9005 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9006 (TARGET_NBPG, STACK_END_ADDR): Delete
9007 (VARIABLES_INSIDE_BLOCK): Delete.
9008
6972bc8b
AC
90092002-02-25 Andrew Cagney <ac131313@redhat.com>
9010
9011 * utils.c (perror_with_name): Make string parameter constant.
9012 (print_sys_errmsg): Ditto.
9013 (query): Ditto.
9014 * defs.h (perror_with_name): Update.
9015 (print_sys_errmsg): Update.
9016 (query): Update.
9017
aa32f823
DJ
90182002-02-25 Daniel Jacobowitz <drow@mvista.com>
9019
9020 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9021 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9022
19caaa45
PS
90232002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9024
9025 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9026 if it already matches the current architecture from the exec file.
9027 Include arch-utils.h for gdbarch_info_init prototype.
9028 * Makefile.in (rs6000-nat.o): Update dependencies.
9029
d951901f
EZ
90302002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9031
9032 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9033 list of exported variables.
9034
7ea81414
DJ
90352002-02-24 Daniel Jacobowitz <drow@mvista.com>
9036
9037 * gdbserver/configure.srv: New file.
9038 * gdbserver/configure.in: Use configure.srv instead
9039 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9040 from it.
9041 * gdbserver/configure: Regenerated.
9042 * gdbserver/terminal.h: New file.
9043 * gdbserver/Makefile.in: Update for configure changes. Remove
9044 more unneeded include paths.
9045
080fe24b
AC
90462002-02-24 Andrew Cagney <ac131313@redhat.com>
9047
9048 From wiz at danbala:
9049 * config/sparc/tm-sp64.h: Fix grammar and typos.
9050 Fix PR gdb/287.
9051
8605d56e
AC
90522002-02-24 Andrew Cagney <ac131313@redhat.com>
9053
9054 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9055 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9056 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9057 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9058 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9059 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9060 * s390-tdep.c: Ditto.
92362027
AC
9061 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9062 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9063 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9064 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9065 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9066 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9067 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9068 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9069 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9070 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9071 Fix PR gdb/378.
7e336ba1 9072
8ed32cc0
AC
90732002-02-23 Andrew Cagney <ac131313@redhat.com>
9074
a3007b6f
AC
9075 * lin-thread.c: Delete file.
9076 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9077 to gdb_proc_service.h.
9078 * configure: Re-generate.
9079
50a9e2f1
AC
9080 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9081 * serial.c (serial_open): Delete check for "ocd".
9082 Fix PR gdb/349.
9083
8b6e7932
AC
9084 * Makefile.in (linux-thread.o): Delete target.
9085 * linux-thread.c: Delete file.
9086
d155c46b
AC
9087 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9088 renamed SH files to be consistent.
9089
8ed32cc0
AC
9090 * symtab.c (sort_search_symbols): Use xfree.
9091
0e18d038
RE
90922002-02-23 Richard Earnshaw <rearnsha@arm.com>
9093
9094 * arm-linux-tdep.c (arm_linux_init_abi): Register
9095 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9096 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9097 definition with undef, since we don't want the sysvr4 definition.
9098 (SKIP_TRAMPOLINE_CODE): Likewise.
9099
27aac7ff
AC
91002002-02-23 Andrew Cagney <ac131313@redhat.com>
9101
9102 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9103
9104 * configure.in: (AC_CHECK_FUNCS) Added test for
9105 canonicalize_file_name Regenerated.
9106 * config.in, configure: Regenerated.
9107 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9108 defined use canonicalize_file_name.
7e336ba1 9109
65a6e0ee
MC
91102002-02-23 Michael Chastain <mec@shout.net>
9111
9112 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9113
47b95330
AC
91142002-02-23 Andrew Cagney <ac131313@redhat.com>
9115
9116 * README: Remove references to cygnus.com.
9117 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9118 dot com'' form. Remove references to cygnus.com and sourceware.
9119
696f451b
AC
91202002-02-23 Andrew Cagney <ac131313@redhat.com>
9121
9122 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9123 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9124 1003.1-2001 no longer allows "head -1".
9125 * gdb/Makefile.in (version.c): Likewise.
9126 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9127 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9128 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9129
bbaca940
AC
91302002-02-23 Andrew Cagney <ac131313@redhat.com>
9131
9132 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9133 * command.h (cmd_cfunc_eq): Declare.
9134 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9135
9136 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9137 ``struct cmd_list_element *''.
9138 * cli/cli-cmds.c (is_complete_command): Update. Use
9139 cmd_cfunc_eq.
9140 * top.c (execute_command): Pass the command to
9141 is_complete_command.
9142 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9143
b8b8b047
AC
91442002-02-23 Andrew Cagney <ac131313@redhat.com>
9145
9146 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9147 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9148 architecture defines.
9149 * s390-tdep.c (s390_gdbarch_init): Likewise.
9150
19d3fc80
RE
91512002-02-23 Richard Earnshaw <rearnsha@arm.com>
9152
9153 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9154 (arm_linux_push_arguments): Likewise.
9155 (arm_linux_init_abi): Register them. Also register linux-specific
9156 call_dummy_words.
9157 (find_minsym_and_objfile): Use strcmp, not STREQ.
9158 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9159 (arm_linux_call_dummy_words): Delete declaration.
9160 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9161 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9162 declarations.
9163 (LOWEST_PC): Delete.
9164
3ab13650
PS
91652002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9166
9167 * maint.c (print_section_info): Do not prepend `0x' to filepos
9168 output, it will be handled by local_hex_string_custom.
9169
19d3fc80 91702002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9171
9172 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9173 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9174 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9175
d85a5daf
JB
91762002-02-22 Jim Blandy <jimb@redhat.com>
9177
9178 Indicate that the bcache functions don't change the strings
9179 they're passed.
9180 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9181 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9182
eeb25b8a
PM
91832002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9184
9185 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9186
6badb179
CF
91872002-02-21 Christopher Faylor <cgf@redhat.com>
9188
9189 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9190 find the complete path to a loaded DLL.
9191
e8717518
FF
91922002-02-21 Fred Fish <fnf@redhat.com>
9193
9194 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9195 that marks the end of the range of a function, enter a line number
9196 entry that has a line number of zero and a PC offset that matches
9197 the end of the function. This starts a range of PC's for which no
9198 line number information is known.
9199 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9200 PC's for which no line number info is found (line number is zero)
9201 then we didn't find any valid line information.
9202 * symtab.h: Document use of zero line number entry.
9203
9abe5450
EZ
92042002-02-21 Elena Zannoni <ezannoni@redhat.com>
9205
9206 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9207 (have_ptrace_getvrregs): Define for run time checks.
9208 (gdb_vrregset_t): New type for Altivec register handling.
9209 (fetch_register, store_register): Fetch/store altivec register
9210 when needed.
9211 (fetch_altivec_register, store_altivec_register): New functions.
9212 (supply_vrregset, fill_vrregset): New functions.
9213 (fetch_altivec_registers, store_altivec_registers): New functions.
9214 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9215 registers as well.
9216
aaa38bb5
AJ
92172002-02-21 Jiri Smid <smid@suse.cz>
9218
9219 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9220
b34db576
RE
92212002-02-21 Richard Earnshaw <rearnsha@arm.com>
9222
9223 * Makefile.in (armnbsd-nat.o): Update dependencies.
9224 * armnbsd-nat.c (supply_gregset): New function. Common code to
9225 supply the integer register set.
9226 (supply_fparegset): New function. Similar for FPA registers.
9227 (fetch_regs, fetch_fp_regs): Use them.
9228 (fetch_core_registers): Likewise.
9229 (fetch_elfcore_registers): New function.
9230 (arm_netbsd_elfcore_fns): New core-file type specification.
9231 (_initialize_arm_netbsd_nat): Register it.
9232
3e56fc4b
RE
92332002-02-21 Richard Earnshaw <rearnsha@arm.com>
9234
9235 * armnbsd-nat.c: Include gdbcore.h.
9236 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9237 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9238 'void' to declaration, to shut up ARI.
9239 (fetch_core_registers): Make static. Rewrite using supply_register.
9240 (arm_netbsd_core_fns): New core-file type specification.
9241 (_initialize_arm_netbsd_nat): New function.
9242
097f6b0b
CF
92432002-02-21 Christopher Faylor <cgf@redhat.com>
9244
9245 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9246 value.
9247
c914e0cc
CF
92482002-02-20 Christopher Faylor <cgf@redhat.com>
9249
9250 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9251 fails.
9252
385fa495
DJ
92532002-02-20 Daniel Jacobowitz <drow@mvista.com>
9254
9255 * jv-exp.y (parse_number): Change type of implicit longs
9256 to builtin_type_uint64.
9257
e5f1222d
DJ
92582002-02-20 Daniel Jacobowitz <drow@mvista.com>
9259
9260 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9261 to be an integer instead of a `union wait'.
9262
75c9abc6
DJ
92632002-02-20 Daniel Jacobowitz <drow@mvista.com>
9264
9265 * mips-linux-nat.c: Call the operating system GNU/Linux.
9266 * mips-linux-tdep.c: Likewise.
9267 * mips-tdep.c: Likewise.
9268
551792a5
DJ
92692002-02-20 Daniel Jacobowitz <drow@mvista.com>
9270
9271 Fix PR gdb/265.
9272 * jv-exp.y (parse_number): Handle 64-bit integers.
9273
ee6e2b82
DJ
92742002-02-20 Daniel Jacobowitz <drow@mvista.com>
9275
9276 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9277 AC_STDC_HEADERS to AC_HEADER_STDC.
9278 * gdbserver/configure: Regenerated.
9279
a48442a0
RE
92802002-02-20 Richard Earnshaw <rearnsha@arm.com>
9281
9282 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9283 is defined.
9284 * sparc-tdep.c (get_longjmp_target): Likewise.
9285
fe419ffc
RE
92862002-02-20 Richard Earnshaw <rearnsha@arm.com>
9287
9288 * News: Add news about ARM and Multi-arch. Mention the new target
9289 arm*-*-netbsd*.
9290
5832ed7e
JB
92912002-02-19 Jim Blandy <jimb@redhat.com>
9292
9293 * stabsread.c (error_type_complaint): Improve error message.
9294
84563040
DJ
92952002-02-19 Daniel Jacobowitz <drow@mvista.com>
9296
9297 * gdbserver/README: Update documentation.
9298 * gdbserver/configure.in: Update configury to match documentation.
9299 * gdbserver/Makefile.in: Likewise.
9300 * gdbserver/configure: Regenerated.
9301 * gdbserver/aclocal.m4: New file, generated by aclocal.
9302 * gdbserver/config.in: New file, generated by autoheader.
9303
375fd65b
RE
93042002-02-19 Richard Earnshaw <rearnsha@arm.com>
9305
9306 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9307 armnbsd-nat.c.
9308
08216dd7
RE
93092002-02-19 Richard Earnshaw <rearnsha@arm.com>
9310
9311 * arm-tdep.h (enum arm_float_model): New enum.
9312 (struct gdbarch_tdep): Add fp_model.
9313 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9314 up floating-point conversions until we know the floating-point model
9315 in use by the inferior. Don't complain about being unable to
9316 determine the ABI of the inferior when we don't have one.
9317 (arm_extract_return_value): Support different floating-point models.
9318 (arm_store_return_value): Likewise.
aaa38bb5 9319 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9320 ARM_FLOAT_SOFT.
9321 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9322
65d6d66a
PS
93232002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9324
9325 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9326 of ``current_gdbarch''.
9327
47221191
RE
93282002-02-19 Richard Earnshaw <rearnsha@arm.com>
9329
9330 * armnbsd-nat.c : ANSIfy all function declarations.
9331 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9332 (fetch_inferior_registers): Re-implement in terms of above.
9333 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9334 (store_inferior_registers): Re-implement in terms of above.
9335
fdf39c9a
RE
93362002-02-19 Richard Earnshaw <rearnsha@arm.com>
9337
aaa38bb5 9338 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9339 kernel.
9340 * arm-linux-tdep.c: Likewise.
9341 * config/arm/tm-linux.h: Likewise.
9342
93247f88
RE
93432002-02-19 Richard Earnshaw <rearnsha@arm.com>
9344
9345 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9346 * config/arm/nbsd.mt (TM_FILE): Delete.
9347 * config/arm/tm-nbsd.h: Delete.
9348
d7b486e7
RE
93492002-02-19 Richard Earnshaw <rearnsha@arm.com>
9350
9351 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9352 Initialize CALL_DUMMY_LENGTH.
9353
41d39a95
RE
93542002-02-19 Richard Earnshaw <rearnsha@arm.com>
9355
9356 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9357 function.
9358 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9359 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9360 defines one thing and that is incorrect for this port.
9361 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9362
e1195560
PM
93632002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9364
9365 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9366
c1748f97
PM
93672002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9368
9369 * win32-nat.c (display_selector): New function. Displays information
9370 about the information returned by GetThreadSelectorEntry API function.
9371 (display_selectors): New function. Displays the infomation of
9372 the selector given as argument, or of CS, DS ans FS selectors
9373 if no argument is given.
9374 ( _initialize_inftarg): Add "w32" as info prefix command.
9375 Add "info w32 selector" as command calling display_selectors.
9376
e41e6bbf
PM
93772002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9378
9379 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9380 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9381 if not defined.
9382
0d3a9f48
RE
93832002-02-18 Richard Earnshaw <rearnsha@arm.com>
9384
9385 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9386
3fb4b924
RE
93872002-02-18 Richard Earnshaw <rearnsha@arm.com>
9388
9389 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9390 (arm_fix_call_dummy): Call it.
9391 (arm_call_dummy_breakpoint_offset): Delete.
9392 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9393 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9394
7f55af32
AC
93952002-02-18 Andrew Cagney <ac131313@redhat.com>
9396
9397 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9398 Default to func_frame_chain_valid.
9399 * gdbarch.h, gdbarch.c: Re-generate.
9400 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9401
05f13b9c
EZ
94022002-02-18 Elena Zannoni <ezannoni@redhat.com>
9403
9404 * ppc-linux-nat.c: Update copyright.
9405 (fetch_register, store_register): Add tid parameter, don't compute
9406 tid here.
9407 (fetch_ppc_registers, store_ppc_registers): Add tid
9408 parameter. Pass it along to callees.
9409 (fetch_inferior_registers, store_inferior_registers): Compute tid
9410 here, and pass it to calleed functions.
9411 (fill_gregset, supply_fpregset): Clean up formatting.
9412
d7afb4c9
RE
94132002-02-18 Richard Earnshaw <rearnsha@arm.com>
9414
9415 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9416 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9417
9df628e0
RE
94182002-02-18 Richard Earnshaw <rearnsha@arm.com>
9419
9420 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9421 * gdbarch.c gdbarch.h: Regenerate.
9422 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9423 function.
9424 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9425 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9426 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9427
9428 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9429 * arm-tdep.c (arm_get_longjmp_target): New function.
9430 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9431 this to a positive value register arm_get_longjmp_target as the
9432 longjmp handler.
9433 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9434 (arm_linux_init_abi): Set up longjmp description in tdep.
9435 * armnbsd-nat.c (get_longjmp_target): Delete.
9436 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9437 description in tdep.
9438 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9439 (get_longjmp_target): Delete declaration.
9440 (GET_LONGJMP_TARGET): Delete.
9441 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9442 (GET_LONGJMP_TARGET): Delete.
9443
57bc8964
KB
94442002-02-17 Kevin Buettner <kevinb@redhat.com>
9445
9446 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9447 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9448 of ``current_gdbarch''.
9449
83d31a92
TT
94502002-02-17 Tom Tromey <tromey@redhat.com>
9451
9452 * cli/cli-cmds.c (compare_strings): New function.
9453 (complete_command): Only print each unique item once.
9454 * completer.h (complete_line): Declare.
9455 * completer.c (complete_line): New function.
9456 (line_completion_function): Use it.
9457
17ef5d92
AC
94582002-02-16 Andrew Cagney <ac131313@redhat.com>
9459
9460 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9461 * gdbarch.h, gdbarch.c: Re-generate.
9462
491b8946
DJ
94632002-02-16 Daniel Jacobowitz <drow@mvista.com>
9464
9465 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9466
94672002-02-16 Daniel Jacobowitz <drow@mvista.com>
9468
9469 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9470 * valops.c (value_arg_coerce): Don't take the address of a reference
9471 to convert an argument to a reference.
9472
dfe7f3ac
CF
94732002-02-15 Christopher Faylor <cgf@redhat.com>
9474
9475 * win32-nat.c (get_image_name): New function.
9476 (handle_load_dll): Use get_image_name function.
9477 (get_child_debug_event): Avoid registering debug events until possibly
9478 execed process is started.
9479 (child_create_inferior): Allow invocation via shell so that command
9480 line redirection, etc. works ok.
9481 (_initialize_inftarg): Add new command: "set shell" to control whether
9482 a shell is used to start a process.
9483
1d33e73a
DJ
94842002-02-15 Daniel Jacobowitz <drow@mvista.com>
9485
9486 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9487 instead of find_register_by_number.
9488 (cannot_store_register): Likewise.
9489
48cd0caa
PM
94902002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9491
aaa38bb5 9492 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9493 fprintf_unfiltered (gdb_stderr, ...).
9494
8656e7d8
DJ
94952002-02-15 Daniel Jacobowitz <drow@mvista.com>
9496
9497 * gdbserver/gdbserver.1: Document --attach.
9498
66e810cd
RE
94992002-02-15 Richard Earnshaw <rearnsha@arm.com>
9500
9501 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9502 descriptions.
9503 * arm-tdep.c (arm_default_arm_le_breakpoint)
9504 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9505 (arm_default_thumb_be_breakpoint): New. Initialize them from
9506 traditional breakpoint defines.
9507 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9508 (arm_gdbarch_init): Initialize new breakpoint variables.
9509 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9510 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9511 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9512 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9513 code out to ...
9514 (arm_netbsd_init_abi_common): ... here; new function.
9515 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9516 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9517 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9518 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9519
97e03143
RE
95202002-02-15 Richard Earnshaw <rearnsha@arm.com>
9521
9522 * arm-tdep.h (enum arm_abi): New enum.
9523 (struct gdbarch_tdep): New structure.
9524 (LOWEST_PC): Provide a default.
9525 (arm_gdbarch_register_os_abi): Declare new function.
9526 * arm-tdep.c (arm_abi_names): New array.
9527 (process_note_abi_tag_sections): New function.
9528 (get_elfosabi): New function.
9529 (arm_gdbarch_register_os_abi): New function.
9530 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9531 support for that ABI has been built in, then call the appropriate
9532 configuration routine. Use gdbarch_num_regs() to get the number
9533 of registers.
9534 (arm_dump_tdep): New function.
9535 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9536 place-holder functions.
9537 (_initialize_arm_tdep): Register them.
9538 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9539
9540 * armnbsd-tdep.c: New file.
9541 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9542 * config/arm/nbsd.mt (TDEPFILES): Add it.
9543 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9544
9545 * armnbsd-nat.c: Include regcache.h.
9546 * Makefile.in (armnbsd-nat.o): Update dependency list.
9547
9548 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9549
ad68be46
DJ
95502002-02-14 Daniel Jacobowitz <drow@mvista.com>
9551
9552 * gdbserver/Makefile.in: Fix typos in target rules.
9553
003d6d1d
DJ
95542002-02-14 Daniel Jacobowitz <drow@mvista.com>
9555
aaa38bb5 9556 Fix part of PR gdb/267.
003d6d1d
DJ
9557 * linespec.c (find_methods): Handle constructors specially for now.
9558
6b230f1b
CV
95592002-02-14 Corinna Vinschen <vinschen@redhat.com>
9560
9561 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9562 handling.
9563 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9564 standard_coerce_float_to_double().
9565
1ea98d12
CF
95662002-02-14 Christopher Faylor <cgf@redhat.com>
9567
9568 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9569 GDBINIT_FILENAME.
9570
dd47e6fd
EZ
95712002-02-14 Elena Zannoni <ezannoni@redhat.com>
9572
9573 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9574 find_variant_by_name, because it confuses the multiarch
9575 framework. Return NULL if there isn't an architecture with the
9576 user supplied name, instead of forcing a different one without
9577 recording the change with the multiarch machinery.
9578 (find_variant_by_name): Delete.
9579
d7e39b9e
PS
95802002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9581
9582 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9583 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9584
76e42a4f
MH
95852002-02-13 Martin M. Hunt <hunt@redhat.com>
9586
aaa38bb5 9587 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9588 print_frame_info_listing_hook, set current_source_symtab.
9589
0a30fbc4
DJ
95902002-02-14 Daniel Jacobowitz <drow@mvista.com>
9591
9592 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9593 and remove unused $(INCLUDE_DIR).
9594 Add regcache.c to OBS.
9595 Add generated register protocol files to clean target.
9596 Update dependencies for new objects, obsolete old target code.
9597
9598 * gdbserver/linux-low.c: Remove all platform-specific code to
9599 new files. Remove various dead code. Update to use regcache
9600 functionality.
9601 * gdbserver/remote-utils.c (fromhex): Add return statement
9602 to quiet warning.
9603 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9604 constant.
9605 (input_interrupt): Add integer parameter to match prototype
9606 of a signal handler.
9607 (outreg): Use register_data ().
9608 (prepare_resume_reply): Use gdbserver_expedite_regs.
9609 * gdbserver/server.c (main): Dynamically allocate own_buf because
9610 PBUFSIZ is no longer constant. Use registers_to_string () and
9611 registers_from_string ().
9612 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9613 for error (), fatal (), and warning (). Update definition of
9614 PBUFSIZ to use regcache functionality. Add include guard.
9615 * gdbserver/utils.c (fatal): Add missing ``const''.
9616 (warning): New function.
9617
9618 * regformats/regdat.sh: Include "regcache.h" in generated files.
9619 Provide init_registers () function.
9620 * regformats/regdef.h: Add prototype for set_register_cache ().
9621 Add include guard.
9622
9623 * gdbserver/linux-arm-low.c: New file.
9624 * gdbserver/linux-i386-low.c: New file.
9625 * gdbserver/linux-ia64-low.c: New file.
9626 * gdbserver/linux-m68k-low.c: New file.
9627 * gdbserver/linux-mips-low.c: New file.
9628 * gdbserver/linux-ppc-low.c: New file.
9629 * gdbserver/linux-sh-low.c: New file.
9630
9631 * gdbserver/regcache.c: New file.
9632 * gdbserver/regcache.h: New file.
9633
9634 * gdbserver/low-linux.c: Removed obsolete file.
9635
4cc841d0
DJ
96362002-02-14 Daniel Jacobowitz <drow@mvista.com>
9637
9638 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9639 * config/i386/linux.mt: Likewise.
9640 * config/ia64/linux.mt: Likewise.
9641 * config/m68k/linux.mh: Likewise.
9642 * config/powerpc/linux.mh: Likewise.
9643 * config/mips/linux.mt: Likewise.
9644
9645 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9646
9647 * config/i386/i386lynx.mh: Mark gdbserver variables
9648 as (currently) obsolete for this target.
9649 * config/i386/nbsd.mt: Likewise.
9650 * config/i386/nbsdelf.mt: Likewise.
9651 * config/m32r/m32r.mt: Likewise.
9652 * config/m68k/m68klynx.mh: Likewise.
9653 * config/m68k/nbsd.mt: Likewise.
9654 * config/m68k/sun3os4.mh: Likewise.
9655 * config/mips/vr5000.mt: Likewise.
9656 * config/ns32k/nbsd.mt: Likewise.
9657 * config/pa/hppabsd.mh: Likewise.
9658 * config/pa/hppaosf.mh: Likewise.
9659 * config/powerpc/nbsd.mt: Likewise.
9660 * config/rs6000/rs6000lynx.mh: Likewise.
9661 * config/s390/s390.mt: Likewise.
9662 * config/s390/s390x.mt: Likewise.
9663 * config/sparc/sparclynx.mh: Likewise.
9664 * config/sparc/sun4os4.mh: Likewise.
9665 * config/i386/x86-64linux.mt: Likewise.
9666 * config/sparc/linux.mh: Likewise.
9667
a85f51e7
DJ
96682002-02-14 Daniel Jacobowitz <drow@mvista.com>
9669
9670 * configure.tgt: Configure gdbserver only for known working
9671 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9672 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9673 SUBDIRS if it is configured. Update comment for ${nativefile}.
9674 * configure: Regenerated.
9675
65554fef
MS
96762002-02-13 Michael Snyder <msnyder@redhat.com>
9677
670a52db
MS
9678 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9679
6dbdc4a3
MS
9680 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9681 (default_gcore_mach): Just return 0, work around a problem in bfd.
9682 (default_gcore_target): OK to return NULL if exec_bfd is null.
9683 (make_mem_sec): Use a cast, avoid a warning.
9684
9685 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9686 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9687 sizeof (host pointer) != sizeof (target pointer)).
9688 (procfs_make_note_section): Avoid overflow in psargs string.
9689
aaa38bb5 9690 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9691 implementation return an error.
9692
96932002-02-13 Rodney Brown <rbrown64@csc.com.au>
9694
9695 * procfs.c (procfs_make_note_section): Provide a default definition
9696 (for alpha-dec-osf4.0f). Fix typos.
9697
1e4d76e7
EZ
96982002-02-13 Elena Zannoni <ezannoni@redhat.com>
9699
9700 * linux-proc.c: Add include of regcache.h.
9701 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9702
b6d1a1d5
AC
97032002-02-13 Andrew Cagney <ac131313@redhat.com>
9704
9705 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9706 * memattr.c (create_mem_region): Disallow useless empty region.
9707 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9708 non-overlapping.
b6d1a1d5 9709
6c6ea35e
MC
97102002-02-13 Michael Chastain <mec@shout.net>
9711
9712 * defs.h: Kill CONST_PTR.
9713 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9714 * c-lang.c (c_builtin_types): Likewise.
9715 * ch-lang.c (ch_builtin_types): Likewise.
9716 * f-lang.c (f_builtin_types): Likewise.
9717 * language.c (unknown_builtin_types): Likewise.
9718 * m2-lang.c (m2_builtin_types): Likewise.
9719 * p-lang.c (pascal_builtin_types): Likewise.
9720 * scm-lang.c (c_builtin_types): Likewise.
9721
3e0b0f48
KS
97222002-02-13 Keith Seitz <keiths@redhat.com>
9723
9724 * arm-tdep.h (arm_get_next_pc): Add declaration.
9725
67255d04
RE
97262002-02-13 Richard Earnshaw <rearnsha@arm.com>
9727
9728 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9729 with other related struct-returning functions.
9730 (arm_extract_struct_value_address): New function.
9731 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9732 initialize float_format, double_format and long_double_format as
9733 appropriate to the endianness of the target.
9734 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9735 (arm_use_struct_convention): Delete declaration.
9736 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9737
079777f6
KS
97382002-02-13 Keith Seitz <keiths@redhat.com>
9739
9740 * defs.h (core_addr_to_string_nz): New function.
9741
34588f23
MK
97422002-02-13 Mark Kettenis <kettenis@gnu.org>
9743
9744 Apply missing bits of 2002-01-15 patch.
9745 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9746 (fill_fpregset): Use i387_fill_fsave.
9747
49b563f9
KS
97482002-02-12 Keith Seitz <keiths@redhat.com>
9749
49b563f9
KS
9750 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9751 (core_addr_to_string_nz): New function.
9752
aeb98c60
RE
97532002-02-11 Richard Earnshaw <rearnsha@arm.com>
9754
9755 * arm-linux-nat.c: Really include arm-tdep.h.
9756 * config/arm/tm-linux.h (struct type, struct value): Declare.
9757
65554fef
MS
97582002-02-11 Michael Snyder <msnyder@redhat.com>
9759
9760 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9761 (gcore section): Ifdef for Solaris and Unixware only.
9762 (procfs_do_thread_registers): Unixware needs one lwpstatus
9763 per thread (not one prstatus or pstatus).
9764 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9765 not over all gdb threads. For unixware, call elfcore_write_pstatus
9766 once before iterating over threads.
9767
34e8f22d
RE
97682002-02-11 Richard Earnshaw <rearnsha@arm.com>
9769
9770 * arm-tdep.h: New file.
9771 * arm-tdep.c: Include arm-tdep.h.
9772 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9773 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9774 (arm_print_float_info, arm_register_type, convert_to_extended)
9775 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9776 (arm_extract_return_value, arm_register_name): Make static.
9777 (arm_software_single_step): Similarly. Fix types in declaration.
9778 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9779 (arm_store_return_value, arm_store_struct_return): New functions.
9780 (arm_gdbarch_init): Register the above functions. Also register
9781 call_dummy_start_offset, sizeof_call_dummy_words,
9782 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9783 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9784 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9785 prologue_cache.saved_regs here, rather than ...
9786 (_initialize_arm_tdep): ... here.
9787 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9788 declarations.
9789 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9790 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9791 (arm_print_float_info, arm_register_type, convert_to_extended)
9792 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9793 (arm_extract_return_value, arm_register_name): Delete declarations.
9794 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9795 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9796 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9797 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9798 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9799 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9800 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9801 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9802 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9803 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9804 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9805 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9806 interface.
9807 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9808 * remote-rdi.c remote-rdp.c: Likewise.
9809 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9810 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9811 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9812 definition.
9813
9814 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9815 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9816 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9817 from non-ARM_ prefixed definitions.
9818 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9819 all uses of above.
9820 * remote-rdi.c remote-rdp.c: Likewise.
9821 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9822
148754e5
RE
98232002-02-11 Richard Earnshaw <rearnsha@arm.com>
9824
9825 * arm-tdep.c (arm_frameless_function_invocation)
9826 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9827 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9828 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9829 (arm_pop_frame, arm_get_next_pc): Make static.
9830 (arm_gdbarch_init): Register above in gdbarch structure.
9831 (arm_read_fp): Renamed from arm_target_read_fp.
9832 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9833 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9834 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9835 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9836 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9837 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9838 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9839 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9840 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9841 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9842 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9843
434d2d4f
DJ
98442002-02-10 Daniel Jacobowitz <drow@mvista.com>
9845
9846 * symtab.c (compare_search_syms): New function.
9847 (sort_search_symbols): New function.
9848 (search_symbols): Sort symbols after searching rather than
9849 before.
9850
55241689
AC
98512002-02-10 Andrew Cagney <ac131313@redhat.com>
9852
9853 * NEWS: Linux -> GNU/Linux.
9854
028c194b
AC
98552002-02-10 Andrew Cagney <ac131313@redhat.com>
9856
9857 * gdbarch.sh: For for level one methods, disallow a definition
9858 when partially multi-arched. Add comments explaining rationale.
9859 * gdbarch.h: Re-generate.
9860
6acf50cd
AC
98612002-02-10 Andrew Cagney <ac131313@redhat.com>
9862
9863 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9864 multi-arch partial.
aaa38bb5 9865
50248794
AC
98662002-02-10 Andrew Cagney <ac131313@redhat.com>
9867
9868 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9869 field. Use diff -u.
9870 * gdbarch.c: Re-generate.
9871
c30e0066
AC
98722002-02-10 Andrew Cagney <ac131313@redhat.com>
9873
9b56c5f3 9874 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9875 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9876 partial.
9877
6e6d6484
AC
98782002-02-10 Andrew Cagney <ac131313@redhat.com>
9879
9880 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9881 multi-arch partial.
9882 (PUSH_ARGUMENTS): Switch to using predefault.
9883 * gdbarch.c: Regenerate.
9884
c203844d
AC
98852002-02-10 Andrew Cagney <ac131313@redhat.com>
9886
9887 * valops.c (PUSH_ARGUMENTS): Delete definition.
9888 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9889 partial. Default to default_push_arguments.
9890 * gdbarch.h, gdbarch.c: Regenerate.
9891
b5a2688f
AC
98922002-02-09 Andrew Cagney <ac131313@redhat.com>
9893
9894 * defs.h (throw_exception): Rename return_to_top_level. Update
9895 comments.
9896 * utils.c (error_stream, internal_verror, quit): Ditto.
9897 * top.c (throw_exception, catcher): Ditto.
9898 * sparclet-rom.c (sparclet_load): Ditto.
9899 * remote.c (interrupt_query, minitelnet): Ditto.
9900 * remote-sds.c (interrupt_query): Ditto.
9901 * remote-mips.c (mips_error, mips_kill): Ditto.
9902 * ocd.c (interrupt_query): Ditto.
9903 * monitor.c (monitor_interrupt_query): Ditto.
9904 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9905 * target.h: Update comment.
aaa38bb5 9906
b5a2688f 9907 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9908
2fa5c1e0
AC
99092002-02-09 Andrew Cagney <ac131313@redhat.com>
9910
9911 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9912 default_double_format.
9913 * gdbarch.h, gdbarch.c: Re-generate.
9914 * findvar.c (floatformat_unknown): Delete variable definition.
9915 * doublest.h (floatformat_unknown): Delete variable declaration.
9916
da966255
JB
99172002-02-09 Jim Blandy <jimb@redhat.com>
9918
9919 * stabsread.c (read_type): Add code to parse Sun's syntax for
9920 prototyped function types.
9921
123a4891
AC
99222002-02-09 Andrew Cagney <ac131313@redhat.com>
9923
9924 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9925 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9926
fb39c8f3
PS
99272002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9928
9929 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9930 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9931 now _initialize_xcoffsolib gets called again and overrides the
9932 commands from solib.c in a native configuration.
9933
0b87a11d
MK
99342002-02-09 Mark Kettenis <kettenis@gnu.org>
9935
9936 * doublest.c (store_typed_floating): Don't try to return a value.
9937 Fixes PR gdb/290.
9938
bdc2fc72
JB
99392002-02-08 Jim Blandy <jimb@redhat.com>
9940
9941 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9942 is prototyped and has no arguments, print its argument list as
9943 `(void)'.
9944
da69bbcf
CD
99452002-02-08 Chris Demetriou <cgd@broadcom.com>
9946
9947 * MAINTAINERS (write-after-approval): Add myself.
9948 (paper-trail): I've escaped!
aaa38bb5 9949
b69571f5
CF
99502002-02-08 Christopher Faylor <cgf@redhat.com>
9951
9952 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9953 changes.
9954 (_initialize_check_for_gdb_ini): Ditto.
9955
f6871398
MH
99562002-02-08 Martin M. Hunt <hunt@redhat.com>
9957
9958 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9959 xaprintf -> xasprintf.
9960
4e52d31c
PM
99612002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9962
9963 * win32-nat.c: Remove use of printf and sprintf functions.
9964
39bbf761
RE
99652002-02-08 Richard Earnshaw <rearnsha@arm.com>
9966
9967 * arm-tdep.c (arm_frame_chain_valid): Make static.
9968 (arm_push_arguments): Likewise.
9969 (arm_gdbarch_init): New function.
9970 (_initialize_arm_tdep): Call it.
9971 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9972 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9973 (FRAME_CHAIN_VALID): Delete.
9974 (arm_frame_chain_valid): Delete declaration.
9975 (PUSH_ARGUMENTS): Delete.
9976 (arm_push_arguments): Delete declaration.
9977 (CALL_DUMMY_P): Delete.
9978
9c9532c9
CV
99792002-02-08 Andrew Cagney <ac131313@redhat.com>
9980 Corinna Vinschen <vinschen@redhat.com>
9981
9982 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9983 on builtin float types.
9984
4e8f7a8b
DJ
99852002-02-08 Daniel Jacobowitz <drow@mvista.com>
9986
9987 * utils.c: Include <curses.h> before "bfd.h".
9988 * tui/tui-hooks.c: Likewise.
9989 * tui/tui.c: Likewise.
9990 * tui/tuiCommand.c: Likewise.
9991 * tui/tuiData.c: Likewise.
9992 * tui/tuiDataWin.c: Likewise.
9993 * tui/tuiDisassem.c: Likewise.
9994 * tui/tuiGeneralWin.c: Likewise.
9995 * tui/tuiIO.c: Likewise.
9996 * tui/tuiLayout.c: Likewise.
9997 * tui/tuiRegs.c: Likewise.
9998 * tui/tuiSource.c: Likewise.
9999 * tui/tuiSourceWin.c: Likewise.
10000 * tui/tuiStack.c: Likewise.
10001 * tui/tuiWin.c: Likewise.
10002
cd4bffcf
EZ
100032002-02-07 Elena Zannoni <ezannoni@redhat.com>
10004
10005 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10006 to include space for pseudoregs as well. Update loops accordingly.
10007 (sh_fp_frame_init_saved_regs): Ditto.
10008 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10009
26806ce2
AC
100102002-02-07 Andrew Cagney <ac131313@redhat.com>
10011
10012 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10013 Add Richard Earnshaw to Arm maintainers.
10014
97fdab62
AC
100152002-02-07 Andrew Cagney <ac131313@redhat.com>
10016
a6b98203
AC
10017 * defs.h (warning_begin): Delete declaration.
10018
97fdab62
AC
10019 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10020 Delete macro.
10021
78b29b40
MS
100222002-02-07 Michael Snyder <msnyder@redhat.com>
10023
aaa38bb5 10024 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10025 Logic bug, remove misplaced else.
10026
d8849953
KD
100272002-02-07 Klee Dienes <klee@apple.com>
10028
10029 * fork-inferior.c (fork_inferior): Add '!' to the list of
10030 characters that need to be quoted when building a string for the
10031 shell. Quote '!' specifically with a backslash, since CSH chokes
10032 when trying to evaluate "str!str".
aaa38bb5 10033
095778a0
NC
100342002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10035
10036 * rdi-share/host.h: Only provide a typedef for bool if it is not
10037 defined.
10038
1900040c
MS
100392002-02-04 Michael Snyder <msnyder@redhat.com>
10040
10041 * breakpoint.h (enum bptype): Add new overlay event bp type.
10042 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10043
1900040c
MS
10044 * breakpoint.c (create_internal_breakpoint): New function.
10045 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10046 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10047 (create_thread_event_breakpoint): Ditto.
10048 (create_solib_event_breakpoint): Ditto.
10049 (create_overlay_event_breakpoint): New function.
10050 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10051 (update_breakpoints_after_exec): Delete and re-initialize
10052 overlay event breakpoints after an exec. Add FIXME comment
10053 about longjmp breakpoint.
10054 (print_it_typical): Ignore overlay event breakpoints.
10055 (print_one_breakpoint): Ditto.
10056 (mention): Ditto.
10057 (bpstat_what): Do not stop for overlay event breakpoints.
10058 (delete_breakpoint): Don't delete overlay event breakpoints.
10059 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10060 (breakpoint_re_set): Re-create overlay event breakpoint.
10061
10062 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10063 (overlay_manual_command): Disable overlay breakpoints.
10064 (overlay_off_command): Disable overlay breakpoints.
10065
082fc60d
RE
100662002-02-06 Richard Earnshaw <rearnsha@arm.com>
10067
10068 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10069 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10070 to here from config/tm-arm.h.
10071 (coff_sym_is_thumb): Make static.
10072 (arm_elf_make_msymbol_special): New function.
10073 (arm_coff_make_msymbol_special): New function.
10074 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10075 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10076 (coff_sym_is_thumb): Delete declaration.
10077 (arm_elf_make_msymbol_special): Declare.
10078 (arm_coff_make_msymbol_special): Declare.
10079 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10080 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10081
039c5766
RE
100822002-02-06 Richard Earnshaw <rearnsha@arm.com>
10083
10084 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10085
100862002-02-06 Richard Earnshaw <rearnsha@arm.com>
10087
10088 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10089 * gdbarch.c gdbarch.h: Regenerate.
10090 * arch-utils.c (default_print_float_info): New function.
10091 * arch-utils.h (default_print_float_info): Prototype it.
10092 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10093 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10094 (PRINT_FLOAT_INFO): Document it.
10095
10096 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10097 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10098 (PRINT_FLOAT_INFO): Define.
10099
58fa08f0
PM
101002002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10101
aaa38bb5 10102 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10103 Add typecast to sprintf argument to suppress a warning.
10104
7393af7c
PM
101052002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10106
58fa08f0 10107 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10108 to allow easier handling of pass state.
10109 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10110 that gives exception name and address.
10111 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10112 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10113 exceptions added.
aaa38bb5
AJ
10114 (child_continue): Correctly report continue_status.
10115 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10116 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10117 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10118 the exception should be passed to debuggee or not.
10119
6af4589c
MS
101202002-02-05 Michael Snyder <msnyder@redhat.com>
10121
10122 * regcache.c (fetch_register): Call target_fetch_register
10123 only if we don't call FETCH_PSEUDO_REGISTER.
10124 (store_register): Call target_store_register only if we
10125 don't call STORE_PSEUDO_REGISTER.
10126
a2cf933a
EZ
101272002-02-05 Elena Zannoni <ezannoni@redhat.com>
10128
10129 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10130 ELF_MAKE_MSYMBOL_SPECIAL.
10131 * gdbarch.c, gdbarch.h: Regenerate.
10132 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10133 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10134 * elfread.c (elf_symtab_read): Compile use of
10135 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10136 multiarched.
10137 * coffread.c (coff_symtab_read): Ditto, for
10138 COFF_MAKE_MSYMBOL_SPECIAL.
10139
6bb7be43
JB
101402002-02-05 Jim Blandy <jimb@redhat.com>
10141
10142 * solib-svr4.c (svr4_truncate_ptr): New function.
10143 (svr4_relocate_section_addresses): Do the address arithmetic with
10144 the appropriate truncation for target addresses, even when
10145 CORE_ADDR is larger than a target address.
10146
e18651ec
DJ
101472002-02-05 Daniel Jacobowitz <drow@mvista.com>
10148
10149 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10150 to (int *).
10151
6b2725be
DJ
101522002-02-05 Daniel Jacobowitz <drow@mvista.com>
10153
10154 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10155 code.
10156
fca9e603
DJ
101572002-02-05 Daniel Jacobowitz <drow@mvista.com>
10158
10159 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10160
6c537a52
DJ
101612002-02-05 Daniel Jacobowitz <drow@mvista.com>
10162
10163 * gdbserver/linux-low.c: Remove unused include files.
10164
d844cde6
DJ
101652002-02-05 Daniel Jacobowitz <drow@mvista.com>
10166
10167 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10168 (read_inferior_memory): Use it.
10169 (write_inferior_memory): Likewise.
10170
d07c63e7
DJ
101712002-02-05 Daniel Jacobowitz <drow@mvista.com>
10172
10173 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10174 grubbing through sys_errlist.
10175
da6d8c04
DJ
101762002-02-05 Daniel Jacobowitz <drow@mvista.com>
10177
10178 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10179
5b421780
PM
101802002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10181 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10182
9f60d481
AC
101832002-02-04 Andrew Cagney <ac131313@redhat.com>
10184
10185 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10186 (do_sfunc, set_cmd_sfunc): New functions.
10187
10188 * command.h (struct cmd_list_element): Add field func.
10189 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10190 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10191 * cli/cli-decode.h: Ditto.
10192
10193 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10194 (help_all, help_cmd_list): Ditto.
10195 (find_cmd, complete_on_cmdlist): Ditto.
10196 * top.c (execute_command): Ditto.
10197
10198 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10199 function.sfunc.
10200
10201 * infcmd.c (notice_args_read): Fix function signature.
10202
10203 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10204 * cli/cli-decode.c (add_set_cmd): Ditto.
10205 * utils.c (initialize_utils): Ditto.
10206 * maint.c (_initialize_maint_cmds): Ditto.
10207 * infrun.c (_initialize_infrun): Ditto.
10208 * demangle.c (_initialize_demangler): Ditto.
10209 * remote.c (add_packet_config_cmd): Ditto.
10210 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10211 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10212 * proc-api.c (_initialize_proc_api): Ditto.
10213 * kod.c (_initialize_kod): Ditto.
10214 * valprint.c (_initialize_valprint): Ditto.
10215 * top.c (init_main): Ditto.
10216 * infcmd.c (_initialize_infcmd): Ditto.
10217 * corefile.c (_initialize_core): Ditto.
10218 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10219 * arch-utils.c (initialize_current_architecture): Ditto.
10220 (_initialize_gdbarch_utils): Ditto.
10221 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10222
10223 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10224 * wince.c (_initialize_inftarg): Ditto.
10225 * symfile.c (_initialize_symfile): Ditto.
10226 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10227 * language.c (_initialize_language): Ditto.
10228 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10229
f9ba0717
MS
102302002-02-04 Michael Snyder <msnyder@redhat.com>
10231
10232 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10233
0c74b2a7
DJ
102342002-02-04 Daniel Jacobowitz <drow@mvista.com>
10235
10236 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10237 Add rules for building the register data files.
10238
c638789f
DJ
102392002-02-04 Daniel Jacobowitz <drow@mvista.com>
10240
10241 * regformats/regdat.sh: Add braces to the definition of
10242 expedite_regs_${arch}.
10243
db253027
DJ
102442002-02-04 Daniel Jacobowitz <drow@mvista.com>
10245
10246 * regformats/regdef.h (struct reg): Add comment describing the
10247 requirements for offset and size fields.
10248
206be19c
AS
102492002-02-04 Andreas Schwab <schwab@suse.de>
10250
10251 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10252 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10253
181c1381
RE
102542002-02-04 Richard Earnshaw <rearnsha@arm.com>
10255
10256 * gdbarch.sh (copyright): Update years in generated header.
10257 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10258 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10259 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10260 * dbxread.c: Likewise.
10261 * dwarfread.c: Likewise.
10262 * elfread.c: Likewise.
10263 * somread.c: Likewise.
10264
10265 * arm-tdep.c (arm_smash_text_address): New function.
10266 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10267
fa4ba8da
PM
102682002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10269
10270 Add support for hardware watchpoints on win32 native.
aaa38bb5 10271 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10272 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10273 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10274 of debug registers.
10275 (debug_registers_changed): New variable. Reflects when debug registers
10276 are changed and need to be written to inferior.
aaa38bb5 10277 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10278 was set, used when new threads are created.
10279 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10280 i386-nat code.
10281 (thread_rec): Set dr array if id is the thread of current_event .
10282 (child_continue, child_resume): Change the debug registers for all
10283 threads if debug_registers_changed.
10284 (child_add_thread): Change the debug registers if debug_registers_used.
10285 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10286 Link nm.h to new nm-cygwin.h file.
10287 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10288 of hardware registers.
10289
a73c86fb
AC
102902002-02-03 Andrew Cagney <ac131313@redhat.com>
10291
10292 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10293 Restore behavour broken by 2002-01-20 Andrew Cagney
10294 <ac131313@redhat.com> IEEE_FLOAT removal.
10295
acf5ed49
DJ
102962002-02-03 Daniel Jacobowitz <drow@mvista.com>
10297
10298 * c-valprint.c (c_val_print): Pass a proper valaddr to
10299 cp_print_class_method.
10300 * valops.c (search_struct_method): If there is only one method
10301 and args is NULL, return that method.
10302
493d28d5
DJ
103032002-02-03 Daniel Jacobowitz <drow@mvista.com>
10304
10305 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10306 accessing tag_name directly.
10307
7495dfdb
DJ
103082002-02-03 Daniel Jacobowitz <drow@mvista.com>
10309
10310 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10311 of accessing tag_name directly.
10312
dd6bda65
DJ
103132002-02-03 Daniel Jacobowitz <drow@mvista.com>
10314
10315 PR gdb/280
10316 * gdbtypes.c (replace_type): New function.
10317 * gdbtypes.h (replace_type): Add prototype.
10318 * stabsread.c (read_type): Use replace_type.
10319
88fe217c
RE
103202002-02-03 Richard Earnshaw <rearnsha@arm.com>
10321
10322 * Makefile.in (memattr.o): Add missing dependencies rule.
10323
e5d66720
PS
103242002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10325
10326 * breakpoint.c (break_at_finish_command): Really export.
10327 (break_at_finish_at_depth_command): Ditto.
10328 (tbreak_at_finish_command): Ditto.
10329 * hppa-tdep.c: Include completer.h.
10330 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10331 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10332
fffee0be
AC
103332002-02-01 Andrew Cagney <ac131313@redhat.com>
10334
10335 * utils.c (do_write): New function.
10336 (error_stream): Rewrite combining the code from error_begin and
10337 verror.
10338 (verror): Rewrite using error_stream.
10339 (error_begin): Delete function.
10340
255e7dbf
AC
103412002-02-01 Andrew Cagney <ac131313@redhat.com>
10342
10343 * utils.c (error_begin): Make static.
10344 * defs.h (error_begin): Delete declaration.
10345
10346 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10347 (decode_line_1): Use cplusplus_error instead of error_begin,
10348 cplusplus_hint and return_to_top_level.
10349 * coffread.c (coff_symfile_read): Use error instead of error_begin
10350 and return_to_top_level.
10351 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10352
ddfe3c15
AC
103532002-02-01 Andrew Cagney <ac131313@redhat.com>
10354
10355 * language.h (type_error, range_error): Make string parameter
10356 constant.
10357 * language.c (warning_pre_print): Delete extern declaration.
10358 * dwarfread.c (warning_pre_print): Ditto.
10359 * language.c (type_error, range_error): Rewrite to use verror and
10360 vwarning instead of warning_begin.
10361
03ac34d5
MS
103622002-02-01 Michael Snyder <msnyder@redhat.com>
10363
261c4ca2
MS
10364 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10365 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10366
e00d1dc8
AC
103672002-02-01 Andrew Cagney <ac131313@redhat.com>
10368
10369 * command.h (NO_FUNCTION): Delete macro.
10370 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10371 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10372 * tracepoint.c (_initialize_tracepoint): Ditto.
10373 * cli/cli-decode.c (add_set_cmd): Ditto.
10374 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10375
76b79d6e
DJ
103762002-02-01 Daniel Jacobowitz <drow@mvista.com>
10377
10378 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10379 Update ``this'' pointer when calling virtual functions.
10380
799f9e91
MS
103812002-02-01 Michael Snyder <msnyder@redhat.com>
10382
c7bd442c 10383 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10384 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10385
3cf384d4
DJ
103862002-02-01 Daniel Jacobowitz <drow@mvista.com>
10387
10388 * regformats/reg-arm.dat: New file.
10389 * regformats/reg-i386.dat: New file.
10390 * regformats/reg-ia64.dat: New file.
10391 * regformats/reg-m68k.dat: New file.
10392 * regformats/reg-mips.dat: New file.
10393 * regformats/reg-ppc.dat: New file.
10394 * regformats/reg-sh.dat: New file.
10395 * regformats/regdef.h: New file.
10396 * regformats/regdat.sh: New file.
10397
0defa245
RE
103982002-02-01 Richard Earnshaw <reanrsha@arm.com>
10399
10400 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10401 (arm_frame_args_address, arm_frame_locals_address): New functions.
10402 (arm_frame_num_args): New function.
10403 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10404 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10405 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10406
405f26e6
MS
104072002-01-31 Michael Snyder <msnyder@redhat.com>
10408
502fd408
MS
10409 * breakpoint.c (break_at_finish_command): Export.
10410 (break_at_finish_at_depth_command): Export.
10411 (tbreak_at_finish_command): Export.
d6020d45 10412 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10413 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10414 "txbreak" commands, which are HPPA specific.
502fd408 10415
7d35e135
MS
10416 * printcmd.c (disassemble_command): Remove an ancient
10417 artifact of an old merge.
10418
aaa38bb5 10419 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10420 Define enum constant values for overlay mode.
10421 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10422 (overlay_is_mapped, overlay_auto_command,
10423 overlay_manual_command): Ditto.
d874f1e2 10424
aaa38bb5
AJ
10425 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10426 breakpoint_here_p, breakpoint_inserted_here_p,
10427 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10428 describe_other_breakpoints, check_duplicates, clear_command):
10429 Coding standard fixes.
10430
8add0441 10431 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10432 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10433 code: check bfd SEC_READONLY flag for section.
10434
e351066e
AC
104352002-01-31 Andrew Cagney <ac131313@redhat.com>
10436
7d35e135 10437 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10438
8a48e967
DJ
104392002-01-30 Daniel Jacobowitz <drow@mvista.com>
10440
10441 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10442 data symbols, since we search based on textlow and texthigh.
10443 (find_pc_sect_symtab): Likewise.
10444
f5a96129
AC
104452002-01-30 Andrew Cagney <ac131313@redhat.com>
10446
10447 * defs.h (vwarning): Declare.
f5a96129
AC
10448 * utils.c (vwarning): New function.
10449 (warning): Call vwarning.
10450 (warning_begin): Delete function.
10451
10452 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10453 the warning message.
10454 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10455 warning_begin.
10456
cefd4ef5
MS
104572002-01-30 Michael Snyder <msnyder@redhat.com>
10458
1a703748
MS
10459 * NEWS: Mention "set trust-readonly-sections" command.
10460 Mention generate-core-file command.
cefd4ef5 10461
3a11626d
MS
104622002-01-15 Michael Snyder <msnyder@redhat.com>
10463
10464 * target.c: New command, "set trust-readonly-sections on".
10465 (do_xfer_memory): Honor the suggestion to trust readonly sections
10466 by reading them from the object file instead of from the target.
10467 (initialize_targets): Register command "set trust-readonly-sections".
10468
d1c7e53b
AC
104692002-01-29 Andrew Cagney <ac131313@redhat.com>
10470
10471 * parse.c (target_map_name_to_register): Simplify, search regs and
10472 pseudo-regs using a single loop.
10473
e2c9a72c
AC
104742002-01-30 Andrew Cagney <ac131313@redhat.com>
10475
10476 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10477
69824b4e
MK
104782002-01-15 Rodney Brown <rbrown64@csc.com.au>
10479
10480 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10481 * config/i386/i386v42mp.mh: Add i387-nat.o .
10482 * i386v4-nat.c: Include i387-nat.h.
10483 (supply_fpregset): Use i387_supply_fsave.
10484 (fill_fpregset): Use i387_fill_fsave.
10485
6eb69eab
RE
104862002-01-30 Richard Earnshaw <rearnsha@arm.com>
10487
10488 * arm-tdep.c (arm_call_dummy_words): Define.
10489 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10490 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10491 (CALL_DUMMY_WORDS): Define.
10492 (arm_call_dummy_words): Declare.
10493 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10494 (arm_linux_call_dummy_words): Declare.
10495
9852326a
AS
104962002-01-30 Andreas Schwab <schwab@suse.de>
10497
10498 * m68klinux-nat.c: Fix last change to use regcache_collect
10499 instead of referencing registers[] directly.
10500
977a3030
AC
105012002-01-29 Andrew Cagney <ac131313@redhat.com>
10502
10503 * parse.c (target_map_name_to_register): Delete code wrapped in
10504 #ifdef REGISTER_NAME_ALIAS_HOOK.
10505
2076c72b
MS
105062002-01-28 Michael Snyder <msnyder@redhat.com>
10507
10508 * regcache.c (legacy_read_register_gen): Need to be able to
10509 read pseudo-register as well as real register.
10510 (legacy_write_register_gen): Ditto.
10511
8fcc723b
AC
105122002-01-28 Andrew Cagney <ac131313@redhat.com>
10513
10514 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10515 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10516 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10517 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10518 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10519 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10520 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10521 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10522 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10523 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10524 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10525 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10526 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10527 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10528 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10529 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10530 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10531 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10532 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10533 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10534
afe64c1a
AC
105352002-01-28 Andrew Cagney <ac131313@redhat.com>
10536
10537 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10538 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10539 (initialize_current_architecture): Update target_byte_order using
10540 information from BFD.
aaa38bb5 10541 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10542 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10543
75bc7ddf
AC
105442002-01-28 Andrew Cagney <ac131313@redhat.com>
10545
10546 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10547 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10548
10549 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10550 #ifdef INVALID_FLOAT.
10551 * infcmd.c (do_registers_info): Ditto.
10552 * values.c (unpack_double): Ditto. Add comment.
10553
10554 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10555 already commented out.
10556
0280a90a
AS
105572002-01-26 Andreas Schwab <schwab@suse.de>
10558
10559 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10560 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10561 registers and add support for PTRACE_GETREGS.
10562
7072a954
AC
105632002-01-24 Andrew Cagney <ac131313@redhat.com>
10564
10565 GDB 5.1.1 released from 5.1 branch.
10566 * NEWS: Add 5.1.1 news.
10567 * README: Sync with 5.1 branch.
10568
86f902e0
FF
105692002-01-23 Fred Fish <fnf@redhat.com>
10570
10571 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10572 stabstring on initial malloc. Reallocing will copy it for us,
10573 if necessary.
10574
8af51c36
EZ
105752002-01-23 Elena Zannoni <ezannoni@redhat.com>
10576
aaa38bb5 10577 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10578 (HFILES_NO_SRCDIR): Remove hpread.h.
10579 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10580 (hpread.o): Update dependencies.
10581 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10582
10583 * hp-psymtab-read.c: Remove file.
10584 * hp-symtab-read.c: Remove file.
10585 * hpread.h: Remove file.
10586
10587 * hpread.c: Merge all contents of hp-psymtab-read.c,
10588 hp-symtab-read.c and hpread.h into this file, as it was prior to
10589 January 1999.
10590
10591 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10592 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10593 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10594 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10595
dc5cfeb6
EZ
105962002-01-23 Elena Zannoni <ezannoni@redhat.com>
10597
10598 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10599 fill_gregset): Call gdbarch_tdep() just once, assign result to
10600 variable and use that, instead of calling the function several
10601 times.
10602
ea87b71b
AO
106032002-01-24 Alexandre Oliva <aoliva@redhat.com>
10604
10605 * configure.host: Accept sparcv9 as alias for sparc64.
10606 * configure.tgt: Likewise.
10607
13fc0c2f
KB
106082002-01-22 Kevin Buettner <kevinb@redhat.com>
10609
10610 * solib-aix5.c (build_so_list_from_mapfile)
10611 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10612 arguments is not reversed.
10613 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10614 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10615
7bd872fe
EZ
106162002-01-22 Elena Zannoni <ezannoni@redhat.com>
10617
10618 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10619 modified version of obsolete sh_fetch_pseudo_register.
10620 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10621 (sh4_register_read): New function.
10622 (sh_pseudo_register_write): New function. Renamed and modified
10623 version of obsolete sh_store_pseudo_register.
10624 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10625 (sh4_register_write): New function.
10626 (sh_gdbarch_init): Remove setting of gdbarch function
10627 fetch_pseudo_register and store_pseudo_register. Remove setting of
10628 register_convert_to_raw, register_convert_to_virtual,
10629 register_convertible.
10630 (sh_sh4_register_convertible): Delete. No longer needed. All is
10631 taken care by architecture specific functions
10632 register_read/register_write.
10633 (sh_sh4_register_convert_to_virtual): Make static.
10634 (sh_sh4_register_convert_to_raw): Ditto.
10635
069e84fd
AC
106362002-01-22 Andrew Cagney <ac131313@redhat.com>
10637
10638 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10639 (floatformat_is_nan, floatformat_mantissa): Ditto.
10640
10641 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10642 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10643 builtin_type_ieee_double_little,
10644 builtin_type_ieee_double_littlebyte_bigword,
10645 builtin_type_m68881_ext, builtin_type_i960_ext,
10646 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10647 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10648 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10649 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10650
211a4f69
CV
106512002-01-22 Corinna Vinschen <vinschen@redhat.com>
10652
10653 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10654 parameter. Set frameless flag if it exists and depended of
10655 whether the scanned function is frameless or not.
10656 (xstormy16_skip_prologue): If function is frameless, return
10657 result of xstormy16_scan_prologue().
10658 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10659 call.
10660
f81353e4
EZ
106612002-01-21 Elena Zannoni <ezannoni@redhat.com>
10662
10663 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10664 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10665 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10666 sh_sh4_register_byte, sh_sh4_register_raw_size,
10667 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10668 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10669 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10670 sh_store_pseudo_register, sh_do_pseudo_register): Call
10671 gdbarch_tdep() just once, assign result to variable and use that,
10672 instead of calling the function several times.
10673
63c73a17
MK
106742002-01-20 Mark Kettenis <kettenis@gnu.org>
10675
10676 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10677 macros instead of LAST_FPU_CTRL_REGNUM.
10678 (store_register): Likewise.
10679
39ad761d
JB
106802002-01-21 Jim Blandy <jimb@redhat.com>
10681
10682 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10683 is up-to-date before running the program, not just when a program
10684 exits.
10685
3d74b771
FF
106862002-01-21 Fred Fish <fnf@redhat.com>
10687
10688 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10689 when we have found all instructions we are looking for.
10690
966fbf70
RE
106912002-01-21 Richard Earnshaw <rearnsha@arm.com>
10692
10693 * arm-tdep.c (arm_register_name): New function.
10694 (arm_registers_names): Make static.
10695 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10696 (arm_register_name): Declare.
10697 (REGISTER_NAME): Use it.
10698
c3b4394c
RE
106992002-01-21 Richard Earnshaw <rearnsha@arm.com>
10700 Kevin Buettner <kevinb@redhat.com>
10701
10702 Convert arm targets to new FRAME interface.
10703 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10704 (arm_frame_find_save_regs): Delete.
10705 (arm_frame_init_saved_regs): New.
10706 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10707 Allocate extra_info as required. Convert all uses of fsr.regs
10708 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10709 to use extra_info.
10710 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10711 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10712 (check_prologue_cache, save_prologue_cache): Likewise.
10713 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10714 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10715 (FRAME_FIND_SAVED_REGS): Delete.
10716 (arm_frame_find_saved_regs): Delete prototype.
10717 (arm_frame_init_saved_regs): New prototype.
10718 (FRAME_INIT_SAVED_REGS): Define.
10719
61d99182
AC
107202002-01-20 Andrew Cagney <ac131313@redhat.com>
10721
10722 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10723
6aaea291
AC
107242002-01-20 Andrew Cagney <ac131313@redhat.com>
10725
10726 From Jeff Law <law@redhat.com>:
10727 * infttrace.c: Include <sys/pstat.h>.
10728 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10729 exec file if the ttrace equivalent fails.
10730
15f698d2
AC
107312002-01-20 Andrew Cagney <ac131313@redhat.com>
10732
10733 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10734 (closeLogFile): Ditto.
10735
f86ddd7c
MC
107362002-01-20 Michael Chastain <mec@shout.net>
10737
10738 * top.c (print_gdb_version): Bump copyright year to 2002.
10739
904507ce
AC
107402002-01-20 Andrew Cagney <ac131313@redhat.com>
10741
10742 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10743 Zannoni and Eli Zaretskii.
10744
d7f0b9ce
DJ
107452002-01-20 Daniel Jacobowitz <drow@mvista.com>
10746
10747 * buildsym.c: Update copyright years.
10748 * c-typeprint.c: Likewise.
10749 * dwarf2read.c: Likewise.
10750 * f-typeprint.c: Likewise.
10751 * gdbtypes.c: Likewise.
10752 * gdbtypes.h: Likewise.
10753 * hp-symtab-read.c: Likewise.
10754 * hpread.c: Likewise.
10755 * mdebugread.c: Likewise.
10756 * p-typeprint.c: Likewise.
10757
3fd3d7d2
AC
107582002-01-20 Andrew Cagney <ac131313@redhat.com>
10759
10760 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10761 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10762 byte-order selectable.
10763 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10764 * arch-utils.c: Ditto.
10765 (set_endian): Ditto.
10766 (set_endian_from_file): Ditto.
10767 * gdbserver/low-sim.c (create_inferior): Ditto.
10768 * gdbarch.sh: Ditto.
10769 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10770 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10771 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10772 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10773 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10774 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10775 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10776 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10777 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10778 macro definition.
10779 * config/mips/tm-wince.h: Remove #undef of macro
10780 TARGET_BYTE_ORDER_SELECTABLE.
10781 * config/sh/tm-wince.h: Ditto.
10782
b02dede2
DJ
107832002-01-20 Daniel Jacobowitz <drow@mvista.com>
10784
10785 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10786 member function fields. Add accessor macro
10787 TYPE_FN_FIELD_ARTIFICIAL.
10788 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10789 * c-typeprint.c (c_type_print_base): Skip artificial member
10790 functions.
10791
c3643761
DJ
107922002-01-20 Daniel Jacobowitz <drow@mvista.com>
10793
10794 * f-typeprint.c: Delete unused function f_type_print_args.
10795 * p-typeprint.c: Delete unused function pascal_type_print_args.
10796
8176bb6d
DJ
107972002-01-20 Daniel Jacobowitz <drow@mvista.com>
10798
10799 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10800 comment. Add ``artificial'' to ``union field_location''.
10801
10802 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10803
10804 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10805 * mdebugread.c (parse_symbol): Likewise.
10806 * stabsread.c (define_symbol): Likewise.
10807 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10808 initializing TYPE_FIELD_BITPOS to n (obsolete).
10809 (hpread_doc_function_type): Likewise.
10810 * hpread.c (hpread_function_type): Likewise.
10811
7fd60527
AC
108122002-01-20 Andrew Cagney <ac131313@redhat.com>
10813
10814 * configure.in (host_makefile_frag): Only require a host makefile
10815 fragment when a native build.
10816 * configure: Re-generate.
10817
c2f05ac9
AC
108182002-01-20 Andrew Cagney <ac131313@redhat.com>
10819
10820 * doublest.h (floatformat_from_type): Declare.
10821 * doublest.c (floatformat_from_type): New function.
10822 (convert_typed_floating): Use.
10823
10824 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10825 call to function floatformat_from_type.
10826
10827 * gdbarch.sh (IEEE_FLOAT): Delete.
10828 * gdbarch.h, gdbarch.c: Re-generate.
10829 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10830 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10831 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10832 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10833 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10834 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10835 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10836 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10837 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10838 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10839 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10840 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10841
10842 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10843 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10844 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10845 * sh-tdep.c (sh_gdbarch_init): Ditto.
10846 * mips-tdep.c (mips_gdbarch_init): Ditto.
10847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10848 * cris-tdep.c (cris_gdbarch_init): Ditto.
10849
abf22e64
AJ
108502002-01-20 Jiri Smid <smid@suse.cz>
10851
10852 * configure.host, configure.tgt: Support x86-64.
10853 * NEWS: Note new target x86-64.
10854
b7c4cbf8
AJ
10855 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10856 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10857 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10858 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10859 x86-64-linux-nat.o): Fix dependencies.
10860
82600034
AC
108612002-01-19 Andrew Cagney <ac131313@redhat.com>
10862
10863 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10864 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10865 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10866 * config/sparc/xm-sun4os4.h: Delete file.
10867 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10868
bbe5c628
AC
108692002-01-19 Andrew Cagney <ac131313@redhat.com>
10870
10871 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10872 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10873 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10874 * config/i386/i386lynx.mh (XM_FILE): Delete.
10875 * config/rs6000/xm-rs6000ly.h: Delete file.
10876 * config/sparc/xm-sparclynx.h: Delete file.
10877 * config/m68k/xm-m68klynx.h: Delete file.
10878 * config/i386/xm-i386lynx.h: Delete file.
10879 * config/xm-lynx.h: Delete file.
10880 * config/djgpp/fnchange.lst: Update.
10881
f8453e34
JT
108822002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10883
10884 * alpha-tdep.c (alpha_register_byte): New function.
10885 (alpha_register_raw_size): Ditto.
10886 (alpha_register_virtual_size): Ditto.
10887 (alpha_skip_prologue_internal): Renamed from
10888 alpha_skip_prologue.
10889 (alpha_skip_prologue): New version that calls
10890 alpha_skip_prologue_internal.
10891 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10892 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10893 second argument from alpha_skip_prologue.
10894 (REGISTER_BYTE): Use alpha_register_byte.
10895 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10896 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10897 (FRAMELESS_FUNCTION_INVOCATION): Use
10898 generic_frameless_function_invocation_not.
10899 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10900 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10901
52d9e613
AC
109022002-01-19 Andrew Cagney <ac131313@redhat.com>
10903
10904 * config/mips/xm-news-mips.h: Delete file.
10905 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10906
10907 * config/m88k/xm-m88k.h: Delete file.
10908 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10909 * config/m88k/xm-delta88v4.h: Ditto.
10910 * config/m88k/xm-delta88.h: Ditto.
10911
10912 * config/alpha/xm-fbsd.h: Delete file.
10913 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10914
10915 * config/sparc/xm-sparc.h: Delete file.
10916 * Makefile.in (xm-sun4os4.h): Delete dependency.
10917 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10918 * config/sparc/xm-sun4os4.h: Ditto.
10919 * config/sparc/xm-linux.h: Ditto.
10920
10921 * config/i386/xm-windows.h: Delete file.
10922
2d1b2124
AC
109232002-01-19 Andrew Cagney <ac131313@redhat.com>
10924
10925 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10926 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10927
ee1f65f0
JT
109282002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10929
10930 * alpha-tdep.c (alpha_call_dummy_words): New.
10931 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10932 (CALL_DUMMY_P): Define.
10933 (CALL_DUMMY_WORDS): Define.
10934 (SIZEOF_CALL_DUMMY_WORDS): Define.
10935
98081e55
PB
109362002-01-19 Per Bothner <per@bothner.com>
10937
10938 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10939 isn't NULL, which can happen with some gcj-3.x-produced code.
10940
0d056799
JT
109412002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10942
10943 * alpha-tdep.c (alpha_register_virtual_type): New function.
10944 (alpha_init_frame_pc_first): Ditto.
10945 (alpha_fix_call_dummy): Ditto.
10946 (alpha_store_struct_return): Ditto.
10947 (alpha_extract_struct_value_address): Ditto.
10948 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10949 alpha_register_virtual_type.
10950 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10951 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10952 alpha_extract_struct_value_address.
10953 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10954 (INIT_FRAME_PC): Use init_frame_pc_noop.
10955 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10956
4604bcad
MK
109572002-01-19 Mark Kettenis <kettenis@gnu.org>
10958
10959 * i386gnu-nat.c: Include "i386-tdep.h".
10960 (fetch_fpregs): Simplify code dealing with uninitialized floating
10961 point states such that it doesn't require FP7_REGNUM.
10962
140f9984
JT
109632002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10964
abf22e64
AJ
10965 * alpha-tdep.c (frame_extra_info): New.
10966 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10967 frame->extra_info.
10968 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10969 (alpha_frame_saved_pc): Use frame->extra_info.
10970 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10971 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10972 (init_extra_frame_info): Rename to...
10973 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10974 (alpha_print_extra_frame_info): New function.
140f9984
JT
10975 (alpha_frame_locals_address): Ditto.
10976 (alpha_frame_args_address): Ditto.
abf22e64 10977 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10978 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10979 alpha_frame_args_address.
abf22e64 10980 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10981 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10982 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10983 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10984 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10985 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10986
d734c450
JT
109872002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10988
10989 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10990 (alpha_cannot_fetch_register): Ditto.
10991 (alpha_cannot_store_register): Ditto.
10992 (alpha_register_convertible): Ditto.
10993 (alpha_use_struct_convention): Ditto.
10994 * config/alpha/tm-alpha.h: Update copyright years.
10995 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10996 (INNER_THAN): Use core_addr_lessthan.
10997 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10998 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10999 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11000 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11001 (FRAME_CHAIN): Remove unnecessary cast.
11002
b4ceaee6
AC
110032002-01-18 Andrew Cagney <ac131313@redhat.com>
11004
11005 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11006 obsolete.
11007
0a65a603
AC
110082002-01-18 Andrew Cagney <ac131313@redhat.com>
11009
11010 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11011 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11012 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11013 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11014 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11015 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11016 * x86-64-linux-nat.c: Ditto.
11017
636a6dfc
JT
110182002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11019
abf22e64 11020 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11021 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11022 (REGISTER_NAME): Define.
11023
acceddb6
JT
110242002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11025
11026 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11027
ec32e4be
JT
110282002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11029
11030 * alpha-tdep.c: Update copyright years.
11031 (alpha_next_pc): New function.
11032 (alpha_software_single_step): Ditto.
11033 * config/alpha/tm-alpha.h: Add prototype for
11034 alpha_software_single_step.
11035
e771a871
JT
110362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11037
11038 * alphabsd-nat.c: Update copyright years.
11039 (fill_gregset): Use regcache_collect.
11040 (fill_fpregset): Likewise.
11041 (fetch_inferior_registers): Only fetch integer registers
11042 if requested to do so.
11043 (store_inferior_registers): Only store integer registers
11044 if requested to do so.
11045
7708fa01
AC
110462002-01-17 Andrew Cagney <ac131313@redhat.com>
11047
11048 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11049 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11050 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11051 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11052 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11053 * config/arm/linux.mh (XDEPFILES): Delete.
11054 * config/arm/nbsd.mh (XDEPFILES): Delete.
11055 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11056 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11057 * config/i386/i386m3.mh (XDEPFILES): Delete.
11058 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11059 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11060 * config/i386/fbsd.mh (XDEPFILES): Delete.
11061 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11062 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11063 * config/i386/i386v4.mh (XDEPFILES): Delete.
11064 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11065 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11066 * config/i386/i386aix.mh (XDEPFILES): Delete.
11067 * config/i386/go32.mh (XDEPFILES): Delete.
11068 * config/i386/cygwin.mh (XDEPFILES): Delete.
11069 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11070 * config/i386/i386mach.mh (XDEPFILES): Delete.
11071 * config/i386/i386v32.mh (XDEPFILES): Delete.
11072 * config/i386/linux.mh (XDEPFILES): Delete.
11073 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11074 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11075 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11076 * config/i386/i386sco.mh (XDEPFILES): Delete.
11077 * config/i386/i386v.mh (XDEPFILES): Delete.
11078 * config/i386/nbsd.mh (XDEPFILES): Delete.
11079 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11080 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11081 * config/i386/symmetry.mh (XDEPFILES): Delete.
11082 * config/i386/obsd.mh (XDEPFILES): Delete.
11083 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11084 * config/ia64/linux.mh (XDEPFILES): Delete.
11085 * config/ia64/aix.mh (XDEPFILES): Delete.
11086 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11087 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11088 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11089 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11090 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11091 * config/m68k/linux.mh (XDEPFILES): Delete.
11092 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11093 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11094 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11095 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11096 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11097 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11098 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11099 * config/m88k/delta88.mh (XDEPFILES): Delete.
11100 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11101 * config/m88k/m88k.mh (XDEPFILES): Delete.
11102 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11103 * config/mips/linux.mh (XDEPFILES): Delete.
11104 * config/mips/irix6.mh (XDEPFILES): Delete.
11105 * config/mips/irix5.mh (XDEPFILES): Delete.
11106 * config/mips/irix4.mh (XDEPFILES): Delete.
11107 * config/mips/irix3.mh (XDEPFILES): Delete.
11108 * config/mips/decstation.mh (XDEPFILES): Delete.
11109 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11110 (NATDEPFILES): Move core-aout.o to here.
11111 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11112 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11113 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11114 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11115 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11116 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11117 * config/pa/hpux11.mh (XDEPFILES): Delete.
11118 * config/powerpc/aix.mh (XDEPFILES): Delete.
11119 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11120 * config/powerpc/linux.mh (XDEPFILES): Delete.
11121 * config/romp/rtbsd.mh: Rename XDEPFILES.
11122 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11123 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11124 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11125 * config/s390/s390.mh (XDEPFILES): Delete.
11126 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11127 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11128 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11129 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11130 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11131 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11132 * config/sparc/linux.mh (XDEPFILES): Delete.
11133 * config/vax/vaxult.mh (XDEPFILES): Delete.
11134 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11135 * Makefile.in (DEPFILES): Remove XDEPFILES.
11136
375fc983
AC
111372002-01-17 Andrew Cagney <ac131313@redhat.com>
11138
11139 * utils.c (internal_verror): Fix comments, default is yes not no.
11140 Update queries to match. Default to quit and dump core.
11141
8926118c
AC
111422002-01-17 Andrew Cagney <ac131313@redhat.com>
11143
11144 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11145 copyright.
11146 * defs.h, event-top.c, gdbcmd.h: Ditto.
11147 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11148 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11149 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11150 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11151 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11152 * mi/mi-main.c:Ditto.
11153
11154 * stack.c, symfile.c: Update copyright.
11155
45b7b345
DJ
111562002-01-17 Daniel Jacobowitz <drow@mvista.com>
11157
db728ff7
DJ
11158 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11159 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11160 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11161 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11162
db728ff7
DJ
111632002-01-17 Daniel Jacobowitz <drow@mvista.com>
11164
11165 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11166 * gdbserver/low-lynx.c (myattach): Likewise.
11167 * gdbserver/low-nbsd.c (myattach): Likewise.
11168 * gdbserver/low-sim.c (myattach): Likewise.
11169 * gdbserver/low-sparc.c (myattach): Likewise.
11170 * gdbserver/low-sun3.c (myattach): Likewise.
11171
11172 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11173
db728ff7 11174 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11175 (main): Handle "--attach".
11176
8de3c354
AC
111772002-01-16 Andrew Cagney <ac131313@redhat.com>
11178
11179 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11180 maintainer.
11181
b0129042
DJ
111822002-01-15 Daniel Jacobowitz <drow@mvista.com>
11183
11184 * c-typeprint.c (is_type_conversion_operator): Add additional
11185 check for non-conversion operators.
11186
ba8679fb 111872002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11188
11189 * linux-proc.c: Add "info proc" command, a la procfs.c.
11190 (read_mapping): New function, abstract and re-use code.
11191 (linux_find_memory_regions): Use new func read_mapping.
11192 (linux_info_proc_cmd): New function, implement "info proc".
11193 (_initialize_linux_proc): Add new command "info proc".
11194
e4f9b4d5
MS
111952002-01-15 Michael Snyder <msnyder@redhat.com>
11196
11197 * symfile.c (generic_load): Use bfd_map_over_sections method
11198 instead of manipulating bfd structure members directly.
11199 (add_section_size_callback): New function, bfd sections callback
11200 used by generic_load.
11201 (load_sections_callback): New function, bfd sections callback
11202 used by generic_load.
11203
08cf96df
EZ
112042002-01-15 Elena Zannoni <ezannoni@redhat.com>
11205
abf22e64 11206 [Based on work by Jim Blandy]
08cf96df
EZ
11207 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11208 (builtin_type_vec128): Export.
11209 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11210 types.
11211 (builtin_type_vec128): New builtin type for 128 bit vector
11212 registers.
11213 (build_gdbtypes): Initialize builtin_type_v16qi and
11214 builtin_type_v8hi. Create the vec128 register builtin type
11215 structure.
11216 (build_builtin_type_vec128): New function.
abf22e64 11217 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11218 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11219 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11220 AltiVec register to new builtin type.
11221
d7242108
DJ
112222001-01-15 Daniel Jacobowitz <drow@mvista.com>
11223
11224 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11225 to make_cv_type.
11226
4ee3352d
AC
112272002-01-14 Andrew Cagney <ac131313@redhat.com>
11228
11229 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11230 CLEAN_UP_REGISTER_VALUE.
11231 * regcache.c (supply_register): Update only call.
11232
f015b2e7
AC
112332002-01-14 Andrew Cagney <ac131313@redhat.com>
11234
11235 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11236 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11237 a29k-*-vxworks* targets as obsolete.
11238
356ae49d
MS
112392002-01-14 Michael Snyder <msnyder@redhat.com>
11240
11241 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11242 until we can resolve portability issues.
11243 * gregset.h: Remove references to fpxregs.
11244 * gcore.c (gcore_command): Initialize note_sec to NULL.
11245
ade8f45e
AC
112462002-01-13 Andrew Cagney <ac131313@redhat.com>
11247
11248 * signals.c (target_signal_to_name): Rewrite. Only use
11249 signals[].name when in bounds and non-NULL.
abf22e64 11250
89c49e7a
AC
112512002-01-13 Andrew Cagney <ac131313@redhat.com>
11252
11253 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11254 * signals.c (target_signal_to_name): Verify that SIG is within the
11255 bounds of the signals array.
11256
4daa9f9f
AC
112572002-01-13 Andrew Cagney <ac131313@redhat.com>
11258
11259 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11260
ba4bbdcb
KS
112612002-01-13 Keith Seitz <keiths@redhat.com>
11262
11263 * stack.c (print_frame_info_base): Print the frame's pc
11264 only if when print_frame_info_listing_hook is not defined.
11265
575bbeb6
KS
112662002-01-13 Keith Seitz <keiths@redhat.com>
11267
11268 * varobj.c (varobj_set_value): Make sure that there were no
11269 errors evaluating the object before attempting to set its
11270 value.
11271 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11272 so this offset adjustment is no longer necessary.
11273 (create_child): Don't set the error flag if the child is
11274 a CPLUS_FAKE_CHILD.
11275 (value_of_child): If value_fetch_lazy fails, return NULL
11276 so that callers will be notified that an error occurred.
11277 (c_value_of_variable): Delay check of variable's validity
11278 until later. We actually want all structs and unions to have
11279 the value "{...}".
11280 Do not return "???" for variables which could not be evaluated.
11281 This error condition must be returned to the caller so that it
11282 can get the error condition from gdb.
11283 (cplus_name_of_child): Adjust index for vptr before figuring
11284 out the name of the child.
11285 (cplus_value_of_child): If a child's (real) parent is not valid,
11286 don't even bother trying to give a value for it. Just return
11287 an error. Change all instances in this function.
11288 (cplus_type_of_child): If our parent is one of the "fake"
11289 parents, we need to get at the type of the real parent, and
11290 derive the child's true type using this information.
11291
b76898ab
AC
112922002-01-13 Andrew Cagney <ac131313@redhat.com>
11293
11294 From 2002-01-09 John Marshall <johnm@falch.net>:
11295 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11296 sources.redhat.com, and tweak some related URLs which had
11297 suffered from linkrot.
11298
b6649e88
AC
112992002-01-13 Andrew Cagney <ac131313@redhat.com>
11300
11301 From Jeff law:
11302 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11303 structures passed in registers.
11304
82cc5033
EZ
113052002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11306
11307 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11308 white space which prevented compilation. Reported by DSK
11309 <dsk@student.unsw.edu.au>.
11310
ba5f2f8a
MS
113112002-01-11 Michael Snyder <msnyder@redhat.com>
11312
fbd35540
MS
11313 * symfile.c (build_section_addr_info_from_section_tab):
11314 Use bfd access method instead of manipulating bfd directly.
11315 (syms_from_objfile): Ditto.
11316 (simple_overlay_update_1): Ditto.
11317 (simple_overlay_update): Ditto.
11318 (generic_load): Ditto.
11319 (overlay_unmapped_address): FIXME comment, bfd access methods.
11320 (sections_overlap): FIXME comment, bfd access methods.
11321 (pc_in_mapped_range): FIXME comment, bfd access methods.
11322 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11323 (section_is_mapped): FIXME comment, bfd access methods.
11324 (section_is_overlay): FIXME comment, bfd access methods.
11325
ba5f2f8a
MS
11326 * symfile.c (generic_load): Whitespace and long line cleanups.
11327 Remove duplicate variable, change several local variables to
11328 more appropriate data types.
11329 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11330
17df2af6
AC
113312002-01-12 Andrew Cagney <ac131313@redhat.com>
11332
11333 From Peter Schauer:
11334 * language.c (longest_local_hex_string_custom): Use phex_nz to
11335 convert NUM to a hex string.
11336
ec920329
EZ
113372002-01-12 Elena Zannoni <ezannoni@redhat.com>
11338
11339 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11340 the function.
538a76d6 11341 Update Copyright year.
ec920329 11342
3abd2e01
AC
113432002-01-12 Andrew Cagney <ac131313@redhat.com>
11344
11345 * language.c (longest_raw_hex_string): Delete unused function.
11346
b21b22e0
PS
113472002-01-11 Petr Sorfa <petrs@caldera.com>
11348
11349 * MAINTAINERS (write-after-approval): Add myself.
11350 * dwarf2read.c (read_tag_string_type): Handling of
11351 DW_AT_byte_size.
11352 (read_tag_string_type): FORTRAN fix to prevent propagation of
11353 first string size.
11354 (set_cu_language): Handling of DW_LANG_Fortran95
11355
747fe712
RE
113562002-01-11 Richard Earnshaw <rearnsha@arm.com>
11357
11358 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11359 GETPID(inferior_ptid).
11360 (store_inferior_registers): Likewise.
11361
f1bea926
JM
113622002-01-10 Jason Merrill <jason@redhat.com>
11363
11364 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11365 Fix DW_OP_minus.
11366
ae940673
AC
113672002-01-10 Andrew Cagney <ac131313@redhat.com>
11368
11369 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11370 and bfd/elf32-sh-nbsd.c.
11371
00546b04
MS
113722002-01-10 Michael Snyder <msnyder@redhat.com>
11373
352ed7b4
MS
11374 * NEWS: Mention --pid and corefile/proc-id behavior change.
11375
c18be923
MS
11376 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11377 * gcore.c: Include cli/cli-decode.h instead of command.h.
11378
00546b04
MS
11379 * main.c (captured_main): Add new command line option "--pid".
11380 If the second command line argument (following the symbol-file)
11381 begins with a digit, try to attach to it before trying to open
11382 it as a corefile.
11383 (print_gdb_help): Document the "--pid" argument.
11384
db60ec62
EZ
113852002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11386
11387 * completer.c (command_completer): New function.
11388
11389 * completer.h <command_completer>: Add prototype.
11390
11391 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11392 completer for the "help" command.
11393
39c22d1a
JM
113942002-01-09 Jason Merrill <jason@redhat.com>
11395
11396 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11397
c564377f
MS
113982002-01-09 Michael Snyder <msnyder@redhat.com>
11399
975aec09
MS
11400 * i386-linux-nat.c (fill_fpxregset): Make global.
11401 (store_fpxregset): Ditto.
11402
db4a10fa
MS
11403 * gregset.h (gdb_fpxregset_t): Define.
11404 (supply_fpxregset): Prototype.
11405 (fill_fpxregset): Prototype.
11406
c564377f
MS
11407 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11408
c3d45d70
RE
114092002-01-09 Richard Earnshaw <rearnsha@arm.com>
11410
11411 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11412 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11413 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11414
fcc87af1
AC
114152002-01-09 Andrew Cagney <ac131313@redhat.com>
11416
11417 * MAINTAINERS: Update target maintainer rules so that any
11418 Maintainer can approve a tested patch for a maintenance-only
11419 target.
11420
dd96c05b
RE
114212002-01-09 Richard Earnshaw <rearnsha@arm.com>
11422
d4297db9 11423 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11424
d4297db9 11425 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11426 IN_SIGTRAMP.
11427
145fdc6e
MS
114282002-01-08 Michael Snyder <msnyder@redhat.com>
11429
11430 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11431 real name of the executable, rather than the /proc name.
11432
be4d1333
MS
114332002-01-03 Michael Snyder <msnyder@redhat.com>
11434
11435 Implement a "generate-core-file" command in gdb, save target state.
11436 * gcore.c: New file. Implement new command 'generate-core-file'.
11437 Save a corefile image of the current state of the inferior.
11438 * linux-proc.c: Add linux-specific code for saving corefiles.
11439 * target.h (struct target_ops): Add new target vectors for saving
11440 corefiles; to_find_memory_regions and to_make_corefile_notes.
11441 (target_find_memory_regions): New macro.
11442 (target_make_corefile_notes): New macro.
11443 * target.c (update_current_target): Inherit new target methods.
11444 (dummy_find_memory_regions): New place-holder method.
11445 (dummy_make_corefile_notes): New place-holder method.
11446 (init_dummy_target): Initialize new dummy target vectors.
11447 * exec.c (exec_set_find_memory_regions): New function.
11448 Allow the exec_ops vector for memory regions to be taken over.
11449 (exec_make_note_section): New function, target vector method.
11450 * defs.h (exec_set_find_memory_regions): Export prototype.
11451 * procfs.c (proc_find_memory_regions): New function, corefile method.
11452 (procfs_make_note_section): New function, corefile method.
11453 (init_procfs_ops): Set new target vector pointers.
11454 (find_memory_regions_callback): New function.
11455 (procfs_do_thread_registers): New function.
11456 (procfs_corefile_thread_callback): New function.
11457 * sol-thread.c (sol_find_memory_regions): New function.
11458 (sol_make_note_section): New function.
11459 (init_sol_thread_ops): Initialize new target vectors.
11460 * inftarg.c (inftarg_set_find_memory_regions): New function.
11461 Allow to_find_memory_regions vector to be taken over.
11462 (inftarg_set_make_corefile_notes): New function.
11463 Allow to_make_corefile_notes vector to be taken over.
11464 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11465 interface layer if not target_has_execution (may be a corefile).
11466 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11467 * config/sparc/sun4sol2.mh: Ditto.
11468 * config/alpha/alpha-linux.mh: Ditto.
11469 * config/arm/linux.mh: Ditto.
11470 * config/i386/x86-64linux.mh: Ditto.
11471 * config/ia64/linux.mh: Ditto.
11472 * config/m68k/linux.mh: Ditto.
11473 * config/mips/linux.mh: Ditto.
11474 * config/powerpc/linux.mh: Ditto.
11475 * config/sparc/linux.mh: Ditto.
11476
c6b92abd
MS
114772002-01-07 Michael Snyder <msnyder@redhat.com>
11478
11479 * arm-linux-nat.c: Remove references to regcache.c internal data
11480 (registers[] and register_valid[]).
11481
4b09dc8c
MS
114822002-01-07 Michael Snyder <msnyder@redhat.com>
11483
abf22e64
AJ
11484 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11485 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11486 symbol file and shlibs.
11487 * Makefile.in: Add rule for linux-proc.o.
11488 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11489 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11490 * config/arm/linux.mh: Ditto.
11491 * config/i386/linux.mh: Ditto.
11492 * config/i386/x86-64linux.mh: Ditto.
11493 * config/ia64/linux.mh: Ditto.
11494 * config/m68k/linux.mh: Ditto.
11495 * config/mips/linux.mh: Ditto.
11496 * config/powerpc/linux.mh: Ditto.
11497 * config/sparc/linux.mh: Ditto.
11498
c25b74ac
PM
114992002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11500
11501 * win32-nat.c: Add i386-tdep.h dependency.
11502
94cd915f
MS
115032002-01-07 Michael Snyder <msnyder@redhat.com>
11504
c7cccb76
MS
11505 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11506 instead of bfd_get_arch_size. Don't bail out just because
11507 there's no exec_bfd.
abf22e64 11508
34c0bd93
MS
11509 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11510 * p-valprint.c (pascal_object_print_value): Ditto.
11511 * somread.c (som_symtab_read): Ditto.
11512 * symfile.c (simple_free_overlay_region_table): Ditto.
11513 * valops.c (value_assign): Ditto.
11514
21c1c920
MS
11515 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11516 use tilde_expand and strerror for opening save-tracepoints file.
11517
5bbd998e
MS
11518 * thread-db.c (thread_db_new_objfile): Indendation fix.
11519
94cd915f
MS
11520 * infptrace.c (GDB_MAX_ALLOCA): New define.
11521 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11522 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11523 can be overridden with whatever value is appropriate to the host).
11524 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11525 alloca to allocate potentially large buffer.
11526 * rs6000-nat.c (child_xfer_memory): Ditto.
11527 * symm-nat.c (child_xfer_memory): Ditto.
11528 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11529
494e8a93
JSC
115302002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11531
11532 From Nick Clifton <nickc@redhat.com>
11533 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11534
d0e1d48e
MS
115352002-01-07 Michael Snyder <msnyder@redhat.com>
11536
abf22e64 11537 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11538 Don't use exec_bfd if it's NULL.
11539
290b2c7a
MK
115402002-01-06 Mark Kettenis <kettenis@gnu.org>
11541
abf22e64 11542 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11543
aef21287
AC
115442002-01-06 Andrew Cagney <ac131313@redhat.com>
11545
11546 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11547 * gnu-nat.c: Ditto.
11548
30efa627
AC
115492002-01-06 Andrew Cagney <ac131313@redhat.com>
11550
11551 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11552 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11553 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11554 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11555 z8k-coff have not been multi-arched. Update z8k-coff build
11556 status.
11557
9b4ff276
AC
115582002-01-06 Andrew Cagney <ac131313@redhat.com>
11559
11560 * MAINTAINERS: Mark a29k target as obsolete.
11561 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11562 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11563 comments.
11564 * NEWS: Note that a29k targets are obsolete.
11565 * a29k-tdep.c: Mark as obsolete.
11566 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11567 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11568 a29k-*-vxworks* targets as obsolete.
11569 * remote-adapt.c: Obsolete.
11570 * remote-eb.c: Obsolete.
11571 * remote-mm.c: Obsolete.
11572 * remote-udi.c: Obsolete.
11573 * config/a29k/a29k-udi.mt: Obsolete.
11574 * config/a29k/a29k.mt: Obsolete.
11575 * config/a29k/tm-a29k.h: Obsolete.
11576 * config/a29k/tm-vx29k.h: Obsolete.
11577 * config/a29k/vx29k.mt: Obsolete.
11578
a9011d31
AC
115792002-01-05 Andrew Cagney <ac131313@redhat.com>
11580
11581 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11582 with BFD_ENDIAN_BIG.
11583
9299404e
AC
115842002-01-05 Andrew Cagney <ac131313@redhat.com>
11585
11586 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11587 * configure, config.in: Re-generate.
11588 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11589 * defs.h: Do not include <endian.h>.
11590
7e89e357
JT
115912002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11592
11593 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11594 * config.in: Regenerate.
11595 * configure.in: Update copyright years.
11596 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11597 * configure: Regenerate.
11598 * i386bsd-nat.c: Update copyright years.
11599 (fill_gregset): Use regcache_collect.
11600 (fetch_inferior_registers): Only fetch integer registers
11601 if requested to do so. Add support for XMM registers
11602 using PT_GETXMMREGS.
11603 (store_inferior_registers): Only store integer registers
11604 if requested to do so. Add support for XMM registers
11605 using PT_SETXMMREGS.
11606 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11607 (store_inferior_registers): Remove.
11608 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11609 (fetch_elfcore_registers): New function.
11610 (i386nbsd_elfcore_fns): New.
11611 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11612 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11613 i386bsd-nat.o.
11614 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11615 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11616 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11617 * config/i386/tm-nbsd.h: Update copyright years.
11618 (HAVE_SSE_REGS): Define.
11619 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11620 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11621 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11622 (SIGCONTEXT_PC_OFFSET): Remove.
11623 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11624
a752853e
AC
116252002-01-05 Andrew Cagney <ac131313@redhat.com>
11626
11627 * configure.tgt: Remove powerpc-*-macos* target.
11628 * config/m68k/xm-mpw.h: Delete file.
11629 * config/xm-mpw.h: Delete file.
11630 * ser-mac.c: Delete file.
11631 * mpw-make.sed: Delete file.
11632 * mpw-config.in: Delete file.
11633 * mac-xdep.c: Delete file.
11634 * mac-gdb.r: Delete file.
11635 * mac-defs.h: Delete file.
11636 * mac-nat.c: Delete file.
11637 * config/powerpc/macos.mh: Delete file.
11638 * config/powerpc/macos.mt: Delete file.
11639 * config/powerpc/nm-macos.h: Delete file.
11640 * config/powerpc/tm-macos.h: Delete file.
11641 * source.c (openp, open_source_file): Remove obsolete code.
11642 * top.c (gdb_readline): Ditto.
11643 * utils.c (query): Ditto.
11644 * event-top.c (display_gdb_prompt): Ditto.
11645 * Makefile.in (ser-mac.o): Delete obsolete target.
11646 * NEWS: Update.
11647
d7449b42
AC
116482002-01-04 Andrew Cagney <ac131313@redhat.com>
11649
11650 * defs.h (BIG_ENDIAN): Delete macro definition.
11651 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11652 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11653 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11654 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11655 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11656 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11657 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11658 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11659 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11660 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11661 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11662 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11663 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11664 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11665 * gdbarch.c: Re-generate.
11666
356374e8
DJ
116672002-01-04 Daniel Jacobowitz <drow@mvista.com>
11668
11669 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11670 for core files.
11671
a2b8f8f8
JT
116722002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11673
11674 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11675
12466af9
AC
116762002-01-04 Andrew Cagney <ac131313@redhat.com>
11677
11678 * value.h (value_ptr): Delete typedef.
11679
3549ab40
JT
116802002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11681
11682 * i386nbsd-nat.c: Update copyright years.
11683 Include i386-tdep.h.
11684
fedbd091
EZ
116852002-01-04 Elena Zannoni <ezannoni@redhat.com>
11686
11687 * stabsread.c: Update copyright years.
11688
11689 From Debashis Mahata <debashis.mahata@wipro.com>:
11690 (read_struct_fields): Deal with Sun C compiler erroneous stab
11691 output for structs and unions.
fec8b34f 11692 Fix PR gdb/269.
fedbd091 11693
eb43544b
DJ
116942002-01-04 Daniel Jacobowitz <drow@mvista.com>
11695
11696 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11697 prototype.
11698
1514d34e
DJ
116992002-01-04 Daniel Jacobowitz <drow@mvista.com>
11700
11701 * cp-abi.c: Fix whitespace.
11702 (baseclass_offset): New wrapper function.
11703 * cp-abi.h (baseclass_offset): Add prototype.
11704 (struct cp_abi_ops): Add baseclass_offset pointer.
11705
11706 * valops.c (vb_match): Move to...
11707 * gnu-v2-abi.c (vb_match): here.
11708 * valops.c (baseclass_offset): Move to...
11709 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11710
11711 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11712
11713 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11714 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11715 * hpacc-abi.c (init_hpacc_ops): Likewise.
11716
7f8c9282
DJ
117172002-01-04 Daniel Jacobowitz <drow@mvista.com>
11718
11719 * valops.c (find_overload_match): Accept obj as a
11720 reference parameter. Update it before returning.
11721 * value.h (find_overload_match): Update prototype.
11722 * eval.c (evaluate_subexp_standard): Pass object to
11723 find_overload_match by reference.
11724
f23631e4
AC
117252002-01-03 Andrew Cagney <ac131313@redhat.com>
11726
11727 * valarith.c: Replace value_ptr with struct value pointer. Remove
11728 register attribute from value declarations.
11729 * valops.c: Ditto.
11730 * value.h: Ditto.
11731 * scm-lang.c (scm_lookup_name): Ditto.
11732
79e10fab 117332002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11734
79e10fab
AC
11735 Abstract the functionality of iterating over mapped memory
11736 regions into a general purpose iterator function.
abf22e64 11737 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11738 iterator for memory sections.
11739 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11740 (solib_mappings_callback): New function, callback for above.
11741 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11742 (info_mappings_callback): New function, callback for above.
11743
11744 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11745
c5ad026a
MK
117462002-01-01 Mark Kettenis <kettenis@gnu.org>
11747
d2a7c97a
MK
11748 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11749 * i386-tdep.c: Include "elf-bfd.h".
11750 (process_note_abi_tag_sections): New function.
11751 (i386_gdbarch_init): Add code to recognize various OS/ABI
11752 combinations.
11753
c5ad026a
MK
11754 * maint.c (_initialize_maint_cmds): Add missing \ in
11755 string-literal.
11756
a1a5b71e 11757For older changes see ChangeLog-2001
c906108c
SS
11758\f
11759Local Variables:
11760mode: change-log
11761left-margin: 8
11762fill-column: 74
11763version-control: never
11764End:
This page took 0.878981 seconds and 4 git commands to generate.