* gdbint.texinfo (CPLUS_MARKER): Remove item.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
967c0d83
MM
12002-10-10 Marko Mlinar <markom@opencores.org>
2
3 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
4 accidentially not commited 2002-10-09
5 * gdbarch.h, gdbarch.c: Re-generate.
6
f74fa174
MM
72002-10-09 Marko Mlinar <markom@opencores.org>
8
9 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
10 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
11 * gdbarch.h, gdbarch.c: Re-generate.
12
57349743
JB
132002-10-08 Petr Sorfa <petrs@caldera.com>
14
15 Revised and re-submitted by John Wolfe <jlw@caldera.com>
16
17 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
18 so we can work on more than one compilation unit at a time. This
19 helps prepare GDB to handle inter-CU die references.
20 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
21 the code to be defined before struct comp_unit_head.
22 (comp_unit_head): Added new members - offset, cu_head,
23 begin_die, next and dwarf2_abbrevs.
24 (dwarf2_abbrevs): Removed single static var; now member of
25 struct comp_unit_head.
26 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
27 members.
28 (psymtab_to_symtab_1): Changed to work with the new
29 struct comp_unit_head.
30 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
31 constructs the dwarf2_abbrevs[] inside the cu_header.
32 (dwarf2_empty_abbrev_table): Now expects a ptr to a
33 dwarf2_abbrev table to clean up.
34 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
35 handling of dwarf2_abbrevs inside the cu_header.
36 (read_partial_die): Now supports the call to the new
37 dwarf2_lookup_abbrev.
38 (read_full_die): Now supports the call to the new
39 dwarf2_lookup_abbrev.
40
4092aadb
CF
412002-10-06 Christopher Faylor <cgf@redhat.com>
42
43 * Makefile.in (install-gdbtk): Add missing continuation backslash to
44 insure that shell variables, such as "transformed_name" are propagated
45 to later shell statements in rule.
46
af0b2512
MK
472002-10-06 Mark Kettenis <kettenis@gnu.org>
48
49 * config/i386/nm-i386sco.h: Add protection against
50 multiple-inclusion. Include "i386/nm-i386v.h".
51 (REGISTER_U_ADDR): Remove define.
52 (i386_register_u_addr): Remove prototype.
53
d6020d45
MS
542002-10-04 Michael Snyder <msnyder@redhat.com>
55
56 * m32r-stub.c (handle_exception): Make sure exception is "trap"
57 before treating it as a single-step event.
58
7248f48e
AF
592002-10-03 Adam Fedor <fedor@gnu.org>
60
61 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
62 (objc_demangle): Remove assignment in if statements, Replace
63 free with xfree.
64 (add_msglist): Likewise.
65 (end_msglist): Likewise.
66 (complare_selectors): Likewise.
67 (selectors_info): Likewise.
68 (compare_classes): Likewise.
69 (classes_info): Likewise.
70 (print_object_command): Likewise.
71 (find_objc_msgcall_submethod): Replace PTR with void *.
72 * objc-lang.h: Remove check for __STDC__.
73
52c6a6ac
JJ
742002-10-03 Jeff Johnston <jjohnstn@redhat.com>
75
76 * ui-out.h (ui_out_field_fmt_int): New prototype.
77 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
78 of field width and alignment.
79 * stack.c (print_frame_info_base): When printing frame level, use
80 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
81 PR gdb/192
82
7e3cec17
JJ
832002-10-03 Jeff Johnston <jjohnstn@redhat.com>
84
85 * MAINTAINERS: Add self to Write After Approval list.
86
a58dd373
EZ
872002-10-02 Elena Zannoni <ezannoni@redhat.com>
88
89 * infcmd.c (interrupt_target_command_wrapper): Delete.
90 (interrupt_target_command): Make non static.
91 (nofp_registers_info): Make static.
92 * stack.c (return_command_wrapper): Delete.
93 (return_command): Make non static.
94
cee6ddeb
EZ
952002-10-02 Elena Zannoni <ezannoni@redhat.com>
96
97 * event-top.c (gdb_setup_readline): New function. Code moved from
98 _initialize_event_loop().
99 (_initialize_event_loop): Call gdb_setup_readline().
100
c4ed33b9
AC
1012002-10-02 Andrew Cagney <ac131313@redhat.com>
102
103 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
104 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
105 * gdbarch.h, gdbarch.c: Re-generate.
106
cef4f5dd
DJ
1072002-10-02 Daniel Jacobowitz <drow@mvista.com>
108
109 Fix PR gdb/778
110 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
111 before recursing.
112 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
113 of fill_in_vptr_fieldno.
114
36dc181b 1152002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 116
36dc181b
EZ
117 * inferior.h (registers_info, stepi_command, nexti_command,
118 continue_command, interrupt_target_command): Export from infcmd.c.
119 * frame.h (args_info, selected_frame_level_changed_hook,
120 return_command): Export from stack.c.
121 * v850ice.c (stepi_command, nexti_command, continue_command): use
122 prototypes from inferior.h.
123 * tracepoint.c (registers_info, args_info, locals_info): Use
124 prototypes from frame.h and inferior.h.
125 * Makefile.in (mi-main.o): Add dependency on frame.h.
126
6f99cb26
AC
1272002-10-02 Andrew Cagney <ac131313@redhat.com>
128
da3eff49
AC
129 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
130 value in register 3 adjusted by ppc_gp0_regnum.
131
6f99cb26
AC
132 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
133
da615bee
MM
1342002-10-02 Marko Mlinar <markom@opencores.org>
135
136 * MAINTAINERS: Add myself to the Write After Approval list.
137
d154bee2
AO
1382002-10-01 Alexandre Oliva <aoliva@redhat.com>
139
62a49b2c
AO
140 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
141 of the section for the N64 ABI, fixed.
142
d154bee2
AO
143 * config/mips/tm-irix6.h: Include solib.h.
144
ed348acc
EZ
1452002-10-01 Elena Zannoni <ezannoni@redhat.com>
146
147 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
148 GNU operators.
149
da0f9dcd
AC
1502002-10-01 Andrew Cagney <ac131313@redhat.com>
151
152 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
153 and that "mi0" syntax has been removed.
154
bdf64bac
DC
1552002-09-30 David Carlton <carlton@math.stanford.edu>
156
157 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
158 * ppc-sysv-tdep.c: #include "gdb_string.h".
159 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
160 pacify GCC.
161
54c2a1e6
AC
1622002-10-01 Andrew Cagney <ac131313@redhat.com>
163
164 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
165 "vrsave"'s register number.
166
cedea778
AC
1672002-09-30 Andrew Cagney <ac131313@redhat.com>
168
169 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
170 use frame_unwind_signed_register to obtain the PC.
171 (mips_frame_chain): Handle a generic dummy frame.
172 (mips_init_extra_frame_info): When a generic dummy frame, don't
173 re-compute the frame base.
174 (mips_pop_frame): Handle generic dummy frames.
175 (mips_gdbarch_init): When generic dummy frames, set
176 use_generic_dummy_frames, push_dummy_frame to
177 generic_push_dummy_frame, pc_in_call_dummy to
178 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
179 generic_save_dummy_frame_tos.
180
68315eb8
AC
1812002-09-30 Andrew Cagney <ac131313@redhat.com>
182
183 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
184 against TOP when TOP was explictly set.
185 (generic_push_dummy_frame): Set TOP to zero.
186
3b8630c3
EZ
1872002-09-30 Elena Zannoni <ezannoni@redhat.com>
188
189 * event-loop.c (start_event_loop): Rename variable 'result' to
190 'gdb_result', to avoid conflicts with upcoming intepreters changes.
191
28ee05e9
KS
1922002-09-30 Keith Seitz <keiths@redhat.com>
193
194 * gdb-events.sh (selected_thread_changed): New event.
195 * gdb-events.c: Regenerated.
196 * gdb-events.h: Regenerated.
197
6eecb1c8
HPN
1982002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
199
200 * MAINTAINERS: Add self to Write After Approval list.
201
92df71f0
FN
2022002-09-30 Fernando Nasser <fnasser@redhat.com>
203
3b8630c3
EZ
204 * disasm.c: New file.
205 * disasm.h: New file.
92df71f0
FN
206 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
207 (compare_lines): Ditto.
208 (dump_insns): Ditto.
3b8630c3
EZ
209 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
210 argument.
92df71f0 211 (do_assembly_only): Ditto.
3b8630c3
EZ
212 (do_disassembly): Renamed to gdb_disassembly and moved to
213 disasm.c. Sdded uiout argument.
214 * Makefile.in: Add new files. Reorder SFILES list. Update
215 dependencies. Include libgdb.a later in the insight executable.
92df71f0 216
0c22854d
AC
2172002-09-29 Andrew Cagney <ac131313@redhat.com>
218
219 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
220 bfd/elf64-alpha-fbsd.c.
221
e67f2023
AC
2222002-09-29 Andrew Cagney <ac131313@redhat.com>
223
224 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
225 i386gnu-tdep.c.
226
89396210
AC
2272002-09-29 Andrew Cagney <ac131313@redhat.com>
228
229 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
230 __FUNCTION__.
231 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
232 function name.
233 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
234 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
235 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
236 (S_msg_sig_post_reply): Ditto.
237
7079c36c
CV
2382002-09-28 Corinna Vinschen <vinschen@redhat.com>
239
89396210
AC
240 * sh-tdep.c (sh_use_struct_convention): Use definition according
241 to ABI.
7079c36c
CV
242 (sh_push_arguments): Store in register with correct endianess.
243 (sh_default_store_return_value): Ditto.
244 (sh_gdbarch_init): Set sizeof long double to 8.
245
975ac915
MK
2462002-09-27 Mark Kettenis <kettenis@gnu.org>
247
248 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
249 Fix some whitespace problems.
250
9bbe19fb
DC
2512002-09-27 David Carlton <carlton@math.stanford.edu>
252
253 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
254 (mcore-tdep.o): Ditto.
255 (ns32k-tdep.o): Ditto.
256 (ns32knbsd-tdep.o): Ditto.
257 (sh3-rom.o): Ditto.
258 (vax-tdep.o): Ditto.
259 * cris-tdep.c: #include "gdb_string.h"
260 * mcore-tdep.c: Ditto.
261 * ns32k-tdep.c: Ditto.
262 * ns32knbsd-tdep.c: Ditto.
263 * sh3-rom.c: Ditto.
264 * vax-tdep.c: Ditto.
265
43b2fdc7
DC
2662002-09-27 David Carlton <carlton@math.stanford.edu>
267
268 * config/djgpp/fnchange.lst: Add entries for
269 gdb/testsuite/gdb.c++/m-static files.
270
e8cfbbd9
JW
2712002-09-27 Jim Wilson <wilson@redhat.com>
272
273 * MAINTAINERS: Add myself to the Write After Approval list.
274
43b2fdc7 2752002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
276
277 * mips-tdep.c (find_proc_desc): Initialize startaddr.
278
279
9f3b7f07
AC
2802002-09-26 Andrew Cagney <ac131313@redhat.com>
281
282 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
283 frame.
284
11269d7e
AC
2852002-09-26 Andrew Cagney <ac131313@redhat.com>
286
287 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
288 (rs6000_struct_return_address): Delete variable.
289 (rs6000_store_struct_return): Update.
290 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
291 deprecated_extract_struct_value_address.
292 (rs6000_frame_align): New function.
293 (rs6000_gdbarch_init): Set frame_align.
294
f15ab4a7
AC
2952002-09-26 Andrew Cagney <ac131313@redhat.com>
296
297 From Grace Sainsbury <graces@redhat.com>:
298 * Makefile.in (gdbtk-main.o): New target.
299 (gdb.o): New target.
300 (main_h): Define.
301 (main.o): Update dependencies.
302 (gdb$(EXEEXT)): Add gdb.o.
303 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
304 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
305 (SUBDIR_GDBTK_CLEAN): Set.
306 (install-gdbtk): Install the insight binary.
307 (uninstall-gdbtk): New target.
308 (all-gdbtk, clean-gdbtk): New rule.
309 * top.c (use_windows): Default to zero.
310 * main.c: Include "main.h".
311 (main): Delete.
312 (struct captured_main_args): Delete.
313 (gdb_main): New function.
314 * main.h: New file.
315 * gdb.c: New File.
316
e36180d7
AC
3172002-09-25 Andrew Cagney <cagney@redhat.com>
318
319 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
320 (frame_map_regnum_to_name): New function.
321 (frame_map_name_to_regnum): New function.
322 * frame.h (frame_map_name_to_regnum): Declare.
323 (frame_map_regnum_to_name): Declare.
324 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
325 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
326 * parse.c: Do not include "builtin-regs.h".
327 (target_map_name_to_register): Delete function.
328 (write_dollar_variable): Use frame_map_name_to_regnum.
329 * parser-defs.h (target_map_name_to_register): Delete declaration.
330 * expprint.c: Include "frame.h".
331 (print_subexp): Use frame_map_regnum_to_name.
332 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
333 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
334
8b69000d
AC
3352002-09-25 Andrew Cagney <ac131313@redhat.com>
336
337 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
338 wasn't saved, and the next innermost frame is a dummy, return the
339 dummy frame's link register.
340
046ca86a
JB
3412002-09-24 Jim Blandy <jimb@redhat.com>
342
343 Fix from Paul Breed:
344 * main.c (captured_main): Add a `break' after the case for 'b'.
345
94b66fa7
KS
3462002-09-24 Keith Seitz <keiths@redhat.com>
347
348 * varobj.c (c_type_of_child): Use get_target_type instead
349 of TYPE_TARGET_TYPE.
350
c214a6fd
FN
3512002-09-22 Fernando Nasser <fnasser@redhat.com>
352
53cb0458
FN
353 * source.c (get_current_or_default_source_symtab_and_line): Remove
354 function.
355 (set_default_source_symtab_and_line): New function. Attempts to
356 determine a source file to list lines from if one is not currently
357 defined.
358 (get_current_source_symtab_and_line): Initialize sal.pc and
359 sal.end fields.
360 (set_current_source_symtab_and_line): Mark argument as const.
361 * source.h: Update declarations and comments.
362 * linespec.c (decode_line_1): Replace call to removed routine above.
363 * stack.c (print_frame_info_base): Ditto.
364 * cli/cli-cmds.c (edit_command): Ditto.
365 (list_command): Ditto.
366
3672002-09-22 Fernando Nasser <fnasser@redhat.com>
368
d6020d45 369 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 370 sal.pc and sal.end fields.
c214a6fd
FN
371 (get_current_or_default_source_symtab_and_line): Ditto.
372 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
373 so we do not cause a new source symtab to be searched for (reverting an
374 unintentional change from the 2002-09-20 patch).
375 * scm-lang.c (scm_unpac): Ditto.
376
cc3b68a5
AC
3772002-09-21 Andrew Cagney <cagney@redhat.com>
378
379 * complaints.c (symfile_explanations): Remove new-line from
380 ``isolated_message''.
381 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
382 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
383
5835abe7
NC
3842002-09-20 Nick Clifton <nickc@redhat.com>
385
386 * NEWS: Announce that V850EA ISA is no longer supported.
387 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
388
a15ef5f5
DC
3892002-09-20 David Carlton <carlton@math.stanford.edu>
390
06ba1b39
DC
391 * Makefile.in (c-lang.o): Correct dependencies.
392 (utils.o): Gather dependencies.
393 (charset.o): Move.
a15ef5f5
DC
394 * c-lang.c: #include "gdb_string.h"
395
87885426
FN
3962002-09-20 Fernando Nasser <fnasser@redhat.com>
397
398 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
399 * cli/cli-cmds.c (list_command): New function. Implements the new
400 cli edit command.
401 (_init_cli_cmds): Add new command definition.
402 * gdb.1: Document edit command.
403 * doc/gdb.texinfo: Document edit command.
404
4052002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
406
407 * source.c: Make global variables current_source_symtab and
408 current_source_line static.
409 (list_command): Moved to cli/cli-cmds.c.
410 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
411 (get_first_line_listed): New accessor function.
412 (get_lines_to_list): New accessor function.
413 (get_current_source_symtab_and_line): New function. Retrieves the
414 position in the source code that we consider current.
415 (get_current_or_default_source_symtab_and_line): New function.
416 Like the above but attempts to determine a default position if one
417 is not currently defined.
418 (set_current_source_symtab_and_line): New function. Sets the source
419 code position considered current and returns the previously set one.
420 (clear_current_source_symtab_and_line): Reset stored information about
421 a current source line.
422 (_initialize_source): Remove registration for the "list" command and
423 its alias.
424 * source.h: Add declarations for the new functions above.
425 * symtab.h: Remove declarations for the global variables mentioned
426 above.
427 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
428 obtain current source line.
429 * linespec.c (decode_line_1): Ditto.
430 * macroscope.c (default_macro_scope): Ditto.
431 * scm-lang.c (scm_unpac): Ditto.
432 * stack.c (print_frame_info_base): Ditto.
433 * symfile.c (clear_symtab_users): Ditto.
434 * symtab.c (decode_line_spec): Ditto.
435 * cli/cli-cmds.c (list_command): Moved here from source.c.
436 (ambiguous_line_spec): Moved here from source.c.
437 (_init_cli_cmds): Add definition for "list" and its alias.
438 * Makefile.in: Update dependencies.
439
ddd216ea
CV
4402002-09-20 Corinna Vinschen <vinschen@redhat.com>
441
442 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
443 with what gcc thinks is correct.
444
6d305052
CV
4452002-09-20 Corinna Vinschen <vinschen@redhat.com>
446
447 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
448 multiple register push instruction.
449
234b45d4
KB
4502002-09-19 Jim Blandy <jimb@redhat.com>
451
452 Add support for distinct host and target character sets.
453 * charset.c, charset.h: New files.
454 * c-exp.y: #include "charset.h".
455 (yylex): Convert character and string literals to the target
456 character set, before returning them as the semantic value of the
457 token.
458 * c-lang.c: #include "charset.h".
459 (c_emit_char): Use charset-specific methods to recognize
460 characters with backslash escape forms, to decide which characters
461 to print literally and which to print using numeric escape
462 sequences, and to convert target characters to host characters
463 before printing.
464 * utils.c: #include "charset.h".
465 (no_control_char_error): New function.
466 (parse_escape): Use charset-specific methods to recognize
467 backslash escapes, parse `control character' notation, and convert
468 characters from the host character set to the target character set.
469 * configure.in: Set the default host character set.
470 Check where to find iconv, and what its argument types might be.
471 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
472 * Makefile.in (SFILES): List charset.c.
473 (COMMON_OBS): List charset.o.
474 (charset.o): New rule.
475 (charset_h): New header dependency variable.
476 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
477 (LIBICONV): New variable, set by configure.
478 (CLIBS): Include $(LIBICONV) here.
479 * aclocal.m4, config.in, configure: Regenerated.
480
525d6a61
JB
4812002-09-19 Joel Brobecker <brobecker@gnat.com>
482
483 * ada-exp.y: Add missing semicolons to end rules. Fixes a
484 bison 1.35 warning.
485
3ed93867
RE
4862002-09-19 Richard Earnshaw <rearnsha@arm.com>
487
488 * gdb_mbuild.sh: New file.
489
437666f8
AC
4902002-09-19 Andrew Cagney <ac131313@redhat.com>
491
492 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
493
389e51db
AC
4942002-09-18 Andrew Cagney <ac131313@redhat.com>
495
496 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
497 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
498 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
499 valops.c, value.h: Revert previous change.
500
3b4efeaa
MS
5012002-09-18 Michael Snyder <msnyder@redhat.com>
502
503 Preliminary support for Objective-C:
504 * defs.h (language_objc): New enum value.
505 (puts_filtered_tabular): Declaration only, exported from utils.c.
506 (skip_quoted): Delete, declared in completer.h.
507 * c-exp.y: Include completer.h.
508 * p-exp.y: Ditto.
509 * jv-exp.y: Ditto.
510 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
511 New operator enum values.
512 * language.h (CAST_IS_CONVERSION): Test for language_objc.
513 * language.c (binop_result_type): Handle language_objc case.
514 (integral_type, character_type, string_type, boolean_type,
515 structured_type, binop_type_check): Ditto.
516 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
517 (struct objc_specific): Add to general_symbol_info.
518 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
519 (SYMBOL_DEMANGLED_NAME): Handle objc case.
520 * parser-defs.h (struct objc_class_str): New struct type.
521 (start_msglist, end_msglist, add_msglist): Declaration only,
522 exported from objc-lang.c.
523 * value.h (value_of_local, value_nsstring,
524 call_function_by_hand_expecting_type): Exported from valops.c.
525 * valops.c (find_function_addr): Export.
526 (call_function_by_hand_expecting_type): New function.
527 (value_of_local): New function.
528 * symfile.c (init_filename_language_table): Add ".m" extension
529 for Objective-C.
530 * utils.c (puts_filtered_tabular): New function.
531 (fprintf_symbol_filtered): Add objc demangling support (disabled).
532 (set/show demangle): Extend help-string to refer to ObjC.
533 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
534 * stabsread.c (symbol_reference_defined): Objective-C symbols
535 may contain colons: make allowances when scanning stabs strings
536 for colons.
537 (objc_find_colon): New function.
538 * printcmd.c (address_info): If language == objc then print
539 "self" instead of "this".
540 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
541 OP_NSSTRING, and OP_SELF.
542 (prefixify_subexp): Ditto.
543 * source.c (print_source_lines): Mention objc in comment.
544 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
545 method names.
546
b9caf505
AC
5472002-09-18 Andrew Cagney <ac131313@redhat.com>
548
549 * complaints.h: Update copyright.
550 (struct complaints): Declare.
551 (struct complaint): Make `message' constant.
552 (internal_complaint): Declare.
553 (complaint): Declare.
554 (complaint_root): Delete declaration.
555 (symfile_complaints): Delete declaration.
556 (struct complaints): Add opaque declaration.
557 (clear_complaints): Add a complaints parameter.
558 * complaints.c: Update copyright.
559 (enum complaint_series): Define.
560 (complaint_root): Delete.
561 (struct complaints): Define.
562 (complaint_sentinel, symfile_complaint_book): New variables.
563 (symfile_explanations, symfile_complaints): New variables.
564 New variables.
565 (get_complaints): New function.
566 (vcomplaint): New function.
567 (complaint): New function.
568 (internal_complaint): New function.
569 (complain): Call vcomplain with symfile_complaint.
570 (clear_complaints): Rewrite.
571 (_initialize_complaints): Use add_setshow_command.
572 * Makefile.in (complaints.o): Update dependencies.
573 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
574 to call to clear_complaints.
575 (new_symfile_objfile, reread_symbols): Ditto.
576 (oldsyms_complaint): Delete.
577 (empty_symtab_complaint, unknown_option_complaint): Delete.
578 (free_named_symtabs): Use complaint instead of complain.
579
d2e6263c
MS
5802002-09-18 Michael Snyder <msnyder@redhat.com>
581
5fb2031a
AC
582 Contributed by Apple Computer, Inc. Merged with current sources
583 by Adam Fedor <fedor@doc.com> [cagney].
584
d2e6263c
MS
585 * objc-lang.c: First clean-up round: comments, indentation.
586 * objc-lang.h: Ditto.
587 * objc-lang.y: Ditto.
588
dec43320
AC
5892002-09-18 Andrew Cagney <ac131313@redhat.com>
590
591 * maint.c (maintenance_internal_error): Print the parameter as the
592 error message.
593 (maintenance_internal_warning): New function.
594 (_initialize_maint_cmds): Add command `maint internal-warning'.
595
596 * defs.h (internal_warning, internal_vwarning): Declare.
597 * utils.c (struct internal_problem): Define.
598 (internal_vproblem): New function.
599 (internal_warning): New function.
600 (internal_vwarning): New function.
601 (internal_warning_problem, internal_error_problem): New variables.
602 (internal_verror): Just call internal_vproblem.
603
b81654f1
MS
6042002-09-18 Michael Snyder <msnyder@redhat.com>
605
606 * objc-lang.c: New file, support for Objective-C.
607 Preliminary check-in, not yet integrated into gdb.
608 * objc-lang.h: New file.
609 * objc-exp.y: New file.
610
0542c381
AC
6112002-09-18 Andrew Cagney <ac131313@redhat.com>
612
7bda5e4a
AC
613 * infrun.c (signal_stop_update): Convert definition to ISO C.
614 (signal_print_update): Ditto.
615 (signal_pass_update): Ditto.
616 * inflow.c (terminal_save_ours): Ditto.
617
5247b418
AC
618 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
619 comments.
620
fc60962c
AC
621 * config/djgpp/fnchange.lst: Handle name clashes between
622 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
623 bfd/coff-tic80.c.
624
0542c381
AC
625 * i386-linux-tdep.h: Fix tipo.
626
5b924b9b
AF
6272002-09-18 Adam Fedor <fedor@gnu.org>
628
629 * MAINTAINERS: Add myself to the Write After Approval list.
630
5afc051b
JB
6312002-09-18 Jim Blandy <jimb@redhat.com>
632
633 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
634 texthigh and textlow to reader-specific structs caused
635 objfile_relocate to miss them. This is fixable, but the work that
636 the change was supposed to prepare GDB for never got done anyway.
637
eb944380
DC
6382002-09-18 David Carlton <carlton@math.stanford.edu>
639
640 * MAINTAINERS: Alphabetize Write After Approval list.
641
948e66d9
DJ
6422002-09-18 Daniel Jacobowitz <drow@mvista.com>
643
644 Fix PR gdb/709
645 * values.c (value_static_field): Call read_var_value.
646
dc604539
AC
6472002-09-18 Andrew Cagney <ac131313@redhat.com>
648
649 * valops.c (hand_function_call): Align the initial stack pointer
650 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
651 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
652 return value.
653 * mips-tdep.c (mips_frame_align): New function.
654 (mips_gdbarch_init): Set frame_align.
655 * gdbarch.sh (FRAME_ALIGN): New method.
656 * gdbarch.h, gdbarch.c: Re-generate.
657
cb7e422f
ML
6582002-09-18 Michal Ludvig <mludvig@suse.cz>
659
660 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
661 registers.
662
a094c6fb
AC
6632002-09-17 Andrew Cagney <ac131313@redhat.com>
664
665 * NEWS: Mention that MIPS $fp behavior changed.
666 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
667 reference to FP_REGNUM.
668 (mipsnbsd_cannot_store_register): Ditto.
669 * mips-linux-nat.c: Update copyright.
670 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
671 (mips_linux_cannot_store_register): Ditto.
672 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
673 * config/mips/tm-mips.h: Update copyright.
674 (FP_REGNUM): Delete macro.
675 (MIPS_REGISTER_NAMES): Replace "fp" with "".
676 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
677 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
678 (mips_r3041_reg_names, mips_r3051_reg_names)
679 (mips_r3081_reg_names): Replace "fp" with "".
680 Fix PR gdb/480.
681
45cf40d1
TR
6822002-09-17 Theodore A. Roth <troth@verinet.com>
683
684 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
685 generic_read_register_dummy() (PR gdb/703).
686 (avr_push_return_address): #if 0 out unused vars.
687 (avr_gdbarch_init): Enable use of avr_push_return_address().
688
c7e701b5
MS
6892002-09-17 Michael Snyder <msnyder@redhat.com>
690
d76ba2a5 691 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
692 RTE will take care of it.
693
20bcf01c
AC
6942002-09-17 Andrew Cagney <ac131313@redhat.com>
695
696 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
697 invalid, return SP_REGNUM.
698
009a9971 6992002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
700
701 * mips-tdep.c (mips_pop_frame): Read saved values of floating
702 point registers without sign extension.
703
135c175f
AC
7042002-09-17 Andrew Cagney <cagney@redhat.com>
705
706 * blockframe.c (deprecated_read_register_dummy): Rename
707 generic_read_register_dummy.
708 * frame.c (frame_unwind_signed_register): New function.
709 (frame_unwind_unsigned_register): New function.
710 * frame.h (frame_unwind_signed_register): Declare.
711 (frame_unwind_unsigned_register): Declare.
712 (deprecated_read_register_dummy): Rename
713 generic_read_register_dummy.
714
715 * h8300-tdep.c (h8300_frame_chain): Update.
716 (h8300_frame_saved_pc): Update.
717 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
718 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
719 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
720 (s390_frame_chain): Update.
721 * v850-tdep.c (v850_find_callers_reg): Update.
722 (v850_frame_saved_pc): Update.
723 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
724 (m32r_find_callers_reg): Update.
725 (m32r_frame_saved_pc): Update.
726 * sh-tdep.c (sh_find_callers_reg): Update.
727 (sh64_get_saved_pr): Update.
728 (sh_init_extra_frame_info): Update.
729 (sh_init_extra_frame_info): Update.
730 (sh64_init_extra_frame_info): Update.
731 (sh64_init_extra_frame_info): Update.
732 * mcore-tdep.c (mcore_find_callers_reg): Update.
733 (mcore_frame_saved_pc): Update.
734 (mcore_init_extra_frame_info): Update.
735 * i386-tdep.c (i386_frame_saved_pc): Update.
736 * ia64-tdep.c (ia64_frame_saved_pc): Update.
737 (ia64_init_extra_frame_info): Update.
738 (ia64_init_extra_frame_info): Update.
739 * d10v-tdep.c (d10v_frame_saved_pc): Update.
740 * cris-tdep.c (cris_init_extra_frame_info): Update.
741 * avr-tdep.c (avr_frame_chain): Update.
742 (avr_init_extra_frame_info): Update.
743 (avr_frame_saved_pc): Update.
744 * arm-tdep.c (arm_find_callers_reg): Update.
745 (arm_init_extra_frame_info): Update.
746 (arm_frame_saved_pc): Update.
747
a741e514
TT
7482002-09-17 Tom Tromey <tromey@redhat.com>
749
750 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
751 is "'".
752
d1a8e808
CV
7532002-09-17 Corinna Vinschen <vinschen@redhat.com>
754
755 * MAINTAINERS: Remove "non multi-arched" text from h8300.
756 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
757 NEXT_PROLOGUE_INSN.
758 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
759 NEXT_PROLOGUE_INSN.
760
d9025a18
JB
7612002-09-16 Joel Brobecker <brobecker@gnat.com>
762
763 * osfsolib.c: Remove file, replaced by solib-osf.c.
764 * Makefile.in: Remove compilation rules for osfsolib.c.
765
1b2ef1b6
DC
7662002-09-16 David Carlton <carlton@math.stanford.edu>
767
768 * cp-valprint.c (cp_print_class_method): Correct args to
769 check_stub_method_group.
770
928e48af
CV
7712002-09-16 Corinna Vinschen <vinschen@redhat.com>
772
773 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
774 `set architecture'. Unify naming convention of functions.
775 (h8300_skip_prologue): Improve prologue analysis.
776 (h8300_push_arguments): Rewritten to more closely match GCC's
777 bizarre argument-passing behavior, along with the comment describing
778 said behavior.
779 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
780 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
781 sim, remote-e7000.c, remote-hms.c and remote.c
782
5e3397bb
MK
7832002-09-15 Mark Kettenis <kettenis@gnu.org>
784
785 * i386-tdep.c (gdb_print_insn_i386): Removed.
786 (i386_print_insn): New function.
787 (i386_gdbarch_init): Set print_insn to i386_print_insns.
788 (_initialize_i386_tdep): Don't initialize tm_print_insn and
789 tm_print_insn_info.
790
f710f4fc
MK
7912002-09-14 Mark Kettenis <kettenis@gnu.org>
792
793 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
794 zero.
795
db54fef4
CV
7962002-09-14 Corinna Vinschen <vinschen@redhat.com>
797
798 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
799 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
800 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
801
2becadee
CF
8022002-09-13 Christopher Faylor <cgf@redhat.com>
803
804 * win32-nat.c (child_create_inferior): Honor 'tty' command.
805
de17c821
DJ
8062002-09-13 Daniel Jacobowitz <drow@mvista.com>
807
808 * gdbtypes.c (check_stub_method): Make static.
809 (check_stub_method_group): New function.
810 * gdbtypes.h: Update prototypes.
811 * cp-support.c: New file.
812 * cp-support.h: New file.
813
814 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
815 (update_method_name_from_physname): New function.
816 (read_member_functions): Correct method names for operators
817 and v3 constructors/destructors. Separate v2 constructors and
818 destructors.
819 * Makefile.in (stabsread.o): Update dependencies.
820 (SFILES): Add cp-support.c.
821 (COMMON_OBS): Add cp-support.o.
822 (cp_support_h, cp-support.o): Add.
823
824 * cp-valprint.c (cp_print_class_method): Call
825 check_stub_method_group instead of check_stub_method. Remove
826 extraneous QUITs.
827 * p-valprint.c (pascal_object_print_class_method): Likewise.
828 * valops.c (search_struct_method): Likewise.
829 (find_method_list, value_struct_elt_for_reference): Likewise.
830
e76cff22
AC
8312002-09-13 Andrew Cagney <cagney@redhat.com>
832
833 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
834 * gdbarch.h, gdbarch.c: Regenerate.
835
905abb3f
AC
8362002-09-13 Andrew Cagney <ac131313@redhat.com>
837
838 * frame.c (find_saved_register): Delete function.
839 * frame.h (find_saved_register): Delete declaration.
840 Fix PR gdb/631.
841
64159455
AC
842Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
843
844 * mips-tdep.c (read_next_frame_reg): Re-hack using
845 frame_register_unwind.
846
795e1e11
AC
847Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
848
849 * mips-tdep.c (mips_get_saved_register): Re-hack using
850 frame_register_unwind.
851
5720643c
JB
8522002-09-12 Joel Brobecker <brobecker@gnat.com>
853
854 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
855 vector. Will be useful for Interix.
856 * gdbarch.h, gdbarch.c: Regenerate.
857
858 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
859 name of the malloc function by NAME_OF_MALLOC.
860
3bada2a2
JB
8612002-09-12 Joel Brobecker <brobecker@gnat.com>
862
863 * value.h (find_function_in_inferior): Add const keyword to
864 one of the parameters. Allows us to invoke this function with
865 a const char *.
866 * valops.c (find_function_in_inferior): Likewise.
867
3db26b01
JB
8682002-09-12 Joel Brobecker <brobecker@gnat.com>
869
870 * exec.c (xfer_memory): Fix compilation warning with old versions
871 of GCC.
872 * tracepoint.c (trace_find_tracepoint_command): Likewise.
873
17c5ed2c
DC
8742002-09-12 David Carlton <carlton@math.stanford.edu>
875
876 * symtab.h: Run through gdb_indent.h.
877 Add 2002 to Copyright year list.
878
ecd1107e
AM
8792002-09-12 Alan Modra <amodra@bigpond.net.au>
880
881 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
882 mach constants.
883 * MAINTAINERS: Add myself to write after approval list.
884
e64f66d1
JB
8852002-09-11 J. Brobecker <brobecker@gnat.com>
886
887 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
888
f9395794
JB
8892002-09-11 J. Brobecker <brobecker@gnat.com>
890
891 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
892 Interix.
893
1a303dec
MS
8942002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
895
896 * procfs.c (do_detach): Clear current signal, not just fault.
897 Corrects problem with breakpoint trap signal leaking to detached
898 process on Tru64.
899
c0219d42
MS
9002002-09-10 Michael Snyder <msnyder@redhat.com>
901
902 * buildsym.c (finish_block): Protect against null pointer.
903
9d84ac84
AC
9042002-09-10 Andrew Cagney <cagney@redhat.com>
905
906 * infcmd.c (default_print_registers_info): Send all output to
907 ``file'' instead of ``gdb_stdout''.
908
77d8f2b4
MS
9092002-09-10 Michael Snyder <msnyder@redhat.com>
910
911 * mips-tdep.c (mips_extract_struct_value_address): Make val a
912 LONGEST, and use signed register read (addresses are sign-
913 extended for mips).
914
99656a61
SC
9152002-09-10 Stephane Carrez <stcarrez@nerim.fr>
916
917 * event-loop.c (gdb_do_one_event): Make public.
918 * event-loop.h (gdb_do_one_event): Declare.
919
da12f4d8
JL
9202002-09-10 Jeff Law <law@redhat.com>
921
922 * infttrace.c (child_resume): Simplify and rework to avoid
923 TT_PROC_CONTINUE.
924
d0aee0c4
FF
9252002-09-09 Fred Fish <fnf@intrinsity.com>
926
927 * printcmd.c (print_scalar_formatted): "len" is the number of
928 target bytes, NOT the number of target bits.
929
7cb3ec5e
EZ
9302002-09-09 Elena Zannoni <ezannoni@redhat.com>
931
932 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
933 * top.c (init_main): Set rl_terminal_name.
934
4dc81987
AS
9352002-09-08 Aidan Skinner <aidan@velvet.net>
936
937 * ada-lang.c (ada_array_bound, ada_type_match,
938 _initialize_ada_language): Fix K&R definitions.
939 * ada-tasks.c (get_current_task): Fix K&R definitions.
940 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
941
842330b4
CF
9422002-09-07 Christopher Faylor <cgf@redhat.com>
943
944 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
945 Add XP.
946
43156d82
MK
9472002-09-06 Mark Kettenis <kettenis@gnu.org>
948
66da5fd8
MK
949 * i386-tdep.c (i386_register_virtual_type,
950 i386_register_convertible, i386_register_convert_to_virtual,
951 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
952 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
953 (i386_gdbarch_init): Fix comment. Add comments on calls that set
954 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
955 Don't set push_arguments twice.
956
4b218c18
MK
957 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
958 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
959 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
960 sigtramp_end to NULL.
961 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
962 defines.
963 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
964
4cc314d5
MK
965 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
966 whitespace.
967
43156d82
MK
968 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
969 * gdbarch.h, gdbarch.c: Re-generate.
970 * blockframe.c (find_pc_sect_partial_function): Convert to use
971 SIGTRAMP_START_P predicate.
972
6672060b
MS
9732002-09-05 Michael Snyder <msnyder@redhat.com>
974
a90c3637
MS
975 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
976 generic_dummy_frame method and old method. Also distinguish
977 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 978 (arm_extract_return_value): Use new regcache method.
a90c3637 979
6672060b
MS
980 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
981 adjustment that doesn't conform to the ABI.
982 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
983 saved regcache, not from current regcache.
984
299ffc64
AC
9852002-09-05 Andrew Cagney <ac131313@redhat.com>
986
987 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
988 * README: Update.
989
a3a2ee65
JT
9902002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
991
992 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
993 if arm_apcs_32 is false.
994
2bc7eea9
AC
9952002-09-04 Andrew Cagney <ac131313@redhat.com>
996
997 GDB 5.3 branch created.
998
8a55a7c5
TR
9992002-09-03 Theodore A. Roth <troth@verinet.com>
1000
1001 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1002 generic_unwind_get_saved_register.
1003
e26fb1d7
DC
10042002-09-03 David Carlton <carlton@math.stanford.edu>
1005
1006 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1007 argument (PR gdb/653). Update call to smash_to_method_type.
1008 (read_structure_scope): Update call to dwarf2_add_member_fn.
1009
30d52491
ML
10102002-09-03 Michal Ludvig <mludvig@suse.cz>
1011
1012 * x86-64-linux-tdep.c: Include gdb_string.h
1013 * x86-64-linux-nat.c: Ditto.
1014
06891d83
JT
10152002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1016
1017 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1018 when YYDEBUG is set to 1.
1019 * c-exp.y: Likewise.
1020 * f-exp.y: Likewise.
1021 * jv-exp.y: Likewise.
1022 * m2-exp.y: Likewise.
1023 * p-exp.y: Likewise.
1024
7d400e77
JT
10252002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1026
1027 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1028 dependency list.
1029 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1030 solib_svr4_fetch_link_map_offsets to
1031 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1032 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1033 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1034 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1035 solib-svr4.o, and solib-legacy.o.
1036 * config/i386/tm-nbsd.h: Include solib.h.
1037
704a27c4
JT
10382002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1039
1040 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1041 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1042 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1043 comment noting that this needs its own target configuration.
1044 * config/i386/nbsd.mt: New file.
1045 * config/i386/nbsdaout.mt: Remove.
1046 * config/i386/nbsdelf.mt: Ditto.
1047 * config/i386/tm-nbsdaout.h: Ditto.
1048
d66198e1
JT
10492002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1050
1051 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1052 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1053 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1054 tdep->sigtramp_end.
1055 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1056 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1057 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1058
3cac699e
JT
10592002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1060
1061 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1062 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1063 * i386-tdep.h (i386bsd_init_abi): New prototype.
1064 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1065 function declaration.
1066 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1067 for NetBSD-a.out or NetBSD-ELF.
1068 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1069 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1070 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1071 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1072 and nbsd-tdep.h.
1073 (i386nbsd_pc_in_sigtramp): New function.
1074 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1075 i386nbsd_pc_in_sigtramp.
1076 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1077 and i386nbsdelf_init_abi OS ABI handlers.
1078 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1079 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1080
7010ca0a
MK
10812002-09-02 Mark Kettenis <kettenis@gnu.org>
1082
1083 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1084 registers if the target really has them.
1085
6dd93b72
JT
10862002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1087
1088 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1089 than nbsd-tdep.h.
1090
2ca8ae21
JT
10912002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1092
1093 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1094 list.
1095 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1096 (alphanbsd_skip_sigtramp_frame): New functions.
1097 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1098 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1099 to alphanbsd_sigcontext_addr.
1100
3d9b49b0
JT
11012002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1102
1103 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1104 list.
1105 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1106 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1107 nbsd_pc_in_sigtramp.
1108 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1109 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1110 * nbsd-tdep.c: Include gdb_string.h.
1111 (nbsd_pc_in_sigtramp): New function.
1112 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1113 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1114 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1115 ppcnbsd_pc_in_sigtramp.
1116 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1117 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1118 shnbsd_pc_in_sigtramp.
1119 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1120 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1121 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1122
c860120c
PM
11232002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1124
1125 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1126 watchpoints to NULL.
1127 (insert_breakpoints): set val field of watchpoints if NULL.
1128
1129
c7612d53
JB
11302002-08-29 Jim Blandy <jimb@redhat.com>
1131
1132 * symtab.c (lookup_symbol_aux): In the cases where we find a
1133 minimal symbol of an appropriate name and use its address to
1134 select a symtab to read and search, use `name' (as passed to us)
1135 as the demangled name when searching the symtab's global and
1136 static blocks, not the minsym's name.
1137
66609862
KS
11382002-08-29 Keith Seitz <keiths@redhat.com>
1139
1140 * stack.c (print_frame_info_base): Always set current_source_symtab
1141 and current_source_line.
1142
151fefe2
JB
11432002-08-29 Donn Terry <donnte@microsoft.com>
1144
1145 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1146
bfb3754e
KS
11472002-08-28 Keith Seitz <keiths@redhat.com>
1148
1149 * stack.c (select_frame): Add FIXME concerning selected-frame
1150 events.
1151 (select_frame_command): Send selected-frame-level-changed
1152 event notification, but only if the level actually changed.
1153 (up_silently_base): Add selected-frame-level-changed event
1154 notification.
1155 (down_silently_base): Likewise.
1156
e822a2a0
AC
11572002-08-28 Andrew Cagney <ac131313@redhat.com>
1158
1159 * Makefile.in: Update dependencies for all gdb/*.c files.
1160
309367d4
TT
11612002-08-27 Tom Tromey <tromey@redhat.com>
1162
1163 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1164 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1165 Update dependencies.
1166 * i387-tdep.c: Include gdb_string.h.
1167 * osabi.c: Likewise.
1168 * i386-linux-nat.c: Likewise.
1169 * lin-lwp.c: Likewise.
1170 * ax-gdb.c: Likewise.
1171 * signals/signals.c: Likewise.
1172 * jv-valprint.c: Likewise.
1173 * p-lang.c: Likewise.
1174 * c-valprint.c: Likewise.
1175 * cp-abi.c: Likewise.
1176
e1507482
EZ
11772002-08-27 Elena Zannoni <ezannoni@redhat.com>
1178
1179 * cli/cli-script.h (copy_command_lines): Export.
1180 * breakpoint.c: Include cli/cli-script.h.
1181 * Makefile.in (breakpoint.o): Update dependencies.
1182
c6510018
MS
11832002-08-26 Michael Snyder <msnyder@redhat.com>
1184
1185 * breakpoint.c (insert_breakpoints): Protect all references
1186 to 'process_warning'. Shorten long lines.
1187
c2b8ed2c
MS
11882002-08-26 Joel Brobecker <brobecker@gnat.com>
1189
1190 * cli/cli-script.c (copy_command_lines): New function.
1191 * defs.h (copy_command_lines): Export.
1192 * testsuite/gdb.base/commands.exp: New tests for commands
1193 attached to a temporary breakpoint, and for commands that
1194 delete the breakpoint they are attached to.
1195
11962002-08-26 Michael Snyder <msnyder@redhat.com>
1197
1198 * breakpoint.c (bpstat_stop_status): Instead of copying the
1199 pointer to the breakpoint commands struct, make a new copy
1200 of the struct and point to that.
1201 (bpstat_clear): Free the commands struct.
1202 (bpstat_clear_actions): Free the commands struct.
1203 (bpstat_do_actions): Free the command actions. Also execute
1204 the local cleanups, instead of deleting them.
1205 (delete_breakpoint): Leave the commands field of the bpstat
1206 chain alone -- it will be freed later.
1207
64b84175
KB
12082002-08-26 Kevin Buettner <kevinb@redhat.com>
1209
1210 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1211 deleted in 2002-08-20 commit. This function is still used by
1212 ppc-linux-nat.c.
1213
55970da6
KS
12142002-08-26 Keith Seitz <keiths@redhat.com>
1215
1216 * gdb-events.sh: Add selected-frame-level-changed event.
1217 * gdb-events.c: Regenerated.
1218 * gdb-events.h: Regenerated.
1219
a790ad35
SC
12202002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1221
1222 Fix PR gdb/393:
1223 * inflow.c (terminal_save_ours): New function to save terminal
1224 settings.
1225 * inferior.h (terminal_save_ours): Declare.
1226 * target.c (debug_to_terminal_save_ours): New function.
1227 (cleanup_target): Defaults to_terminal_save_ours.
1228 (update_current_target): Inherit to_terminal_save_ours.
1229 (setup_target_debug): Set to_terminal_save_ours.
1230 * target.h (target_terminal_save_ours): New to save terminal settings.
1231 (target_ops): New member to_terminal_save_ours.
1232 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1233 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1234 * inftarg.c (init_child_ops): Likewise.
1235 * m3-nat.c (init_m3_ops): Likewise.
1236 * procfs.c (init_procfs_ops): Likewise.
1237 * wince.c (init_child_ops): Likewise.
1238 * win32-nat.c (init_child_ops): Likewise.
1239 * sol-thread.c (init_sol_thread_ops): Likewise.
1240
c00dcbe9
MK
12412002-08-26 Mark Kettenis <kettenis@gnu.org>
1242
3d7f4f49
MK
1243 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1244 use regcache_* functions.
1245 (i386_gdbarch_init): Set store_return_value instead of
1246 deprecated_store_return_value.
1247
c00dcbe9
MK
1248 * regcache.c (regcache_raw_write_signed,
1249 regcache_raw_write_unsigned): New functions.
1250 * regcache.h (regcache_raw_write_signed,
1251 regcache_raw_write_unsigned): New prototypes.
1252
0e0d15ca
AC
12532002-08-25 Andrew Cagney <ac131313@redhat.com>
1254
1255 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1256 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1257 source file dependencies. Cleanup corresponding generator rules.
1258
d3b22ed5
AC
12592002-08-25 Andrew Cagney <ac131313@redhat.com>
1260
1261 * regcache.h (register_offset_hack): Declare.
1262 (regcache_cooked_read_using_offset_hack): Declare.
1263 (regcache_cooked_write_using_offset_hack): Declare.
1264
1265 * regcache.c (register_offset_hack): New function.
1266 (regcache_cooked_read_using_offset_hack): New function.
1267 (regcache_cooked_write_using_offset_hack): New function.
1268 (regcache_dump): Check that the registers, according to their
1269 offset, are packed hard against each other.
1270 (cooked_xfer_using_offset_hack): New function.
1271
bb425013
AC
12722002-08-25 Andrew Cagney <ac131313@redhat.com>
1273
1274 * regcache.c (struct regcache_descr): Add field register_type.
1275 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1276 in as a parameter
1277 (init_regcache_descr): Initialize register_type. Pass the descr
1278 to init_legacy_regcache_descr. Use register_type instead of
1279 REGISTER_VIRTUAL_TYPE.
1280 (register_type): New function.
1281 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1282 * regcache.h (register_type): Declare.
1283
d0403e00
AC
12842002-08-25 Andrew Cagney <ac131313@redhat.com>
1285
1286 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1287 instead of deprecated_store_return_value. Fix fallout from
1288 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1289
0ed04cce
AC
12902002-08-25 Andrew Cagney <ac131313@redhat.com>
1291
1292 * regcache.c (max_register_size): New function.
1293 (init_legacy_regcache_descr): Ensure that max_register_size is
1294 large enough for REGISTER_VIRTUAL_SIZE.
1295 * regcache.h (max_register_size): Declare.
1296
46d79c04
AC
12972002-08-24 Andrew Cagney <ac131313@redhat.com>
1298
1299 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1300 store_return_value.
1301 (e500_extract_return_value): Change type of valbuf pointer to
1302 void.
1303
853c7bd0
MK
13042002-08-24 Mark Kettenis <kettenis@gnu.org>
1305
cd87e769
MK
1306 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1307 workaround.
1308
853c7bd0
MK
1309 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1310 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1311 long long) to prevent compiler warning on 64-bit systems.
1312
ebba8386
AC
13132002-08-23 Andrew Cagney <cagney@redhat.com>
1314
1315 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1316 (DEPRECATED_STORE_RETURN_VALUE): New method.
1317 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1318 * gdbarch.h, gdbarch.c: Re-generate.
1319
1320 * values.c (set_return_value): Pass current_regcache to
1321 STORE_RETURN_VALUE.
1322 * arch-utils.h (legacy_store_return_value): Declare.
1323 * arch-utils.c (legacy_store_return_value): New function.
1324 (legacy_extract_return_value): Update parameters.
1325
1326 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1327 STORE_RETURN_VALUE.
1328 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1329 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1330 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1331 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1332 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1333 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1334 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1335 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1336 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1337 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1338
1339 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1340 * i386-tdep.c (i386_extract_return_value): Update.
1341 * arch-utils.c (legacy_extract_return_value): Update.
1342 * frv-tdep.c (frv_gdbarch_init): Update.
1343 * cris-tdep.c (cris_gdbarch_init): Update.
1344 * d10v-tdep.c (d10v_gdbarch_init): Update.
1345 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1346 * m68k-tdep.c (m68k_gdbarch_init): Update.
1347 * mcore-tdep.c (mcore_gdbarch_init): Update.
1348 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1349 * s390-tdep.c (s390_gdbarch_init): Update.
1350 * sparc-tdep.c (sparc_gdbarch_init): Update.
1351 * sh-tdep.c (sh_gdbarch_init): Update.
1352 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1353 * v850-tdep.c (v850_gdbarch_init): Update.
1354 * avr-tdep.c (avr_gdbarch_init): Update.
1355 * ia64-tdep.c (ia64_gdbarch_init): Update.
1356 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1357 * vax-tdep.c (vax_gdbarch_init): Update.
1358 * alpha-tdep.c (alpha_gdbarch_init): Update.
1359 * arm-tdep.c (arm_gdbarch_init): Update.
1360 * mips-tdep.c (mips_gdbarch_init): Update.
1361 * i386-tdep.c (i386_gdbarch_init): Update.
1362
5bd8c6d0
AC
13632002-08-23 Andrew Cagney <ac131313@redhat.com>
1364
1365 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1366 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1367
e73e1724
MK
13682002-08-24 Mark Kettenis <kettenis@gnu.org>
1369
1370 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1371 problems.
1372
3e6564e1
JB
13732002-08-23 Joel Brobecker <brobecker@gnat.com>
1374
1375 * infrun.c (handle_inferior_event): Move a comment outside of a
1376 function call, in order to avoid indent reformatting this part
1377 of the code in an unreadable way.
1378
81d0cc19
GS
13792002-08-23 Grace Sainsbury <graces@redhat.com>
1380
1381 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1382 when breakpoints fail. Move general breakpoint error messages to
1383 insert_breakpoints.
1384 * breakpoint.c (insert_breakpoints): Change warnings when
1385 breakpoints are nto inserted to specify the type. Remove call to
1386 memory_error when hardware breakpoints can't be inserted. Remove
1387 multiple calls to warning so all messages are sent to the user at
1388 once.
1389 (delete_breakpoints): Make insert error messsages more explicit.
1390
17574093
DJ
13912002-08-23 Daniel Jacobowitz <drow@mvista.com>
1392
1393 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1394 gdbserver/ChangeLog.
1395
8acc2935
MK
13962002-08-23 Mark Kettenis <kettenis@gnu.org>
1397
dfe01d39
MK
1398 * i386-tdep.c: Include "objfiles.h".
1399 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1400 skip_trampoline_code.
1401 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1402 (CPLUS_MARKER): Define to '.'.
1403
8acc2935
MK
1404 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1405 member.
1406 (linux_corefile_thread_callback): Increase args->num_notes.
1407 (linux_make_note_section): Initialize thread_args.num_notes, and
1408 use it to determine whether notes for any threads were created.
1409
151fefe2 14102002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1411
1412 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1413 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1414 and PCUNKILL.
1415 (write_with_trace): Conditionalize out the switch branch handling
1416 PCSHOLD if the corresponding macro is not defined. Likewise for
1417 PRSABORT and PRSTOP.
1418 This change will be needed by the Interix port.
1419
e1507482
EZ
14202002-08-22 Elena Zannoni <ezannoni@redhat.com>
1421
1422 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1423 write_register wherever possible instead of manipulating the
1424 register bytes directly.
1425 Assign VALUE_CONTENTS to a variable and use that.
1426 The GPR numbers are now dependent on the architecture.
1427
96ff0de4
EZ
14282002-08-22 Elena Zannoni <ezannoni@redhat.com>
1429
1430 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1431 ev_offset fields.
1432 (skip_prologue): Add support for BookE/e500 instructions.
1433 (e500_extract_return_value): New function.
1434 (frame_get_saved_regs): Add support for saving ev registers and
1435 pseudo gpr's.
1436 (e500_store_return_value): New function.
1437 (rs6000_gdbarch_init): Move up default intializations of
1438 deprecated_extract_return_value and store_return_value. Overwrite
1439 init of store_return_value with e500 specific version.
1440 Set extract_return_value for e500.
1441
fbefca5b
EZ
14422002-08-22 Elena Zannoni <ezannoni@redhat.com>
1443
1444 * blockframe.c (generic_call_dummy_register_unwind): Use
1445 regcache_cooked_read to catch cases in which the variable is
1446 stored in a pseudo register.
1447
4d210288
AC
14482002-08-22 Andrew Cagney <cagney@redhat.com>
1449
1450 * NEWS: Mention that the i960 has been made obsolete.
1451 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1452 i960-tdep.c
1453 (remote-nrom.o): Obsolete target.
1454 (remote-nindy.o, i960-tdep.o): Ditto.
1455 * remote-nrom.c: Make file obsolete.
1456 * remote-nindy.c, remote-vx960.c: Ditto.
1457 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1458 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1459 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1460 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1461 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1462 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1463 i960-*-vxworks* obsolete.
1464 * MAINTAINERS: Note that the i960 is obsolete.
1465
6c0c456d
CV
14662002-08-21 Corinna Vinschen <vinschen@redhat.com
1467
1468 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1469 detach to allow reinitialization.
1470
9f9d12b3
AC
14712002-08-22 Andrew Cagney <ac131313@redhat.com>
1472
1473 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1474 attempt).
1475
ebeb39fe
JB
14762002-08-22 Jim Blandy <jimb@redhat.com>
1477
1478 * coffread.c (coff_symfile_read): Don't try to read the line
1479 number table from disk if the image file doesn't have a symbol
1480 table; we'll never actually look at the info anyway, and Windows
1481 ships DLL's with bogus file offsets for the line number data.
1482
5bf1c677
EZ
14832002-08-21 Elena Zannoni <ezannoni@redhat.com>
1484
1485 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1486 an e500 executable.
1487
71b8ef93
MS
14882002-08-21 Michael Snyder <msnyder@redhat.com>
1489
1490 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1491 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1492 (DEFAULT_MIPS_TYPE): Delete unused macro.
1493 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1494 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1495
d174216d
JB
14962002-08-21 Jim Blandy <jimb@redhat.com>
1497
1498 * valops.c (value_cast): Simplify and correct logic for doing a
1499 static cast from a pointer to a base class to a pointer to a
1500 derived class.
1501
0ab7a791
AC
15022002-08-21 Andrew Cagney <ac131313@redhat.com>
1503
1504 * infcmd.c (default_print_registers_info): Replace
1505 do_registers_info.
1506 (registers_info): Use gdbarch_print_registers_info instead of
1507 DO_REGISTERS_INFO.
1508 * inferior.h (default_print_registers_info): Replace
1509 do_registers_info.
1510 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1511 (DO_REGISTERS_INFO): Change to a predicate function.
1512 * gdbarch.h, gdbarch.c: Regenerate.
1513
e23792cc
KS
15142002-08-21 Keith Seitz <keiths@redhat.com>
1515
1516 * gdb-events.sh: Add target-changed event.
1517 * gdb-events.c: Regenerated.
1518 * gdb-events.c: Regenerated.
1519 * valops.c (value_assign): Add target-changed event notification
1520 to inlval_register, lval_memory, and lval_reg_frame_relative.
1521
9fb14e79
JB
15222002-08-21 Joel Brobecker <brobecker@gnat.com>
1523
1524 * NEWS: Add an entry regarding the improvement of the next/step
1525 operation on Alpha Tru64 multi-processor machines.
1526
6d39a69f
AC
15272002-08-21 Andrew Cagney <ac131313@redhat.com>
1528
72acd513
AC
1529 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1530 directores.
342af04b 1531 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1532 * Makefile.in (install-gdbtk): Move to install section.
1533 (rdi-share/libangsd.a): Move to end of file.
1534
fa5f27c7
AC
15352002-08-19 Andrew Cagney <ac131313@redhat.com>
1536
1537 * frame.c (frame_register_unwind): When a register, set addrp to
1538 the register's byte.
1539
5a89d8aa
MS
15402002-08-20 Michael Snyder <msnyder@redhat.com>
1541
1542 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1543 used locally, so move them from the target machine header to here.
1544 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1545 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1546 Make static.
1547 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1548
822e978b
AC
15492002-08-20 Andrew Cagney <cagney@redhat.com>
1550
1551 * NEWS: Mention that the Apollo line was made obsolete.
1552 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1553 m68*-hp-hpux* obsolete.
1554 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1555 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1556 * buildsym.c (make_blockvector): Make static.
1557 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1558 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1559 (ALLDEPFILES): Remove dstread.c.
1560 (dstread.o): Obsolete make rule.
1561 * dstread.c: Makefile obsolete.
1562 * dst.h: Ditto.
1563 * config/m68k/hp300hpux.mt: Ditto.
1564 * config/m68k/hp300hpux.mh: Ditto.
1565 * config/m68k/hp300bsd.mt: Ditto.
1566 * config/m68k/hp300bsd.mh: Ditto.
1567 * config/m68k/apollo68b.mt: Ditto.
1568 * config/m68k/apollo68v.mh: Ditto.
1569 * config/m68k/apollo68b.mh: Ditto.
1570
e41b17f0
MS
15712002-08-20 Michael Snyder <msnyder@redhat.com>
1572
1573 * mips-tdep.c (mips_in_return_stub): Make static.
1574 (mips_gdbarch_init): Set in_solib_return_trampoline.
1575 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1576
d50355b6
MS
15772002-08-20 Michael Snyder <msnyder@redhat.com>
1578
1579 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1580 * gdbarch.c, gdbarch.h: Regenerate.
1581 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1582 Add.
1583 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1584
757a7cc6
MS
15852002-08-20 Michael Snyder <msnyder@redhat.com>
1586
1587 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1588 (mips_gdbarch_init): Set skip_trampoline_code,
1589 in_solib_call_trampoline.
1590 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1591 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1592
c8001721
EZ
15932002-08-20 Elena Zannoni <ezannoni@redhat.com>
1594
1595 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1596
1597 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1598 vector type for ev registers.
1599 (e500_pseudo_register_read): New function.
1600 (e500_pseudo_register_write): New function.
1601 (e500_dwarf2_reg_to_regnum): New function.
1602 (PPC_UISA_NOFP_SPRS): New macro.
1603 (PPC_EV_REGS): New macro.
1604 (PPC_GPRS_PSEUDO_REGS): New macro.
1605 (registers_e500): New register set for e500.
1606 (variants): Add e500 variant.
1607 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1608 before setting architectural dependent variations. Initialize ev
1609 registers numbers. Add case for e500 architecture. Set the
1610 number of pseudo registers.
1611
64366f1c
EZ
16122002-08-20 Elena Zannoni <ezannoni@redhat.com>
1613
1614 * rs6000-tdep.c: Clean up comments.
1615
7e78f0ca
AC
16162002-08-20 Andrew Cagney <cagney@redhat.com>
1617
1618 * h8300-tdep.c: Re-indent file.
1619
697f7479
JB
16202002-08-20 Jim Blandy <jimb@redhat.com>
1621
1622 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1623 default for this.
697f7479 1624
e86ae29f
KS
16252002-08-20 Keith Seitz <keiths@redhat.com>
1626
1627 * breakpoints.c (watch_command_1): Use internal breakpoint
1628 when setting a watchpoint_scope breakpoint.
1629
216b504f
EZ
16302002-08-20 Elena Zannoni <ezannoni@redhat.com>
1631
1632 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1633 (build_builtin_type_vec64i): Ditto.
1634 (build_builtin_type_vec128): Ditto.
1635 (build_builtin_type_vec128i): Ditto.
1636
f7ab6ec6
MS
16372002-08-19 Michael Snyder <msnyder@redhat.com>
1638
1639 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1640 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1641 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1642 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1643 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1644 CALL_DUMMY_ADDRESS): Delete.
1645 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1646 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1647 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1648 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1649 push_return_address.
1650 (mips_register_raw_size, mips_eabi_use_struct_convention,
1651 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1652 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1653 mips_init_extra_frame_info, mips_eabi_push_arguments,
1654 mips_n32n64_push_arguments, mips_push_return_address,
1655 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1656 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1657
b5d1566e
MS
16582002-08-19 Michael Snyder <msnyder@redhat.com>
1659
1660 * mips-tdep.c (mips_frame_num_args): New function.
1661 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1662 frame_saved_pc, frame_args_address, frame_locals_address,
1663 frame_num_args, and frame_args_skip.
1664 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1665 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1666 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1667 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1668
2f1488ce
MS
16692002-08-20 Michael Snyder <msnyder@redhat.com>
1670
1671 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1672 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1673 * mips-tdep.c (mips_store_struct_return): New function.
1674 (mips_extract_struct_value_address): New function.
1675 (mips_gdbarch_init): Set store_struct_return and
1676 extract_struct_value_address.
1677
41ff2da1
DC
16782002-08-20 David Carlton <carlton@math.stanford.edu>
1679
1680 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1681 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1682 (read_file_scope): Check that line_header is nonzero before
1683 decoding macro information.
1684
e5451d58
MK
16852002-08-20 Mark Kettenis <kettenis@gnu.org>
1686
1687 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1688 flag the general-purpose registers as floating-point on targets
1689 that don't support the floating-point registers.
1690
4a6daafa
EZ
16912002-08-20 Elena Zannoni <ezannoni@redhat.com>
1692
1693 * rs6000-tdep.c (altivec_register_p): Delete.
1694 (rs6000_do_altivec_registers): Delete.
1695 (rs6000_altivec_registers_info): Delete.
1696 (rs6000_do_registers_info): Delete.
1697 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1698 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1699
ab4327e0
EZ
17002002-08-20 Elena Zannoni <ezannoni@redhat.com>
1701
1702 * infcmd.c (do_registers_info): Print vector registers in hex
1703 format only.
1704 (print_vector_info): Check that printing registers
1705 makes sense.
1706 (print_float_info): Ditto.
1707
cb1d2653
AC
17082002-08-20 Andrew Cagney <ac131313@redhat.com>
1709
1710 * mips-tdep.c (mips_gdbarch_init): Update.
1711 (mips_o32_extract_return_value): Rewrite.
1712 (mips_o32_store_return_value): Rewrite.
1713 (mips_o32_xfer_return_value): New function.
1714 (mips_xfer_register): Tweak debug print message. Allow for
1715 buf_offset when dumping the value transfered.
1716
dfc3d9b2
AC
17172002-08-20 Andrew Cagney <ac131313@redhat.com>
1718
1719 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1720 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1721 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1722 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1723 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1724
7807aa61
MS
17252002-08-14 Michael Snyder <msnyder@redhat.com>
1726
1727 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1728
489461e2
EZ
17292002-08-19 Elena Zannoni <ezannoni@redhat.com>
1730
1731 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1732 register.
1733 (P): New macro to define a register as a pseudo register.
1734 (R, R4, R8, R16, FR32, R64, R0): Updated.
1735 (struct variant): Add new fields for number of pseudo registers
1736 and number of total registers.
1737 (tot_num_registers): New macro replacing....
1738 (num_registers): ...deleted macro.
1739 (num_registers): New function.
1740 (num_pseudo_registers): New function.
1741 (variants): Update all variants to intialize new fields correctly.
1742 Postpone initialization of number of pseudo regs and real regs.
1743 (init_variants): New function.
1744 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1745 registers offsets.
1746
fcaffe4c
DC
17472002-08-19 David Carlton <carlton@math.stanford.edu>
1748
2c2738a0
DC
1749 * valops.c (search_struct_field): Change error message to treat
1750 return value of 0 from value_static_field as meaning that field is
1751 optimized out.
1752 (value_struct_elt_for_reference): Ditto.
1753 * values.c (value_static_field): Treat an unresolved location the
1754 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1755 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1756 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1757 * MAINTAINERS: Add self to Write After Approval list.
1758
88658117
AC
17592002-08-19 Andrew Cagney <ac131313@redhat.com>
1760
1761 * mips-tdep.c (mips_xfer_register): New function.
1762 (mips_n32n64_extract_return_value): Rewrite.
1763 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1764 instead of deprecated_extract_return_value.
1765
21283beb
EZ
17662002-08-19 Elena Zannoni <ezannoni@redhat.com>
1767
1768 * rs6000-tdep.c (TDEP): Delete macro.
1769 (branch_dest): Replace use of TDEP macro with its body.
1770 (rs6000_pop_frame): Ditto.
1771 (rs6000_push_arguments): Ditto.
1772 (rs6000_skip_trampoline_code): Ditto.
1773 (rs6000_frame_saved_pc): Ditto.
1774 (rs6000_frame_chain): Ditto.
1775 (rs6000_register_name): Ditto.
1776 (rs6000_register_byte): Ditto.
1777 (rs6000_register_raw_size): Ditto.
1778 (rs6000_register_virtual_type): Ditto.
1779 (rs6000_register_convertible): Ditto.
1780 (rs6000_convert_from_func_ptr_addr): Ditto.
1781
bf072999
DJ
17822002-08-19 Daniel Jacobowitz <drow@mvista.com>
1783
1784 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1785 conditionally.
1786 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1787 MIPS_LINUX_JB_ELEMENT_SIZE.
1788 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1789 for MAX_REGISTER_RAW_SIZE arrays.
1790 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1791 MIPS_LINUX_JB_ELEMENT_SIZE.
1792
9b949a49
PM
17932002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1794
1795 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1796
6d3e79c6
AS
17972002-08-19 Aidan Skinner <aidan@velvet.net>
1798
1799 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1800 ada-valprint.c ada-tasks.c.
1801 (YYFILES): Add ada-exp.y.
1802 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1803 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1804 (ada-exp.tab.o): New target.
1805
06c0b04e
AC
18062002-08-18 Andrew Cagney <ac131313@redhat.com>
1807
1808 * regcache.c (regcache_xfer_part): New function.
1809 (regcache_raw_read_part): New function.
1810 (regcache_raw_write_part): New function.
1811 (regcache_cooked_read_part): New function.
1812 (regcache_cooked_write_part): New function.
1813 * regcache.h (regcache_raw_read_part): Declare.
1814 (regcache_raw_write_part): Declare.
1815 (regcache_cooked_read_part): Declare.
1816 (regcache_cooked_write_part): Declare.
1817
92d1e331
DJ
18182002-08-18 Daniel Jacobowitz <drow@mvista.com>
1819
1820 * remote.c (remote_open_1): Add async_p.
1821 (remote_async_open_1): Delete.
1822 (open_remote_target): Delete.
1823 (remote_open, extended_remote_open): Update calls to remote_open_1.
1824 (remote_async_open, extended_remote_async_open): Call
1825 remote_open_1 instead of remote_async_open_1.
1826
247055de
MK
18272002-08-19 Mark Kettenis <kettenis@gnu.org>
1828
1829 * blockframe.c: Fix a few coding standard violations.
1830
641eda39
MK
18312002-08-19 Mark Kettenis <kettenis@gnu.org>
1832
0b717710
MK
1833 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1834 here from ...
1835 * config/i386/tm-i386sco5.h: ... here. File removed.
1836 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1837
26d28e12 1838 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1839 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1840 (TM_FILE): Set to tm-i386.h.
1841 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1842 * config/i386/tm-i386v.h: Remove file.
1843 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1844 instead of "i386/tm-i386v.h".
1845 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1846 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1847 "i386/tm-i386v.h".
1848 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1849 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1850 "i386/tm-i386.h".
1851
d4e0bab4
MK
18522002-08-18 Mark Kettenis <kettenis@gnu.org>
1853
1854 * config/i386/nm-i386v.h: Add protection against
1855 multiple-inclusion.
1856 (i386_register_u_addr): Remove prototype.
1857 (register_u_addr): New prototype.
1858 (REGISTER_U_ADDR): Redefine accordingly.
1859 * i386v-nat.c: Improve several comments.
1860 (i386_register_u_addr): Change signature and rename to
1861 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1862 ubase variable.
1863
46cac009
AC
18642002-08-18 Andrew Cagney <ac131313@redhat.com>
1865
1866 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1867 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1868 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1869 deprecated_extract_return_value.
1870 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1871 rename mips_o32o64_push_arguments.
1872 (mips_gdbarch_init): Update.
1873 (mips_extract_return_value): Delete.
1874 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1875 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1876 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1877 (mips_n32n64_extract_return_value): Clone
1878 mips_extract_return_value.
1879 (mips_store_return_value): Delete.
1880 (mips_o32_store_return_value): Clone mips_store_return_value.
1881 (mips_o64_store_return_value): Clone mips_store_return_value.
1882 (mips_eabi_store_return_value): Clone mips_store_return_value.
1883 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1884
d2e4a39e
AS
18852002-08-18 Aidan Skinner <aidan@velvet.net>
1886
0c30c098
AS
1887 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1888 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1889
18902002-08-18 Aidan Skinner <aidan@velvet.net>
1891
1892 * ada-lang.c: Run through gdb_indent.sh.
1893 * ada-lang.h: Run through gdb_indent.sh.
1894 * ada-tasks.c: Run through gdb_indent.sh.
1895 * ada-typeprint.c: Run through gdb_indent.sh.
1896 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1897
01fc4e33
AC
18982002-08-18 Andrew Cagney <ac131313@redhat.com>
1899
1900 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1901 ABI.
1902
d8ee244c
MK
19032002-08-18 Mark Kettenis <kettenis@gnu.org>
1904
c38d8261
MK
1905 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1906
222db64c
MK
1907 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1908 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1909
c2848c82
MK
1910 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1911 write_register_gen instead of write_register_bytes.
1912
d8ee244c
MK
1913 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1914 i[3456]-*-osf1mk* configurations have been made obsolete.
1915 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1916 i[3456]86-*-osf1mk* hosts obsolete.
1917 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1918 targets obsolete.
1919 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1920 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1921 config/i386/i386m3.mt, config/i386/nm-m3.h,
1922 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1923 config/i386/i386mk.mh, config/i386/i386mk.mt,
1924 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1925 obsolete.
1926 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1927 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1928 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1929
61d8d407
AC
19302002-08-18 Andrew Cagney <ac131313@redhat.com>
1931
1932 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1933 (hppa_value_returned_from_stack): Declare.
1934 (hppa_extract_return_value): Declare.
1935 * config/pa/hppa.mt: New file.
1936 * configure.tgt: Recognize hppa*-*-*.
1937 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1938
0c52bd59
MK
19392002-08-18 Mark Kettenis <kettenis@gnu.org>
1940
1941 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1942 comment.
1943
b5686e99
MK
19442002-08-17 Mark Kettenis <kettenis@gnu.org>
1945
1946 * top.c (gdb_rl_operate_and_get_next): Make sure
1947 operate-and-get-next functions correctly even when the history
1948 list is completely filled.
1949
c1bab85b
AC
19502002-08-18 Andrew Cagney <ac131313@redhat.com>
1951
1952 * MAINTAINERS (Target Instruction Set Architectures): Rename
1953 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1954 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1955 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1956 already listed under Host/Native.
1957
1958 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1959 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1960 mips*-*-*.
1961
32089c7c
AC
19622002-08-17 Andrew Cagney <ac131313@redhat.com>
1963
1964 * config/ia64/ia64.mt: New file.
1965 * config/alpha/alpha.mt: New file.
1966 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1967 ia64-linux-gnu. Mention that ia64-elf is broken.
1968 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1969
b4671f85
MK
19702002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1971
1972 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1973 generic_func_frame_valid instead of func_frame_valid.
1974
c8edd8b4
JB
19752002-08-16 Joel Brobecker <brobecker@gnat.com>
1976
1977 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1978 procfs appears to be broken when debugging on multi-processor
1979 machines. So enable software single stepping in order to avoid
1980 using the procfs interface to do next/step operations, using
1981 internal breakpoints instead.
1982
1983 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1984 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1985 make this pc address equal to the value it would have if the
1986 system stepping capability was used. Also set a new flag used
1987 to ensure that we don't readjust the PC one more time later.
1988
1989 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1990 address by DECR_PC_AFTER_BREAK when software single step is
1991 in use for this architecture, as this has already been taken
1992 care of in handle_inferior_event().
1993
238617f6
JB
19942002-08-16 Joel Brobecker <brobecker@gnat.com>
1995
1996 * infrun.c (handle_inferior_event): Minor reformatting, to make
1997 a rather long condition expression easier to read.
1998
541a7aac
AC
19992002-08-16 Andrew Cagney <ac131313@redhat.com>
2000
2001 * Makefile.in (gdbtk.o): Move to end of file.
2002 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2003 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2004 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2005 (gdbtk-wrapper.o, gdbres.o): Ditto.
2006
f92d4a7b
AC
20072002-08-16 Andrew Cagney <ac131313@redhat.com>
2008
2009 * Makefile.in (copying.o): Separate out compile rule.
2010 (hpux-thread.o, procfs.o, signals.o): Ditto.
2011 (v850ice.o, z8k-tdep.o): Ditto.
2012 (tui-file.o): Move to TUI section.
2013 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2014 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2015
1cce71eb
JB
20162002-08-16 Joel Brobecker <brobecker@gnat.com>
2017
2018 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2019 skip_trampoline_code, for better namespace-proofing.
2020
2021 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2022
0851f23d
JB
20232002-08-16 Joel Brobecker <brobecker@gnat.com>
2024
2025 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2026
f8d40ec8
JB
20272002-08-16 Joel Brobecker <brobecker@gnat.com>
2028
2029 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2030 signal, check whether we hit a breakpoint before checking for a
2031 single step breakpoint. Otherwise, GDB fails to notice that a
2032 breakpoint has been hit when stepping onto a breakpoint.
2033
63d022e0
KS
20342002-08-16 Keith Seitz <keiths@redhat.com>
2035
2036 * gdb-events.sh (clear_gdb_event_hooks): New function.
2037 * gdb-events.c: Regenerate.
2038 * gdb-events.h: Regenerate.
2039
6e31adb3
AC
20402002-08-16 Andrew Cagney <ac131313@redhat.com>
2041
2042 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2043 not_a_sw_breakpoint.
2044 * breakpoint.h (bpstat_stop_status): Add parameter names.
2045
c8189ed1
GS
20462002-08-16 Grace Sainsbury <graces@redhat.com>
2047
2048 * remote.c (remote_insert_hw_breakpoint)
2049 (remote_remove_hw_breakpoint): Fix calculation of length field
2050 for Z-packet.
2051
d05285fa
MS
20522002-08-15 Michael Snyder <msnyder@redhat.com>
2053
466d7106
MS
2054 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2055 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2056 (supply_fpregset): Ditto.
2057
d05285fa
MS
2058 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2059 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2060 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2061 (TARGET_READ_SP): Delete.
bf1f5b4c 2062 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2063 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2064 Delete.
2065 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2066 from macros to functions.
bf1f5b4c 2067
d05285fa
MS
2068 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2069 (mips_register_convertible, mips_register_convert_to_virtual,
2070 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2071 (mips_read_sp): New function.
2072 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2073 (mips_do_registers_info): Make static.
2074 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2075 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2076 (mips_register_convert_from_type, mips_register_convert_to_type):
2077 New functions.
2078 (mips_gdbarch_init): Set up function_start_offset,
2079 register_virtual_size, pc_in_sigtramp.
d05285fa 2080
e76f1f2e
AC
20812002-08-15 Andrew Cagney <ac131313@redhat.com>
2082
2083 * infcmd.c (vector_info): New function.
2084 (_initialize_infcmd): Add command "info vector".
2085 (print_vector_info): New function.
2086
2087 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2088 * gdbarch.h, gdbarch.c: Regenerate.
2089
4782dc19
AC
20902002-08-15 Andrew Cagney <ac131313@redhat.com>
2091
2092 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2093 ``print_all''. Only print vector registers when ``print_all''.
2094
23e3a7ac
AC
20952002-08-15 Andrew Cagney <ac131313@redhat.com>
2096
8e186fd6
AC
2097 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2098 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2099
23e3a7ac
AC
2100 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2101 Add `args' parameter.
2102 * gdbarch.h, gdbarch.c: Regenerate.
2103
2104 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2105
2106 * infcmd.c (float_info): Call print_float_info.
2107 (print_float_info): New function. By default, print the
2108 floating-point registers.
2109
2110 * arch-utils.h (default_print_float_info): Delete declaration.
2111 * arch-utils.c (default_print_float_info): Delete function.
2112
e0ca2bb9
MK
21132002-08-16 Mark Kettenis <kettenis@gnu.org>
2114
3f733acc
MK
2115 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2116 out define.
2117
7d8d2918
MK
2118 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2119 FRAME.
2120
1c7cc583
MK
2121 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2122 * configure.host: Make i[3456]86-*-aix host obsolete.
2123 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2124 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2125 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2126 config/i386/xm-i386aix.h: Make files obsolete.
2127 * i386aix-nat.c: Make file obsolete.
2128 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2129 (i386aix-nat.o): Make target obsolete.
2130
e0ca2bb9
MK
2131 * config/i386/nm-gnu.h: Removed.
2132 * config/i386/nm-i386gnu.h: New file.
2133 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2134 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2135 Moved here from ...
2136 * config/i386/tm-i386gnu.h: ... here. Removed.
2137 * config/i386/xm-i386gnu.h: Removed.
2138 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2139 (NAT_FILE): Set to nm-i386gnu.h.
2140 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2141 * i386-tdep.c: New file.
2142 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2143 (i386gnu-tdep.o): Specify dependencies.
2144
16057ec7 21452002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2146
6b99ee2e
MK
2147 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2148 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2149 Adjust a few comments to reflect reality a bit closer.
2150 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2151 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2152 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2153 target_insert_watchpoint, target_remove_watchpoint):
2154 Move defines to ...
2155 * config/i386/nm-i386sco5.h: ... here.
2156 (kernel_u_size): Add prototype. Improve a few comments and add
2157 protection against multiple inclusion.
2158
d9a6f65c
MK
2159 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2160 out define.
2161
047eff6a
MK
2162 * uw-thread.c (SP_ARG0): Define if not already defined.
2163 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2164
dcdb1290
MK
2165 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2166
5d2d0b2a
MK
2167 * config/i386/tm-i386.h: Don't include "regcache.h".
2168
61113f8b
MK
2169 * i387-tdep.h (i387_print_float_info): New prototype.
2170 * i387-tdep.c (print_i387_value, print_i387_ext,
2171 print_i387_status_word, print_i387_control_word): Add `struct
2172 ui_file *' argument and use it for output.
2173 (i387_print_float_info): Renamed from i387_float_info. Add
2174 `struct gdbarch *' and `struct ui_file *' arguments and use the
2175 latter for output.
2176 * i386-tdep.c: Include "i387-tdep.h".
2177 (i386_gdbarch_init): Set print_float_info.
2178 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2179 (FLOAT_INFO): Remove define.
2180
46e0f506
MS
21812002-08-13 Michael Snyder <msnyder@redhat.com>
2182
2183 * mips-tdep.c (mips_push_arguments): Rename to
2184 mips_eabi_push_arguments, and tune for EABI.
2185 (MIPS_REGS_HAVE_HOME_P): Delete.
2186 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2187 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2188 Delete references to mips_regs_have_home_p.
2189
409268de
KS
21902002-08-14 Keith Seitz <keiths@redhat.com>
2191
2192 * Makefile.in (install-gdbtk): Create insight plugin directory.
2193 Install plugins.tcl file.
2194
ffc6a242
KS
21952002-08-14 Keith Seitz <keiths@redhat.com>
2196
2197 * configure.in: Move SUBDIRS to near top of the file so that
2198 --enable options may add things to it.
2199 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2200 * configure: Regenerate.
2201
ebafbe83
MS
22022002-08-13 Michael Snyder <msnyder@redhat.com>
2203
2204 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2205 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2206 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2207
32f6f25d
AC
22082002-08-13 Andrew Cagney <ac131313@redhat.com>
2209
2210 * vax-tdep.c (vax_get_saved_register): Delete function.
2211 (vax_gdbarch_init): Update.
2212 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2213 (ns32k_gdbarch_init): Update.
2214 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2215 (alpha_gdbarch_init): Update.
2216
53826de9
AC
22172002-08-13 Andrew Cagney <cagney@redhat.com>
2218
2219 * regcache.c (init_regcache_descr): Overallocate the
2220 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2221 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2222 nr_raw_registers.
2223 (set_register_cached): Add range checking assertions. Use
2224 current_regcache.
2225
16057ec7 22262002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2227
2228 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2229 numbers for MMX registers.
2230
7b4c2dce
AC
22312002-08-13 Andrew Cagney <cagney@redhat.com>
2232
2233 * i386-tdep.c (i386_gdbarch_init): Use
2234 generic_unwind_get_saved_register.
2235
1e03ad20
KB
22362002-08-13 Kevin Buettner <kevinb@redhat.com>
2237
2238 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2239 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2240 target vector.
2241 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2242 Delete. Add comment regarding this now-deleted target method.
2243
548bcbec
SC
22442002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2245
2246 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2247 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2248 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2249 real PC and the page number (if it's within the memory bank window).
2250 (m68hc11_pseudo_register_write): Likewise when saving.
2251 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2252 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2253 (m68hc11_register_raw_size): And use 32-bit for it.
2254 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2255 16K memory bank is used by the prog; also use the virtual pc.
2256
7df11f59
SC
22572002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2258
2259 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2260 (m68hc11_gdbarch_init): Install it in gdbarch.
2261 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2262 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2263 (MSYMBOL_SIZE): New for documentation.
2264 (insn_return_kind): Enum to specify how a function returns.
2265 (frame_extra_info): Cleanup and record the return mode.
2266 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2267 register in address computation.
2268 (m68hc11_get_return_insn): New to obtain the return instruction used
2269 by the function.
2270 (m68hc11_frame_init_saved_regs): Take into account the return
2271 instruction used by the function for far and interrupt functions.
2272 (m68hc11_init_extra_frame_info): Take into account page register.
2273 (m68hc11_frame_args_address): Adjust according to the return mode.
2274 (show_regs): Print page register only when it's used.
2275
5706502a
SC
22762002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2277
2278 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2279 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2280 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2281 registers.
2282 (m68hc11_register_raw_size): Likewise.
2283
28fc6740
AC
22842002-08-13 Andrew Cagney <cagney@redhat.com>
2285
2286 * i386-tdep.c (i386_register_name): Handle mmx registers.
2287 (mmx_regnum_p): New function.
2288 (i386_mmx_names): New array.
2289 (mmx_num_regs): New variable.
2290 (i386_pseudo_register_read): New function.
2291 (i386_pseudo_register_write): New function.
2292 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2293
2294 * regcache.c (regcache_raw_read_unsigned): New function.
2295 (regcache_raw_read_signed): New function.
2296 * regcache.h (regcache_raw_read_unsigned): Declare.
2297 (regcache_raw_read_signed): Declare.
2298
a378f419
AC
22992002-08-13 Andrew Cagney <cagney@redhat.com>
2300
2301 * regcache.c (regcache_raw_read_as_address): Delete function.
2302 (regcache_cooked_read_signed): New function.
2303 (regcache_cooked_read_unsigned): New function.
2304 * regcache.h (regcache_cooked_read_signed): Declare.
2305 (regcache_cooked_read_unsigned): Declare.
2306 (regcache_raw_read_as_address): Delete declaration.
2307
2308 * blockframe.c (generic_read_register_dummy): Use
2309 regcache_cooked_read_unsigned.
2310 * i386-tdep.c (i386_extract_struct_value_address): Use
2311 regcache_cooked_read_unsigned.
2312
81967506
SC
23132002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2314
2315 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2316 double sizes according to ELF ABI flags.
2317 (gdbarch_tdep): Record elf_flags.
2318
ffe1f3ee
SC
23192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2320
2321 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2322 (m6812_prolog): They can appear in 68HC12 function prologue.
2323 (m68hc11_frame_chain): Cleanup.
2324
98216c5d
AC
23252002-08-12 Andrew Cagney <cagney@redhat.com>
2326
2327 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2328 declarations.
2329 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2330 (i386_linux_register_raw_size): Delete function.
2331 (i386_linux_init_abi): Update.
2332 * i386-tdep.c (i386_register_raw_size): Delete function.
2333 (i386_register_byte): Delete function.
2334 (i386_gdbarch_init): Update.
2335 (i386_register_size): Delete array.
2336 (i386_register_offset): Delete array.
2337
2338 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2339 (REGISTER_RAW_SIZE): Delete macro.
2340 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2341 (REGISTER_BYTE): Delete macro.
2342
3b19021e
AS
23432002-08-11 Aidan Skinner <aidan@velvet.net>
2344
2345 * ada-lang.c (ada_lookup_partial_symbol)
2346 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2347 prototype names so that grep ^func works properly.
2348
2349 * ada-lang.c (ada_array_element_type)
2350 (ada_lookup_partial_symbol): Fix typos in parameter list.
2351
2352 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2353 Fix prototype names so that grep ^func works properly.
2354
b063e7a2
AC
23552002-08-10 Andrew Cagney <cagney@redhat.com>
2356 Elena Zannoni <ezannoni@redhat.com>
2357 Martin M. Hunt <hunt@redhat.com>
2358
2359 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2360 (build_builtin_type_vec128i): Set the vector bit.
2361 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2362 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2363 (build_builtin_type_vec64): New function.
2364 (build_builtin_type_vec64i): New function.
2365 (build_gdbtypes): Initialize builtin_type_vec64 and
2366 builtin_type_vec64i.
2367
a7e3c2ad
AC
23682002-08-09 Andrew Cagney <cagney@redhat.com>
2369
2370 * regcache.c (regcache_dump): Compare the register offset
2371 with REGISTER_BYTE.
2372 * arch-utils.c (generic_register_byte): New function.
2373 * arch-utils.h (generic_register_byte): Declare.
2374 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2375 * gdbarch.h, gdbarch.c: Regenerate.
2376
af030b9a
AC
23772002-08-09 Andrew Cagney <cagney@redhat.com>
2378
2379 * regcache.c: Include "gdbcmd.h"
2380 (_initialize_regcache): Add commands "maintenance print
2381 registers", "maintenance print raw-registers" and "maintenance
2382 print cooked-registers".
2383 (enum regcache_dump_what): Define.
2384 (dump_endian_bytes): New function.
2385 (regcache_dump): New function.
2386 (regcache_print): New function.
2387 (maintenance_print_registers): New function.
2388 (maintenance_print_raw_registers): New function.
2389 (maintenance_print_cooked_registers): New function.
2390 * Makefile.in (regcache.o): Update dependencies.
2391
cb3d25d1
MS
23922002-08-09 Michael Snyder <msnyder@redhat.com>
2393
2394 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2395 (mips_push_arguments): Correct some comments. Use paddr_nz
2396 for printing addresses in debug output. Replace static
2397 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2398 (mips_n32n64_push_arguments): New function, cloned from
2399 mips_push_arguments and tuned for the n32/n64 ABI.
2400 (mips_push_register): Buffer needs dynamic allocation.
2401 (mips_print_register): Ditto.
2402 (do_gp_register_row): Ditto.
2403 (mips_store_return_value): Ditto.
2404 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2405
2163ab9d
DH
24062002-08-09 Don Howard <dhoward@redhat.com>
2407
2408 * memattr.c (mem_info_command): Print special case of upper bound
2409 as max CORE_ADDR + 1.
2410
b78bcb18
MS
24112002-08-08 Michael Snyder <msnyder@redhat.com>
2412
2413 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2414 returns structs by ref if they're too big to fit in two registers.
2415
ffabd70d
KB
24162002-08-09 Kevin Buettner <kevinb@redhat.com>
2417
2418 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2419 saved regs value.
2420 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2421 mips_find_saved_regs().
2422 (mips_pop_frame): Likewise.
2423
fbcdb4a3
KB
24242002-08-09 Kevin Buettner <kevinb@redhat.com>
2425
2426 * blockframe.c (frame_saved_regs_register_unwind): Revise
2427 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2428 frames are in use.
2429
3c3bea1c
GS
24302002-08-09 Grace Sainsbury <graces@redhat.com>
2431
2432 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2433 T-packets; the 'a' is not taken as a register number.
2434 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2435 (remote_stopped_data_address): New functions; add to target
2436 vector.
2437 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2438 prototypes to match other implementations of this
2439 function. replace integer argument with pointer -- the length
2440 field in the Z-packet is the length of what is pointed to or 1 if
2441 pointer is null. Add to target vector.
2442 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2443 target vector.
2444
2445 From Mark Salter:
2446 * remote.c (remote_wait): Add support to extract optional
2447 watchpoint information from T-packet. Ignore unrecognized
2448 optional info in T-packet.
2449 (remote_async_wait): Ditto.
2450
5d1d95de
CV
24512002-08-09 Corinna Vinschen <vinschen@redhat.com>
2452
2453 * cli/cli-dump.c: Change fopen modes to use binary open modes
2454 as defined in include/fopen-bin.h throughout.
2455
c86b5b38
MS
24562002-08-08 Michael Snyder <msnyder@redhat.com>
2457
2458 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2459
b30590dc
KB
24602002-08-08 Kevin Buettner <kevinb@redhat.com>
2461
2462 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2463 assertion failure by returning early after a warning.
2464
498868ed
KB
24652002-08-08 Kevin Buettner <kevinb@redhat.com>
2466
2467 * mips-tdep.c (mips_find_saved_regs): Make static.
2468 (mips_frame_init_saved_regs): New function.
2469 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2470 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2471 (mips_find_saved_regs): Delete declaration.
2472
b2dd6311
GS
24732002-08-08 Grace Sainsbury <graces@redhat.com>
2474
3c3bea1c
GS
2475 * remote.c (remote_wait, remote_async_wait): Change
2476 thread_num from int to ULONGEST.
2477 (unpack_varlen_hex): Change result parameter from
2478 int * to ULONGEST *.
b2dd6311 2479
ea47855f
AC
24802002-08-08 Andrew Cagney <ac131313@redhat.com>
2481
2482 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2483 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2484 powerpc*-*-*.
2485 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2486
69db8bae
AC
24872002-08-08 Andrew Cagney <cagney@redhat.com>
2488
2489 * gcore.c (override_derive_stack_segment): Delete variable.
2490 (preempt_derive_stack_segment): Delete function.
2491 (derive_stack_segment): Delete function.
2492 (default_derive_stack_segment): Renamed to derive_stack_segment.
2493 (override_derive_heap_segment): Delete variable.
2494 (preempt_derive_heap_segment): Delete function.
2495 (derive_heap_segment): Delete function.
2496 (default_derive_heap_segment): Rename to derive_heap_segment.
2497
cb811fe7
MS
24982002-08-06 Michael Snyder <msnyder@redhat.com>
2499
2500 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2501 * mips-tdep.c (mips_EABI_use_struct_convention,
2502 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2503 New functions. (mips_use_struct_convention): Delete.
2504 (mips_gdbarch_init): set use_gdbarch_convention.
2505
8b389c40
MS
25062002-08-06 Michael Snyder <msnyder@redhat.com>
2507
2508 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2509 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2510 mips_o32_reg_struct_has_addr): New functions.
2511 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2512
5c27f28a
AC
25132002-08-07 Andrew Cagney <ac131313@redhat.com>
2514
2515 * regcache.c (pseudo_register): Delete function.
2516 (fetch_register): Delete function.
2517 (store_register): Delete function.
2518 (regcache_raw_read, legacy_read_register_gen): Use
2519 target_fetch_registers instead of fetch_register.
2520 (legacy_write_register_gen, regcache_raw_write): Use
2521 target_store_register instead of store_register.
2522 (write_register_bytes): Ditto.
2523
2524 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2525 (STORE_PSEUDO_REGISTER): Delete.
2526 * gdbarch.h, gdbarch.c: Regenerate.
2527
5b331675
CV
25282002-08-06 Corinna Vinschen <vinschen@redhat.com>
2529
2530 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2531 write dump file binary.
2532
6acdf5c7
MS
25332002-08-05 Michael Snyder <msnyder@redhat.com>
2534
2535 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2536 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2537 (mips_gdbarch_init): Set N32 target to be mips64.
2538
b2f01c35
KB
25392002-08-06 Kevin Buettner <kevinb@redhat.com>
2540
2541 * frame.c (find_saved_register): Break out of loop once saved
2542 register address is found. Don't mention sparc in loop comment
2543 anymore.
2544
63db5580
KB
25452002-08-06 Kevin Buettner <kevinb@redhat.com>
2546
2547 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2548 mips_default_saved_regsize to 8.
2549
5e34e75e
AC
25502002-08-06 Andrew Cagney <ac131313@redhat.com>
2551
2552 * gcore.c: Do not include <sys/procfs.h>.
2553 * Makefile.in (gcore.o): Update dependencies.
2554
eb4c54a2
AC
25552002-08-06 Andrew Cagney <cagney@redhat.com>
2556
2557 * configure.tgt: Make arc-*-* obsolete.
2558 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2559 * MAINTAINERS: Make arc-elf obsolete.
2560 * arc-tdep.c: Make file obsolete.
2561 * config/arc/arc.mt: Ditto.
2562 * config/arc/tm-arc.h: Ditto.
2563
ced15480
TR
25642002-08-05 Theodore A. Roth <troth@verinet.com>
2565
c1bab85b 2566 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2567
b4743822
AC
25682002-08-05 Andrew Cagney <ac131313@redhat.com>
2569
2570 * mcore-tdep.c (mcore_gdbarch_init): Use
2571 generic_unwind_get_saved_register instead of
2572 generic_get_saved_register.
2573 * v850-tdep.c (v850_gdbarch_init): Ditto.
2574 * frv-tdep.c (frv_gdbarch_init): Ditto.
2575 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2576 * s390-tdep.c (s390_gdbarch_init): Ditto.
2577 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2578 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2579 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2580
3956d554
JB
25812002-08-05 Joel Brobecker <brobecker@gnat.com>
2582
2583 * objfiles.h: Add missing #include "symfile.h"
2584
2585 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2586
8249c0d6
AC
25872002-08-04 Andrew Cagney <ac131313@redhat.com>
2588
2589 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2590 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2591 of FIELD_BITSIZE.
2592
b9d14705
DJ
25932002-08-04 Daniel Jacobowitz <drow@mvista.com>
2594
2595 * NEWS: Cleanup and nitpick.
2596
dd73b9bb
AC
25972002-08-03 Andrew Cagney <ac131313@redhat.com>
2598
2599 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2600
043a27f8
AC
26012002-08-03 Andrew Cagney <ac131313@redhat.com>
2602
2603 * Makefile.in (gdbtk-bp.o): Update dependencies.
2604 (gdbtk-register.o): Ditto.
2605 (gdbtk-varobj.o): Ditto.
2606
46ce284d
AC
26072002-08-03 Andrew Cagney <cagney@redhat.com>
2608
2609 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2610 m68hc11_fetch_pseudo_register.
2611 (m68hc11_pseudo_register_write): Replace
2612 m68hc11_store_pseudo_register.
2613 (m68hc11_gdbarch_init): Update.
2614
b66d6d2e
AC
2615Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2616
2617 * gdbarch.sh: Include "gdb_string.h".
2618 * gdbarch.c: Regenerate.
2619
2620 * regcache.c: Include "gdb_string.h".
2621 * ax-general.c: Ditto.
2622 * varobj.c: Ditto.
2623 * std-regs.c: Ditto.
2624 * fbsd-proc.c: Ditto.
2625 * thread.c: Ditto.
2626
2627 * Makefile.in (regcache.o): Update dependencies.
2628 (thread.o, gdbarch.o): Ditto.
2629 (ax-general.o, gdbarch.o): Ditto.
2630 (varobj.o, std-regs.o): Ditto.
2631 (fbsd-proc.o): Specify dependencies.
2632
29e1842b
AC
26332002-08-02 Andrew Cagney <cagney@redhat.com>
2634
2635 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2636 regnum.
2637 (regcache_cooked_write): Ditto.
2638
68365089
AC
26392002-08-02 Andrew Cagney <ac131313@redhat.com>
2640
2641 * regcache.c (regcache_cooked_read): New function.
2642 (regcache_cooked_write): New function.
2643 (read_register_gen): Rewrite using regcache_cooked_read.
2644 (write_register_gen): Rewrite using regcache_cooked_write.
2645
2646 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2647 Declare.
2648
d8124050
AC
26492002-08-02 Andrew Cagney <cagney@redhat.com>
2650
2651 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2652 Replace the architecture methods register_read and register_write.
2653 * gdbarch.h, gdbarch.c: Regenerate.
2654 * regcache.c (init_regcache_descr): Update.
2655 (read_register_gen): Update.
2656 (write_register_gen): Update.
2657 (supply_register): Update comment.
2658
2659 * sh-tdep.c (sh_gdbarch_init): Update.
2660 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2661 `regcache' and `gdbarch' parameters. Make `buffer' a void
2662 pointer. Update code.
2663 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2664 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2665 void pointer. Update code.
2666 (sh64_register_write): Delete.
2667 (sh4_register_read): Delete.
2668 (sh64_register_read): Delete.
2669 (sh4_register_write): Delete.
2670 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2671 void pointer, `to' parameter a void pointer.
2672 (sh_sh64_register_convert_to_raw): Ditto.
2673
a6425924
KB
26742002-08-01 Kevin Buettner <kevinb@redhat.com>
2675
2676 * mips-tdep.c (mips_register_virtual_type): Use architecture
2677 invariant return values.
2678
ff5922b5
AC
26792002-08-01 Andrew Cagney <cagney@redhat.com>
2680
2681 * linux-proc.c: Include "gdb_string.h".
2682 * Makefile.in (linux-proc.o): Update dependency list.
2683
32a6503c
KB
26842002-08-01 Kevin Buettner <kevinb@redhat.com>
2685
2686 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2687 comment.
2688
ccaa32c7
GS
26892002-08-01 Grace Sainsbury <graces@redhat.com>
2690
2691 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2692 to_insert_watchpoint, to_remove_watchpoint,
2693 to_stopped_by_watchpoint, to_stopped_data_address,
2694 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2695 target vecctor. Define their corresponding macros so they call
2696 them.
2697
2698 * target.c: Add default and debug versions of for
2699 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2700 to_insert_watchpoint, to_remove_watchpoint,
2701 to_stopped_by_watchpoint, to_stopped_data_address,
2702 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2703
78fde5f8
KB
27042002-08-01 Kevin Buettner <kevinb@redhat.com>
2705
2706 * mips-tdep.c (mips_register_virtual_type): New function.
2707 (mips_gdbarch_init): Register mips_register_virtual_type()
2708 with gdbarch machinery.
2709 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2710 this file instead of tm-bigmips.h.
2711 (MIPS_REGSIZE): Delete this macro.
2712 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2713 multiarch version in mips-tdep.c will be found.
2714
db034ac5
AC
27152002-08-01 Andrew Cagney <cagney@redhat.com>
2716
2717 * NEWS: Menion that CHILL has been made obsolete.
2718
2719 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2720 * stabsread.c (read_range_type): Ditto.
2721 * gdbtypes.h: Ditto.
2722 * language.c (binop_type_check): Ditto.
2723 (binop_result_type): Ditto.
2724 (integral_type): Ditto.
2725 (character_type): Ditto.
2726 (string_type): Ditto.
2727 (boolean_type): Ditto.
2728 (structured_type): Ditto.
2729 (lang_bool_type): Ditto.
2730 (binop_type_check): Ditto.
2731 * language.h (_LANG_chill): Ditto.
2732 * dwarfread.c (set_cu_language): Ditto.
2733 * dwarfread.c (CHILL_PRODUCER): Ditto.
2734 * dwarfread.c (handle_producer): Ditto.
2735 * expression.h (enum exp_opcode): Ditto.
2736 * eval.c: Ditto for comments.
2737 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2738 * expprint.c (print_subexp): Ditto.
2739 (print_subexp): Ditto.
2740 * valops.c (value_cast): Ditto.
2741 (search_struct_field): Ditto.
2742 * value.h (COERCE_VARYING_ARRAY): Ditto.
2743 * symfile.c (init_filename_language_table): Ditto.
2744 (add_psymbol_with_dem_name_to_list): Ditto.
2745 * valarith.c (value_binop): Ditto.
2746 (value_neg): Ditto.
2747 * valops.c (value_slice): Ditto.
2748 * symtab.h (union language_specific): Ditto.
2749 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2750 (SYMBOL_DEMANGLED_NAME): Ditto.
2751 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2752 * defs.h (enum language): Ditto.
2753 * symtab.c (got_symtab): Ditto.
2754 * utils.c (fprintf_symbol_filtered): Ditto.
2755
2756 * ch-typeprint.c: Make file obsolete.
2757 * ch-valprint.c: Make file obsolete.
2758 * ch-lang.h: Make file obsolete.
2759 * ch-exp.c: Make file obsolete.
2760 * ch-lang.c: Make file obsolete.
2761
2762 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2763 CHILL_LIB.
2764 (TARGET_FLAGS_TO_PASS): Ditto.
2765 (CHILLFLAGS): Obsolete.
2766 (CHILL): Obsolete.
2767 (CHILL_FOR_TARGET): Obsolete.
2768 (CHILL_LIB): Obsolete.
2769 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2770 ch-valprint.c.
2771 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2772 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2773 ch-lang.o.
2774 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2775 targets.
2776
8aaf0b47
JB
27772002-07-31 Joel Brobecker <brobecker@gnat.com>
2778
2779 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2780 This does not change anything at the moment, but will be helpful
2781 later when full Ada support is integrated.
2782
f3a7b3a5
KB
27832002-07-31 Kevin Buettner <kevinb@redhat.com>
2784
2785 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2786 help message.
2787
fb850278
KB
27882002-07-31 Kevin Buettner <kevinb@redhat.com>
2789
2790 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2791 and save it in a local variable. Use variable in later test.
2792
e3bddbfa
KB
27932002-07-31 Kevin Buettner <kevinb@redhat.com>
2794
2795 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2796 test. (Thanks to Daniel Jacobowitz.)
2797
28d169de
KB
27982002-07-31 Kevin Buettner <kevinb@redhat.com>
2799
2800 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2801 (mips_abi_strings): Add "n64".
2802 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2803
7fe7e44e
KB
28042002-07-31 Kevin Buettner <kevinb@redhat.com>
2805
2806 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2807 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2808
c6caf090
KB
28092002-07-31 Kevin Buettner <kevinb@redhat.com>
2810
2811 * utils.c (host_pointer_to_address, address_to_host_pointer):
2812 Use gdb_assert() instead of explicit call to internal_error().
2813
c41669e0
KB
28142002-07-30 Kevin Buettner <kevinb@redhat.com>
2815
2816 * Makefile.in (rs6000-nat.o): Update dependencies.
2817
2818 From Nicholas Duffek:
2819 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2820 (aix-thread.o): New rule.
2821 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2822 * config/powerpc/aix432.mh: New file.
2823
2fda4977
DJ
28242002-07-30 Daniel Jacobowitz <drow@mvista.com>
2825
2826 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2827 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2828 (fetch_core_registers, ppc_linux_supply_gregset)
2829 (ppc_linux_supply_fpregset): New functions.
2830 (ppc_linux_regset_core_fns): New.
2831 (_initialize_ppc_linux_tdep): Call add_core_fns.
2832 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2833 and ppc_linux_supply_gregset.
2834 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2835 (supply_fpregset): Call ppc_linux_supply_fpregset.
2836 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2837 corelow.o.
2838 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2839
729051e6
DJ
28402002-07-30 Daniel Jacobowitz <drow@mvista.com>
2841
2842 * symtab.c (lookup_symbol): Demangle before lowercasing.
2843
5f8a3188
AC
28442002-07-30 Andrew Cagney <ac131313@redhat.com>
2845
2846 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2847 declaration.
2848 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2849 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2850 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2851 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2852 "gdb_string.h".
2853 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2854 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2855 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2856 (avr-tdep.o, mon960-rom.o): Ditto.
2857 (aout_stabs_gnu_h): Define.
2858 (symtab_h): Remove $(gdb_obstack_h).
2859
67f07146
JB
28602002-07-30 Jim Blandy <jimb@redhat.com>
2861
2862 Patch from David Carlton <carlton@math.stanford.edu>:
2863 * gdbinit.in: Move the `dir' commands that add GDB's own source
2864 directory to the search path to the end, so that the `gdb' source
2865 directory will be searched first.
2866
04ea0df1
AC
28672002-07-29 Andrew Cagney <ac131313@redhat.com>
2868
2869 * gdb_obstack.h: New file.
2870 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2871 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2872 * objfiles.h: Include "gdb_obstack.h".
2873 * Makefile.in (gdb_obstack_h): Define.
2874 (symtab_h): Add $(gdb_obstack_h).
2875 (objfiles_h): Add $(gdb_obstack_h).
2876
2877 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2878 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2879 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2880 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2881 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2882 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2883 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2884 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2885
2886 * Makefile.in (bcache.o): Update dependencies.
2887 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2888 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2889 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2890 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2891 (stabsread.o, symfile.o, symmisc.o): Ditto.
2892 (symtab.o, typeprint.o, macroexp.o): Ditto.
2893 (macrotab.o, mdebugread.o): Ditto.
2894 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2895 (coff_ecoff_h, aout_aout64_h): Define.
2896 (aout_stabs_gnu_h, libaout_h): Define.
2897
d138e37a
AC
28982002-07-29 Andrew Cagney <cagney@redhat.com>
2899
2900 * regcache.c (struct regcache_descr): Rename nr_registers to
2901 nr_cooked_registers. Revise comments describing the structure
2902 member fields.
2903 (init_regcache_descr): Update.
2904 (init_legacy_regcache_descr): Update.
2905 (read_register_gen, write_register_gen): When a cooked register in
2906 the raw register range, directly access the value from the raw
2907 register cache.
2908
460e6ec3
AC
29092002-07-29 Andrew Cagney <ac131313@redhat.com>
2910
2911 * z8k-tdep.c: Do not include "obstack.h".
2912 * h8300-tdep.c, h8500-tdep.c: Ditto.
2913 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2914 * valprint.c, v850-tdep.c: Ditto.
2915 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2916 * mn10200-tdep.c: Ditto.
2917
2918 * Makefile.in (z8k-tdep.o): Update dependencies.
2919 (m68hc11-tdep.o, valprint.o): Ditto.
2920 (v850-tdep.o, d10v-tdep.o): Ditto.
2921 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2922 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2923 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2924 (sh_opc_h, gdb_sim_sh_h): Define.
2925 (elf_sh_h, elf_bfd_h): Define.
2926 (opcode_m68hc11_h): Define.
2927 (OPCODES_SRC, OPCODES_DIR): define.
2928 (OPCODES): Use $(OPCODES_DIR).
2929 (gdb_sim_d10v_h): Rename sim_d10v_h.
2930 (gdb_sim_arm_h): Rename sim_arm_h.
2931
790c9cf0
KB
29322002-07-26 Kevin Buettner <kevinb@redhat.com>
2933
2934 * utils.c (host_pointer_to_address, address_to_host_pointer):
2935 Change internal_error() message to indicate function responsible
2936 for the error.
2937
9647fa49
KB
29382002-07-26 Kevin Buettner <kevinb@redhat.com>
2939
2940 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2941 calls to local_hex_string_custom().
2942
dabbe2c0
KB
29432002-07-26 Kevin Buettner <kevinb@redhat.com>
2944
2945 * irix5-nat.c: Move IRIX shared library support from here...
2946 * solib-irix.c: ...to here. Revised substantially to work with
2947 generic solib framework.
2948
b96d0a4e
KB
2949 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2950 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2951 * mips-irix-tdep.c: New file.
2952
313fb2f6
KB
2953 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2954 (mips-irix-tdep.o, solib-irix.o): New rules.
2955 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2956 solib-irix.o.
2957 * config/mips/irix6.mt (TDEPFILES): Likewise.
2958 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2959
ab2eaf26
KB
29602002-07-26 Kevin Buettner <kevinb@redhat.com>
2961
177e4768 2962 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2963 disabled (via ``#if 0'') includes.
2964
7244546a
KB
29652002-07-26 Kevin Buettner <kevinb@redhat.com>
2966
2967 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2968 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2969 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2970 Add support for the fpscr register.
2971 * rs6000-nat.c (regmap, fetch_inferior_registers)
2972 (store_inferior_registers, fetch_core_registers): Likewise.
2973
dd7be90a
KB
29742002-07-26 Kevin Buettner <kevinb@redhat.com>
2975
2976 * rs6000-nat.c (language.h): Include.
2977 (special_regs): Delete this array.
2978 (regmap): New function.
2979 (fetch_register, store_register): Use regmap() to map gdb
2980 register numbers to ptrace register numbers. Also, use
2981 outputs from regmap() to make decisions regarding type of
2982 ptrace() call to make. In particular, don't compare against
2983 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2984 (fetch_inferior_registers, store_inferior_registers): Where
2985 possible, obtain register numbers from tdep struct. Don't
2986 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2987 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2988 (LAST_UISA_SP_REGNUM): Delete.
2989
11bf77db
KB
29902002-07-25 Kevin Buettner <kevinb@redhat.com>
2991
2992 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2993 (fetch_registers, store_register, fetch_core_registers): Don't
2994 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2995 regcache_collect() as appropriate.
2996 (find_toc_address): Format hex address with local_hex_string().
2997
06afebeb
AC
29982002-07-25 Andrew Cagney <ac131313@redhat.com>
2999
3000 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3001 bfd/elf32-frv.c.
3002
8c554d79
TT
30032002-07-24 Tom Tromey <tromey@redhat.com>
3004
3005 * jv-exp.y: Marked all strings with _().
3006 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3007 internal_error.
3008 (MethodInvocation, CastExpression, parse_number, yyerror,
3009 java_type_from_name, push_expression_name, yylex): Typo fixes.
3010
e4c242d9
DJ
30112002-07-24 Daniel Jacobowitz <drow@mvista.com>
3012
3013 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3014 (tee_file_flush, tee_file_write, tee_file_fputs)
3015 (tee_file_isatty): New.
3016 * ui-file.h (tee_file_new): Add prototype.
3017
ebf56fd3
AS
30182002-07-24 Aidan Skinner <aidan@velvet.net>
3019
3020 * ada-lang.c: Change k&r style function definitions to prototyped
3021 form.
3022 * ada-typeprint.c: Change k&r style function definitions to prototyped
3023 form.
3024 * ada-valprint.c: Change k&r style function definitions to prototyped
3025 form.
3026
7fb623f7
AC
30272002-07-24 Andrew Cagney <cagney@redhat.com>
3028
3029 * README: Remove reference to remote-bug.
3030 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3031 remote-bug.c.
3032 (m88k-nat.o): Delete rule.
3033 (m88k-tdep.o): Delete rule.
3034 (remote-bug.o): Delete rule.
3035 * MAINTAINERS: Mark as obsolete.
3036 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3037 * m88k-tdep.c: Make file obsolete.
3038 * config/m88k/m88k.mh: Ditto.
3039 * config/m88k/delta88v4.mh: Ditto.
3040 * config/m88k/delta88v4.mt: Ditto.
3041 * config/m88k/delta88.mt: Ditto.
3042 * config/m88k/delta88.mh: Ditto.
3043 * remote-bug.c: Ditto.
3044 * config/m88k/tm-delta88.h: Ditto.
3045 * config/m88k/nm-delta88v4.h: Ditto.
3046 * config/m88k/xm-delta88.h: Ditto.
3047 * config/m88k/xm-dgux.h: Ditto.
3048 * config/m88k/tm-m88k.h: Ditto.
3049 * config/m88k/nm-m88k.h: Ditto.
3050 * config/m88k/tm-delta88v4.h: Ditto.
3051 * m88k-nat.c: Ditto.
3052 * cxux-nat.c: Ditto.
3053 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3054 and m88*-*-* obsolete.
3055 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3056 m88*-*-* obsolete.
3057
37611a2b
AC
30582002-07-24 Andrew Cagney <cagney@redhat.com>
3059
3060 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3061 constant. Same for local pointer variables.
3062 (extract_signed_integer): Ditto.
3063 * defs.h (extract_unsigned_integer): Update.
3064 (extract_signed_integer): Update.
3065
1aaa5f99
AC
30662002-07-24 Andrew Cagney <cagney@redhat.com>
3067
3068 * regcache.c (regcache_raw_write): Change buf parameter to a
3069 constant void pointer.
3070 (regcache_raw_read): Change buf parameter to a void pointer.
3071 (legacy_write_register_gen): Change myaddr parameter a constant
3072 void pointer.
3073 (supply_register): Change val parameter to a const void pointer.
3074 * regcache.h (regcache_raw_write): Update declaration.
3075 (regcache_raw_read): Update declaration.
3076 (supply_register): Update declaration.
3077
b4f5539f
TT
30782002-07-24 Tom Tromey <tromey@redhat.com>
3079
3080 * defs.h (gdb_readline_wrapper): Declare.
3081 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3082 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3083 * top.c (gdb_readline_wrapper): New function.
3084 (command_line_input): Use it.
3085
0818c12a
AC
30862002-07-24 Andrew Cagney <cagney@redhat.com>
3087
3088 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3089 regcache_read and regcache_write.
3090 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3091 * regcache.c: Update.
3092 * sh-tdep.c (sh64_push_arguments): Update comment.
3093 (sh_pseudo_register_read): Update.
3094 (sh_pseudo_register_write): Update.
3095 (sh4_register_read): Update.
3096 (sh4_register_write): Update.
3097 (sh64_pseudo_register_read): Update.
3098 (sh64_pseudo_register_write): Update.
3099 (sh64_register_read): Update.
3100 (sh64_register_write): Update.
3101 * i386-tdep.c (i386_extract_return_value): Update.
3102 (i386_extract_struct_value_address): Update.
3103 (i386_extract_return_value): Update.
3104 * blockframe.c (generic_read_register_dummy): Update.
3105 (generic_call_dummy_register_unwind): Update
3106 * infrun.c (write_inferior_status_register): Update.
3107
f7321c06
JB
31082002-07-23 Jim Blandy <jimb@redhat.com>
3109
3110 * parser-defs.h (expression_context_pc): Make this extern.
3111 (Thanks to Michael Snyder.)
3112
2037aebb
AC
31132002-07-23 Andrew Cagney <ac131313@redhat.com>
3114
3115 GDB 5.2.1 released from 5.2 branch.
3116 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3117 * README: Update to mention 5.2.1.
3118
66504d44
MS
31192002-07-23 Mark Salter <msalter@redhat.com>
3120
3121 * remote.c (remote_read_bytes): Fix check for error.
3122
27bae383
KB
31232002-07-22 Kevin Buettner <kevinb@redhat.com>
3124
3125 * aix-thread.c (language.h): Include.
3126 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3127 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3128 Print newlines at end of debug messages.
3129 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3130 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3131
31322002-07-22 Kevin Buettner <kevinb@redhat.com>
3133
3134 * aix-thread.c (ppc-tdep.h): Include.
3135 (special_register_p): New function.
3136 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3137 (store_regs_user_thread): Use register number information from
3138 gdbarch_tdep struct instead of hardcoded offsets relative to
3139 FIRST_UISA_SP_REGNUM.
3140 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3141 special_register_p() instead of using FPLAST_REGNUM and
3142 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3143 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3144 will be MQ's register number.
3145
31462002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3147
3148 * aix-thread.c (ops): Rename to aix_thread_ops.
3149 (base_ops): Rename to base_target.
3150 (ops_attach): Rename to aix_thread_attach.
3151 (ops_detach): Rename to aix_thread_detach.
3152 (ops_resume): Rename to aix_thread_detach.
3153 (ops_wait): Rename to aix_thread_wait.
3154 (ops_kill): Rename to aix_thread_kill.
3155 (init_ops): Rename to init_aix_thread_ops.
3156 (ops_fetch_register): Rename to aix_thread_fetch_register.
3157 (ops_store_register): Rename to aix_thread_store_register.
3158 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3159 (ops_thread_alive): Rename to aix_thread_thread_alive.
3160 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3161 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3162 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3163 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3164 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3165 (store_regs_lib): Rename to store_regs_user_thread.
3166 (store_regs_kern): Rename to store_regs_kernel_thread.
3167
27bae383 31682002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3169
3170 * aix-thread.c (ops_prepare_to_store): Eliminate.
3171 (init_ops): Don't initialize ops.prepare_to_store.
3172 (store_regs_kern): Pre-fetch register buffers from child,
3173 because some registers may not be in the cache. Copy
3174 regs from register cache only if they are cached.
3175 (store_regs_lib): Copy regs from register cache only
3176 if they are cached.
3177 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3178 fill_gprs64): Ditto.
3179
61c5da0b
KB
31802002-07-22 Kevin Buettner <kevinb@redhat.com>
3181
3182 * aix-thread.c (gdb_assert.h): Include.
3183 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3184 register sizes (from register cache) match size of buffer holding
3185 register data.
3186 (fill_sprs32): Change parameter types to match those in the ptrace()
3187 buffer.
3188 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3189 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3190
31912002-07-22 Michael Snyder <msnyder@redhat.com>
3192
3193 * aix-thread.c (supply_sprs64): Cosmetic change.
3194 (supply_sprs32): Cosmetic change.
3195 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3196 (fill_sprs64): Use regcache_collect instead of read_register.
3197 (store_regs_lib): Use regcache_collect instead of
3198 read_register. Use fill_sprs32 instead of fill_sprs64,
3199 if debugging a 32-bit architecture.
3200 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3201 out of the register cache, instead of passing a pointer into
3202 the register cache directly to ptrace. Use regcache_collect
3203 insteaad of read_register.
3204 (ops_prepare_to_store): Use target_read_registers instead
3205 of read_register_bytes.
3206
36479eb1
AS
32072002-07-20 Aidan Skinner <aidan@velvet.net>
3208
3209 * MAINTAINERS: Add self under write after approval.
3210
80ae6ee2
AS
32112002-07-20 Aidan Skinner <aidan@velvet.net>
3212
3213 * ada-tasks.c: Change k&r style function definitions to prototyped
3214 form.
3215
8a8ab2b9
AC
32162002-07-19 Andrew Cagney <ac131313@redhat.com>
3217
3218 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3219 * x86-64-tdep.c: Include "objfiles.h".
3220 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3221 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3222
fb16b900
ML
32232002-07-17 Michal Ludvig <michal@suse.cz>
3224
3225 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3226 (update_context): Initialise cfa variable.
3227
0fe7bf7b
MS
32282002-07-17 Michael Snyder <msnyder@redhat.com>
3229
3230 * aix-thread.c: Shorten some long lines.
3231 Bring comments into line with code spec.
3232
488f131b
JB
32332002-07-18 Joel Brobecker <brobecker@gnat.com>
3234
3235 * infrun.c: Re-indent using gdb_indent.sh.
3236
46c415d2
JB
32372002-07-18 Joel Brobecker <brobecker@gnat.com>
3238
3239 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3240 Leave the indentation temporarily untouched, to minimize the diffs.
3241
cdecafbe
EZ
32422002-07-18 Elena Zannoni <ezannoni@redhat.com>
3243
3244 * stabsread.c: Make os9k sections of the code obsolete,
3245 for real this time.
3246 * stabsread.h: Make os9k sections of the code obsolete.
3247
7b6aa020
ML
32482002-07-18 Michal Ludvig <mludvig@suse.cz>
3249
09ec9b38
ML
3250 * linux-low.c (regsets_store_inferior_registers): Add free()
3251 at the end of a loop to prevent memory leak.
3252 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3253 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3254 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3255 line a comment.
4894ac5d 3256 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3257
233282cd
JB
32582002-07-17 Jim Blandy <jimb@redhat.com>
3259
3260 * macrocmd.c (info_macro_command): Remove newline from error
3261 message.
3262
7b6aa020 32632002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3264
3265 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3266 (sh_gdbarch_init): Use it for sh-dsp.
3267
f7ef9339
KB
32682002-07-16 Kevin Buettner <kevinb@redhat.com>
3269
3270 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3271 64-bit DWARF2 format.
3272
8dd72958
JB
32732002-07-16 Joel Brobecker <brobecker@gnat.com>
3274
3275 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3276 <sys/proc.h> when not available.
3277
a99a9e1b
AC
32782002-07-16 Andrew Cagney <ac131313@redhat.com>
3279
3280 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3281 * stabsread.c: Make os9k sections of the code obsolete.
3282 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3283 * config/i386/i386os9k.mt: Make file obsolete.
3284 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3285 (COMMON_OBS): Remove os9kread.o
3286 (SFILES): Remove os9kread.c.
3287 (os9kread.o, remote-os9k.o): Make target obsolete.
3288 * remote-os9k.c: Make file obsolete.
3289 * os9kread.c: Make file obsolete.
3290 * Makefile.in
3291
7a3085c1
AC
32922002-07-16 Andrew Cagney <ac131313@redhat.com>
3293
3294 * NEWS: Mention that the FR30 has been made obsolete.
3295 * fr30-tdep.c: Make file obsolete.
3296 * config/fr30/tm-fr30.h: Ditto.
3297 * config/fr30/fr30.mt: Ditto.
3298 * configure.tgt: Make fr30-*-elf obsolete.
3299 * MAINTAINERS: Make fr30-elf obsolete.
3300
28a93f5a
PM
33012002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3302
3303 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3304 found is not inside a section.
3305
be006b8b
KB
33062002-07-15 Kevin Buettner <kevinb@redhat.com>
3307
3308 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3309 strerror().
3310 (pdc_realloc): Use xrealloc() instead of realloc().
3311
14fa3751
KB
33122002-07-15 Kevin Buettner <kevinb@redhat.com>
3313
3314 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3315 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3316 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3317 macros.
3318
42cc437f
KB
33192002-07-15 Kevin Buettner <kevinb@redhat.com>
3320
3321 * aix-thread.c (ptrace_check): Eliminate goto.
3322 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3323 problem.
3324
8e2c28d4
KB
33252002-07-15 Kevin Buettner <kevinb@redhat.com>
3326
3327 * aix-thread.c (gdbcmd.h): Include.
3328 (DEBUG, DBG, DBG2, dbg): Eliminate.
3329 (debug_aix_thread): New static global.
3330 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3331 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3332 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3333 invocations to DBG and DBG2 macros to test against
3334 ``debug_aix_thread'' and call fprintf_unfiltered().
3335 (_initialize_aix_thread): Add new command "set debug aix-thread".
3336
30413464
AC
33372002-07-15 Andrew Cagney <ac131313@redhat.com>
3338
3339 From Gerhard Tonn <TON@de.ibm.com>:
3340 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3341 instead of supply_register.
3342
7c43edc1
AC
33432002-07-15 Andrew Cagney <ac131313@redhat.com>
3344
3345 * dwarf2cfi.c: Include "gdb_assert.h".
3346 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3347 non-NULL.
3348 (update_context): Do not use __func__. Add missing ``break''.
3349 (update_context): Do not use __func__.
3350
9364a0ef
EZ
33512002-07-15 Elena Zannoni <ezannoni@redhat.com>
3352
3353 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3354 and its setting. Set gdbarch instruction printing functions
3355 directly. For non-rs6000 case use new function
3356 gdb_print_insn_powerpc.
3357 (gdb_print_insn_powerpc): New function.
3358
3fbeef0b
AC
33592002-07-13 Andrew Cagney <ac131313@redhat.com>
3360
92eb23c5 3361 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3362 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3363 * configure.tgt: Mark d30v-*-* as obsolete.
3364 * d30v-tdep.c: Mark file as obsolete.
3365 * config/d30v/d30v.mt: Ditto.
3366 * config/d30v/tm-d30v.h: Ditto.
3367
aacb1f0a
AS
33682002-07-13 Aidan Skinner <aidan@velvet.net>
3369
3370 * ada-tasks.c (add_task_entry): replace calls to
3371 malloc() with xmalloc
3372 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3373
3374 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3375 ada_finish_decode_line_1, all_sals_for_line
3376 ada_breakpoint_rewrite): replace calls to free() with xfree()
3377
c11d79f2
KB
33782002-07-12 Kevin Buettner <kevinb@redhat.com>
3379
3380 From Nicholas Duffek (with minor changes by Martin Hunt,
3381 Louis Hamilton, and Kevin Buettner):
3382 * aix-thread.c: New file.
3383
8e19ed76
PS
33842002-07-12 Petr Sorfa <petrs@caldera.com>
3385
3386 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3387 complaint for invalid attribute class or form.
3388 (read_func_scope): DW_AT_frame_base
3389 better handling of DW_AT_block*.
3390 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3391 better handling of DW_AT_block*.
3392 (read_common_block): DW_AT_location
3393 better handling of DW_AT_block*.
3394 (read_partial_die): DW_AT_location better handling
3395 of DW_AT_block*.
3396 (new_symbol): DW_AT_external better handling of
3397 DW_AT_block*. Proper initialization of variable
3398 "addr".
3399 (attr_form_is_block): New function that returns true
3400 if the attribute's form is of DW_FORM_block*.
3401
295401f7
DJ
34022002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3403
3404 * valops.c (find_method_list): Remove comment about
3405 removed STATIC_MEMFUNCP argument.
3406 (value_find_oload_method_list): Likewise.
3407
e42dc924
KB
34082002-07-12 Kevin Buettner <kevinb@redhat.com>
3409
3410 From Nicholas Duffek:
3411 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3412 target_new_objfile_hook.
3413
6904b546
KB
34142002-07-12 Kevin Buettner <kevinb@redhat.com>
3415
3416 From Nicholas Duffek:
3417 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3418 csect.
3419
53fe9346
AC
34202002-07-12 Andrew Cagney <cagney@redhat.com>
3421
3422 * MAINTAINERS: Mention --enable-sim-build-warnings.
3423 (m68hc11-elf): Disable sim build warnings.
3424 (m32r-elf): Mark as broken obsolete candidate.
3425 (x86_64-linux-gnu): Mark as buildable with -Werror.
3426 (arm-elf): Change -w to ``,'' which enables warnings but not
3427 -Werror.
3428
af5f3db6
AC
34292002-07-12 Andrew Cagney <ac131313@redhat.com>
3430
3431 * bcache.h: Update copyright.
3432 (struct bstring, struct bcache): Move definition to "bcache.c".
3433 Replaced by opaque declaration.
3434 (bcache_xfree): Replace free_bcache.
3435 (bcache_xmalloc, bcache_memory_used): Declare.
3436
3437 * bcache.c: Update copyright.
3438 (struct bstring, struct bcache): Moved to here from "bcache.h".
3439 Update comments.
3440 (bcache_xmalloc, bcache_memory_used): New functions.
3441 (bcache_xfree): Replace function free_bcache.
3442
3443 * Makefile.in (objfiles.o): Add $(bcache_h).
3444 (objfiles_h): Remove $(bcache_h).
3445 (symfile.o): Add $(bcache_h).
3446
3447 * symmisc.c: Update copyright.
3448 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3449 (print_objfile_statistics): Use bcache_memory_used.
3450
3451 * symfile.c: Include "bcache.h".
3452 (reread_symbols): Use bcache_xfree.
3453 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3454 (add_psymbol_to_list): Pass psymbol_cache by value.
3455 (add_psymbol_with_dem_name_to_list): Ditto.
3456
3457 * objfiles.h: Update copyright.
3458 (struct bcache): Declare opaque. Do not include "bcache.h".
3459 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3460 bcache'' pointers.
3461 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3462
3463 * objfiles.c: Include "bcache.h". Update copyright.
3464 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3465 macro_cache.
3466 (free_objfile): Use bcache_xfree.
3467
444199e7
GS
34682002-07-11 Grace Sainsbury <graces@redhat.com>
3469
3470 * monitor.c (monitor_fetch_register): Make name a constant.
3471 (monitor_store_register): Same.
3472
261397f8
DJ
34732002-07-11 Daniel Jacobowitz <drow@mvista.com>
3474
3475 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3476 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3477 (finish_block) For non-function blocks, hash the symbol table. For
3478 function blocks, mark the symbol table as unhashed.
3479 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3480 (msymbol_hash_iw): Likewise.
3481 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3482 value.
3483 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3484 (lookup_minimal_symbol): Likewise for both.
3485 * symtab.h (struct block): Add `hashtable' flag. Comment the
3486 hashtable.
3487 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3488 (ALL_BLOCK_SYMBOLS): Update.
3489 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3490 (struct symbol): Add `hash_next' pointer.
3491 * symtab.c (lookup_block_symbol): Search using the hash table when
3492 possible.
3493 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3494 (search_symbols, find_addr_symbol): Likewise.
3495
3496 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3497 (read_dst_symtab): Likewise.
3498 * jv-lang.c (get_java_class_symtab): Likewise.
3499 * mdebugread.c: Include "gdb_assert.h".
3500 (shrink_block): Assert that the block being modified is not hashed.
3501 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3502 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3503 symbols.
3504 (dump_symtab): Recognize hashed blocks.
3505 * printcmd.c (print_frame_args): Assert that function blocks do not
3506 have hashed symbol tables.
3507 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3508 (fill_in_ada_prototype, debug_print_block): Likewise.
3509 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3510
6f0eaa01
CV
35112002-07-11 Corinna Vinschen <vinschen@redhat.com>
3512
3513 * stack.c (print_frame): Use result of frame_address_in_block()
3514 instead of fi->pc when evaluating symbols.
3515 (backtrace_command_1): Ditto.
3516
a208b0cb
AC
35172002-07-11 Andrew Cagney <cagney@redhat.com>
3518
3519 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3520 Make static.
3521
3522 * arm-tdep.c (arm_register_name): Make return type constant.
3523
a6b6b089
AC
35242002-07-10 Andrew Cagney <ac131313@redhat.com>
3525
5ae5f592
AC
3526 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3527 prototype.
3528 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3529 * s390-tdep.c (s390_fp_regnum): Ditto.
3530 (s390_read_fp): Ditto.
3531 (s390_pop_frame): Ditto.
3532 (_initialize_s390_tdep): Ditto.
3533 * remote.c (get_remote_state): Ditto.
3534 * procfs.c (mappingflags): Ditto.
3535 * memattr.c (_initialize_mem): Ditto.
3536 * mcore-tdep.c (mcore_pop_frame): Ditto.
3537 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3538 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3539 * language.c (set_case_str): Ditto.
3540 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3541 * frv-tdep.c (new_variant): Ditto.
3542 (frv_stopped_data_address): Ditto.
3543 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3544 (context_alloc): Ditto.
3545 (frame_state_alloc): Ditto.
3546 (unwind_tmp_obstack_init): Ditto.
3547 (unwind_tmp_obstack_free): Ditto.
3548 (cfi_read_fp): Ditto.
3549 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3550 (cris_pop_frame): Ditto.
3551 * c-lang.c (scanning_macro_expansion): Ditto.
3552 (finished_macro_expansion): Ditto.
3553 (c_preprocess_and_parse): Ditto.
3554 * gdbarch.sh: Ditto.
3555 * gdbarch.h, gdbarch.c: Regenerate.
3556 * config/mn10200/tm-mn10200.h: Adjust indentation.
3557 * target.c: Adjust indentation.
3558 * symtab.h: Adjust indentation.
3559 * stabsread.h: Adjust indentation.
3560 * remote-es.c: Adjust indentation.
3561 * os9kread.c: Adjust indentation.
3562
35632002-07-10 Andrew Cagney <ac131313@redhat.com>
3564
a6b6b089
AC
3565 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3566 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3567
a1789893
GS
35682002-07-10 Grace Sainsbury <graces@redhat.com>
3569
3570 * NEWS: Mention m68k, mcore multi-arching.
3571 * MAINTAINERS: Change status of m68k, mcore to reflect
3572 multi-arching.
3573
02f0d45d
DJ
35742002-07-10 Daniel Jacobowitz <drow@mvista.com>
3575
3576 * valops.c (find_overload_match): Free oload_syms.
3577
f15f768e
JB
35782002-07-09 Joel Brobecker <brobecker@gnat.com>
3579
3580 Define HAVE_SYS_PROC_H if sys/proc.h exists
3581 * configure.in: Add check for sys/proc.h
3582 * config.in: Regenerate.
3583 * configure: Regenerate.
3584
902a7139
GS
35852002-07-09 Grace Sainsbury <graces@redhat.com>
3586
3587 * config/m68k/tm-m68k.h: Remove macros wrapped in
3588 #if !GDB_MULTI_ARCH.
3589
a534e424
AC
35902002-07-08 Andrew Cagney <ac131313@redhat.com>
3591
3592 * config.in, configure: Regenerate.
3593
9b94f7bf
MK
35942002-07-08 Mark Kettenis <kettenis@gnu.org>
3595
3596 * dwarf2cfi.c: Include "gcore.h".
3597 (execute_stack_op): Fix implementation of the
3598 DW_OP_deref and DW_OP_deref_size operators by letting do their
3599 lookup in the target.
3600
1d34db41
MK
36012002-07-07 Mark Kettenis <kettenis@gnu.org>
3602
3603 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3604 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3605 tdep->sc_sp_offset.
3606
79d5b63a
DJ
36072002-07-05 Daniel Jacobowitz <drow@mvista.com>
3608
3609 Fix PR gdb/595, gdb/602
3610 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3611 Don't call value_cast, just read the vtable pointer; update comments
3612 to match.
3613
3bb912e8
GS
36142002-07-05 Grace Sainsbury <graces@redhat.com>
3615
3616 * config/mcore/tm-mcore.h: Remove file.
3617 * config/mcore/mcore.mt: Remove definition of TM_FILE
3618 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3619
ca39387d
MK
36202002-07-05 Mark Kettenis <kettenis@gnu.org>
3621
3622 * i386bsd-tdep.c: Include "gdb_string.h".
3623
efdc1108
GS
36242002-07-04 Grace Sainsbury <graces@redhat.com>
3625
3626 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3627 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3628 mcore-tdep.
3629 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3630 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3631 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3632 (RETVAL_REGNUM): Move macros from tm-mcore.h
3633 (mcore_reg_struct_has_addr): New function.
3634 (mcore_gdbarch_init): Added initializations for the macros removed
3635 from tm-mcore.h.
3636
bb21884d
MK
36372002-07-04 Mark Kettenis <kettenis@gnu.org>
3638
3639 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3640 traditonal string branding within the ELF header.
3641
228c6d41
DJ
36422002-07-04 Daniel Jacobowitz <drow@mvista.com>
3643
3644 * symtab.c (remove_params): New function.
3645 (make_symbol_overload_list): Use it instead of cplus_demangle.
3646 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3647
2404952e
MK
36482002-07-04 Mark Kettenis <kettenis@gnu.org>
3649
e5e4acad
MK
3650 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3651
baadce09
MK
3652 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3653 New variables.
3654 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3655 and tdep->sigtramp_end.
3656 * i386obsd-nat.c: New file.
3657 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3658
2404952e
MK
3659 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3660 Don't call get_current_frame().
3661
9b4f1ba7
PM
36622002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3663
3664 * i386-nat.c (child_post_startup_inferior): New function
3665 calling i386_cleanup_dregs if
3666 I386_USE_GENERIC_WATCHPOINTS is defined.
3667 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3668 conditional to acknowledge that i386-nat.c has its
3669 own child_post_startup_inferior function.
3670
c0d1d883
MK
36712002-07-04 Mark Kettenis <kettenis@gnu.org>
3672
00f8375e
MK
3673 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3674 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3675 instead of MAX_REGISTER_RAW_SIZE.
3676 (i386_extract_return_value, i386_extract_struct_value_address):
3677 Convert to use regcache.
3678 (i386_gdbarch_init): Set max_register_raw_size and
3679 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3680 Set extract_return_value and extract_struct_value_address instead
3681 of their deprecated variants.
3682
c0d1d883
MK
3683 Convert i386 target to generic dummy frames.
3684 * i386-tdep.c: Include "symfile.h".
3685 (i386_frameless_signal_p): Consider a function to be frameless if
3686 the pc points at the first instruction of the function.
3687 (i386_frame_chain): Handle (generic) call dummies.
3688 (i386_frame_saved_pc): Likewise.
3689 (i386_frame_init_saved_regs): Remove code dealing with call
3690 dummies on the stack.
3691 (i386_push_dummy_frame): Removed.
3692 (i386_call_dummy_words): Removed.
3693 (i386_fix_call_dummy): Removed.
3694 (i386_push_return_address): New function.
3695 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3696 parameter, and don't call get_current_frame.
3697 (i386_pop_frame): New function.
3698 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3699 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3700 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3701 call_dummy_length to 0, set call_dummy_words to NULL, set
3702 sizeof_call_dummy_words to 0, set fix_call_dummy to
3703 generic_fix_call_dummy, set pc_in_call_dummy to
3704 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3705 generic_push_dummy_frame, set push_return_address to
3706 i386_push_return_address and set frame_chain_valid to
3707 generic_file_frame_chain_valid.
3708
049ee0e4
AC
37092002-07-03 Andrew Cagney <ac131313@redhat.com>
3710
3711 * gdbarch.sh (struct regcache): Add opaque declaration.
3712 (EXTRACT_RETURN_VALUE): New architecture method.
3713 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3714 * gdbarch.h, gdbarch.c: Regenerate.
3715 * arch-utils.c (legacy_extract_return_value): New function.
3716 * arch-utils.h (legacy_extract_return_value): Declare.
3717 * values.c (value_being_returned): Re-enable code handling
3718 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3719 deprecated_grub_regcache_for_registers call to block handling
3720 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3721 (EXTRACT_RETURN_VALUE): Do not define.
3722
4e0d9804
GS
37232002-07-03 Grace Sainsbury <graces@redhat.com>
3724
3725 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3726 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3727 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3728 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3729 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3730 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3731 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3732 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3733 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3734 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3735 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3736 argument so the function fits the prototype in the architecture
3737 vector.
3738 (mcore_pop_frame): Remove argument so the function fits the
3739 prototype. Use get_current_frame instead of the argument.
3740 (mcore_push_arguments): Change type of struct_return so the
3741 function can be used in the architecture vector.
3742 (mcore_store_struct_return): Add.
3743 (mcore_frame_init_saved_regs): Add.
3744 (mcore_gdbarch_init): Add function calls to replace the macros
3745 removed from tm-mcore.h
3746
36160dc4
AC
37472002-07-03 Andrew Cagney <ac131313@redhat.com>
3748
3749 * infcmd.c (print_return_value): Remove compatibility code calling
3750 deprecated_grub_regcache_for_registers.
3751
3752 * values.c: Include "regcache.h".
3753 (value_being_returned): Update. Use
3754 deprecated_grub_regcache_for_registers to extract the register
3755 buffer address.
3756 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3757 ``struct regcache''.
3758 * Makefile.in (values.o): Add dependency on $(regcache_h).
3759
3760 * inferior.h (run_stack_dummy): Change type of second parameter to
3761 a ``struct regcache''.
3762 * valops.c (hand_function_call): Change type of retbuf to ``struct
3763 regcache''. Allocate using regcache_xmalloc, clean using
3764 make_cleanup_regcache_xfree.
3765 * infcmd.c (run_stack_dummy): Update. Use
3766 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3767
3768 * regcache.c (do_regcache_xfree): New function.
3769 (make_cleanup_regcache_xfree): New function.
3770 * regcache.h (make_cleanup_regcache_xfree): Declare.
3771
e64d9b3d
MH
37722002-07-03 Martin M. Hunt <hunt@redhat.com>
3773
4dd79c29
MH
3774 * event-top.c (command_line_handler): Don't read past
3775 beginning of buffer.
e64d9b3d 3776
4dd79c29
MH
37772002-07-03 Martin M. Hunt <hunt@redhat.com>
3778
e64d9b3d
MH
3779 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3780 struct frame_id.
3781 (varobj_create): Store frame_id for root.
3782 (varobj_gen_name): Use xasprintf.
3783 (varobj_update): Save and restore frame using get_frame_id() and
3784 frame_find_by_id().
3785 (create_child): Use xasprintf.
3786 (new_root_variable): Initialize frame_id.
3787 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3788 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3789 to prevent memory leak.
3790
26e6c56a
AC
37912002-07-03 Andrew Cagney <ac131313@redhat.com>
3792
3793 * valops.c (hand_function_call): Move declaration of retbuf to
3794 start of function, allocate using malloc, add a cleanup but before
3795 the inf_status cleanup, cleanup the buffer. Rename local variable
3796 old_chain to inf_status_cleanup.
3797
f436dd25
MH
37982002-07-03 Martin M. Hunt <hunt@redhat.com>
3799
3800 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3801
3802 * cli/cli-decode.c (cmd_func_p): New function.
3803 (cmd_func): New function.
3804
3805 * command.h: Add cmd_func() and cmd_func_p().
3806
4cfe2084
GS
38072002-07-03 Grace Sainsbury <graces@redhat.com>
3808
3809 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3810 (REGISTER_SIZE): Remove.
3811 (MAX_REGISTER_RAW_SIZE): Remove.
3812 (REGISTER_VIRTUAL_TYPE): Remove.
3813 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3814 (REGISTER_NAME): Remove.
3815 (USE_GENERIC_DUMMY_FRAMES): Remove.
3816 (CALL_DUMMY): Remove.
3817 (CALL_DUMMY_START_OFFSET): Remove.
3818 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3819 (CALL_DUMMY_LOCATION): Remove.
3820 (FIX_CALL_DUMMY): Remove.
3821 (CALL_DUMMY_ADDRESS): Remove.
3822 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3823 (SAVE_DUMMY_FRAME_TOS): Remove.
3824 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3825 (mcore_register_virtual_type): New function.
3826 (mcore_register_byte): New function.
3827 (mcore_register_size): New function.
3828 (mcore_register_name): New function.
3829 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3830 macros removed from tm-mcore.h.
3831 (mcore_dump_tdep): Add.
3832 (_initialize_mcore_tdep): Add gdbarch_register call.
3833
4fd667e9
MK
38342002-07-03 Mark Kettenis <kettenis@gnu.org>
3835
3836 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3837 frameless_look_for_prologue, such that we actually call this
3838 function.
3839
42f99ac2
JB
38402002-07-02 Joel Brobecker <brobecker@gnat.com>
3841
3842 * frame.h (frame_address_in_block): New function.
3843
3844 * blockframe.c (frame_address_in_block): New function extracted
3845 from get_frame_block().
3846 (get_frame_block): Use frame_address_in_block().
3847 (block_innermost_frame): Use frame_address_in_block() to match
3848 the frame pc address against the block boundaries rather than
3849 the frame pc directly. This prevents a failure when a frame pc
3850 is actually a return-address pointing immediately after the end
3851 of the given block.
3852
103a1597 38532002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3854
3855 * MAINTAINERS: Add self under write after approval.
3856
38572002-07-02 Grace Sainsbury <graces@redhat.com>
3858
103a1597
GS
3859 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3860 used in architecture vector. The default is
3861 m68k_local_breakpoint_from_pc.
3862 (m68k_local_breakpoint_from_pc): Add.
3863 (enum): Add register numbers from tm-m68k.h.
3864 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3865 vector.
3866 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3867 GDB_MULTI_ARCH_PARTIAL.
3868 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3869 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3870 m68k-tdep.c.
3871 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3872 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3873 to enum in m68k-tdep.c
3874
7a5a0534
JB
38752002-07-02 Joel Brobecker <brobecker@gnat.com>
3876
3877 * solib-osf.c (open_map): Compute the list of shared libraries
3878 loaded by the inferior, rather than the list of libraries loaded
3879 by GDB itself. Otherwise, GDB ends up reading the symbols from
3880 the wrong shared libraries...
3881
6f558d74
MK
38822002-07-02 Mark Kettenis <kettenis@gnu.org>
3883
b7d15bf7
MK
3884 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3885 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3886 macros.
3887 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3888 Remove functions.
3889 (FRAMELESS_SIGNAL): Remove function.
3890 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3891 i386_linux_saved_pc_after_call): Removed.
3892 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3893 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3894 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3895
6bff26de
MK
3896 * i386-tdep.c (i386_frameless_signal_p): New function.
3897 (i386_frame_chain): Deal with frameless signals.
3898 (i386_sigtramp_saved_sp): New function.
3899 (i386_frame_saved_pc): Deal with frameless signals.
3900 (i386_saved_pc_after_call): Make sure the correct value is
3901 returned just after entry into a sigtramp.
3902 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3903 i386fbsd4_sc_sp_offset): New variables.
3904 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3905 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3906 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3907 similiar to what we already did for sc_pc_offset.
3908 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3909 tdep->sc_sp_offset.
3910
6f558d74
MK
3911 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3912
145564b7
ML
39132002-07-02 Michal Ludvig <mludvig@suse.cz>
3914
3915 * config/i386/tm-x86-64linux.h: New.
3916 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3917 definitions.
3918 * config/i386/nm-x86-64.h: Rename to ...
3919 * config/i386/nm-x86-64linux.h: ... this one.
3920 * config/i386/x86-64linux.mh: Reflect the above change.
3921
3a1e71e3
MK
39222002-07-01 Mark Kettenis <kettenis@gnu.org>
3923
21d0e8a4
MK
3924 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3925 with sigcontext_addr. Add sc_sp_offset.
3926 (i386bsd_sigtramp_saved_pc): Remove prototype.
3927 (i386bsd_sicontext_addr): Add prototype.
3928 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3929 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3930 (i386_svr4_sigtramp_saved_pc): Removed.
3931 (i386_svr4_sigcontext_addr): New function.
3932 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3933 Initialize tdep->sigcontext_addr instead. Initialize
3934 tdep->sc_pc_offset and tdep->sc_sp_offset.
3935 (i386_gdbarch_init): Likewise.
3936 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3937 any more.
3938 (i386bsd_sigtramp_saved_pc): Remove function.
3939 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3940 Initialize tdep->sigcontext_addr instead. Initialize
3941 tdep->sc_pc_offset.
3942 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3943 of tdep->sigtramp_saved_pc.
3944 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3945 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3946 instead.
3947
3a1e71e3
MK
3948 * i386-tdep.c (i386_frameless_function_invocation,
3949 i386_frame_num_args, i386_frame_init_saved_regs,
3950 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3951 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3952 i386_extract_return_value, i386_store_return_value,
3953 i386_extract_struct_value_address, i386_register_virtual_type,
3954 i386_register_convertible, i386_register_convert_to_virtual,
3955 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3956 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3957 static.
3958
52e9098c
MK
39592002-07-01 Mark Kettenis <kettenis@gnu.org>
3960
77b13a25
MK
3961 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3962
52e9098c
MK
3963 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3964 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3965 this macro. Include "value.h".
3966
1b372fff
AS
39672002-06-30 Aidan Skinner <aidan@velvet.net>
3968
3969 * ada-exp.tab.c: remove as it's a generated file
3970 * ada-lex.c: remove as it's a generated file
3971
9c5045b5
MK
39722002-06-30 Mark Kettenis <kettenis@gnu.org>
3973
4a93c5bb
MK
3974 * config/i386/tm-i386.h (struct frame_info, struct
3975 frame_saved_regs, struct value, struct type): Remove forward
3976 declarations.
3977
322d4fe0
MK
3978 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3979 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3980 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3981 (FILL_FPXREGSET): Define.
3982
fdd8263d
MK
3983 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3984
482e577b
MK
3985 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3986 i[3456]86-*-netbsd* case.
3987 * config/i386/tm-obsd.h: Removed.
3988 * config/i386/obsd.mt: Removed.
3989 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3990 core-aout.o.
3991 (MH_CFLAGS): Add -DYYDEBUG=0.
3992
6916549a
MK
3993 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3994 i386nbsd_sc_pc_offset on OpenBSD too.
3995
9c5045b5
MK
3996 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3997 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3998 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3999 define.
4000 * i386bsd-tdep.c: Include "arch-utils.h".
4001 (i386bsd_aout_in_solib_call_trampoline): New function.
4002 (i386bsd_init_abi): Set in_solib_call_trampoline to
4003 i386bsd_aout_in_solib_call_trampoline.
4004 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4005 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4006
aa84d1bb
AC
40072002-06-28 Andrew Cagney <ac131313@redhat.com>
4008
4009 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4010 (struct obstack, struct bcache): Add opaque declarations.
4011 * Makefile.in (macrotab_h): Update
4012
b4d83933
AC
40132002-06-28 Andrew Cagney <ac131313@redhat.com>
4014
4015 * blockframe.c (generic_find_dummy_frame): Change return type to
4016 ``struct regcache''.
4017 (struct dummy_frame): Replace field ``registers'' with regcache, a
4018 struct regcache object.
4019 (generic_find_dummy_frame): Update.
4020 (generic_push_dummy_frame): Update. Use regcache_xfree,
4021 regcache_xmalloc and regcache_cpy.
4022 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4023 regcache_xfree.
4024 (deprecated_generic_find_dummy_frame): Update.
4025 (generic_read_register_dummy): Update. Use
4026 regcache_read_as_address.
4027 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4028 (generic_get_saved_register): Update. Use regcache_read.
4029
08c0b5bc
AC
40302002-06-28 Andrew Cagney <ac131313@redhat.com>
4031
4032 * Makefile.in (objfiles_h): Add $(bcache_h).
4033 * objfiles.h: Include "bcache.h".
4034
4035 * Makefile.in (symtab_h): Remove $(bcache_h).
4036 * symtab.h: Do not include "bcache.h".
4037
1f89801a
AC
40382002-06-28 Andrew Cagney <ac131313@redhat.com>
4039
4040 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4041 generic_func_frame_chain_valid.
4042
b9644b58
DB
40432002-06-28 David O'Brien <obrien@FreeBSD.org>
4044
4045 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4046 * config/i386/tm-fbsd.h: Likewise.
4047
dd486634
AC
40482002-06-28 Andrew Cagney <ac131313@redhat.com>
4049
4050 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4051 generic_unwind_get_saved_register.
4052
0b434a00
AC
40532002-06-27 Andrew Cagney <ac131313@redhat.com>
4054
4055 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4056 * regcache.c (supply_register): Add missing argument to
4057 register_buffer call.
4058
f30e5a77
AC
40592002-06-27 Andrew Cagney <ac131313@redhat.com>
4060
4061 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4062 Solaris /bin/grep does not not like it. From Peter Schauer.
4063
9f064c95
TT
40642002-06-26 Tom Tromey <tromey@redhat.com>
4065
4066 * command.h (add_setshow_cmd): Declare.
4067 (add_setshow_cmd_full): Declare.
4068 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4069 returns void. Use add_setshow_cmd_full.
4070 (add_setshow_cmd_full): New function.
4071 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4072 (add_setshow_boolean_cmd): Likewise.
4073
099c7589
JT
40742002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4075
4076 * config/vax/tm-vax.h: Protect from multiple inclusion.
4077 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4078 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4079 * config/vax/tm-vaxbsd.h: ...here. New file.
4080 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4081
1d049c5e
JT
40822002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4083
4084 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4085 (BELIEVE_PCC_PROMOTION): Remove.
4086 (AP_REGNUM): Move to...
4087 * config/vax/nm-vax.h: ...here.
4088 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4089 (vax_breakpoint_from_pc): New function.
4090 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4091 and gdbarch_believe_pcc_promotion.
4092
4791e091
JT
40932002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4094
4095 * Makefile.in (vax_tdep_h): Define.
4096 (vax-tdep.o): Use $(vax_tdep_h).
4097 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4098 (vax_dump_tdep): New function.
4099 (_initialize_vax_tdep): Register vax_dump_tdep.
4100 * vax-tdep.h: Include osabi.h.
4101 (struct gdbarch_tdep): New.
4102
da130f98
AC
41032002-06-26 Andrew Cagney <cagney@redhat.com>
4104
4105 * frame.h (deprecated_generic_find_dummy_frame): Rename
4106 generic_find_dummy_frame.
4107 * blockframe.c (generic_find_dummy_frame): Make static.
4108 (deprecated_generic_find_dummy_frame): New function.
4109 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4110 generic_find_dummy_frame with deprecated_find_dummy_frame.
4111 (sh64_nofp_frame_init_saved_regs): Ditto.
4112 (sh_fp_frame_init_saved_regs): Ditto.
4113 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4114 (s390_frame_chain): Ditto.
4115 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4116
6300c360
GS
41172002-06-26 Grace Sainsbury <graces@redhat.com>
4118
4119 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4120 gdbarch vector are at the top.
4121 (NUM_REGS): Remove.
4122 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4123 (FRAME_ARGS_ADDRESS): Remove.
4124 (FRAME_LOCALS_ADDRESS): Remove.
4125 (FRAME_NUM_ARGS): Remove.
4126 (FRAME_ARGS_SKIP): Remove.
4127 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4128 (m68k_gdbarch_init): Add gdbarch initializations for macros
4129 undefined in tm-m68k.h
4130
1c617db8
GS
41312002-06-26 Grace Sainsbury <graces@redhat.com>
4132
4133 * monitor.h: Add the function regname to monitor_ops
4134 structure. This way NUM_REGS does not have to be a constant.
4135 * monitor.c (monitor_fetch_register): Added support for regname
4136 function. The function is called if the array regnames is NULL.
4137 (monitor_store_register): Same.
da130f98
AC
4138 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4139 regnames array.
1c617db8
GS
4140 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4141 cpu32bug_cmds.regname to point to new function.
4142 * abug-rom.c (abug_regname): Same as above.
4143 (init_abug_cmds): Same.
4144 * dbug-rom.c (dbug_regname): Same as above.
4145 (init_dbug_cmds): Same.
4146 * remote-est.c (est_regname): Same.
4147 (init_est_cmds): Same.
4148 * rom68k-rom.c (rom68k_regname): Same.
4149 (init_rom68k_cmds): Same.
4150
ea9365bb
TT
41512002-06-25 Tom Tromey <tromey@redhat.com>
4152
4153 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4154
72cec141
AC
41552002-06-25 Andrew Cagney <cagney@redhat.com>
4156
4157 * infrun.c (stop_registers): Change variable's type to ``struct
4158 regcache'''.
4159 (xmalloc_inferior_status): Delete function.
4160 (free_inferior_status): Delete function.
4161 (normal_stop): Use regcache_cpy.
4162 (struct inferior_status): Change type of fields ``stop_registers''
4163 and ``registers'' to ``struct regcache''.
4164 (write_inferior_status_register): Use regcache_write.
4165 (save_inferior_status): Instead of calling
4166 xmalloc_inferior_status, allocate the inf_status buffer directly.
4167 Use regcache_dup_no_passthrough and regcache_dup to save the
4168 buffers.
4169 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4170 Replace the stop_registers regcache instead of overriding it. Use
4171 regcache_xfree. Instead of calling free_inferior_status, xfree
4172 the buffer directly.
4173 (discard_inferior_status): Use regcache_xfree. Instead of calling
4174 free_inferior_status, xfree the buffer directly.
4175 (build_infrun): Use regcache_xmalloc.
4176 (_initialize_infrun): Delete redundant call to build_infrun.
4177
4178 * Makefile.in (infcmd.o): Add $(regcache_h).
4179
4180 * infcmd.c: Include "regcache.h".
4181 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4182 obtain the address of `stop_registers' register buffer.
4183 (print_return_value): Ditto.
4184
4185 * inferior.h (struct regcache): Add opaque declaration.
4186 (stop_registers): Change variable's declared type to ``struct
4187 regcache''.
4188
defc6f8c
TT
41892002-06-24 Tom Tromey <tromey@redhat.com>
4190
c0e624e7
TT
4191 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4192 * target.c (initialize_targets): Fixed typo in
4193 trust-readonly-sections `show' documentation.
4194
defc6f8c
TT
4195 * main.c: Marked all strings with _().
4196
2b236d82
DH
41972002-06-24 Don Howard <dhoward@redhat.com>
4198
4199 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4200 that means max CORE_ADDR+1.
4201 (lookup_mem_region): Ditto.
4202 (mem_info_command): Ditto.
4203
942dc0e9
GS
42042002-06-24 Grace Sainsbury <graces@redhat.com>
4205
4206 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4207 (REGISTER_BYTES_OK): Remove.
4208 (REGISTER_BYTES): Remove.
4209 (STORE_STRUCT_RETURN): Remove.
4210 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4211 (STORE_RETURN_VALUE): Remove.
4212 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4213 (FRAME_CHAIN): Remove.
4214 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4215 (FRAME_SAVED_PC): Remove.
4216 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4217 (m68k_store_struct_return): Add.
4218 (m68k_deprecated_extract_return_value): Add.
4219 (m68k_deprecated_extract_struct_value_address): Add.
4220 (m68k_store_return_value): Add.
4221 (m68k_frame_chain): Add.
4222 (m68k_frameless_function_invocation): Add.
4223 (m68k_frame_saved_pc): Add.
4224 (m68k_gdbarch_init): added set_gdbarch calls for new
4225 functions and deleted macros.
4226
03c30d4d
TT
42272002-06-23 Tom Tromey <tromey@redhat.com>
4228
4229 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4230 (ALLDEPFILES): Likewise.
4231 (udiheaders): Removed.
4232 (udip2soc.o): Likewise.
4233 (udi2go32.o): Likewise.
4234 (udr.o): Likewise.
4235 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4236
37e71372
AC
42372002-06-22 Andrew Cagney <ac131313@redhat.com>
4238
06a6ac57
AC
4239 * infrun.c (_initialize_infrun): Delete unnecessary call to
4240 build_infrun.
4241
37e71372
AC
4242 * regcache.h: Update comments describing the regcache_cpy family
4243 of functions.
4244 (regcache_save, regcache_restore): Delete declaration.
4245 (regcache_save_no_passthrough): Delete declaration.
4246 (regcache_restore_no_passthrough): Delete declaration.
4247 * regcache.c (regcache_save): Delete function.
4248 (regcache_save_no_passthrough): Delete function.
4249 (regcache_restore): Delete function.
4250 (regcache_restore_no_passthrough): Delete function.
4251
78f6d055
AC
42522002-06-21 Andrew Cagney <ac131313@redhat.com>
4253
4254 * config/m68k/tm-m68k.h: Fix typo.
4255 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4256 (m68k_frame_init_saved_regs): Declare.
4257
78b119cb
JB
42582002-06-21 Jim Blandy <jimb@redhat.com>
4259
4260 Remove some vestiges of Harris 88k support.
4261 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4262 register numbering quirk.
4263 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4264 odd symbols occurring in Harris 88k ELF targets.
4265
0fbb3da7
TT
42662002-06-21 Tom Tromey <tromey@redhat.com>
4267
4268 * gdb_locale.h: New file.
4269 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4270 (defs_h): Added gdb_locale.h.
4271 * configure, config.in: Rebuilt.
4272 * configure.in (PACKAGE): Define.
4273 * defs.h: Include gdb_locale.h.
4274 * main.c (captured_main): Call setlocale, bindtextdomain,
4275 textdomain.
4276
456f8b9d
DB
42772002-06-21 Dave Brolley <brolley@redhat.com>
4278
4279 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4280 * config/frv/frv.mt: New file.
4281 * config/frv/tm-frv.h: New file.
4282 * configure.tgt: Support frv-*-*.
4283 * Makefile.in (frv-tdep.o): New target.
4284 * frv-tdep.c: New file.
4285 * NEWS: Mention frv.
4286
cdd463f9
DB
42872002-06-21 Dave Brolley <brolley@redhat.com>
4288
4289 * MAINTAINERS: Add self to "Write After Approval" list.
4290
5d3ed2e3
GS
42912002-06-21 Grace Sainsbury <graces@redhat.com>
4292
4293 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4294 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4295 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4296 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4297 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4298
4299 * m68k-tdep.c: Include arch-utils.h
4300 (m68k_register_raw_size): Add.
4301 (m68k_register_virtual_size): Add.
4302 (m68k_register_virtual_type): Add.
4303 (m68k_register_name): Add.
4304 (m68k_stack_align): Add.
4305 (m68k_register_byte): Add.
4306 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4307 tm-m68k.h.
4308
7f8e7424
GS
43092002-06-21 Grace Sainsbury <graces@redhat.com>
4310
a2c6a6d5 4311 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4312 m68k_find_saved_regs.
4313 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4314 references to it with frame->saved_regs.
7f8e7424
GS
4315 (m68k_gdbarch_init): Added function calls to initialize the
4316 gdbarch structure.
a2c6a6d5
GS
4317 (m68k_fix_call_dummy): Add.
4318 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4319 (CALL_DUMMY): Remove.
4320 (CALL_DUMMY_LENGTH): Remove.
4321 (CALL_DUMMY_START_OFFSET): Remove.
4322 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4323 (FIX_CALL_DUMMY): Remove.
4324 (PUSH_DUMMY_FRAME): Remove.
4325 (POP_FRAME): Remove.
7f8e7424 4326
f461f5cf
PM
43272002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4328
4329 * parse.c (parse_fprintf): New function used to avoid calls to
4330 fprintf in bison parser generated debug code.
4331 * parser-defs.h: Declaration of new parse_fprintf function.
4332 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4333 Set YYDEBUG to 1 by default.
4334 Set YYFPRINTF as parse_fprintf.
4335
7f0c12ed
ML
43362002-06-21 Michal Ludvig <mludvig@suse.cz>
4337
4338 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4339 encoding anymore.
4340 (pointer_encoding, enum ptr_encoding): New.
4341 (execute_cfa_program): Take care about pointer encoding.
4342 (dwarf2_build_frame_info): Only call parse_frame_info for
4343 .debug_frame and .eh_frame.
4344 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4345 fixed augmentation handling, added relative addressing,
4346 ignore duplicate FDEs. Added comments.
19d833a2 4347 * dwarf2cfi.c: Reindented.
7f0c12ed 4348
87c4a039
EZ
43492002-06-20 Elena Zannoni <ezannoni@redhat.com>
4350
4351 * event-top.c (command_handler): Don't use space_at_cmd_start
4352 unless there is sbrk() on the host. Assign time and space data
4353 to union fields of the appropriate length.
4354
1cf877ad
ML
43552002-06-20 Michal Ludvig <mludvig@suse.cz>
4356
4357 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4358 x86_64_register_name. Return type changed to 'const char *'.
4359 (x86_64_register_name2nr): Rename to x86_64_register_number.
4360 (x86_64_gdbarch_init): Update to reflect the change.
4361 * x86-64-tdep.h: Ditto.
4362 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4363 (supply_fpregset): Ditto.
4364
3fadccb3
AC
43652002-06-19 Andrew Cagney <cagney@redhat.com>
4366
4367 * regcache.h: Update copyright.
4368 (struct regcache, struct gdbarch): Add opaque declarations.
4369 (current_regcache): Declare global variable.
4370 (regcache_read, regcache_write): Add gdbarch parameter.
4371 (regcache_save, regcache_save_no_passthrough)
4372 (regcache_restore, regcache_restore_no_passthrough)
4373 (regcache_dup, regcache_dup_no_passthrough)
4374 (regcache_cpy, regcache_cpy_no_passthrough)
4375 (deprecated_grub_regcache_for_registers)
4376 (deprecated_grub_regcache_for_register_valid)
4377 (regcache_valid_p): Add function declarations.
4378
4379 * regcache.c: Update copyright.
4380 (regcache_descr_handle): New global variable.
4381 (struct regcache_descr): Define.
4382 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4383 (regcache_descr, xfree_regcache_descr): New functions.
4384 (struct regcache): Define.
4385 (regcache_xmalloc, regcache_xfree): New functions.
4386 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4387 (regcache_dup, regcache_dup_no_passthrough): New functions.
4388 (regcache_valid_p, regcache_read_as_address): New functions.
4389 (deprecated_grub_regcache_for_registers): New function.
4390 (deprecated_grub_regcache_for_register_valid): New function.
4391 (current_regcache): New global variable.
4392 (register_buffer): Add regcache parameter. Update calls.
4393 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4394 (read_register_gen, write_register_gen): Update register_buffer
4395 call. Test for legacy_p instead of gdbarch_register_read_p or
4396 gdbarch_register_write_p.
4397 (regcache_collect): Update register_buffer call.
4398 (build_regcache): Rewrite. Use deprecated grub functions.
4399 (regcache_save, regcache_save_no_passthrough): New functions.
4400 (regcache_restore, regcache_restore_no_passthrough): New
4401 functions.
4402 (_initialize_regcache): Create the regcache_data_handle. Swap
4403 current_regcache global variable.
4404
4405 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4406 parameter to regcache_read and regcache_write calls.
4407 (sh4_register_read): Ditto.
4408 (sh64_pseudo_register_read): Ditto.
4409 (sh64_register_read): Ditto.
4410 (sh_pseudo_register_write): Ditto.
4411 (sh4_register_write): Ditto.
4412 (sh64_pseudo_register_write): Ditto.
4413 (sh64_register_write): Ditto.
4414
4415 * defs.h (XCALLOC): Define.
4416
152d9db6
GS
44172002-06-19 Grace Sainsbury <graces@redhat.com>
4418
4419 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4420 * m68k-tdep.c (m68k_gdbarch_init): Added.
4421 (m68k_dump_tdep): Added.
4422
170911c7
DJ
44232002-06-19 Daniel Jacobowitz <drow@mvista.com>
4424
4425 * ada-lang.c (fill_in_ada_prototype): Update comment.
4426
2e4ebe70
DJ
44272002-06-19 Daniel Jacobowitz <drow@mvista.com>
4428
4429 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4430 MIPS_ABI_LAST.
4431 (mips_abi_string, mips_abi_strings): New.
4432 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4433 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4434 tdep->mips_abi_string. Honor mips_abi_string. Default to
4435 O32 if no ABI is found.
4436 (mips_dump_tdep): Use mips_abi_strings.
4437 (mips_abi_update): New function.
4438 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4439 ``set mips abi'' and ``show mips abi''. Check the size of
4440 mips_abi_strings.
4441
16775908
AC
44422002-06-19 Andrew Cagney <cagney@redhat.com>
4443
4444 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4445 constant.
4446
5051bfa4 44472002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4448
5051bfa4
JB
4449 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4450 current frame using only the first stack size adjustment. All
4451 subsequent size adjustments are not considered to be part of
4452 the "static" part of the current frame.
4453 Compute the address of the saved registers relative to the
4454 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4455 in use in this frame.
4456
56468235
DH
44572002-06-18 Don Howard <dhoward@redhat.com>
4458
4459 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4460 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4461 suggesting this solution.
4462
0b624158
AC
44632002-06-18 Andrew Cagney <ac131313@redhat.com>
4464
4465 * config/romp/xm-rtbsd.h: Delete file.
4466 * config/romp/rtbsd.mh: Delete file.
4467
221ea385
KS
44682002-06-18 Keith Seitz <keiths@redhat.com>
4469
4470 * breakpoint.c (condition_command): Post breakpoint_modify
4471 when a condition is added to an existing breakpoint.
4472 (commands_command): Likewise for commands.
4473 (set_ignore_count): Likewise for ignore counts.
4474 If no tty, do not simply return, still need to send event
4475 notification.
4476 (ignore_command): Only print a newline if the command came
4477 from a tty.
4478 Don't call breakpoints_changed, since this is now properly
4479 handled by set_ignore_count.
4480
5402eed1
AC
44812002-06-18 Andrew Cagney <cagney@redhat.com>
4482
4483 * MAINTAINERS: Note that cris-elf target can be compiled with
4484 -Werror.
4485 * cris-tdep.c (cris_register_name): Make return type constant.
4486 (cris_breakpoint_from_pc): Ditto.
4487
cc22880b
ML
44882002-06-18 Michal Ludvig <mludvig@suse.cz>
4489
4490 * frame.h (struct frame_info): Change type of context to
4491 'struct context'.
4492
fa88f677
AC
44932002-06-17 Andrew Cagney <cagney@redhat.com>
4494
4495 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4496 pointer.
4497 * gdbarch.h, gdbarch.c: Regenerate.
4498 * config/mips/tm-mips.h (mips_register_name): Update.
4499 * i386-tdep.h (i386_register_name): Update.
4500 * mips-tdep.c (mips_register_name): Update
4501 * alpha-tdep.c (alpha_register_name): Update.
4502 * arch-utils.c (legacy_register_name): Update.
4503 * arch-utils.h (legacy_register_name): Update.
4504 * avr-tdep.c (avr_register_name): Update.
4505 * ia64-tdep.c (ia64_register_name): Update.
4506 * i386-tdep.c (i386_register_name): Update.
4507 * sparc-tdep.c (sparc32_register_name): Update.
4508 (sparc64_register_name): Update.
4509 (sparclite_register_name): Update.
4510 (sparclet_register_name): Update.
4511 * sh-tdep.c (sh_generic_register_name): Update.
4512 (sh_sh_register_name): Update.
4513 (sh_sh3_register_name): Update.
4514 (sh_sh3e_register_name): Update.
4515 (sh_sh_dsp_register_name): Update.
4516 (sh_sh3_dsp_register_name): Update.
4517 (sh_sh4_register_name): Update.
4518 (sh_sh64_register_name): Update.
4519 * s390-tdep.c (s390_register_name): Update.
4520 * rs6000-tdep.c (rs6000_register_name): Update.
4521 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4522 (ns32k_register_name_32382): Update.
4523 * d10v-tdep.c (d10v_ts2_register_name): Update.
4524 (d10v_ts3_register_name): Update.
4525 * xstormy16-tdep.c (xstormy16_register_name): Update.
4526 * vax-tdep.c (vax_register_name): Update.
4527 * v850-tdep.c (v850_register_name): Update.
4528 * m68hc11-tdep.c (m68hc11_register_name): Update.
4529 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4530 (am33_register_name): Update.
4531
ea1e7ef6
GS
45322002-06-17 Grace Sainsbury <graces@redhat.com>
4533
4534 * m68k-tdep.c: Reindented.
4535
9b02dd1b
AC
45362002-06-17 Andrew Cagney <ac131313@redhat.com>
4537
4538 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4539 list of predefined types.
4540
8758dec1
MK
45412002-06-16 Mark Kettenis <kettenis@gnu.org>
4542
b6197528
MK
4543 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4544 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4545 REGISTER_CONVERT_TO_RAW): Remove defines.
4546 (i386_register_virtual_type, i386_register_convertible,
4547 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4548 Remove prototypes.
4549 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4550 macros mentioned above.
4551
82b47e62
MK
4552 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4553 (i386lynx_saved_pc_after_call): Remove prototype.
4554 * i386ly-tdep.c: Include "i386-tdep.h".
4555 (i386lynx_saved_pc_after_call): Make static. Use
4556 read_memory_nobpt instead of read_memory. Use
4557 read_memory_unsigned_integer instead of read_memory_integer.
4558 (i386lynx_init_abi): New function.
4559 (i386lynx_coff_osabi_sniffer): New function.
4560 (_initialize_i386bsd_tdep): New function.
4561
8758dec1
MK
4562 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4563 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4564 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4565 (i386_fix_call_dummy): Remove prototype.
4566 * i386-tdep.c (i386_call_dummy_words): New variable.
4567 (i386_gdbarch_init): Adjust for removal of the
4568 macros mentioned above.
4569
e9e68a56
AC
45702002-06-15 Andrew Cagney <ac131313@redhat.com>
4571
4572 * command.h (add_setshow_auto_boolean_cmd): Replace
4573 add_set_auto_boolean_cmd.
4574 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4575 add_set_auto_boolean_cmd.
4576 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4577 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4578 mask-address'' command.
4579 (show_mask_address): Add cmd parameter.
4580 * remote.c (add_packet_config_cmd): Update. Change type of
4581 set_func and show_func to cmd_sfunc_ftype.
4582 (_initialize_remote): Update `set remote Z-packet'
4583 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4584 (show_remote_protocol_e_packet_cmd): Ditto.
4585 (show_remote_protocol_E_packet_cmd): Ditto.
4586 (show_remote_protocol_P_packet_cmd): Ditto.
4587 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4588 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4589 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4590 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4591 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4592 (show_remote_protocol_Z_packet_cmd): Ditto.
4593 (show_remote_protocol_binary_download_cmd): Ditto.
4594 (show_remote_cmd): Pass NULL to all of above.
4595
fc08ec52
MK
45962002-06-15 Mark Kettenis <kettenis@gnu.org>
4597
4598 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4599 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4600 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4601 POP_FRAME): Remove defines.
4602 (i386_push_arguments, i386_store_struct_return,
4603 i386_extract_return_value, i386_store_return_value,
4604 i386_extract_struct_value_address, i386_push_dummy_frame,
4605 i386_pop_frame): Renove prototypes.
4606 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4607 macros mentioned above.
4608
e707bbc2
AC
46092002-06-15 Andrew Cagney <ac131313@redhat.com>
4610
4611 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4612 add_set_boolean_cmd.
4613 (add_setshow_cmd): New function.
4614 * command.h (add_setshow_boolean_cmd): Replace
4615 add_set_boolean_cmd.
4616 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4617 and ``set rdiromatzero''.
4618 * maint.c (_initialize_maint_cmds): Update commented out code.
4619 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4620 * target.c (initialize_targets): Update `set
4621 trust-readonly-sections'.
4622 * remote.c (_initialize_remote): Update `set remotebreak'.
4623
42fdc8df
MK
46242002-06-15 Mark Kettenis <kettenis@gnu.org>
4625
93924b6b
MK
4626 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4627 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4628 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4629 fit into multi-arch framework.
4630 (i386_breakpoint_from_pc): New function.
4631 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4632 above.
4633
42fdc8df
MK
4634 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4635 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4636 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4637 (i386_frameless_function_invocation, i386_frame_num_args,
4638 i386_frame_init_saved_regs): Remove prototypes.
4639 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4640 macros mentioned above.
4641
9773a94b
AC
46422002-06-15 Andrew Cagney <ac131313@redhat.com>
4643
4644 * cli/cli-decode.c (set_cmd_cfunc): Update.
4645 (set_cmd_sfunc): Update.
4646 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4647 (set_cmd_sfunc, set_cmd_cfunc): Update.
4648 * cli/cli-decode.h: Update.
4649
6e157172
MK
46502002-06-15 Mark Kettenis <kettenis@gnu.org>
4651
4652 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4653 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4654
7f19b9a2
AC
46552002-06-15 Andrew Cagney <ac131313@redhat.com>
4656
4657 * defs.h (auto_boolean): Declare enum.
4658 * command.h (cmd_auto_boolean): Delete enum.
4659 * mips-tdep.c (mask_address_var): Update.
4660 (mips_mask_address_p): Update.
4661 (show_mask_address): Update.
4662 * remote.c (struct packet_config): Update.
4663 (update_packet_config): Update.
4664 (show_packet_config_cmd): Update.
4665 (packet_ok): Update.
4666 (add_packet_config_cmd): Update.
4667 (_initialize_remote):
4668 * command.h: Update.
4669 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4670 (do_setshow_command): Update.
4671 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4672 * cli/cli-decode.h: Update.
4673
1cf88de5
MK
46742002-06-15 Mark Kettenis <kettenis@gnu.org>
4675
22ba8cf2
MK
4676 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4677 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4678 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4679 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4680 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4681 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4682
762c5349
MK
4683 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4684 list of DJGPP COFF targets.
4685
091198bb
MK
4686 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4687 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4688 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4689 (FP0_REGNUM): Remove define.
4690 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4691 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4692 (i386_register_virtual_size): Remove protoype.
4693 * i386-tdep.c (i386_register_virtual_size): Removed.
4694 (i386_extract_return_value, i386_store_return_value): Use
4695 FP0_REGNUM instead of NUM_FREGS to determine whether the
4696 floating-point registers are available.
4697 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4698 Adjust for removal of macros mentioned above.
4699
47002002-06-15 Mark Kettenis <kettenis@gnu.org>
4701
fcc9bf01
MK
4702 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4703 comments.
4704 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4705 Remove prototypes.
4706 (supply_gregset, fill_gregset): Remove use of register keyword and
4707 remove declaration for regmap. Use I386_NUM_GREGS instead of
4708 NUM_REGS and NUM_FREGS.
4709 (FPREGSET_FSAVE_OFFSET): Remove.
4710 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4711 NUM_FREGS to determine whether the floating-point registers are
4712 available.
4713
65e78234
MK
4714 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4715 gnu_store_registers): Replace usage of NUM_GREGS with
4716 I386_NUM_GREGS.
4717
98df6387
MK
4718 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4719 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4720 usage of NUM_GREGS with I386_NUM_GREGS.
4721
099a9414
MK
4722 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4723
57976e88
MK
4724 * i386bsd-nat.c: Include "i386-tdep.h".
4725 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4726 I386_NUM_GREGS.
4727
b335f4a6
MK
4728 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4729 and associated comment. They no longer make any sense, since we
4730 don't use this file anymore on Linux.
4731
1cf88de5
MK
4732 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4733 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4734 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4735 elements in these arrays.
4736 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4737 MAX_NUM_REGS.
4738
daa66587
MK
47392002-06-15 Mark Kettenis <kettenis@gnu.org>
4740
4741 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4742 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4743
26e9b323
AC
47442002-06-14 Andrew Cagney <cagney@redhat.com>
4745
4746 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4747 EXTRACT_RETURN_VALUE.
4748 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4749 EXTRACT_STRUCT_VALUE_ADDRESS.
4750 * gdbarch.h, gdbarch.c: Regenerate.
4751
4752 * values.c (value_being_returned): Handle
4753 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4754 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4755
4756 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4757 * arm-tdep.c (arm_gdbarch_init): Update.
4758 * avr-tdep.c (avr_gdbarch_init): Update.
4759 * cris-tdep.c (cris_gdbarch_init): Update.
4760 * d10v-tdep.c (d10v_gdbarch_init): Update.
4761 * ia64-tdep.c (ia64_gdbarch_init): Update.
4762 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4763 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4764 * s390-tdep.c (s390_gdbarch_init): Update.
4765 * sh-tdep.c (sh_gdbarch_init): Update.
4766 * s390-tdep.c (s390_gdbarch_init): Update.
4767 * sparc-tdep.c (sparc_gdbarch_init): Update.
4768 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4769 * v850-tdep.c (v850_gdbarch_init): Update.
4770 * vax-tdep.c (vax_gdbarch_init): Update.
4771 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4772 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4773
4774 * config/arc/tm-arc.h: Update.
4775 * config/d30v/tm-d30v.h: Update.
4776 * config/fr30/tm-fr30.h: Update.
4777 * config/h8300/tm-h8300.h: Update.
4778 * config/h8500/tm-h8500.h: Update.
4779 * config/i386/tm-i386.h: Update.
4780 * config/i386/tm-ptx.h: Update.
4781 * config/i386/tm-symmetry.h: Update.
4782 * config/i960/tm-i960.h: Update.
4783 * config/m32r/tm-m32r.h: Update.
4784 * config/m68k/tm-delta68.h: Update.
4785 * config/m68k/tm-linux.h: Update.
4786 * config/m68k/tm-m68k.h: Update.
4787 * config/m88k/tm-m88k.h: Update.
4788 * config/mcore/tm-mcore.h: Update.
4789 * config/mips/tm-mips.h: Update.
4790 * config/mn10200/tm-mn10200.h: Update.
4791 * config/pa/tm-hppa.h: Update.
4792 * config/pa/tm-hppa64.h: Update.
4793 * config/sparc/tm-sp64.h: Update.
4794 * config/sparc/tm-sparc.h: Update.
4795 * config/sparc/tm-sparclet.h: Update.
4796 * config/z8k/tm-z8k.h: Update.
4797
5179e78f
AC
47982002-06-14 Andrew Cagney <cagney@redhat.com>
4799
4800 * Makefile.in (i386_linux_tdep_h): Define.
4801 (i386_tdep_h, i387_tdep_h): Define.
4802 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4803 $(i386_tdep_h) and $(i387_tdep_h).
4804 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4805
8201327c
MK
48062002-06-14 Mark Kettenis <kettenis@gnu.org>
4807
edf393ac
MK
4808 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4809 Already covered by the default.
4810
896fb97d
MK
4811 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4812 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4813 (i386_gdbarch_init): Initialize long_double_format and long_double
4814 bit.
4815
8201327c
MK
4816 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4817 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4818 Move these to ...
4819 * config/i386/i386sol2.mh: ... here.
4820 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4821 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4822 (SIGCONTEXT_PC_OFFSET): Remove define.
4823 (IN_SIGTRAMP): Remove define.
4824 * i386-sol2-tdep.c: New file.
4825
4826 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4827 * config/i386/tm-i386nw.h: Removed.
4828
4829 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4830 USE_STRUCT_CONVENTION): Remove defines.
4831 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4832 (get_longjmp_target): Remove prototype.
4833 (IN_SIGTRAMP): Remove define.
4834 (i386bsd_in_sigtramp): Remove prototype.
4835 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4836 function. Update comment accordingly
4837 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4838 (FRAME_SAVED_PC): Remove define.
4839 (i386bsd_frame_saved_pc): Remove prototype.
4840 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4841 GET_LONGJMP_TARGET): Remove defines.
4842 (get_longjmp_target): Remove prototype.
4843 (IN_SIGTRAMP): Remove define.
4844 (i386bsd_in_sigtramp): Remove prototype.
4845 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4846 function. Update comment accordingly
4847 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4848 (FRAME_SAVED_PC): Remove define.
4849 (i386bsd_frame_saved_pc): Remove prototype.
4850 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4851 Remove prototype.
4852 (USE_STRUCT_CONVENTION): Remove prototype.
4853 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4854 declaration.
4855 (_initialize_i386bsd_nat): Revise logic to determine some
4856 constants at compile time when compiling a native GDB. Warn if
4857 things don't match up with what we expect.
4858 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4859 Remove variables.
4860 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4861 to use date stored in `struct gdbarch_tdep'.
4862 (i386bsd_sigcontext_offset): Remove varaible.
4863 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4864 stored in `struct gdbarch_tdep'.
4865 (i386bsd_frame_saved_pc): Make static.
4866 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4867 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4868 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4869 i386fbsd4_sc_pc_offset): New variables.
4870 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4871 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4872 functions.
4873 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4874 functions.
4875 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4876 Modify the value of i386fbsd_sigtramp_start and
4877 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4878 i386fbsd_sigtramp_end.
4879 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4880 function.
4881
4882 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4883 define to i386-linux-tdep.h.
4884 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4885 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4886 defines.
4887 (i386_linux_register_name, i386_linux_register_byte,
4888 i386_linux_register_raw_size): Remove prototypes.
4889 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4890 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4891 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4892 TARGET_WRITE_PC): Remove defines.
4893 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4894 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4895 i386_linux_write_pc): Remove prototypes.
4896 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4897 (get_longjmp_target): Remove prototype.
4898 * i386-linux-tdep.h: New file.
4899 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4900 * i386-linux-tdep.c: Include "i386-tdep.h" and
4901 "i386-linux-tdep.h".
4902 (i386_linux_register_name, i386_linux_register_byte,
4903 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4904 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4905 Make static.
4906 (i386_linux_init_abi): New function.
4907 (_initialize_i386_linux_tdep): New function.
4908
4909 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4910 (i386_saved_pc_after_call): Remove prototype.
4911 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4912 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4913 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4914 (i386_register_name, i386_stab_reg_to_regnum,
4915 i386_dwarf_reg_to_regnum): Remove prototypes.
4916 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4917 SIZEOF_SSE_REGS): Remove defines.
4918 (REGISTER_BYTES): Remove define.
4919 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4920 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4921 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4922 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4923 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4924 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4925 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4926 (get_longjmp_target): Remove prototype.
4927 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4928 (sigtramp_saved_pc): Remove define.
4929 (i386v4_sigtramp_saved_pc): Remove prototype.
4930 * config/i386/tm-go32.h (FRAME_CHAIN,
4931 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4932 (i386go32_frame_saved_pc): Remove prototype.
4933 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4934 (get_longjmp_target): Remove prototype.
4935 * i386-tdep.h: Include "osabi.h".
4936 (enum i386_abi): Removed.
4937 (enum struct_return): New enum.
4938 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4939 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4940 sc_pc_offset members.
4941 (i386_gdbarch_register_os_abi): Remove prototype.
4942 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4943 I386_SSE_NUM_REGS): New defines.
4944 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4945 I386_SSE_SIZEOF_REGS): New defines.
4946 (i386_register_name, i386_register_byte, i386_register_raw_size):
4947 New prototypes.
4948 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4949 (i386bsd_sigtramp_saved_pc): New prototype.
4950 * i386-tdep.c: Don't include "elf-bfd.h".
4951 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4952 i386_frame_chain, i386_saved_pc_after_call): Make static.
4953 (i386_frame_saved_pc): Rewrite to call architecture dependent
4954 function to deal with signal handlers. Make static.
4955 (i386go32_frame_saved_pc): Removed.
4956 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4957 Removed.
4958 (i386_get_longjmp_target): New function.
4959 (default_struct_convention, pcc_struct_convention,
4960 reg_struct_convention, valid_conventions, struct_convention): New
4961 variables.
4962 (i386_use_struct_convention): New function.
4963 (i386v4_sigtramp_saved_pc): Renamed to
4964 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4965 (i386_pc_in_sigtramp): New function.
4966 (i386_abi_names): Removed.
4967 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4968 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4969 Removed.
4970 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4971 i386_gdbarch_register_os_abi): Removed.
4972 (struct i386_abi_handler): Removed.
4973 (i386_abi_handler_list): Removed.
4974 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4975 functions.
4976 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4977 i386_nw_init_abi): New functions.
4978 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4979 Use set_gdbarch_xxx() calls instead of relying on macros for a
4980 number of calls.
4981 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4982 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4983 Register the various architecture variants defined in this file.
4984
ad2f7632
DJ
49852002-06-14 Daniel Jacobowitz <drow@mvista.com>
4986
4987 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4988 (struct main_type): Remove arg_types member. Update comments for
4989 struct field.
4990 (TYPE_ARG_TYPES): Remove.
4991 (TYPE_FN_FIELD_ARGS): Update.
4992 (smash_to_method_type): Update prototype.
4993
4994 * c-typeprint.c (cp_type_print_method_args): Take method type
4995 instead of argument list. Use new argument layout. Simplify.
4996 (c_type_print_args): Use new argument layout. Simplify.
4997 (c_type_print_base): Update call to cp_type_print_method_args.
4998 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4999 argument; use die->type instead. Update call to
5000 smash_to_method_type.
5001 (read_structure_scope): Update call to dwarf2_add_member_fn.
5002 * gdbtypes.c (allocate_stub_method): Update comment.
5003 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5004 Use new argument layout.
5005 (check_stub_method): Use new argument layout. Don't count
5006 void as an argument.
5007 (print_arg_types): Update comments. Use new argument layout.
5008 (recursive_dump_type): Don't print arg_types member.
5009 * hpread.c (hpread_read_struct_type): Use new argument layout.
5010 (fixup_class_method_type): Likewise.
5011 (hpread_type_lookup): Likewise.
5012 * stabsread.c (read_type): Update calls to read_args and
5013 smash_to_method_type.
5014 (read_args): Use new argument layout. Simplify.
5015 * valops.c (typecmp): Use new argument layout. Update parameters
5016 and comments. Simplify.
5017 (hand_function_call): Use new argument layout.
5018 (search_struct_method): Update call to typecmp.
5019 (find_overload_match): Use new argument layout.
5020
6da02953
DJ
50212002-06-13 Daniel Jacobowitz <drow@mvista.com>
5022
5023 * NEWS: Mention multithreaded debug support for gdbserver.
5024
519b2366
DJ
50252002-06-13 Daniel Jacobowitz <drow@mvista.com>
5026
5027 * MAINTAINERS: Mention NEWS.
5028
6c0d6680
DJ
50292002-06-13 Daniel Jacobowitz <drow@mvista.com>
5030
5031 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5032 (struct mips_objfile_private, compare_pdr_entries): New.
5033 (non_heuristic_proc_desc): Read the ".pdr" section if it
5034 is present.
5035
6529d2dd
AC
50362002-06-12 Andrew Cagney <ac131313@redhat.com>
5037
5038 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5039 (arm_debug): New static variable.
5040 (_initialize_arm_tdep): Add ``set debug arm'' command.
5041
26216b98
AC
50422002-06-12 Andrew Cagney <ac131313@redhat.com>
5043
5044 * Makefile.in (sim_arm_h): Define.
5045 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5046 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5047 (arm_register_sim_regno): New function, map an internal REGNUM
5048 onto a simulator register number.
5049 (arm_gdbarch_init): Set register_sim_regno.
5050
814b3ba0
AH
50512002-06-09 Aldy Hernandez <aldyh@redhat.com>
5052
5053 * MAINTAINERS: Add self.
5054
475b0867
JB
50552002-06-11 Jim Blandy <jimb@redhat.com>
5056
919d772c
JB
5057 * source.c (source_info): Mention whether the symtab has
5058 information about preprocessor macros.
5059
475b0867
JB
5060 Call the command `info macro', not `show macro'.
5061 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5062 Fix error message.
5063 (_initialize_macrocmd): Register `info_macro_command' in
5064 `infolist', not `showlist'.
5065
9e364162
DJ
50662002-06-11 Daniel Jacobowitz <drow@mvista.com>
5067
5068 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5069 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5070 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5071 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5072 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5073 unconditionally.
5074 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5075 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5076 (_initialize_mips_tdep): Remove dead code.
5077 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5078 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5079 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5080 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5081 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5082 MIPS_LAST_FP_ARG_REGNUM): Remove.
5083
23aa4c72
ML
50842002-06-11 Michal Ludvig <mludvig@suse.cz>
5085
5086 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5087 (unwind_tmp_obstack_free, parse_frame_info)
5088 (update_context, cfi_read_fp, cfi_write_fp)
5089 (cfi_frame_chain, cfi_init_extra_frame_info)
5090 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5091 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5092
70eb15a4
CV
50932002-06-11 Corinna Vinschen <vinschen@redhat.com>
5094
5095 * v850-tdep.c (v850_type_is_scalar): New function.
5096 (v850_use_struct_convention): Match current gcc implementation
5097 as close as possible.
5098 (v850_push_arguments): Fix stack_offset handling. Don't write
5099 struct_addr into register. This is done by v850_store_struct_return.
5100 (v850_extract_return_value): Care for structs.
5101 (v850_store_return_value): Ditto.
5102 (v850_store_struct_return): Actually write address.
5103
482a4d06
ML
51042002-06-11 Michal Ludvig <mludvig@suse.cz>
5105
5106 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5107 without debug information too.
5108
d855c300
AC
51092002-06-10 Andrew Cagney <ac131313@redhat.com>
5110
5111 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5112 Make multi-arch pure.
5113 * gdbarch.h, gdbarch.c: Re-generate.
5114 * arm-tdep.c (arm_print_float_info): Update.
5115 * arch-utils.h (default_print_float_info): Update.
5116 * arch-utils.c (default_print_float_info): Update.
5117 * infcmd.c (float_info): Update call.
5118
dd12a101
AC
51192002-06-10 Andrew Cagney <ac131313@redhat.com>
5120
5121 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5122 the front of the initialize list.
5123
101dcfbe
AC
51242002-06-10 Andrew Cagney <ac131313@redhat.com>
5125
5126 * infrun.c (struct inferior_status): Replace fields
5127 selected_frame_address and selected_level with field
5128 selected_frame_id.
5129 (save_inferior_status): Update. Use get_frame_id.
5130 (struct restore_selected_frame_args): Delete.
5131 (restore_selected_frame): Update. Use frame_find_by_id.
5132 (restore_inferior_status): Update.
5133
5134 * breakpoint.h (struct breakpoint): Change type of
5135 watchpoint_frame to frame_id.
5136 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5137 call to get_current_frame.
5138 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5139 get_current_frame.
5140 (watchpoint_check): Use frame_find_by_id.
5141
5142 * frame.h (record_selected_frame): Delete declaration.
5143 * stack.c (record_selected_frame): Delete function.
5144
5145 * frame.h (struct frame_id): Define.
5146 (get_frame_id): Declare.
5147 (frame_find_by_id): Declare.
5148 * frame.c (frame_find_by_id): New function.
5149 (get_frame_id): New function.
5150
304270b6
AV
51512002-06-10 Andrey Volkov <avolkov@transas.com>
5152
5153 * ser-e7kpc.c: Fix duplicated define and call of
5154 _initialize_ser_e7000pc
5155
2f2cf184
DJ
51562002-06-09 Daniel Jacobowitz <drow@mvista.com>
5157
5158 * signals/signals.c (target_signal_from_host): Fix #ifdef
5159 SIGRTMIN case.
5160 (do_target_signal_to_host): Likewise.
5161
caaa3122
DJ
51622002-06-09 Daniel Jacobowitz <drow@mvista.com>
5163
5164 * mips-tdep.c (mips_find_abi_section): New function.
5165 (mips_gdbarch_init): Call it.
5166
6ac5df3a
MK
51672002-06-09 Mark Kettenis <kettenis@gnu.org>
5168
5169 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5170 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5171 after Andrew's 2002-06-08 gdbarch change.
5172
82ea117a
MK
51732002-06-09 Mark Kettenis <kettenis@gnu.org>
5174
5175 * i386-linux-nat.c (suppy_gregset): Don't supply
5176 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5177 register cache.
5178 (fill_gregset): Don't fetch it under the same circumstances.
5179
3c25f8c7
AC
51802002-06-09 Andrew Cagney <cagney@redhat.com>
5181
5182 * Makefile.in (callback_h): Define.
5183 (remote_sim_h): Update path to remote-sim.h.
5184 (remote-rdp.o): Add $(callback_h).
5185 (remote-sim.o): Use $(callback_h).
5186 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5187 * remote-rdp.c: Include "gdb/callback.h".
5188
1029b7fa
MK
51892002-06-09 Mark Kettenis <kettenis@gnu.org>
5190
5191 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5192 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5193
616675d3
AC
51942002-06-08 Andrew Cagney <ac131313@redhat.com>
5195
a3efda28
AC
5196 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5197 * rdi-share/serpardr.c: Ditto.
5198 * rdi-share/unixcomm.c: Ditto.
5199 * rdi-share/serdrv.c: Ditto.
5200 * rdi-share/hostchan.h: Ditto.
5201 * rdi-share/hostchan.c: Ditto.
5202 * rdi-share/host.h: Ditto.
5203 * rdi-share/devsw.c: Ditto.
5204
c5f10366
AC
5205 * objfiles.h: Change type of obj_private to void pointer.
5206 * pa64solib.c: Update copyright. Don't include "assert.h", use
5207 strcmp instead of STREQ, use LONGEST, do not use PTR
5208 * somsolib.c: Ditto.
5209
616675d3
AC
5210 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5211 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5212 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5213
e4b415d9
AC
52142002-06-08 Andrew Cagney <ac131313@redhat.com>
5215
5216 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5217 (default_get_saved_register): Delete function.
5218 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5219 generic_unwind_get_saved_register.
5220 * gdbarch.h, gdbarch.c: Re-generate.
5221
ca0d0b52
AC
52222002-06-08 Andrew Cagney <ac131313@redhat.com>
5223
5224 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5225 generic_func_frame_chain_valid.
5226 * gdbarch.h, gdbarch.c: Re-generate.
5227 * blockframe.c (generic_func_frame_chain_valid): Only check
5228 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5229 passing FP to PC_IN_CALL_DUMMY.
5230 Fix PR gdb/360.
5231
76860b5f
AC
52322002-06-08 Andrew Cagney <ac131313@redhat.com>
5233
5234 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5235 (register_gdbarch_data): Initialize init_p.
5236 (gdbarch_data): Initialize data pointer using the init function.
5237 (init_gdbarch_data): Delete function.
5238 (gdbarch_update_p): Update.
5239 (initialize_non_multiarch): Update.
5240 (struct gdbarch): Add field initialized_p.
5241 * gdbarch.h, gdbarch.c: Re-generate.
5242
8dda9770
ML
52432002-06-07 Michal Ludvig <mludvig@suse.cz>
5244
5245 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5246 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5247 better do the things actually here.
5248 * x86-64-tdep.c (x86_64_register_name2nr): New.
5249 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5250 (x86_64_gdbarch_init): Respect the above change.
5251 * x86-64-tdep.h (x86_64_register_name2nr)
5252 (x86_64_register_nr2name): Add prototypes.
5253 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5254
3d79a47c
MS
52552002-06-06 Michael Snyder <msnyder@redhat.com>
5256
7bd91a28
MS
5257 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5258 Delete extra braces and re-indent.
5259 (d10v_store_return_value): Char return values
3d79a47c
MS
5260 must be shifted over by one byte in R0.
5261 (d10v_extract_return_value): Delete extra braces, re-indent.
5262
095a4c96
EZ
52632002-06-06 Elena Zannoni <ezannoni@redhat.com>
5264
5265 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5266 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5267 (d10v_integer_to_address): Rewrite.
5268 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5269 the d10v specific functions which take care of converting to the
5270 correct space.
5271
e8a77ca4
EZ
52722002-06-06 Elena Zannoni <ezannoni@redhat.com>
5273
5274 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5275 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5276
4f2e4a4f
AC
52772002-06-02 Andrew Cagney <ac131313@redhat.com>
5278
5279 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5280 includes.
5281 * config/tm-linux.h: Ditto.
5282 * config/alpha/tm-alphalinux.h: Ditto.
5283 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5284 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5285 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5286 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5287 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5288 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5289 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5290 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5291 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5292 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5293 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5294 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5295 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5296 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5297 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5298 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5299 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5300 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5301 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5302 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5303 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5304 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5305 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5306 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5307 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5308 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5309 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5310 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5311 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5312 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5313 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5314 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5315 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5316 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5317 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5318 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5319 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5320
ae2ab2ce
AS
53212002-05-04 Aidan Skinner <aidan@velvet.net>
5322
5323 * ada-exp.tab.c: New file
5324 * ada-exp.y: New file
5325 * ada-lang.c: New file
5326 * ada-lang.h: New file
5327 * ada-lex.c: New file
5328 * ada-lex.l: New file
5329 * ada-tasks.c: New file
5330 * ada-typeprint.c: New file
5331 * ada-valprint.c: New file
5332
0ddd0135
JT
53332002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5334
5335 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5336 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5337
750fbacc
JT
53382002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5339
5340 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5341 insetead of ppc-linux-tdep.o.
5342 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5343 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5344
df94e18a
AC
53452002-06-02 Andrew Cagney <ac131313@redhat.com>
5346
5347 2002-05-07 Christian Groessler <chris@groessler.org>
5348 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5349 bit register contents for little endian hosts.
5350
1a38ab75
AC
53512002-06-01 Andrew Cagney <ac131313@redhat.com>
5352
5353 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5354 any maintainer.
5355
8b1632ac
AC
53562002-06-01 Andrew Cagney <ac131313@redhat.com>
5357
5358 * gdbarch.h: Regenerate.
5359
627054c8
AC
53602002-06-01 Andrew Cagney <ac131313@redhat.com>
5361
5362 * MAINTAINERS: Add everyone to write-after-approval list.
5363
4f460812
AC
53642002-06-01 Andrew Cagney <ac131313@redhat.com>
5365
5366 * stack.c (frame_info): Use frame_register_unwind instead of
5367 saved_regs. Mention when the SP is on the stack or in a register.
5368
5369 * frame.h (frame_register_unwind_ftype): Define. Document.
5370 (struct frame_info): Add field register_unwind and
5371 register_unwind_cache.
5372 (frame_register_unwind): Declare.
5373 (generic_unwind_get_saved_register): Declare.
5374
5375 * frame.c (frame_register_unwind): New function.
5376 (generic_unwind_get_saved_register): New function.
5377
5378 * blockframe.c (generic_call_dummy_register_unwind): New function.
5379 (frame_saved_regs_register_unwind): New function.
5380 (set_unwind_by_pc): New function.
5381 (create_new_frame): New function.
5382 (get_prev_frame): New function.
5383
de888f76
AC
53842002-05-30 Andrew Cagney <ac131313@redhat.com>
5385
5386 * a29k-share/: Delete directory.
5387 * remote-vx29k.c: Delete file.
5388
2f2c3626
JT
53892002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5390
5391 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5392 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5393
9ce5c36a
JT
53942002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5395
5396 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5397 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5398 (sparc64nbsd-nat.o)
5399 (sparcnbsd-nat.o)
5400 (sparcnbsd-tdep.o): New dependency lists.
5401 * NEWS: Note new UltraSPARC NetBSD native configuration.
5402 * configure.host (sparc64-*-netbsd*): New host.
5403 * configure.tgt (sparc-*-netbsdelf*)
5404 (sparc-*-netbsd*): Set gdb_target to nbsd.
5405 (sparc64-*-netbsd*): New target.
5406 * sparc64nbsd-nat.c: New file.
5407 * sparcnbsd-nat.c: New file.
5408 * sparcnbsd-tdep.c: New file.
5409 * sparcnbsd-tdep.h: New file.
5410 * config/sparc/nbsd.mt: New file.
5411 * config/sparc/nbsd64.mh: New file.
5412 * config/sparc/nbsd64.mt: New file.
5413 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5414 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5415 (HOST_IPC): Remove.
5416 * config/sparc/nbsdaout.mt: Remove.
5417 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5418 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5419 (HOST_IPC): Remove.
5420 * config/sparc/nbsdelf.mt: Remove.
5421 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5422 sparc-nat.c compatiblity defines.
5423 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5424 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5425 * config/sparc/tm-nbsd64.h: New file.
5426 * config/sparc/tm-nbsdaout.h: Remove.
5427 * config/sparc/xm-nbsd.h: Remove.
5428
ef3cf062
JT
54292002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5430
5431 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5432 * sparc-tdep.c: Include osabi.h.
5433 (gdbarch_tdep): Add osabi member.
5434 (_initialize_sparc_tdep): Use gdbarch_register.
5435 (sparc_gdbarch_init): Use generic OS ABI framework.
5436 (sparc_dump_tdep): New function.
5437
ee8ff470
KB
54382002-05-30 Kevin Buettner <kevinb@redhat.com>
5439
5440 * corefile.c (do_captured_read_memory_integer): Return non-zero
5441 result.
5442 (safe_read_memory_integer): Copy result of memory read when
5443 status is non-zero. Also, add comments.
5444
7b112f9c
JT
54452002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5446
5447 * Makefile.in (ppc_tdep_h): Define.
5448 (ppc-linux-nat.o)
5449 (ppc-linux-tdep.o)
5450 (rs6000-tdep.o): Use $(ppc_tdep_h).
5451 (ppc-sysv-tdep.o)
5452 (ppcnbsd-nat.o)
5453 (ppcnbsd-tdep.o): New dependency lists.
5454 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5455 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5456 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5457 (ppc_sysv_abi_broken_use_struct_convention)
5458 (ppc_sysv_abi_use_struct_convention)
5459 (ppc_sysv_abi_push_arguments): Move to...
5460 * ppc-sysv-tdep.c: ...here.
5461 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5462 * rs6000-tdep.c (process_note_abi_tag_sections)
5463 (get_elfosabi): Remove.
5464 (rs6000_gdbarch_init): Use generic OS ABI framework.
5465 (rs6000_dump_tdep): New function.
5466 (_initialize_rs6000_tdep): Use gdbarch_register.
5467 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5468 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5469 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5470 of ppc-linux-tdep.o.
5471 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5472 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5473 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5474 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5475 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5476 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5477
480dd42a
JB
54782002-05-29 Jim Blandy <jimb@redhat.com>
5479
5480 * macroscope.c (default_macro_scope): Put `void' in empty argument
5481 list.
5482
4182591f
AC
54832002-05-29 Andrew Cagney <ac131313@redhat.com>
5484
5485 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5486 * arch-utils.c: Include "sim-regno.h".
5487 * gdbarch.sh: Don't include "sim-regno.h".
5488 * gdbarch.h, gdbarch.c: Regenerate.
5489 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5490 here.
5491 * arch-utils.h (legacy_register_sim_regno): To here.
5492 * remote-sim.c (legacy_register_sim_regno): Move function from
5493 here.
5494 * arch-utils.c (legacy_register_sim_regno): To here.
5495
8238d0bf
AC
54962002-05-28 Andrew Cagney <ac131313@redhat.com>
5497
5498 * sim-regno.h: New file.
5499 * Makefile.in (sim_regno_h): Define.
5500 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5501 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5502 (legacy_register_sim_regno): New function.
5503 (one2one_register_sim_regno): New function.
5504 (gdbsim_fetch_register): Rewrite.
5505 (gdbsim_store_register): Only store a register when
5506 REGISTER_SIM_REGNO is valid.
5507 * d10v-tdep.c: Include "sim-regno.h".
5508 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5509 (d10v_ts3_register_sim_regno): Ditto.
5510 * gdbarch.sh: Include "sim-regno.h".
5511 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5512 * gdbarch.h, gdbarch.c: Regenerate.
5513 * arch-utils.h (default_register_sim_regno): Delete declaration.
5514 * arch-utils.c (default_register_sim_regno): Delete function.
5515
485721b1
JT
55162002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5517
5518 * ppcnbsd-nat.c: Rewrite.
5519 * ppcnbsd-tdep.c: New file.
5520 * ppcnbsd-tdep.h: New file.
5521 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5522 solib.o, and solib-svr4.o.
5523 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5524 nbsd-tdep.o, and corelow.o.
5525
697f244d
AC
55262002-05-28 Andrew Cagney <ac131313@redhat.com>
5527
5528 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5529 `tr' and `sed'. Mention that `broken' targets are not expected to
5530 build.
5531
f08caad1 55322002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5533
5534 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5535 Let PC point right after the prologue before looking up symbols.
5536
3139facc
MH
55372002-05-27 Martin M. Hunt <hunt@redhat.com>
5538
5539 * i386-tdep.c (i386_register_virtual_type): Return
5540 builtin_type_vec128i for SSE registers.
5541
5542 * gdbtypes.h (builtin_type_vec128i): Declare.
5543
5544 * gdbtypes.c (build_builtin_type_vec128i): New function.
5545 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5546 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5547 (build_gdbtypes): Initialize new builtin vector types.
5548 (_initialize_gdbtypes): Register new vector types with gdbarch.
5549
6e3ba3b8
JT
55502002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5551
5552 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5553 since it has been multi-arch'd.
5554 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5555 Move Alpha and VAX multi-arch news entries to same section
5556 as other multi-arch news.
5557
93d5585d
JT
55582002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5559
5560 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5561 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5562 static. Rename some register numbers to put them in ns32k-tdep
5563 private namespace.
5564 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5565 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5566 functions.
5567 (_initialize_ns32k_tdep): Use gdbarch_register.
5568 * ns32k-tdep.h: New file.
5569 * ns32knbsd-tdep.c: New file.
5570 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5571 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5572 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5573 REGISTER_BYTES, REGISTER_BYTE): Remove.
5574 * config/ns32k/tm-ns32k.h: New file.
5575 * config/ns32k/tm-umax.h: Remove.
5576
efb2c70e
JT
55772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5578
5579 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5580 ns32k_store_struct_return, ns32k_extract_return_value,
5581 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5582 functions.
5583 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5584 ns32k_saved_pc_after_call.
5585 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5586 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5587 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5588 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5589 ns32k_extract_struct_value_address.
5590
7bcc927b
JT
55912002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5592
5593 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5594 ns32k_fix_call_dummy): New.
5595 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5596 ns32k_call_dummy_words.
5597 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5598 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5599 CALL_DUMMY_NARGS): Remove.
5600 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5601
78f9d765
JT
56022002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5603
5604 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5605 ns32k_frame_saved_pc, ns32k_frame_args_address,
5606 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5607 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5608 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5609 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5610 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5611 (BREAKPOINT): Remove..
5612 (FRAME_CHAIN): Define as ns32k_frame_chain.
5613 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5614 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5615 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5616 (FRAME_FIND_SAVED_REGS): Remove.
5617 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5618 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5619 (POP_FRAME): Define as ns32k_pop_frame.
5620
f2c762e0
JT
56212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5622
5623 * ns32k-tdep.c (ns32k_register_byte_32082,
5624 ns32k_register_byte_32382, ns32k_register_raw_size,
5625 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5626 functions.
5627 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5628 ns32k_register_byte_32382.
5629 * config/ns32k/tm-umax.h: Update copyright years.
5630 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5631 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5632 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5633 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5634 (ns32k_get_enter_addr): Fix prototype.
5635
af137673
JT
56362002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5637
5638 * ns32k-tdep.c: Update copyright years.
5639 (ns32k_register_name_32082): New function.
5640 (ns32k_register_name_32382): Ditto.
5641 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5642 (REGISTER_NAME): Define as ns32k_register_name_32382.
5643 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5644 (REGISTER_NAME): Define as ns32k_register_name_32082.
5645
a8bc7b56
JB
56462002-05-24 Jim Blandy <jimb@redhat.com>
5647
5648 * dwarf2read.c (free_line_header): Use xfree, not free.
5649
83a45910
JT
56502002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5651
5652 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5653 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5654
0db71247
AC
56552002-05-23 Andrew Cagney <ac131313@redhat.com>
5656
5657 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5658
b9e5e4dd
AC
56592002-05-23 Andrew Cagney <ac131313@redhat.com>
5660
5661 From Ross Alexander at NEC Europe:
5662 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5663
de530e84
MS
56642002-05-23 Michael Snyder <msnyder@redhat.com>
5665
5666 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5667 for input, rather than parse_and_eval_address.
5668
b91b96f4
AC
56692002-05-23 Andrew Cagney <ac131313@redhat.com>
5670
5671 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5672 * Makefile.in (sim_d10v_h): Update definition.
5673
8b279e7a
AC
56742002-05-24 Andrew Cagney <cagney@redhat.com>
5675
5676 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5677 change `2002-05-22 Michael Snyder' below.
5678 (d10v_push_arguments): Ditto.
5679 (d10v_extract_return_value): Ditto.
5680
0a3d0425
JB
56812002-05-23 Jim Blandy <jimb@redhat.com>
5682
5683 * macrotab.c (check_for_redefinition): Don't complain if the new
5684 definition is the same as the previous one. Take more arguments
5685 to allow the comparison.
5686 (macro_define_object, macro_define_function): Pass more arguments
5687 to check_for_redefinition.
5688
78eac43e
MS
56892002-05-22 Michael Snyder <msnyder@redhat.com>
5690
5691 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5692 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5693 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5694 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5695 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5696 Add a temp variable to save a call (and a memory read).
5697 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5698 if possible (so that PC_IN_CALL_DUMMY will work).
5699
9bc1edb8
CV
57002002-05-22 Corinna Vinschen <vinschen@redhat.com>
5701
5702 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5703
005ef3d2
ML
57042002-05-22 Michal Ludvig <mludvig@suse.cz>
5705
5706 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5707 fde->cie_ptr.
5708 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5709 (dwarf2_build_frame_info): Add offset to fde->initial_location
5710 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5711 (execute_stack_op): Change type of 'result' from ULONGEST to
5712 CORE_ADDR.
005ef3d2 5713
fcf4f891
JT
57142002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5715
5716 * config/alpha/tm-nbsd.h: Include solib.h.
5717
cfef91e4
JT
57182002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5719
5720 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5721 assumptions about the host's byte order.
5722
9964235a
JT
57232002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5724
5725 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5726 to dependency list.
5727 * alphanbsd-tdep.c: Include solib-svr4.h.
5728 * shnbsd-tdep.c: Ditto.
5729
9eeef8ef
JT
57302002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5731
5732 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5733 nbsd-tdep.h to dependency list.
5734 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5735 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5736 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5737 nbsdaout.mh and nbsdelf.mh consistently.
5738 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5739 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5740 nbsdaout.mt and nbsdelf.mh consistently.
5741 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5742 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5743 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5744 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5745 a.out shared library stuff from here...
5746 * config/nm-nbsdaout.h: ...to here.
5747 * config/tm-nbsd.h: Remove.
5748 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5749 * config/arm/nbsd.mh: Remove.
5750 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5751 nbsd-tdep.o.
5752 * config/arm/nbsdaout.mh: New file.
5753 * config/arm/nbsdelf.mh: New file.
5754 * config/arm/nm-nbsdaout.h: New file.
5755 * config/i386/nbsd.mh: Remove.
5756 * config/i386/nbsd.mt: Remove.
5757 * config/i386/nbsdaout.mh: New file.
5758 * config/i386/nbsdaout.mt: New file.
5759 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5760 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5761 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5762 i386_register_u_addr): Remove.
5763 * config/i386/nm-nbsdaout.h: New file.
5764 * config/i386/nm-nbsdelf.h: Remove.
5765 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5766 (USE_STRUCT_CONVENTION): Remove.
5767 * config/i386/tm-nbsdaout.h: New file.
5768 * config/i386/tm-nbsdelf.h: Remove.
5769 * config/m68k/nbsd.mh: Remove.
5770 * config/m68k/nbsd.mt: Remove.
5771 * config/m68k/nbsdaout.mh: New file.
5772 * config/m68k/nbsdaout.mt: New file.
5773 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5774 * config/m68k/nm-nbsdaout.h: New file.
5775 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5776 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5777 * config/ns32k/nbsd.mh: Remove.
5778 * config/ns32k/nbsd.mt: Remove.
5779 * config/ns32k/nbsdaout.mh: New file.
5780 * config/ns32k/nbsdaout.mt: New file.
5781 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5782 * config/ns32k/nm-nbsdaout.h: New file.
5783 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5784 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5785 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5786 (SVR4_SHARED_LIBS): Remove.
5787 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5788 * config/sparc/nbsd.mh: Remove.
5789 * config/sparc/nbsd.mt: Remove.
5790 * config/sparc/nbsdaout.mh: New file.
5791 * config/sparc/nbsdaout.mt: New file.
5792 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5793 * config/sparc/nbsdelf.mt: New file.
5794 * config/sparc/nm-nbsdaout.h: New file.
5795 * config/sparc/nm-nbsdelf.h: Remove.
5796 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5797 * config/sparc/tm-nbsdaout.h: New file.
5798
257ce470
JT
57992002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5800
5801 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5802 mipsnbsd-tdep.c
5803 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5804
76a6d5fe
JT
58052002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5806
5807 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5808 shnbsd-nat.c.
5809 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5810
45888261
JT
58112002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5812
5813 * NEWS: Note new MIPS NetBSD native configuration.
5814 * configure.host (mips*-*-netbsd*): New host.
5815 * configure.tgt (mips*-*-netbsd*): New target.
5816 * mipsnbsd-nat.c: New file.
5817 * mipsnbsd-tdep.c: New file.
5818 * mipsnbsd-tdep.h: New file.
5819 * config/mips/nbsd.mh: New file.
5820 * config/mips/nbsd.mt: New file.
5821 * config/mips/nm-nbsd.h: New file.
5822 * config/mips/tm-nbsd.h: New file.
5823
70f80edf
JT
58242002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5825
5826 * Makefile.in (SFILES): Add osabi.c.
5827 (COMMON_OBS): Add osabi.o.
5828 (osabi.o): New dependency list.
5829 * osabi.c: New file.
5830 * osabi.h: New file.
5831 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5832
5833 * Makefile.in (alpha_tdep_h): Define and use instead of
5834 alpha-tdep.h.
5835 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5836 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5837 Remove.
5838 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5839 * alpha-tdep.h: Include osabi.h.
5840 (alpha_abi): Remove.
5841 (gdbarch_tdep): Use generic OS ABI framework.
5842 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5843 gdbarch_register_osabi.
5844 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5845 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5846 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5847
5848 * Makefile.in (sh_tdep_h): Add osabi.h.
5849 * sh-tdep.h (sh_osabi): Remove.
5850 (gdbarch_tdep): Use generic OS ABI framework.
5851 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5852 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5853 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5854 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5855
5856 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5857 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5858 gdbarch_register_osabi.
5859 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5860 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5861 (get_elfosabi): Rename to...
5862 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5863 ABI framework support routines.
5864 (arm_gdbarch_init): Use generic OS ABI framework.
5865 (arm_dump_tdep): Likewise.
5866 (_initialize_arm_tdep): Likewise.
5867 * arm-tdep.h: Include osabi.h.
5868 (arm_abi): Remove.
5869 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5870 osabi member.
5871 (arm_gdbarch_register_os_abi): Remove prototype.
5872 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5873 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5874
5875 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5876 * mips-tdep.c: Include osabi.h.
5877 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5878 OS ABI framework.
5879
d194345b
KH
58802002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5881
5882 * h8300-tdep.c: Fix formatting.
5883
70c6b0d1
EZ
58842002-05-20 Elena Zannoni <ezannoni@redhat.com>
5885
5886 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5887 printing vector registers.
5888
165b8e33
AC
58892002-05-19 Andrew Cagney <ac131313@redhat.com>
5890
5891 From Fernando Nasser:
5892 * remote.c (remote_async_open_1): Re-throw the exception when the
5893 connection fails.
5894 (remote_cisco_open): Ditto.
5895 (remote_open_1): Ditto.
5896
36918e70
AC
58972002-05-19 Andrew Cagney <ac131313@redhat.com>
5898
5899 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5900 (remote_start_remote): Add uiout parameter. Pass through to
5901 remote_start_remote_dummy.
5902 (remote_open_1): Use catch_exception instead of catch_errors.
5903 (remote_async_open_1): Ditto.
5904 (remote_cisco_open): Ditto.
5905
ae44c0c4
AC
59062002-05-19 Andrew Cagney <ac131313@redhat.com>
5907
5908 * remote.c (remote_start_remote): Replace PTR with void pointer.
5909 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5910 static.
5911
8efe637d
AC
59122002-05-18 Andrew Cagney <ac131313@redhat.com>
5913
5914 * gdb_indent.sh: Allow the script to be run in the sim directory.
5915
2f1b5984
MK
59162002-05-18 Mark Kettenis <kettenis@gnu.org>
5917
f0f625e2
MK
5918 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5919 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5920
2f1b5984
MK
5921 * corelow.c (core_open): Only call set_gdbarch_from_file if
5922 exec_bfd is NULL.
5923
fc974602
AV
59242002-05-17 Andrey Volkov <avolkov@transas.com>
5925
5926 * h8300-tdep.c: Add support of EXR register
5927 * config/h8300/tm-h8300.h: Ditto.
5928
906709f4
AV
59292002-05-17 Andrey Volkov <avolkov@transas.com>
5930
5931 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5932
6e591d68
AV
59332002-05-17 Andrey Volkov <avolkov@transas.com>
5934
5935 * h8300-tdep.c: Change literal regnums to REGNO.
5936
84f0252a
JB
59372002-05-17 Jim Blandy <jimb@redhat.com>
5938
e0e9281e
JB
5939 * NEWS: Note addition of macro support.
5940
84f0252a
JB
5941 Expand preprocessor macros in C expressions.
5942 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5943 (scan_macro_expansion, scanning_macro_expansion,
5944 finished_macro_expansion): New function declarations.
5945 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5946 variable declarations.
5947 * parser-defs.h (expression_context_pc): New declaration.
5948 * parse.c (expression_context_pc): New variable.
5949 (parse_exp_1): Set expression_context_pc, as well as
5950 expression_context_block.
5951 * c-exp.y (yylex): If we're not already reading the result of a
5952 macro expansion, try to macro-expand the next token. When we're
5953 done scanning a macro expansion, switch back to the mainline text.
5954 Commas and `if's in a macro's expansion don't terminate the input.
5955 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5956 (macro_original_text, macro_expanded_text,
5957 expression_macro_lookup_func, expression_macro_lookup_baton): New
5958 variables.
5959 (scan_macro_expansion, scanning_macro_expansion,
5960 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5961 c_preprocess_and_parse): New functions.
5962 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5963 c_preprocess_and_parse, instead of c_parse.
5964 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5965 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5966
1c509ca8
JR
5967Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5968
5969 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5970 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5971 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5972
2250ee0c
CV
59732002-05-17 Corinna Vinschen <vinschen@redhat.com>
5974
5975 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5976
ab3b8126
JT
59772002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5978
5979 * Makefile.in (sh_tdep_h): Define and use.
5980 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5981 register enum): Move to...
5982 * * sh-tdep.h: ...here.
5983 * sh-tdep.c: Include sh-tdep.h.
5984 * sh3-rom.c: Likewise.
5985 * shnbsd-tdep.c: Likewise.
5986
ed9d4749
MS
59872002-05-16 Michael Snyder <msnyder@redhat.com>
5988
5989 * arm-tdep.c: Spelling fix in comment.
5990
2e276125
JB
59912002-05-16 Jim Blandy <jimb@redhat.com>
5992
6821892e
JB
5993 Add commands for manually expanding macros and showing their
5994 definitions.
5995 * macrocmd.c, macroscope.c, macroscope.h: New files.
5996 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5997 (macroscope_h): New variable.
5998 (HFILES_NO_SRCDIR): Add macroscope.h.
5999 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6000 (macroscope.o, macrocmd.o): New rules.
6001
2e276125
JB
6002 Teach the Dwarf 2 reader to read macro information.
6003 * dwarf2read.c: #include "macrotab.h".
6004 (dwarf_macinfo_buffer): New variable.
6005 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6006 dwarf_macinfo_size.
6007 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6008 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6009 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6010 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6011 dwarf2_macro_spaces_in_definition): New complaints.
6012 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6013 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6014 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6015 the partial symbol table.
6016 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6017 from what's recorded in the partial symbol table.
6018 (read_file_scope): If the compilation unit has a
6019 `DW_AT_macro_info' attribute, read its macro information.
6020 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6021
2f53fe6c
DJ
60222002-05-16 Daniel Jacobowitz <drow@mvista.com>
6023
6024 Fix PR gdb/546
6025 * ser-tcp.c: Don't include <netinet/udp.h>.
6026
2be99286
SC
60272002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6028
6029 * MAINTAINERS: Update my email address.
6030
c9af212b 60312002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6032
6033 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6034 include file of the same name.
6035
bf5f1a52
CV
60362002-05-16 Corinna Vinschen <vinschen@redhat.com>
6037
6038 * configure.tgt: Mark v850 as multi-arched.
6039 * config/v850/tm-v850.h: Remove file.
6040 * config/v850/v850.mt: Eliminate TM_FILE.
6041
435e042a
CV
60422002-05-16 Corinna Vinschen <vinschen@redhat.com>
6043
6044 * v850-tdep.c: Full multi-arch.
6045 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6046 Define GDB_MULTI_ARCH to 2.
6047
9819c6c8
PM
60482002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6049
6050 * p-exp.y (current_type): New static variable.
6051 Carries the type of the expression at the position that is parsed.
6052 (push_current_type, pop_current_type): Two new functions. Used
6053 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6054 (search_field): New static variable. Set to one after parsing a point
6055 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6056 (FIELDNAME): New token. After a point only a token belonging to
6057 current_type type definition is allowed.
6058 (all over token rules): reset and change current_type according
6059 to rules.
6060 (exp '[' rule): insert implicit array index field if
6061 exp is a pascal string type.
6062
3a06899a
CV
60632002-05-16 Corinna Vinschen <vinschen@redhat.com>
6064
6065 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6066 frame info. Use frame_info's saved_regs instead of matching member
6067 in extra_frame_info throughout.
6068 (v850_frame_init_saved_regs): New function.
6069 (v850_init_extra_frame_info): Move most functionality into
6070 v850_frame_init_saved_regs().
6071 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6072 (v850_frame_find_saved_regs): Remove declaration.
6073 (FRAME_FIND_SAVED_REGS): Remove definition.
6074 (v850_frame_init_saved_regs): Add declaration.
6075 (FRAME_INIT_SAVED_REGS): Add definition.
6076
6ed14b0e
CV
60772002-05-16 Corinna Vinschen <vinschen@redhat.com>
6078
6079 * v850-tdep.c: Begin multi-arch'ing v850.
6080 (v850_target_architecture_hook): Remove function.
6081 (v850_gdbarch_init): New function. Add code previously in
6082 v850_target_architecture_hook().
6083 (_initialize_v850_tdep): Don't set target_architecture_hook.
6084 Call register_gdbarch_init() instead.
6085
42725910
DJ
60862002-05-16 Daniel Jacobowitz <drow@mvista.com>
6087
6088 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6089 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6090 (fixup_class_method_type): Likewise.
6091
99d9066e
JB
60922002-05-15 Jim Blandy <jimb@redhat.com>
6093
6094 Add macro structures to GDB's symbol tables. Nobody puts anything
6095 in them yet.
6096 * symtab.h (struct symtab): New member: `macro_table'.
6097 * buildsym.h (pending_macros): New global variable.
6098 * buildsym.c: #include "macrotab.h".
6099 (buildsym_init): Initialize `pending_macros'.
6100 (end_symtab): If we found macro information while reading a CU's
6101 debugging info, do build a symtab structure for it. Make the
6102 symtab point to the macro information, and clear the
6103 `pending_macros' pointer which held it while we were reading the
6104 debug info.
6105 (really_free_pendings): Free any pending macro table.
6106 * objfiles.h (struct objfile): New member: `macro_cache'.
6107 * objfiles.c (allocate_objfile): Set allocate and free functions
6108 for the macro cache's objstack.
6109 (free_objfile): Empty the macro cache's obstack.
6110 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6111 set new allocate and free functions for it.
6112 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6113 free functions for the macro cache's objstack. (Why is this
6114 function building its own objfile?)
6115 * symmisc.c (print_objfile_statistics): Print statistics on the
6116 macro bcache.
6117 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6118
c899585b
RE
61192002-05-15 Richard Earnshaw <rearnsha@arm.com>
6120
6121 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6122 (REGISTER_U_ADDR): Delete definition.
6123 (arm_register_u_addr): Delete declaration.
6124
a6cdd8c5
RE
61252002-05-15 Richard Earnshaw <rearnsha@arm.com>
6126
6127 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6128 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6129
c97dcfc7
AC
61302002-05-14 Andrew Cagney <ac131313@redhat.com>
6131
6132 * regcache.c (register_valid): Revise comments refering to "Not
6133 available" and "unavailable".
6134 * frame.c (frame_register_read): Ditto.
6135 * findvar.c (value_of_register): Ditto.
6136
93021b7d
AC
61372002-05-15 Andrew Cagney <cagney@redhat.com>
6138
6139 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6140 (remote-sim.o): Update dependencies.
6141 (d10v-tdep.o): Specify dependencies.
6142 (sim_d10v_h): Define.
6143
a86bc61c
JB
61442002-05-14 Jim Blandy <jimb@redhat.com>
6145
6146 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6147 * macrotab.c (macro_lookup_inclusion, find_definition,
6148 new_macro_table): Same.
6149
6150 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6151 not `! strcmp ()'. This is a dubious improvement.
6152 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6153
6154 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6155 although it's not necessary, to avoid a warning.
6156
2fdde8f8
DJ
61572002-05-14 Daniel Jacobowitz <drow@mvista.com>
6158
6159 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6160 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6161 TYPE_INSTANCE_FLAGS.
6162 (struct main_type): New.
6163 (struct type): Move most members to struct main_type. Change
6164 cv_type and as_type to new type_chain member. Add instance_flags.
6165 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6166 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6167 (finish_cv_type): Remove prototype.
6168 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6169 Set TYPE_CHAIN.
6170 (alloc_type_instance): New function.
6171 (smash_type): New function.
6172 (make_pointer_type, make_reference_type, make_function_type)
6173 (smash_to_member_type, smash_to_method_type): Call smash_type.
6174 (make_qualified_type): New function.
6175 (make_type_with_address_space): Call make_qualified_type.
6176 (make_cv_type): Likewise.
6177 (finish_cv_type): Remove unnecessary function.
6178 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6179 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6180 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6181 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6182 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6183 * hpread.c (hpread_read_struct_type): Likewise.
6184 * stabsread.c (read_struct_type): Likewise.
6185
843fedf4
EZ
61862002-05-14 Elena Zannoni <ezannoni@redhat.com>
6187
6188 * configure.tgt: Add a catch all sh* target, for cases like
6189 sh[2,3,4]-elf and sh-hms.
6190
05a6c72c
KS
61912002-05-14 Keith Seitz <keiths@redhat.com>
6192
6193 * event-loop.c (create_file_handler): Don't do anything but
6194 update data when we are given a fd which we are already
6195 monitoring.
6196
5d085aaf
ML
61972002-05-14 Michal Ludvig <mludvig@suse.cz>
6198
6199 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6200 (update_context): Use __func__ in warnings.
6201
9db8d71f
DJ
62022002-05-14 Daniel Jacobowitz <drow@mvista.com>
6203
6204 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6205 and tcp_close to net_open and net_close.
6206 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6207 using UDP if requested. Don't try to disable Nagle on UDP
6208 sockets.
6209 * remote.c (remote_serial_open): New function. Warn about UDP.
6210 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6211
5dbc6baa
EZ
62122002-05-13 Elena Zannoni <ezannoni@redhat.com>
6213
6214 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6215
cc3023f7
EZ
62162002-05-13 Elena Zannoni <ezannoni@redhat.com>
6217
6218 * configure.tgt: Remove sh-hms target.
6219 * MAINTAINERS: Don't list sh-hms as a separate target.
6220
ec2bcbe7
JB
62212002-05-13 Jim Blandy <jimb@redhat.com>
6222
6223 Add first preprocessor macro-expansion files.
6224 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6225 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6226 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6227 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6228 (COMMON_OBS): Add macrotab.o, macroexp.o.
6229 (macroexp.o, macrotab.o): New rules.
6230
6d531722
AC
62312002-05-13 Andrew Cagney <ac131313@redhat.com>
6232
6233 * config/m88k/tm-m88k.h: Update copyright.
6234 (m88k_target_write_pc): Declare
6235 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6236 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6237 (SHIFT_INST_REGS): Update definition.
6238 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6239 using old definition of TARGET_WRITE_PC.
6240 * regcache.c (generic_target_write_pc): Delete code handling
6241 NNPC_REGNUM.
6242 * gdbarch.sh (NNPC_REGNUM): Delete.
6243 * gdbarch.h, gdbarch.c: Regenerate.
6244
3e3f2739
RE
62452002-05-13 Richard Earnshaw <rearnsha@arm.com>
6246
6247 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6248 builtin reg number.
6249
0004e5a2
DJ
62502002-05-13 Daniel Jacobowitz <drow@mvista.com>
6251
6252 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6253 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6254 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6255 access macros.
6256 * c-typeprint.c (cp_type_print_method_args): Likewise.
6257 (c_type_print_args): Likewise.
6258 * d10v-tdep.c (d10v_push_arguments): Likewise.
6259 (d10v_extract_return_value): Likewise.
6260 * expprint.c (print_subexp): Likewise.
6261 * gdbtypes.c (lookup_primitive_typename): Likewise.
6262 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6263 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6264 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6265 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6266 (TYPE_VECTOR): Likewise.
6267 * hpread.c (hpread_read_struct_type)
6268 (fix_static_member_physnames, fixup_class_method_type)
6269 (hpread_type_lookup): Likewise.
6270 * mdebugread.c (parse_symbol, parse_type): Likewise.
6271 * p-lang.c (is_pascal_string_type): Likewise.
6272 * valops.c (hand_function_call): Likewise.
6273 * x86-64-tdep.c (classify_argument): Likewise.
6274
6275 * hpread.c (hpread_read_function_type)
6276 (hpread_read_doc_function_type): Call replace_type.
6277 * dstread.c (create_new_type): Delete.
6278 (decode_dst_structure, process_dst_function): Call alloc_type.
6279 Use type access macros.
6280
dff95cc7
MK
62812002-05-12 Mark Kettenis <kettenis@gnu.org>
6282
6283 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6284 the're not supported by the current architecture.
6285 (i387_fill_fxsave): Likewise.
6286
bbcd32ad
FF
62872002-05-12 Fred Fish <fnf@redhat.com>
6288
6289 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6290 sect_index_xxx members to index the first slot in section_offsets
6291 if all of the section_offsets are zero.
6292
89cf4787
MK
62932002-05-12 Mark Kettenis <kettenis@gnu.org>
6294
6295 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6296 checked in with last change.
6297
1f77ffc5
MK
62982002-05-12 Mark Kettenis <kettenis@gnu.org>
6299
6300 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6301 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6302 config.sub.
6303
89b8b4a9
DJ
63042002-05-12 Daniel Jacobowitz <drow@mvista.com>
6305
6306 * Makefile.in: Update dependencies.
6307
14a5e767
AC
63082002-05-11 Andrew Cagney <ac131313@redhat.com>
6309
6310 * language.c (local_hex_string_custom): Simplify. Do not depend
6311 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6312
6313 * memattr.c (mem_info_command): Replace calls to
6314 longest_local_hex_string and longest_local_hex_string_custom.
6315 * buildsym.c (make_blockvector): Ditto.
6316 * solib.c (info_sharedlibrary_command): Ditto.
6317 * tracepoint.c (tracepoints_info): Ditto.
6318 * symtab.c (print_msymbol_info): Ditto.
6319
6320 * language.c (local_hex_string): Delete.
6321 (local_hex_string_custom): Delete.
6322 (longest_local_hex_string): Rename to local_hex_string.
6323 (longest_local_hex_string_custom): Rename to
6324 local_hex_string_custom.
6325 * language.h (local_hex_string): Change parameter type to LONGEST.
6326 (local_hex_string_custom): Ditto.
6327 (longest_local_hex_string): Delete declaration.
6328 (longest_local_hex_string_custom): Ditto.
6329
6330 * solib.c: Update copyright.
6331 * memattr.c: Update copyright.
6332
13d01224
AC
63332002-05-11 Andrew Cagney <ac131313@redhat.com>
6334
6335 * arch-utils.h (legacy_register_to_value): Declare.
6336 (legacy_value_to_register): Declare.
6337 (legacy_convert_register_p): Declare.
6338 * arch-utils.c (legacy_register_to_value): New function.
6339 (legacy_value_to_register): New function.
6340 (legacy_convert_register_p): New function.
6341
6342 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6343 (VALUE_TO_REGISTER): Define.
6344 (CONVERT_REGISTER_P): Define.
6345 * gdbarch.h, gdbarch.c: Regenerate.
6346
6347 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6348 VALUE_TO_REGISTER.
6349 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6350 CONVERT_REGISTER_P.
6351
4a1970e4
DJ
63522005-05-11 Daniel Jacobowitz <drow@mvista.com>
6353 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6354
6355 * Makefile.in: Update dependencies for valops.c.
6356 * valops.c: Include "gdb_assert.h".
6357 (typecmp): Skip THIS parameter to methods.
6358 (find_method_list): Remove static_memfuncp argument,
6359 update callers. Check for stub methods.
6360 (find_value_oload_method_list): Don't set *static_memfuncp.
6361 (find_overload_match): Don't check for stub methods. Assert
6362 that methods are not stubbed. Handle static methods.
6363 (value_find_oload_method_list): Remove static_memfuncp argument.
6364 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6365 to the argument list for static stub methods.
6366 * value.h (value_find_oload_method_list): Update prototype.
6367
b2e75d78
AC
63682002-05-11 Andrew Cagney <ac131313@redhat.com>
6369
6370 * arch-utils.h (generic_register_size): Declare.
6371 (generic_register_raw_size, generic_register_virtual_size): Delete
6372 declarations.
6373 * arch-utils.c (generic_register_raw_size): Delete.
6374 (generic_register_size): New function.
6375 (generic_register_virtual_size): Delete.
6376
6377 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6378 default generic_register_size.
6379 * gdbarch.h, gdbarch.c: Re-generate.
6380
6381 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6382 register_virtual_size.
6383 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6384 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6385
451fbdda
AC
63862002-05-11 Andrew Cagney <ac131313@redhat.com>
6387
6388 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6389 * gdbarch.h, gdbarch.c: Regenerate.
6390 * gnu-v3-abi.c: Update copyright.
6391 (vtable_address_point_offset): Update.
6392 (gnuv3_rtti_type): Update.
6393 (gnuv3_baseclass_offset): Update.
6394 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6395 (init_fetch_link_map_offsets): Update.
6396 * remote.c (get_remote_state): Update.
6397
6d2f5cea
DJ
63982002-05-11 Daniel Jacobowitz <drow@mvista.com>
6399
6400 * TODO: Remove value_headof/value_from_vtable_info comment.
6401 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6402 * values.c (value_headof, value_from_vtable_info): Delete.
6403 * value.h (value_from_vtable_info): Delete prototype.
6404
d2324da4
AC
64052002-05-11 Andrew Cagney <ac131313@redhat.com>
6406
6407 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6408 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6409 $(gdb_regex_h).
6410 (gdb_assert_h): Define.
6411 (gdb_wait_h): Define.
6412 (gdb_regex_h): Define.
6413
5c717440
DJ
64142002-05-11 Daniel Jacobowitz <drow@mvista.com>
6415
6416 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6417 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6418
6c7861b3
JT
64192002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6420
6421 * nbsd-tdep.c: Fix comment.
6422
ea5bc2a6
JT
64232002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6424
6425 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6426 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6427 (nbsd-tdep.o): New dependency list.
6428 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6429 nbsd-tdep.h.
6430 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6431 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6432 * nbsd-tdep.c: New file.
6433 * nbsd-tdep.h: New file.
6434 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6435 nbsd-tdep.h.
6436 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6437 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6438 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6439 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6440
b28da865
JT
64412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6442
6443 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6444 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6445 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6446 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6447 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6448 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6449
4b8ff1fa
JT
64502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6451
6452 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6453 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6454 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6455 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6456 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6457 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6458 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6459
dfe6eb1f
JT
64602002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6461
6462 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6463 fetch_elfcore_registers to...
6464 * i386nbsd-tdep.c: ...here.
6465 (i386nbsd_use_struct_convention): Rename to...
6466 (i386nbsd_aout_use_struct_convention): ...this.
6467 (i386nbsd_supply_reg): New function.
6468 (i386nbsd_fill_reg): New function.
6469 (fetch_core_registers): Use i386nbsd_supply_reg.
6470 (fetch_elfcore_registers): Likewise.
6471 (_initialize_i386nbsd_tdep): New function.
6472 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6473 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6474 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6475 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6476 (i386nbsd_aout_use_struct_convention): ...this.
6477
20cb8cda
JT
64782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6479
6480 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6481 (store_inferior_registers): Use shnbsd_fill_reg.
6482 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6483 sh_nbsd_supply_register): Collapse into...
6484 (shnbsd_supply_reg): ...this.
6485 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6486 (shnbsd_fill_reg): ...this.
6487 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6488 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6489 (fetch_core_registers): Use shnbsd_supply_reg.
6490 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6491 (sh_nbsd_core_fns): Rename to...
6492 (shnbsd_core_fns): ...this.
6493 (sh_nbsd_elfcore_fns): Rename to...
6494 (shnbsd_elfcore_fns): ...this.
6495 (sh_nbsd_init_abi): Rename to...
6496 (shnbsd_init_abi): ...this.
6497 (_initialize_sh_nbsd_tdep): Rename to...
6498 (_initialize_shnbsd_tdep): ...this.
6499 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6500 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6501 sh_nbsd_fill_register): Remove prototypes.
6502 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6503
e750d25e
JT
65042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6505
6506 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6507 (i387-nat.o): Delete dependency list.
6508 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6509 (x86-64-linux-nat.o): Likewise.
6510 * i387-nat.c: Delete file, moving contents to...
6511 * i387-tdep.c: ...here.
6512 * i387-nat.h: Rename...
6513 * i387-tdep.h: ...to this.
6514 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6515 * i386-linux-nat.c: Likewise.
6516 * i386bsd-nat.c: Likewise.
6517 * i386gnu-nat.c: Likewise.
6518 * i386nbsd-nat.c: Likewise.
6519 * i386v4-nat.c: Likewise.
6520 * x86-64-linux-nat.c: Likewise.
6521 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6522 * config/i386/go32.mh (NATDEPFILES): Likewise.
6523 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6524 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6525 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6526 * config/i386/linux.mh (NATDEPFILES): Likewise.
6527 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6528 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6529 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6530 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6531
1aee598a
JT
65322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6533
6534 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6535 (alphanbsd-nat.o): Remove dependency list.
6536 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6537 * alphanbsd-nat.c: Delete. Contents moved to...
6538 * alphanbsd-tdep.c: ...here.
6539 (_initialize_alphanbsd_tdep): Register core functions.
6540 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6541
12bcb0fe
JT
65422002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6543
6544 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6545 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6546 (alphanbsd-nat.o): Likewise.
6547 (alphabsd-tdep.o): New dependency list.
6548 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6549 (fill_gregset): Use alphabsd_fill_reg.
6550 (supply_fpregset): Use alphabsd_supply_fpreg.
6551 (fill_fpregset): Use alphabsd_fill_fpreg.
6552 (fetch_inferior_registers): Use struct reg and struct fpreg
6553 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6554 and alphabsd_supply_fpreg.
6555 (store_inferior_registers): Use struct reg and struct fpreg
6556 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6557 and alphabsd_fill_fpreg.
6558 * alphabsd-tdep.c: New file.
6559 * alphabsd-tdep.h: New file.
6560 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6561 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6562 alphabsd_supply_fpreg.
6563 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6564 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6565
361d1df0
EC
65662002-05-11 Eric Christopher <echristo@redhat.com>
6567
6568 * mips-tdep.c (mips_double_register_type): Fix thinko.
6569 (mips_single_register_type): Ditto.
6570 * MAINTAINERS: Add self.
6571
92dd7cee
MK
65722002-05-11 Mark Kettenis <kettenis@gnu.org>
6573
6574 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6575 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6576 right thing on architectures with different endianness and/or
6577 integer sizes.
6578
e27da16d
JT
65792002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6580
6581 From Christian Limpach <chris@Pin.LU>
6582 * configure.in: Change sed expression which comments out
6583 NATDEPFILES to also comment out continuation lines.
6584 * configure: Regenerate.
6585
ddde02bd
EZ
65862002-05-10 Elena Zannoni <ezannoni@redhat.com>
6587
6588 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6589 big patch.
6590
1c922164
EZ
65912002-05-10 Elena Zannoni <ezannoni@redhat.com>
6592
6593 * sh-tdep.c: Include correct file.
6594
283150cd
EZ
65952002-05-10 Elena Zannoni <ezannoni@redhat.com>
6596
6597 New support for sh64-elf (sh5) target.
6598
6599 * configure.tgt: For sh64-elf target, default to sh-elf.
6600
6601 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6602 (struct gdbarch_tdep): Add new fields for new registers and ABI
6603 info.
361d1df0 6604
283150cd
EZ
6605 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6606 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6607 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6608 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6609 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6610 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6611 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6612 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6613 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6614 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6615 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6616 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6617 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6618 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6619 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6620 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6621 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6622 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6623 sign_extend, sh64_nofp_frame_init_saved_regs,
6624 sh64_init_extra_frame_info, sh64_get_saved_register,
6625 sh64_extract_struct_value_address, sh64_pop_frame,
6626 sh64_push_arguments, sh64_extract_return_value,
6627 sh64_store_return_value, sh64_show_media_regs,
6628 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6629 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6630 sh_sh64_register_virtual_type,
6631 sh_sh64_register_convert_to_virtual,
6632 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6633 sh64_register_read, sh64_pseudo_register_write,
6634 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6635 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6636 sh64_do_pseudo_register, sh_compact_do_registers_info,
6637 sh64_do_registers_info, sh_gdbarch_init): New functions.
6638
3117ed25
EZ
66392002-05-10 Elena Zannoni <ezannoni@redhat.com>
6640
6641 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6642
2654e6d4
DJ
66432002-05-10 Daniel Jacobowitz <drow@mvista.com>
6644
6645 * linespec.c (decode_line_1): Check for a double quote after
6646 a filename correctly.
6647
9ab3e532
JB
66482002-05-10 Jim Blandy <jimb@redhat.com>
6649
6650 Properly track the size of the current objfile's .debug_line section.
6651 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6652 (DWARF_LINE_SIZE): New macro.
6653 (dwarf2_build_psymtabs_hard): Record the line section's size in
6654 the partial symbol table.
6655 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6656 symbol table.
6657
126fa72d
PS
66582002-05-10 Petr Sorfa <petrs@caldera.com>
6659
6660 * ia64-tdep.c: Handle breakpoints on L instruction type
6661 in MLX instruction bundle by moving the breakpoint to
6662 the third slot (X instruction type) as L holds only data.
6663
1f077a3e
KB
66642002-05-10 Kevin Buettner <kevinb@redhat.com>
6665
6666 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6667 (process_one_symbol): Complain about discarding local symbols
6668 due to a misplaced N_LBRAC entry.
6669
8120c9d5 66702002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6671
6672 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6673 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6674 decrease the depth we are at, in the case of templates.
361d1df0 6675
67b2c998
DJ
66762002-05-09 Daniel Jacobowitz <drow@mvista.com>
6677
6678 * mips-tdep.c (mips_float_register_type): New function.
6679 (mips_double_register_type): New function.
6680 (mips_print_register): Use them.
6681 (do_fp_register_row): Likewise.
6682
fd326606
DJ
66832002-05-09 Daniel Jacobowitz <drow@mvista.com>
6684
6609d9af 6685 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6686 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6687 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6688
bef35864
MS
66892002-05-09 Michael Snyder <msnyder@redhat.com>
6690
6691 * remote-rdp.c (remote_rdp_can_run): Remove.
6692
c55a3f73
TT
66932002-05-09 Tom Tromey <tromey@redhat.com>
6694
6695 * jv-valprint.c (java_val_print): Handle `char' as a special case
6696 of TYPE_CODE_INT.
6697
b8d5e71d
MS
66982002-05-09 Michael Snyder <msnyder@redhat.com>
6699
6700 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6701 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6702 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6703 str r(0123),[sp,#nn].
361d1df0 6704 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6705 order-independent by placing it in a loop.
6706
e2cd42dd
MS
67072002-05-06 Michael Snyder <msnyder@redhat.com>
6708
6709 * stabsread.c (read_type): Add recognition for new attribute:
6710 "@V;" means that an array type is actually a vector.
6711 This is analogous to the vector flag that's been added to dwarf2.
6712
3ce1502b
MK
67132002-05-09 Mark Kettenis <kettenis@gnu.org>
6714
6715 * i386-tdep.h (i386_abi): New enum.
6716 (struct gdbarch_tdep): Replace os_ident member with abi.
6717 (i386_gdbarch_register_os_abi): New prototype.
6718 * i386-tdep.c (i386_abi_names): New array.
6719 (process_note_abi_tag_sections): Removed.
6720 (process_note_sections): New function.
6721 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6722 (struct i386_abi_handler): New struct.
6723 (i386_abi_handler_list): New variable.
6724 (i386_gdbarch_register_os_abi): New function.
6725 (i386_gdbarch_init): Adapt for the changes given above.
6726
084c156a
DJ
67272002-05-08 Daniel Jacobowitz <drow@mvista.com>
6728
6729 * gregset.h: Say "GNU/Linux".
6730
6599f021
EZ
67312002-05-08 Elena Zannoni <ezannoni@redhat.com>
6732
6733 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6734 (build_gdbtypes): Build builtin_type_v2_float.
6735 (_initialize_gdbtypes): Register new builtin type.
6736
40af4b0c
AC
67372002-05-08 Andrew Cagney <ac131313@redhat.com>
6738
6739 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6740 (clear_gdbarch_swap): New function.
6741 (initialize_non_multiarch): Call.
6742 (gdbarch_update_p): Before calling init(), swap out and clear the
6743 existing architecture.
6744 * gdbarch.c: Regenerate.
6745
4fe84f46
JT
67462002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6747
6748 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6749 alphanbsd-tdep.c.
6750
4015edd1
JT
67512002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6752
6753 * sh-nbsd-nat.c: Rename to...
6754 * shnbsd-nat.c: ...this.
6755 * sh-nbsd-tdep.c: Rename to...
6756 * shnbsd-tdep.c: ...this.
6757 * sh-nbsd-tdep.h: Rename to...
6758 * shnbsd-tdep.h: ...this.
6759 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6760 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6761
0e2bd219
RE
67622002-05-08 Richard Earnshaw <rearnsha@arm.com>
6763
6764 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6765 concatenation for command help messages.
6766
13a38d45
JT
67672002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6768
6769 * NEWS: Note new sh*-*-netbsdelf* configuration.
6770 * configure.host: Set gdb_host_cpu to sh for all sh*.
6771 (sh*-*-netbsdelf*): New host.
6772 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6773 (sh*-*-netbsdelf*): New target.
6774 * sh-nbsd-nat.c: New file.
6775 * sh-nbsd-tdep.c: New file.
6776 * sh-nbsd-tdep.h: New file.
6777 * config/sh/nbsd.mh: New file.
6778 * config/sh/nbsd.mt: New file.
6779 * config/sh/nm-nbsd.h: New file.
6780 * config/sh/tm-nbsd.h: New file.
6781
d658f924
JT
67822002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6783
6784 * sh-tdep.c (sh_osabi_names): Declare.
6785 (process_note_abi_tag_sections): New function.
6786 (get_elfosabi): Ditto.
6787 (sh_gdbarch_register_os_abi): Ditto.
6788 (sh_dump_tdep): Ditto.
6789 _initialize_sh_tdep): Use gdbarch_register to register
6790 sh_gdbarch_init and sh_dump_tdep.
6791 * config/sh/tm-sh.h (sh_osabi): Declare.
6792 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6793
848cfffb
AC
67942002-05-07 Andrew Cagney <ac131313@redhat.com>
6795
6796 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6797 (thumb_scan_prologue): Ditto.
6798 (arm_find_callers_reg): Ditto.
6799 (arm_frame_chain): Ditto.
6800 (arm_init_extra_frame_info): Ditto.
6801 (arm_frame_saved_pc): Ditto.
6802 (arm_pop_frame): Ditto.
6803 (arm_push_return_address): New function.
6804 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6805 call_dummy_location, call_dummy_breakpoint_offset_p,
6806 call_dummy_breakpoint_offset, call_dummy_p,
6807 call_dummy_stack_adjust_p, call_dummy_words,
6808 sizeof_call_dummy_words, call_dummy_start_offset,
6809 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6810 call_dummy_address, push_return_address and push_dummy_frame for
6811 generic dummy frames.
6812
e7d717c0
JT
68132002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6814
6815 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6816 size computation for alloca.
6817 (sh_fp_frame_init_saved_regs): Likewise.
6818
7bbcf283
RE
68192002-05-07 Richard Earnshaw <rearnsha@arm.com>
6820
6821 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6822 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6823 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6824 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6825 * remote-rdp.c (remote_rdp_fetch_register): Use
6826 ARM_MAX_REGISTER_RAW_SIZE.
6827 (remote_rdp_store_register): Likewise.
6828
4657573b
ML
68292002-05-07 Michal Ludvig <mludvig@suse.cz>
6830
361d1df0 6831 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6832 added default labels to switch {} statements.
6833 * x86-64-tdep.c: Ditto.
6834 * x86-64-linux-nat.c: Ditto.
6835
010f3b2f
JT
68362002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6837
6838 * solib.h: Protect against multiple inclusion.
6839
debd256d
JB
68402002-05-06 Jim Blandy <jimb@redhat.com>
6841
9ab3e532
JB
6842 Add first preprocessor macro-expansion files.
6843 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6844 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6845 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6846 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6847 (COMMON_OBS): Add macrotab.o, macroexp.o.
6848 (macroexp.o, macrotab.o): New rules.
6849
debd256d
JB
6850 Separate the job of reading the line number info statement program
6851 header (...expialidocious) out into its own function.
6852 * dwarf2read.c (struct line_head, struct filenames, struct
6853 directories): Replace with...
6854 (struct line_header): New structure, containing the full
6855 contents of the statement program header, including the
6856 include directory and file name tables.
6857 (read_file_scope): If we have line number info, instead of just
6858 calling dwarf_decode_lines to do all the work, call
6859 dwarf_decode_line_header first to get a `struct line_header'
6860 containing the data in the statement program header, and then
6861 pass that to dwarf_decode_lines, which will pick up where that
6862 left off. Be sure to clean up the `struct line_header' object.
6863 (dwarf_decode_line_header, free_line_header, add_include_dir,
6864 add_file_name): New functions.
6865 (dwarf_decode_lines): Move all the code to read the statement
6866 program header into dwarf_decode_line_header. Take the line
6867 header it built as the first argument, instead of the offset to
6868 the compilation unit's line number info. Use the new `struct
6869 line_header' type instead of the old structures. No need to do
6870 cleanups here now, since we don't allocate anything.
6871 (dwarf2_statement_list_fits_in_line_number_section,
6872 dwarf2_line_header_too_long): New complaints.
6873
ac3aafc7
EZ
68742002-05-06 Elena Zannoni <ezannoni@redhat.com>
6875
6876 * gdbtypes.c (init_vector_type): New function.
6877 (build_builtin_type_vec128): Simplify the representation of SIMD
6878 registers.
6879 (build_gdbtypes): Initialize new builtin vector types.
6880 (_initialize_gdbtypes): Register new vector types with gdbarch.
6881 (builtin_type_v4_float, builtin_type_v4_int32,
6882 builtin_type_v8_int16, builtin_type_v16_int8,
6883 builtin_type_v2_int32, builtin_type_v4_int16,
6884 builtin_type_v8_int8): New (renamed) SIMD types.
6885
13e49980
MK
68862002-05-06 Mark Kettenis <kettenis@gnu.org>
6887
6888 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6889 (i387_fill_fxsave): Likewise.
6890
997b20b8
AO
68912002-05-05 Alexandre Oliva <aoliva@redhat.com>
6892
6893 * alpha-tdep.c (alpha_extract_return_value): Don't use
6894 non-constant array size in prototype.
6895
535c96ce
AC
68962002-05-04 Andrew Cagney <ac131313@redhat.com>
6897
6898 From Brian Taylor <briant at model dot com>:
6899 * ui-out.c (ui_out_field_core_addr): Use the function
6900 longest_local_hex_string_custom'to format addresses > 32 bits
6901 wide.
6902
6903 * ui-out.c (ui_out_field_core_addr): Update comment.
6904
bedfa57b
AC
69052002-05-04 Andrew Cagney <ac131313@redhat.com>
6906
6907 * stack.c (select_and_print_frame): Make static. Delete the
6908 parameter `level'.
6909 (func_command): Update call.
6910 (select_frame_command): Delete code computing the frame level.
6911 * frame.h (select_and_print_frame): Delete declaration.
6912
f621c63e
AC
69132002-05-04 Andrew Cagney <ac131313@redhat.com>
6914
6915 * sparc-tdep.c (sparc_get_saved_register): Comment why
6916 get_prev_frame call is safe.
6917
0f7d239c
AC
69182002-05-04 Andrew Cagney <ac131313@redhat.com>
6919
6920 * frame.h (select_frame): Delete level parameter.
6921 * stack.c (select_frame): Update. Use frame_relative_level to
6922 obtain the frame's level.
6923 (select_and_print_frame): Update call.
6924 (select_frame_command): Ditto.
6925 (up_silently_base): Ditto.
6926 (down_silently_base): Ditto.
6927 * ocd.c (ocd_start_remote): Ditto.
6928 * remote-rdp.c (remote_rdp_open): Ditto.
6929 * remote-mips.c (mips_initialize): Ditto.
6930 (common_open): Ditto.
6931 * remote-e7000.c (e7000_start_remote): Ditto.
6932 * m3-nat.c (select_thread): Ditto.
6933 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6934 (child_get_current_exception_event): Ditto.
6935 * varobj.c (varobj_create): Ditto.
6936 (varobj_update): Ditto.
6937 (c_value_of_root): Ditto.
6938 * tracepoint.c (finish_tfind_command): Ditto.
6939 * corelow.c (core_open): Ditto.
6940 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6941 * thread.c (info_threads_command): Ditto.
6942 (switch_to_thread): Ditto.
6943 * infrun.c (normal_stop): Ditto.
6944 (restore_selected_frame): Ditto.
6945 (restore_inferior_status): Ditto.
6946 * breakpoint.c (insert_breakpoints): Ditto.
6947 (watchpoint_check): Ditto.
6948 (bpstat_stop_status): Ditto.
6949 (do_enable_breakpoint): Ditto.
6950 * blockframe.c (flush_cached_frames): Ditto.
6951 (reinit_frame_cache): Ditto.
6952
71d6c7b1
AC
69532002-05-04 Andrew Cagney <ac131313@redhat.com>
6954
6955 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6956 maintainer.
6957
cda6c68a
JB
69582002-05-04 Jim Blandy <jimb@redhat.com>
6959
6960 * gdbtypes.c (replace_type): Doc fix.
6961
5c1c87f0
AC
69622002-05-04 Andrew Cagney <ac131313@redhat.com>
6963
6964 * valprint.c (strcat_longest): Delete commented out function.
6965 Update copyright.
6966
cd9bfe15
AC
69672002-05-04 Andrew Cagney <ac131313@redhat.com>
6968
6969 * MAINTAINERS: Mark a29k as deleted.
6970 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6971 Move new configurations to the top.
6972 * configure.tgt: Remove a29k.
6973 * config/a29k/tm-vx29k.h: Delete.
6974 * config/a29k/vx29k.mt: Delete.
6975 * config/a29k/tm-a29k.h: Delete.
6976 * config/a29k/a29k-udi.mt: Delete.
6977 * config/a29k/a29k.mt: Delete.
6978 * a29k-tdep.c: Delete.
6979 * remote-udi.c: Delete.
6980 * remote-mm.c: Delete.
6981 * remote-eb.c: Delete.
6982 * remote-adapt.c: Delete.
6983 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6984 * config/s390/s390x.mt: Ditto.
6985 * config/s390/s390.mt: Ditto.
6986 * config/sparc/sparclynx.mh: Ditto.
6987 * config/sparc/linux.mh: Ditto.
6988 * config/pa/hppaosf.mh: Ditto.
6989 * config/pa/hppabsd.mh: Ditto.
6990 * config/ns32k/nbsd.mt: Ditto.
6991 * config/mips/vr5000.mt: Ditto.
6992 * config/m68k/sun3os4.mh: Ditto.
6993 * config/m68k/nbsd.mt: Ditto.
6994 * config/m68k/m68klynx.mh: Ditto.
6995 * config/m32r/m32r.mt: Ditto.
6996 * config/i386/x86-64linux.mt: Ditto.
6997 * config/i386/nbsdelf.mt: Ditto.
6998 * config/i386/nbsd.mt: Ditto.
6999 * config/i386/i386lynx.mh: Ditto.
7000
bf0c5130
AC
70012002-05-04 Andrew Cagney <ac131313@redhat.com>
7002
7003 * target.c (debug_print_register): New function. Handle oversize
7004 registers.
7005 (debug_to_fetch_registers): Call.
7006 (debug_to_store_registers): Call.
7007
2ae1c2d2
JB
70082002-05-03 Jim Blandy <jimb@redhat.com>
7009
13a393b0
JB
7010 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7011 (read_type): Doc fix.
7012 * gdbtypes.c (replace_type): Doc fix.
7013
2ae1c2d2
JB
7014 * stabsread.c (multiply_defined_struct): New complaint.
7015 (read_struct_type): If the type we were passed isn't empty, or
7016 incomplete, don't read the new struct type into it; complain,
7017 and return the original type unchanged. Take a new `type_code'
7018 argument, which is the type code for the new type.
7019 (read_type): Rather than storing the type's type code here, pass
7020 it as an argument to read_struct_type, and let that take care of
7021 storing it. That way, we don't overwrite the original type code,
7022 so read_struct_type can use it to decide whether we're overwriting
7023 something we shouldn't.
7024 (complain_about_struct_wipeout): New function.
7025
8de9bdc4
AC
70262002-05-03 Andrew Cagney <ac131313@redhat.com>
7027
7028 * gdbarch.sh: Assert that gdbarch is non-NULL.
7029 * gdbarch.c: Regenerate.
7030
f773fdbb
JM
70312002-05-03 Jason Merrill <jason@redhat.com>
7032
7033 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7034 and return NULL.
7035
0e04a514
ML
70362002-05-03 Michal Ludvig <mludvig@suse.cz>
7037
7038 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7039 (x86_64_dwarf2gdb_regno_map_length),
7040 (x86_64_dwarf2_reg_to_regnum): Added.
7041 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7042 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7043 (_initialize_x86_64_tdep): Synced with the change above.
7044 (x86_64_skip_prologue): Reformulated message.
7045
065432a8
PM
70462002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7047
7048 * f-exp.y: Also use new prev_lexptr variable
7049 to improve error reporting. Based on Michael Snyder
7050 2002-04-24 dated patch to c-exp.y.
7051 * jv-exp.y: Likewise.
7052 * m2-exp.y: Likewise.
7053
a3162708
EZ
70542002-05-02 Elena Zannoni <ezannoni@redhat.com>
7055
7056 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7057 we are dealing with vectors.
7058
03620c38
PM
70592002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7060
7061 * config/m68k/tm-nbsd.h: Obvious fix,
7062 correct machine name.
7063
6604db2e
PM
70642002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7065
7066 * p-typeprint.c (pascal_type_print_base): Add support
7067 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7068
0906b739
PM
70692002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7070
7071 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7072 for fondamental pascal 'char' type.
7073
e2625b33
PM
70742002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7075
7076 * p-lang.h (is_pascal_string_type): Declaration changed,
7077 new sixth argument of type char ** added.
361d1df0 7078 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7079 changed. Args length_pos, length_size, string_pos, char_size
7080 can now be NULL. New argument arrayname set to the field
7081 name of the char array. Return value set to char array
7082 field index plus one.
361d1df0 7083 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7084 is_pascal_string_type function.
7085
cf17c188
AC
70862002-05-02 Andrew Cagney <cagney@redhat.com>
7087
7088 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7089 <cagney@redhat.com> change.
7090 * gdbarch.c: Regenerate.
7091
52bca491
AC
70922002-05-02 Andrew Cagney <cagney@redhat.com>
7093
7094 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7095 before probing for a new one. Detect errorenous gdbarch_init
7096 functions.
7097 * gdbarch.c: Regenerate.
7098
d5e72505
AC
70992002-05-01 Andrew Cagney <cagney@redhat.com>
7100
7101 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7102 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7103 * config/v850/tm-v850.h: Ditto. Update copyright.
7104
af566d9f
AC
71052002-04-30 Andrew Cagney <ac131313@redhat.com>
7106
7107 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7108 current_gdbarch.
7109
880d85fa
MS
71102002-04-30 Michael Snyder <msnyder@redhat.com>
7111
94c30b78
MS
7112 * arm-tdep.c: Whitespace clean-ups.
7113 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7114 should have been removed as part of 4/24 change.
7115
6f5987a6
KB
71162002-04-30 Kevin Buettner <kevinb@redhat.com>
7117
7118 * rs6000-tdep.c: Added comment describing how fpscr register
7119 numbers were chosen.
7120
1a113c93
MS
71212002-04-30 Michael Snyder <msnyder@redhat.com>
7122
7123 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7124
9a6f53fe
EZ
71252002-04-29 Elena Zannoni <ezannoni@redhat.com>
7126
7127 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7128 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7129 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7130
11ed25ac
KB
71312002-04-29 Kevin Buettner <kevinb@redhat.com>
7132
7133 From Louis Hamilton <hamilton@redhat.com>:
7134 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7135 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7136 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7137 not bfd-private xcoff data, to determine wordsize.
7138 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7139
ae232405
AC
71402002-04-29 Andrew Cagney <ac131313@redhat.com>
7141
7142 GDB 5.2 released from 5.2 branch.
7143
91fd20f7
ML
71442002-04-29 Michal Ludvig <mludvig@suse.cz>
7145
7146 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7147 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7148 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7149
2dc5091b
EZ
71502002-04-29 Elena Zannoni <ezannoni@redhat.com>
7151
7152 * rs6000-tdep.c (rs6000_extract_return_value,
7153 rs6000_store_return_value): Handle returning vectors.
7154 (rs6000_gdbarch_init): Use
7155 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7156 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7157 New function.
7158 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7159 vectors.
7160 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7161 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7162
2b9848d8
PM
71632002-04-24 Pierre Muller <ics.u-strasbg.fr>
7164
7165 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7166 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7167 with fprintf_unfiltered (gdb_stderr,...).
7168
f8d17dc5
PM
71692002-04-24 Pierre Muller <ics.u-strasbg.fr>
7170
7171 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7172 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7173 Replace fprintf (stderr,...
7174 with fprintf_unfiltered (gdb_stderr,....
7175 * remote-es.c: Likewise.
7176 * remote-os9k.c: Likewise.
7177 * remote-st.c: Likewise.
7178
2f2f1ad1
AS
71792002-04-28 Andreas Schwab <schwab@suse.de>
7180
7181 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7182 linux-proc.o and gcore.o.
7183
b6779aa2
AC
71842002-04-26 Michal Ludvig <mludvig@suse.cz>
7185
7186 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7187 code without frame pointers.
7188
7e57f5f4
AC
71892002-04-26 Andrew Cagney <ac131313@redhat.com>
7190
7191 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7192 ON_STACK is needed.
7193
2ceb85d0
BE
71942002-04-26 Ben Elliston <bje@redhat.com>
7195
7196 * target.c (do_xfer_memory): Correct reference to the new option
7197 "trust-readonly-sections".
7198
f5f8a009
EZ
71992002-04-26 Elena Zannoni <ezannoni@redhat.com>
7200
7201 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7202 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7203 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7204 vectors.
7205 (read_array_type): Record the fact that this array type is really a
7206 vector (i.e. are passed in by value).
7207
5868c862
JT
72082002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7209
7210 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7211 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7212 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7213 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7214 * alpha-linux-tdep.c: Include frame.h.
7215 (alpha_linux_sigcontext_addr): New function.
7216 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7217 alpha_linux_sigcontext_addr.
7218 * alpha-osf1-tdep.c: Include gdbcore.h.
7219 (alpha_osf1_sigcontext_addr): New function.
7220 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7221 alpha_osf1_sigcontext_addr.
7222 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7223 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7224
bfb01f37
AC
72252002-04-26 Andrew Cagney <ac131313@redhat.com>
7226
361d1df0 7227 * stack.c (selected_frame_level):
bfb01f37
AC
7228 (select_frame): Do not set selected_frame_level.
7229 * frame.h (selected_frame_level): Delete declaration.
7230
15813d3f
AC
72312002-04-26 Andrew Cagney <ac131313@redhat.com>
7232
7233 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7234 convert_from_func_ptr-addr when AIX / PowerOpen.
7235
6096c27a
AC
72362002-04-25 Andrew Cagney <ac131313@redhat.com>
7237
7238 * valops.c (hand_function_call): Call
7239 generic_save_call_dummy_addr.
7240 * frame.h (generic_save_call_dummy_addr): Declare.
7241 * blockframe.c (struct dummy_frame): Add fields call_lo and
7242 call_hi.
7243 (generic_find_dummy_frame): Check for PC in range call_lo to
7244 call_hi instead of entry_point_address.
7245 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7246 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7247 (generic_save_call_dummy_addr): New function.
7248
f510d44e
DM
72492002-04-24 David S. Miller <davem@redhat.com>
7250
7251 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7252 sparc_skip_prologue.
7253 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7254 information to find prologue when possible.
7255 (sparc_prologue_frameless_p): Call examine_prologue directly.
7256 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7257 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7258 second argument.
7259 (SKIP_PROLOGUE): Likewise.
7260
15d72a92
JT
72612002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7262
7263 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7264 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7265 indicate that the condition it was testing is always true.
7266 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7267 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7268 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7269
accc6d1f
JT
72702002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7271
7272 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7273 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7274 tdep->jb_pc and tdep->jb_elt_size.
7275 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7276 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7277 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7278 * alpha-nat.c (get_longjmp_target): Remove.
7279 (JB_ELEMENT_SIZE): Ditto.
7280 (JB_PC): Ditto.
7281 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7282 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7283 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7284 to alpha_get_longjmp_target.
7285 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7286 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7287 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7288
1bfdc549
AC
72892002-04-25 Andrew Cagney <ac131313@redhat.com>
7290
7291 * README: Update to GDB 5.2.
7292
1bd316f0
AC
72932002-04-25 Andrew Cagney <ac131313@redhat.com>
7294
7295 * gdbarch.sh (LC_ALL): Set to `c'.
7296
2e5ff58c
TR
72972002-04-25 Theodore A. Roth <troth@verinet.com>
7298
7299 * avr-tdep.c: Ran through gdb_indent.sh.
7300
e33ce519
TR
73012002-04-25 Theodore A. Roth <troth@verinet.com>
7302
7303 * MAINTAINERS: Add myself as AVR maintainer.
7304 * NEWS: Note new target avr.
7305
8818c391
TR
73062002-04-25 Theodore A. Roth <troth@verinet.com>
7307
7308 * Makefile.in: Add support for AVR target.
7309 * configure.tgt: Add support for AVR target.
7310 * avr-tdep.c: New file
7311 * config/avr/avr.mt: New file.
7312
79509c2d
TR
73132002-04-25 Theodore A. Roth <troth@verinet.com>
7314
7315 * MAINTAINERS: Add myself to write-after-approval.
7316
dac8068e
PM
73172002-04-24 Pierre Muller <ics.u-strasbg.fr>
7318
7319 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7320 with fprintf_unfiltered (gdb_stderr,....
7321
25bf3106
PM
73222002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7323
7324 Fix PR gdb/508.
7325 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7326
24467a86
PM
73272002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7328
7329 * p-exp.y: Also use new prev_lexptr variable
7330 to improve error reporting. Based on Michael Snyder
7331 2002-04-24 dated patch to c-exp.y.
7332
95b80706
JT
73332002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7334
7335 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7336 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7337 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7338 to 0.
7339 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7340 and struct value.
7341 (FUNCTION_START_OFFSET): Remove.
7342 (BREAKPOINT): Ditto.
7343
e90cc612
JT
73442002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7345
7346 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7347 * NEWS: Ditto.
7348
6c72f9f9
JT
73492002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7350
7351 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7352 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7353 alpha_linux_pc_in_sigtramp.
7354 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7355 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7356 alpha_osf1_pc_in_sigtramp.
7357 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7358 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7359 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7360 alphafbsd_pc_in_sigtramp.
7361 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7362 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7363 alphanbsd_pc_in_sigtramp.
7364 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7365 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7366
5e4f3379
JT
73672002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7368
7369 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7370
da8ca43d
JT
73712002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7372
7373 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7374 alphanbsd-tdep.c.
7375 (alphanbsd-nat.o): New dependency list.
7376 (alphanbsd-tdep.o): Ditto.
7377 * NEWS: Note new native NetBSD/alpha configuration.
7378 * alphanbsd-nat.c: New file.
7379 * alphanbsd-tdep.c: Ditto.
7380 * configure.host (alpha*-*-netbsd*): New host.
7381 * configure.tgt (alpha*-*-netbsd*): New target.
7382 * config/alpha/nbsd.mh: New file.
7383 * config/alpha/nbsd.mt: Ditto.
7384 * config/alpha/nm-nbsd.h: Ditto.
7385 * config/alpha/tm-nbsd.h: Ditto.
7386
36a6271d
JT
73872002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7388
7389 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7390 (alpha-osf1-tdep.o): New dependency list.
7391 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7392 and skip_sigtramp_frame members.
7393 * alpha-linux-tdep.c: Include gdbcore.h.
7394 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7395 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7396 * alpha-osf1-tdep.c: New file.
7397 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7398 alpha-osf1-dep.c.
7399 (alpha_frame_past_sigtramp_frame): New function.
7400 (alpha_dynamic_sigtramp_offset): Ditto.
7401 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7402 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7403 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7404 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7405 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7406 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7407 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7408 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7409 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7410 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7411 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7412 to find_solib_trampoline_target.
7413 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7414 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7415 (SKIP_TRAMPOLINE_CODE): Remove.
7416 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7417 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7418 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7419 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7420 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7421 (PROC_SIGTRAMP_MAGIC): Ditto.
7422 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7423 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7424 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7425 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7426 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7427
2f4bc57b
JT
74282002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7429
7430 * NEWS: Note that Alpha targets are now multi-arch.
7431
665132f9
MS
74322002-04-24 Michael Snyder <msnyder@redhat.com>
7433
7434 * parser-defs.h (prev_lexptr): New external variable.
7435 * parse.c (parse_exp_1): Set prev_lexptr to null before
7436 calling the language-specific parser.
7437 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7438 (yyerror): Use prev_lexptr in error reporting.
7439
32872fa7
DJ
74402002-04-24 Daniel Jacobowitz <drow@mvista.com>
7441
7442 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7443 * gregset.h: If FILL_FPXREGSET is defined, provide
7444 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7445 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7446 is defined, call fill_fpxregset.
7447
57e76fac
MS
74482002-04-24 Roland McGrath <roland@frob.com>
7449
7450 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7451 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7452 (supply_gregset, supply_fpregset): New functions.
7453
7454 * gnu-nat.c (gnu_find_memory_regions): New function.
7455 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7456 (gnu_xfer_memory): Add a cast.
7457
f43845b3
MS
74582002-04-24 Michael Snyder <msnyder@redhat.com>
7459
361d1df0 7460 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7461 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7462 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7463 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7464 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7465 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7466
a0abec03
AC
7467Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7468
7469 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7470 NUM_PSEUDO_REGS can be used.
7471
d7bd68ca
AC
74722002-04-24 Andrew Cagney <ac131313@redhat.com>
7473
7474 * arch-utils.h: Update copyright.
7475
7476 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7477 * gdbarch.h, gdbarch.c: Re-generate.
7478
7479 * inferior.h (IN_SIGTRAMP): Delete definition.
7480 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7481 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7482
7483 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7484 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7485 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7486 (find_proc_framesize): Ditto.
7487 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7488 (alpha_init_extra_frame_info): Ditto.
7489 * infrun.c (handle_inferior_event): Ditto.
7490 (handle_inferior_event): Ditto.
7491 (check_sigtramp2): Ditto.
7492 * blockframe.c (create_new_frame): Ditto.
7493 (get_prev_frame): Ditto.
7494 * ppc-linux-tdep.c: Update comments.
7495 * i386-linux-tdep.c: Update comments.
7496 * breakpoint.c (bpstat_what): Update comment.
7497
4867e41e
DM
74982002-04-24 David S. Miller <davem@redhat.com>
7499
21d83aa5
DM
7500 * i960-tdep.c (register_in_window_p): New function.
7501 (i960_find_saved_register): Use it instead of
7502 REGISTER_IN_WINDOW_P.
7503 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7504
4867e41e
DM
7505 * symtab.h (find_stab_function_addr): Kill extern.
7506 * minsyms.c (find_stab_function_addr): Remove from here...
7507 * dbxread.c: ... to here, and mark it static.
7508
69cdf6a2
DM
75092002-04-20 David S. Miller <davem@redhat.com>
7510
7511 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7512 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7513
5a595886
DM
75142002-04-21 David S. Miller <davem@redhat.com>
7515
7516 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7517 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7518 (vx_write_register): Likewise.
7519
1da1a192
JB
75202002-04-23 J. Brobecker <brobecker@gnat.com>
7521
7522 * source.c (is_regular_file): New function.
7523 (openp): Check wether file to open is a regular file
7524 to avoid opening directories.
7525
baa6f10b
JT
75262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7527
7528 * findvar.c (extract_signed_integer): Cast printf argument
7529 to suppress format warning.
7530 (extract_unsigned_integer): Likewise.
7531 * infcmd.c (registers_info): Likewise.
7532 * top.c (get_prompt_1): Likewise.
7533 * valops.c (value_assign): Likewise.
7534 * valprint.c (print_decimal): Likewise.
7535
b2c4da81
L
75362002-04-22 H.J. Lu (hjl@gnu.org)
7537
7538 * c-exp.y (typebase): Support
361d1df0 7539
b2c4da81
L
7540 [long|long long|short] [signed|unsigned] [int|]
7541
7542 and
7543
7544 signed [long|long long|short] int
7545
f267bd6a
JT
75462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7547
7548 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7549 and vax-tdep.h.
7550 * vax-tdep.h: New file.
7551 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7552 Make several routines static.
7553 (vax_get_saved_register): New function.
7554 (vax_gdbarch_init): New function.
7555 (_initialize_vax_tdep): Register vax_gdbarch_init.
7556 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7557 Remove macros now under the control of gdbarch.
7558
da3c6d4a
MS
75592002-04-22 Michael Snyder <msnyder@redhat.com>
7560
11d3b27d
MS
7561 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7562 Some whitespace and coding standards tweaks.
da3c6d4a 7563
a33f7558
JT
75642002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7565
7566 * vax-tdep.c: Include regcache.h.
7567 (vax_call_dummy_words): New.
7568 (sizeof_vax_call_dummy_words): New.
7569 (vax_fix_call_dummy): New function.
7570 (vax_saved_pc_after_call): Ditto.
7571 * config/vax/tm-vax.h: Don't include regcache.h.
7572 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7573 (CALL_DUMMY): Remove.
7574 (CALL_DUMMY_WORDS): Define.
7575 (SIZEOF_CALL_DUMMY_WORDS): Define.
7576 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7577
47a73475
MS
75782002-04-18 Michael Snyder <msnyder@redhat.com>
7579
7580 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7581
52efde73
JT
75822002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7583
7584 * vax-tdep.c (vax_frame_chain): New function.
7585 (vax_push_dummy_frame): Ditto.
7586 (vax_pop_frame): Ditto.
7587 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7588 (FRAMELESS_FUNCTION_INVOCATION): Use
7589 generic_frameless_function_invocation_not.
7590 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7591 (POP_FRAME): Use vax_pop_frame.
7592
ea74468c
JT
75932002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7594
7595 * vax-tdep.c (vax_store_struct_return): New function.
7596 (vax_extract_return_value): Ditto.
7597 (vax_store_return_value): Ditto.
7598 (vax_extract_struct_value_address): Ditto.
7599 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7600 vax_store_struct_return.
7601 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7602 (STORE_RETURN_VALUE): Use vax_store_return_value.
7603 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7604
5516aa92
JT
76052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7606
7607 * vax-tdep.c (vax_frame_saved_pc): New function.
7608 (vax_frame_args_address_correct): Ditto.
7609 (vax_frame_args_address): Ditto.
7610 (vax_frame_locals_address): Ditto.
7611 (vax_frame_num_args): Move code to be in proximity to
7612 other frame-related functions.
7613 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7614 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7615 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7616 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7617 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7618
36af0b35
L
76192002-04-22 H.J. Lu (hjl@gnu.org)
7620
7621 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7622 includedir.
7623
ab62c900
JT
76242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7625
7626 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7627 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7628 (FRAME_INIT_SAVED_REGS): New macro.
7629
7232b100
JT
76302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7631
7632 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7633
b70d2aee
JT
76342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7635
7636 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7637 where needed.
7638 (fetch_osf_core_registers): Likewise.
7639 (supply_gregset): Likewise.
7640
a0e8a2d1 76412002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7642
a0e8a2d1
JB
7643 * symfile.h (get_section_index): Define.
7644 * symfile.c (get_section_index): New function.
7645 * mdebugread.c (SC_IS_SBSS): New macro.
7646 (SC_IS_BSS): Return true for the scBss storage class only, as
7647 the scSBss storage class refers to the .sbss section.
7648 (parse_partial_symbols): Discard the symbols which associated
7649 section does not exist.
7650 Make sure to use the .sbss section index for symbols which
7651 storage class is scBss, rather than using the .bss section index.
7652
51eb8b08
JT
76532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7654
7655 * vax-tdep.c: Update copyright years.
7656 (vax_register_name): New function.
7657 (vax_register_byte): Ditto.
7658 (vax_register_raw_size): Ditto.
7659 (vax_register_virtual_size): Ditto.
7660 (vax_register_virtual_type): Ditto.
7661 * config/vax/tm-vax.h: Update copyright years.
7662 (REGISTER_NAMES): Remove.
7663 (REGISTER_NAME): Define.
7664 (REGISTER_BYTE): Use vax_register_byte.
7665 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7666 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7667 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7668
6cc1c0a8
AC
76692002-04-21 Andrew Cagney <ac131313@redhat.com>
7670
7671 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7672 declaration
7673 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7674
9319a2fe
DM
76752002-04-21 David S. Miller <davem@redhat.com>
7676
7677 * arch-utils.c (generic_prologue_frameless_p): Kill
7678 SKIP_PROLOGUE_FRAMELESS_P code.
7679 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7680 references.
7681 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7682 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7683 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7684 references.
7685 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7686 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7687 (sparc_gdbarch_init): Pass it to
7688 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7689
e9ed6d01
JT
76902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7691
7692 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7693 (alphabsd-nat.o): New dependency list.
7694
36012033
JT
76952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7696
7697 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7698 alphafbsd-tdep.c.
7699 (alpha-linux-tdep.o): New dependency list.
7700 (alphafbsd-tdep.o): Likewise.
7701
3379287a
JT
77022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7703
7704 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7705 to here...
7706 * alpha-tdep.c: ...from here.
7707 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7708
4bcbd6cb
JT
77092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7710
7711 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7712 prototype from here...
7713 * alpha-tdep.h: ...to here.
7714
b31da25e
AC
77152002-04-21 Andrew Cagney <ac131313@redhat.com>
7716
7717 * frame.h (selected_frame_level): Document as deprecated.
7718 (frame_relative_level): Declare.
7719 * stack.c (frame_relative_level): New function.
7720 (selected_frame_level): Document as deprecated.
7721 (select_frame): Do not set the selected_frame_level.
7722
7723 * stack.c (frame_info, record_selected_frame): Update.
7724 (frame_command, current_frame_command): Update.
7725 (up_silently_base, up_command, down_silently_base): Update.
7726 (down_command): Update.
7727 * inflow.c (kill_command): Update.
7728 * tracepoint.c (finish_tfind_command): Update.
7729 * corelow.c (core_open): Update.
7730 * thread.c (info_threads_command): Update.
7731 (do_captured_thread_select): Update.
7732 * infcmd.c (finish_command): Update.
7733 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7734
9c1d6fe5
JT
77352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7736
7737 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7738
ab89facf
AC
77392002-04-21 Andrew Cagney <ac131313@redhat.com>
7740
7741 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7742 type const.
7743
82a4efa1
JT
77442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7745
7746 * alphafbsd-tdep.c: Update copyright years. Include
7747 alpha-tdep.h.
7748 (alphafbsd_use_struct_convention): Make static.
7749 (alphafbsd_init_abi): New function.
7750 (_initialize_alphafbsd_tdep): New function.
7751 * config/alpha/tm-fbsd.h: Update copyright years.
7752 (USE_STRUCT_CONVENTION): Remove.
7753
44dffaac
JT
77542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7755
7756 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7757 an Alpha ABI variant.
7758 (alpha_abi_handler_list): Declare.
7759 (alpha_gdbarch_register_os_abi): New function.
7760 (alpha_gdbarch_init): Give registered ABI variant handlers a
7761 chance to tweak the gdbarch once we have set up defaults.
7762 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7763
65585be4
JT
77642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7765
7766 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7767 to standard_coerce_float_to_double.
7768 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7769
d9b023cc
JT
77702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7771
7772 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7773 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7774 from gdbarch_tdep rather than a constant.
7775 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7776 the default text address for all Alpha Unix ABIs.
7777 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7778 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7779
dc129d82
JT
77802002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7781
7782 * alpha-tdep.h: New file. Includes several Alpha target constants
7783 taken from...
7784 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7785 let gdbarch deal with.
7786 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7787 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7788 to dependency list.
7789 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7790 Alpha target register names.
7791 * alphabsd-nat.c: Likewise.
7792 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7793 Alpha target register names. Make serveral routines static.
7794 (alpha_get_saved_register): New function.
7795 (alpha_abi_names): New.
7796 (process_note_abi_tag_sections): New function.
7797 (get_elfosabi): New function.
7798 (alpha_gdbarch_init): New function.
7799 (alpha_dump_tdep): New function.
7800 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7801
d49d1e0a
AC
78022002-04-21 Andrew Cagney <ac131313@redhat.com>
7803
7804 * frame.c (find_saved_register): Delete #ifdef
7805 HAVE_REGISTER_WINDOWS code.
7806 * config/sparc/tm-sparc.h: Update comments.
7807 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7808
92e8c9ed
AC
78092002-04-21 Andrew Cagney <ac131313@redhat.com>
7810
7811 * i960-tdep.c (i960_find_saved_register): New function.
7812 (i960_get_saved_register): New function.
7813 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7814 (i960_get_saved_register): Declare.
7815 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7816
e1925118
DM
78172002-04-20 David S. Miller <davem@redhat.com>
7818
7819 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7820
29673b29
AC
78212002-04-20 Andrew Cagney <ac131313@redhat.com>
7822
7823 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7824 instead of NUM_PSEUDO_REGS.
7825
6c86dcd5
DM
78262002-04-20 David S. Miller <davem@redhat.com>
7827
7828 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7829 GDB_MULTI_ARCH_PARTIAL
7830 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7831 define, let tm-sp64.h do it.
7832
aa40ec90
JT
78332002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7834
7835 * frame.c (find_saved_register): Avoid a NULL pointer
7836 dereference and actually walk the frame list.
7837
0f79675b
AC
78382002-04-20 Andrew Cagney <ac131313@redhat.com>
7839
7840 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7841 sorted in most most-recent-used order. Document.
7842 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7843
f91305dd 78442002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7845
7846 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7847 instead of ->prev.
7848 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7849 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7850 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7851 instead of ->prev.
7852
73d322b1
EZ
78532002-04-19 Elena Zannoni <ezannoni@redhat.com>
7854
7855 Fix PR gdb/471.
7856 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7857 (build_builtin_type_vec128): Ditto.
7858 (append_composite_type_field): Fix calculation of type length in
7859 union case.
7860
ccd9a834
EZ
78612002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7862
7863 * config/djgpp/README: Update.
7864
7865 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7866 compiler warnings.
7867
a57f9e49
JT
78682002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7869
7870 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7871 (alpha_setup_arbitrary_frame): ...to this.
7872 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7873 for alpha_setup_arbitrary_frame.
7874
f4f9705a
AC
78752002-04-18 Andrew Cagney <cagney@redhat.com>
7876
7877 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7878 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7879
f4f9705a
AC
7880 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7881 * target.h (memory_breakpoint_from_pc): Update declaration.
7882 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7883
7884 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7885 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7886 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7887 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7888 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7889 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7890 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7891 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7892 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7893 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7894 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7895 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7896
7897 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7898 const pointer.
7899 * monitor.c (monitor_insert_breakpoint): Ditto.
7900 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7901
7902 * config/mcore/tm-mcore.h: Update copyright.
7903 * mem-break.c: Ditto.
7904 * xstormy16-tdep.c: Ditto.
7905
29f319b8
PM
79062002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7907
7908 * p-exp.y: Add precedence rule for '^' token.
7909 This removes the shift/reduce conflicts.
7910 Remove the comment concerning these shift/reduce conflicts.
7911
ebeac11a
EZ
79122002-04-18 Elena Zannoni <ezannoni@redhat.com>
7913
7914 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7915 (registers_powerpc_nofp): New register set for processors
7916 without floating point unit.
7917
27c31547
DM
79182002-04-18 David S. Miller <davem@redhat.com>
7919
7920 * MAINTAINERS: Add myself to write-after-approval.
7921
47a73475
MS
79222002-04-17 Michael Snyder <msnyder@redhat.com>
7923
7924 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7925
953836b2
AC
79262002-04-17 Andrew Cagney <ac131313@redhat.com>
7927
7928 * rs6000-tdep.c (frame_initial_stack_address): Use
7929 frame_register_read to read the alloca_reg.
7930
8b0d4340
AC
79312002-04-17 Andrew Cagney <ac131313@redhat.com>
7932
7933 * frame.c (find_saved_register): Find saved registers in the next
7934 not prev frame.
7935 Fix PR gdb/365.
7936
d8864532
AC
79372002-04-17 Andrew Cagney <ac131313@redhat.com>
7938
7939 * gdbarch.sh (LANG): Set to ``c''.
7940
36cc83a3 79412002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7942
36cc83a3 7943 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7944
2f4150cc 79452002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7946
7947 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7948 Update copyright.
7949
628703c6 7950 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7951 Also fix PR gdb/391.
361d1df0 7952
56157b4a
AC
79532002-04-14 Andrew Cagney <ac131313@redhat.com>
7954
7955 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7956 * aclocal.m4, configure: Re-generate.
7957 Fix PR gdb/391.
361d1df0 7958
6d1e3329
EZ
79592002-04-14 Elena Zannoni <ezannoni@redhat.com>
7960
7961 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7962 instead of tm_print_insn.
7963
cb06fa07
EZ
79642002-04-14 Elena Zannoni <ezannoni@redhat.com>
7965
7966 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7967
f208ba17
AC
79682002-04-14 Andrew Cagney <ac131313@redhat.com>
7969
7970 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7971 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7972 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7973
20f01a46
DH
79742002-04-12 Don Howard <dhoward@redhat.com>
7975
7976 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7977 max_user_call_depth.
7978 (init_cmd_lists): Initialize the new value;
7979 * cli/cli-script.c (execute_user_command): Limit the call depth of
7980 user defined commands. This avoids a core-dump when user commands
7981 are infinitly recursive.
7982
a88376a3
KB
79832002-04-12 Kevin Buettner <kevinb@redhat.com>
7984
7985 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7986 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7987 from tdep struct instead of DEFAULT_LR_SAVE.
7988 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7989 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7990 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7991
f2172603
MS
79922002-04-12 Michael Snyder <msnyder@redhat.com>
7993
694f61fb 7994 * Remote.c: Spelling fix.
20fe79c8
MS
7995 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7996 If no symbol found for "sbrk", try "_sbrk".
7997 (make_output_phdrs): Use bfd_section_name.
7998 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7999 * eval.c: Indentation fix-ups.
169a7369
MS
8000 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8001 in case it gets applied to an address that is already
8002 in the instruction space.
de74f71f
MS
8003 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8004 * symfile.c: Fix indentation, long lines.
f2172603
MS
8005 * source.c: White space fix-up.
8006
cda5a58a
AC
80072002-04-12 Andrew Cagney <cagney@redhat.com>
8008
8009 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8010 * frame.c (frame_register_read): New function. Return non-zero on
8011 success.
8012 (read_relative_register_raw_bytes_for_frame): Delete.
8013 (read_relative_register_raw_bytes): Delete.
8014 * frame.h (frame_register_read): Declare.
8015 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8016 * sh-tdep.c: Ditto.
8017 * infcmd.c (do_registers_info): Ditto.
8018 * hppa-tdep.c: Ditto.
8019 * rs6000-tdep.c: Ditto.
8020 * h8500-tdep.c: Ditto.
8021 * mips-tdep.c: Ditto.
8022 * h8300-tdep.c: Ditto.
8023 * z8k-tdep.c: Ditto.
8024
2ea5f656
KB
80252002-04-12 Kevin Buettner <kevinb@redhat.com>
8026
8027 From Jimi X <jimix@watson.ibm.com>:
8028 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8029 64-bit SysV ABI.
8030
27b15785
KB
80312002-04-12 Kevin Buettner <kevinb@redhat.com>
8032
8033 From Jimi X <jimix@watson.ibm.com>:
8034 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8035 bfd info.
8036
5d57ee30
KB
80372002-04-12 Kevin Buettner <kevinb@redhat.com>
8038
8039 From Jimi X <jimix@watson.ibm.com>:
8040 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8041 register sets for these processor variants.
8042
bc1e36ca
DJ
80432002-04-11 Daniel Jacobowitz <drow@mvista.com>
8044
bc1e36ca
DJ
8045 * regformats/reg-ppc.dat: Support FPSCR.
8046
e3f36dbd
KB
80472002-04-11 Kevin Buettner <kevinb@redhat.com>
8048
8049 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8050 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8051 Add fpscr as an invalid/unfetchable register.
8052 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8053 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8054 (fill_fpregset): Add support for register fpscr.
8055 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8056 (fill_gregset): Account for the fact that register ``mq'' might
8057 not exist.
8058 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8059 (registers_power): Add fpscr to register set at slot 71.
8060 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8061 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8062
943c9c25
MS
80632002-04-11 Michael Snyder <msnyder@redhat.com>
8064
8065 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8066 * configure: Regenerate.
8067 * config.in: Regenerate.
8068 * acconfig.h: Add define for _SYSCALL32.
8069 * core-sol2.c: Remove #define _SYSCALL32.
8070 * solib-legacy.c: Remove #define _SYSCALL32.
8071
d8c0a2e7
AC
80722002-04-10 Andrew Cagney <ac131313@redhat.com>
8073
8074 * stack.c (select_frame): Cleanup internal error message, do not
8075 use %p.
8076
7cc19214
AC
80772002-04-10 Andrew Cagney <ac131313@redhat.com>
8078
8079 * stack.c (select_frame): Check that selected_frame and the
8080 specified level are as expected.
8081 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8082 Update copyright.
8083 * frame.h (struct frame_info): Add field `level'. Update
8084 copyright.
8085 Work-in-progress PR gdb/464.
8086
67a2b77e
AC
80872002-04-10 Andrew Cagney <ac131313@redhat.com>
8088
8089 * maint.c (maint_print_section_info): Rename print_section_info.
8090 (print_bfd_section_info, print_objfile_section_info): Update.
8091 * inferior.h (struct gdbarch): Add opaque declaration.
8092 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8093 * gdbarch.h: Regenerate.
8094
8cfda98c
ML
80952002-04-10 Michal Ludvig <mludvig@suse.cz>
8096
8097 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8098 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8099 (kernel_u_size): Added.
8100 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8101 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8102
ca439ad2 81032002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8104
ca439ad2
JI
8105 * valarith.c (find_size_for_pointer_math): New function, either returns
8106 the size for a pointer's target, returns 1 for void *, or errors for
8107 incomplete types.
8108 (value_add, value_sub): use find_size_for_pointer_math.
8109
2f2893d9
DJ
81102002-04-09 Daniel Jacobowitz <drow@mvista.com>
8111
8112 * linux-low.c (linux_look_up_symbols): New hook.
8113 (linux_target_ops): Add linux_look_up_symbols.
8114 * remote-utils.c (decode_address): New function.
8115 (look_up_one_symbol): New function.
8116 * server.c (handle_query): Call target look_up_symbols hook.
8117 * server.h (look_up_one_symbol): Add prototype.
8118 * target.h (struct target_ops): Add look_up_symbols hook.
8119
96cb11df
AC
81202002-04-09 Andrew Cagney <ac131313@redhat.com>
8121
8122 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8123 override FP_REGNUM with frame->fp. Update copyright.
8124 * parse.c (num_std_regs, std_regs): Delete.
8125 (target_map_name_to_register): Do not search std_regs. Update
8126 function description.
8127 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8128 declarations. Update copyright.
8129 Fix PR gdb/251.
361d1df0 8130
97658e92
DJ
81312002-04-09 Daniel Jacobowitz <drow@mvista.com>
8132
8133 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8134 after the last symbol in a block.
8135
6044e3eb
PM
81362002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8137
8138 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8139 is non zero as a found symbol.
8140
0406ec40
AC
81412002-04-08 Andrew Cagney <ac131313@redhat.com>
8142
8143 * findvar.c: Include "builtin-regs.h".
8144 (value_of_register): Call value_of_builtin_reg when applicable.
8145 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8146 (target_map_name_to_register): Call
8147 builtin_reg_map_name_to_regnum.
8148 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8149 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8150 (builtin_regs_h): Define.
8151 (builtin-regs.o): New target.
8152 (findvar.o): Add $(builtin_regs_h).
8153 * builtin-regs.c, builtin-regs.h: New files.
8154 * std-regs.c: New file.
8155 Partial fix for PR gdb/251.
8156
56a6dfb9
KB
81572002-04-08 Kevin Buettner <kevinb@redhat.com>
8158
8159 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8160 it's no longer required.
8161
3a808432
AC
81622002-04-08 Andrew Cagney <ac131313@redhat.com>
8163
8164 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8165
7c40d541
KB
81662002-04-08 Kevin Buettner <kevinb@redhat.com>
8167
8168 From Jimi X <jimix@watson.ibm.com>:
8169 * rs6000-tdep.c (rs6000_software_single_step): Use
8170 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8171 and size. Use target_insert_breakpoint() and
8172 target_remove_breakpoint() to insert and remove breakpoints
8173 instead of explicit memory reads and writes.
8174
cc9836a8
KB
81752002-04-08 Kevin Buettner <kevinb@redhat.com>
8176
8177 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8178 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8179 ELF_OBJECT_FORMAT ifdef.
8180
7495d1dc
KB
81812002-04-08 Kevin Buettner <kevinb@redhat.com>
8182
8183 From Jimi X <jimix@watson.ibm.com>:
8184 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8185
4288e836
KB
81862002-04-08 Kevin Buettner <kevinb@redhat.com>
8187
8188 From Jimi X <jimix@watson.ibm.com>:
8189 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8190 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8191
a4e4e501
MK
81922002-04-07 Mark Kettenis <kettenis@gnu.org>
8193
8194 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8195 s/asprintf/xasprintf/.
8196 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8197
006defba
AC
81982002-04-07 Andrew Cagney <ac131313@redhat.com>
8199
8200 I believe Jeff Law denies responsability for this one:
8201 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8202 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8203 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8204 Work-around for PR gdb/366.
8205
7aa83cac
EZ
82062002-04-07 Elena Zannoni <ezannoni@redhat.com>
8207
8208 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8209 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8210 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8211
cf1fcca1
EZ
82122002-04-07 Elena Zannoni <ezannoni@redhat.com>
8213
8214 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8215 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8216 information.
8217
3f289e6f
AC
82182002-04-07 Andrew Cagney <ac131313@redhat.com>
8219
8220 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8221 maintainer.
8222
129188f6
AC
82232002-04-07 Andrew Cagney <ac131313@redhat.com>
8224
8225 * README (Reporting Bugs in GDB): Document the bug web page as the
8226 prefered way of submitting bugs.
8227 Fix PR gdb/402.
8228
1200cd6e
AC
82292002-04-06 Andrew Cagney <ac131313@redhat.com>
8230
8231 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8232 -1. Update comment.
8233 * gdbarch.h, gdbarch.c: Re-generate.
8234
2853c33c
AS
82352002-04-07 Andreas Schwab <schwab@suse.de>
8236
8237 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8238 buffer to regcache_collect.
8239
c2169756
AC
82402002-04-06 Andrew Cagney <ac131313@redhat.com>
8241
8242 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8243 * gdbarch.c, gdbarch.h: Re-generate.
8244
25f1b008
AC
82452002-04-06 Andrew Cagney <ac131313@redhat.com>
8246
8247 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8248 declaration. Fix -Werror.
8249
59263426
DJ
82502002-04-05 Daniel Jacobowitz <drow@mvista.com>
8251
8252 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8253 * gdbarch.c: Regenerate.
8254
f5db4da3
MS
82552002-04-05 Michael Snyder <msnyder@redhat.com>
8256
80f8a6eb
MS
8257 * breakpoint.c (clear_command): Rewrite middle section to
8258 combine two loops with identical control conditions.
8259 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8260 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8261
ad3dcc5c
L
82622002-04-05 H.J. Lu (hjl@gnu.org)
8263
8264 * solib-svr4.c (bkpt_names): Add "__start".
8265
f32e7a74
AC
82662002-04-04 Andrew Cagney <ac131313@redhat.com>
8267
8268 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8269 as test for 64 bit target.
8270
8227c0ff
AC
82712002-04-05 Andrew Cagney <ac131313@redhat.com>
8272
8273 * h8500-tdep.c (h8500_write_fp): Delete function.
8274 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8275 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8276 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8278 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8279 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8280 (s390_write_fp):
8281 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8282 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8283 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8284 (d10v_write_fp): Delete function.
8285 * inferior.h (write_fp, generic_target_write_fp): Delete
8286 declarations.
8287 * regcache.c (generic_target_write_fp): Delete function.
8288 (write_fp): Delete function.
8289 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8290 * gdbarch.h, gdbarch.c: Regenerate.
8291 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8292 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8293 (sparc64_write_fp): Delete declaration.
8294 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8295 (h8500_write_fp): Delete declaration.
8296
2757dd86
AC
82972002-04-04 Andrew Cagney <ac131313@redhat.com>
8298
8299 * sparc-tdep.c (sparc64_write_fp): Delete.
8300 (sparc_push_dummy_frame): Replace write_fp call with code to store
8301 the FP directly.
8302 (sparc_gdbarch_init): Do not initialize write_fp.
8303
c69255e1
KB
83042002-04-05 Kevin Buettner <kevinb@redhat.com>
8305
8306 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8307 clause.
8308
ae767bfb
JB
83092002-03-29 Jim Blandy <jimb@redhat.com>
8310
8311 * stack.c (get_selected_block): Add new argument `addr_in_block',
8312 used to return the exact code address we used to select the block,
8313 not just the block.
8314 * blockframe.c (get_frame_block, get_current_block): Same.
8315 * frame.h (get_frame_block, get_current_block,
8316 get_selected_block): Update declarations.
8317 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8318 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8319
84d2ac95
MS
83202002-04-05 Michael Snyder <msnyder@redhat.com>
8321
8322 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8323 warning message.
8324
596aa3bf
JB
83252002-04-05 J. Brobecker <brobecker@gnat.com>
8326
8327 * utils.c (xfullpath): New function.
8328 * defs.h (xfullpath): Add declaration.
8329 * source.c (openp): Use xfullpath in place of gdb_realpath to
8330 avoid resolving the basename part of filenames when the
8331 associated file is a symbolic link. This fixes a potential
8332 inconsistency between the filenames known to GDB and the
8333 filenames it prints in the annotations.
8334 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8335 to be able to match a filename with either the real filename, or
8336 the name of any symbolic link to this file.
8337 (lookup_partial_symtab): Ditto.
8338
c02f5703
MS
83392002-04-04 Michael Snyder <msnyder@redhat.com>
8340
8341 * breakpoint.c: Add support for hardware breakpoints in overlays.
8342 (overlay_events_enabled): New state variable.
8343 (insert_breakpoints): Use overlay_events_enabled to decide
8344 whether to attempt to set a breakpoint at the overlay load addr.
8345 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8346 (remove_breakpoint): Use overlay_events_enabled to decide
8347 whether breakpoints need to be removed from overlay load addr.
8348 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8349 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8350 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8351 disable_overlay_breakpoints): Update overlay_events_enabled.
8352
5fb290d7
DJ
83532002-04-04 Daniel Jacobowitz <drow@mvista.com>
8354
8355 * dwarf2read.c (struct function_range): New.
8356 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8357 (check_cu_functions): New.
8358 (read_file_scope): Initialize global function lists.
8359 Call dwarf_decode_line after processing children.
8360 (read_func_scope): Add to global function list.
8361 (dwarf_decode_lines): Call check_cu_functions everywhere
8362 record_line is called. Call record_line with a linenumber
8363 of 0 to mark sequence ends.
8364
7b3fabf0
ML
83652002-04-04 Michal Ludvig <mludvig@suse.cz>
8366
361d1df0 8367 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8368 change sync with glibc.
8369
bce58c09
JB
83702002-04-03 Jim Blandy <jimb@redhat.com>
8371
8372 * configure.in: Call AC_C_INLINE.
8373 * configure: Regenerated.
361d1df0 8374
2fccf04a
DJ
83752002-04-01 Daniel Jacobowitz <drow@mvista.com>
8376
8377 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8378 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8379
2d1bfe2e
MK
83802002-03-31 Mark Kettenis <kettenis@gnu.org>
8381
a5941fbf
MK
8382 * NEWS: Mention gcore support on FreeBSD/i386.
8383
a90cd31d
MK
8384 * fbsd-proc.c: New file.
8385 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8386 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8387
2d1bfe2e
MK
8388 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8389 while statement.
8390
9eb6e5a1
JB
83912002-03-29 Jim Blandy <jimb@redhat.com>
8392
8393 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8394 unescaped newlines in string literals, but newer ones don't. So
8395 escape them.
8396
f02df580
MS
83972002-03-26 Michael Snyder <msnyder@redhat.com>
8398 Andrew Cagney <cagney@redhat.com>
8399
361d1df0 8400 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8401 restore file to memory.
8402 * cli/cli-dump.h: New file.
8403 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8404 * NEWS: Mention new commands.
f02df580 8405
109f874e
MS
84062002-03-28 Michael Snyder <msnyder@redhat.com>
8407
8408 * symfile.c (symbol_file_add): Move test for null symbols to later.
8409
520f6ade
AC
84102002-03-27 Andrew Cagney <ac131313@redhat.com>
8411
8412 From veksler at il.ibm.com:
8413 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8414 the xstrduped original path.
8415 Fix PR gdb/417.
8416
d4654627
MS
84172002-03-27 Michael Snyder <msnyder@redhat.com>
8418
8419 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8420 * infcmd.c (_initialize_infcmd): Ditto.
8421 * language.c (_initialize_language): Ditto.
8422 * symfile.c (_initialize_symfile): Ditto.
8423 * top.c (_init_main): Ditto.
8424 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8425
6be8bc0c
EZ
84262002-03-27 Elena Zannoni <ezannoni@redhat.com>
8427
8428 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8429 vector registers handling.
8430 (skip_prologue): Handle new AltiVec instructions. Fill in new
8431 fields of frame data.
8432 (frame_get_saved_regs): Fill in information for AltiVec registers.
8433
12af6855
JB
84342002-03-27 Jim Blandy <jimb@redhat.com>
8435
8436 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8437 a function; leave this macro here to invoke that function.
8438 (symbol_init_mangled_name): Declaration for that function.
8439 * symtab.c (symbol_init_mangled_name): New function.
8440
dc672865
AC
84412002-03-27 Andrew Cagney <ac131313@redhat.com>
8442
8443 * valarith.c: Replace strerror with safe_strerror.
8444 * tracepoint.c: Ditto.
8445 * lin-lwp.c: Ditto.
8446 * go32-nat.c: Ditto.
8447 * inflow.c: Ditto.
8448 * gnu-nat.c: Ditto.
8449
d96429cd
AS
84502002-03-27 Andreas Schwab <schwab@suse.de>
8451
8452 * event-top.c (command_line_handler): Remove useless if.
8453
7e336ba1
AJ
84542002-03-27 Andreas Jaeger <aj@suse.de>
8455
8456 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8457 comment.
8458
de220d0f
ML
84592002-03-27 Michal Ludvig <mludvig@suse.cz>
8460
8461 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8462 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8463 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8464 (x86_64_linux_dr_get_status, supply_gregset),
8465 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8466 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8467 (x86_64_register_info_table): Add.
8468 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8469 (x86_64_register_raw_size, x86_64_register_virtual_type),
8470 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8471 general x86_64_register_info_table.
8472 (i386_gdbarch_init): gdbarch_register_bytes is now set
8473 dynamicaly during initialization.
8474 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8475 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8476
0e98d0a7
DJ
84772002-03-27 Daniel Jacobowitz <drow@mvista.com>
8478
8479 * gdbserver/server.c (main): Call target_signal_to_host_p
8480 and target_signal_to_host on signals received from the remote.
8481 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8482 target_signal_from_host on signals sent to the remote.
8483 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8484 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8485
3130066b
DJ
84862002-03-27 Daniel Jacobowitz <drow@mvista.com>
8487
8488 * signals/signals.c: Include "server.h" in gdbserver build.
8489 (target_signal_from_name): Don't use STREQ.
8490 (_initialize_signals): Likewise. Don't include function in
8491 gdbserver build.
8492
9aedf4f4
DJ
84932002-03-27 Daniel Jacobowitz <drow@mvista.com>
8494
8495 * signals.c: Moved to...
8496 * signals/signals.c: Here.
7e336ba1 8497 * Makefile (signals.o): Update.
9aedf4f4 8498
3fa41cdb
JL
84992002-03-26 Jeff Law (law@redhat.com)
8500
8501 * somread.c (som_symtab_read): Remove some commented out code and
8502 updated related comments. Do not set the minimal symbol table to
8503 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8504 in a dynamic executable.
8505 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8506 where we are unable to find the minimal symbol for the given
8507 PC value.
8508
ee677e8d
MS
85092002-03-25 Jeff Law (law@redhat.com)
8510
8511 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8512
e76e1718
ML
85132002-03-25 Michal Ludvig <mludvig@suse.cz>
8514
8515 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8516
18a642a1
AC
85172002-03-23 Andrew Cagney <ac131313@redhat.com>
8518
8519 * command.h: Update copyright.
8520 (struct cmd_list_element): Replace definition with opaque
8521 declaration.
8522 (enum cmd_types): Document that it will eventually be moved to
8523 cli/cli-decode.h
8524 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8525 (MALLOCED_REPLACEMENT): Delete macro.
8526 * Makefile.in (cli_decode_h): Add $(command_h).
8527 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8528 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8529 * completer.c: Include "cli/cli-decode.h".
8530 * maint.c: Include "cli/cli-decode.h".
8531 * cli/cli-decode.h: Include "command.h".
8532 (enum command_class): Delete.
8533 (enum cmd_types): Comment out.
8534 (enum cmd_auto_boolean): Delete.
8535 (enum var_types): Delete.
8536
b2875cc0
AC
85372002-03-23 Andrew Cagney <ac131313@redhat.com>
8538
8539 * cli/cli-decode.c: Include "gdb_assert.h".
8540 (add_set_or_show_cmd): New static function.
8541 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8542 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8543 all fields, such as func, from the set command.
8544
3b45974e
AC
85452002-03-23 Andrew Cagney <ac131313@redhat.com>
8546
8547 * MAINTAINERS (sh-elf): Change warning flag to -w.
8548
823ca731
AC
85492002-03-23 Andrew Cagney <cagney@redhat.com>
8550
8551 * defs.h (error): Add printf format attribute.
8552 * thread-db.c (thread_from_lwp): Fix error format string.
8553 * stack.c (parse_frame_specification): Ditto.
8554 * cli/cli-decode.c (undef_cmd_error): Ditto.
8555 * scm-lang.c (scm_lookup_name): Ditto.
8556 * tracepoint.c (trace_error): Ditto.
8557 * remote-utils.c (usage): Ditto.
8558 * remote.c (compare_sections_command): Ditto.
8559 Fix PR gdb/328.
8560
0e101458
AC
85612002-03-22 Andrew Cagney <ac131313@redhat.com>
8562
8563 * gdbtypes.c (append_composite_type_field): New function.
8564 (init_composite_type): New function.
8565 * gdbtypes.h (append_composite_type_field): Declare.
8566 (init_composite_type): Ditto.
8567
8e0662df
EZ
85682002-03-22 Elena Zannoni <ezannoni@redhat.com>
8569
8570 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8571 function.
8e0662df
EZ
8572 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8573 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8574 structure returning convention for SYSV ABI case, but not
8575 for GNU/Linux, FreeBSD, or NetBSD.
8576
3121eff0
DJ
85772002-03-22 Daniel Jacobowitz <drow@mvista.com>
8578
8579 * symtab.h (lookup_block_symbol): Add mangled_name argument
8580 to prototype.
8581
8582 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8583 with new mangled_name argument.
8584 * linespec.c (decode_line_1): Likewise.
8585 * valops (value_of_this): Likewise.
8586 * symtab.c (lookup_transparent_type): Likewise.
8587 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8588 (lookup_symbol): If we are given a mangled name, pass it down
8589 to lookup_symbol_aux.
8590 (lookup_block_symbol): If we are given a mangled name to check
8591 against, only return symbols which match it.
8592
349b409f
CF
85932002-03-22 Christopher Faylor <cgf@redhat.com>
8594
8595 * win32-nat.c (child_create_inferior): Check for proper shell to use
8596 here, in case the user changes it on the fly.
8597 (_initialize_inftarg): Remove shell path considerations.
8598
2a873819
EZ
85992002-03-21 Elena Zannoni <ezannoni@redhat.com>
8600
8601 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8602 for gdbarch_max_register_raw_size and max_register_virtual_size.
8603 Adjust copyright year.
8604
a1b9830c
DJ
86052002-03-21 Daniel Jacobowitz <drow@mvista.com>
8606
8607 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8608 in a function to cover the entire beginning of the function
8609 as well if it does not already.
8610
8b5790f2
TR
86112002-03-21 Tom Rix <trix@redhat.com>
8612
8613 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8614 (rs6000_ptrace64): Renamed from ptrace64.
8615
bdbe5747
MH
86162002-03-20 Martin M. Hunt <hunt@redhat.com>
8617
8618 * gdbserver/remote-utils.c (remote_open): Don't call
8619 getprotobyname, we're all using TCP here so just use
8620 IPPROTO_TCP.
7e336ba1 8621 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8622
86232002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8624
bdbe5747
MH
8625 * regcache.c (_initialize_regcache): No need to call
8626 build_regcache() at this time; it gets called whenever
8627 the gdbarch changes.
8628
7781cd62
DB
86292002-03-20 David O'Brien <obrien@FreeBSD.org>
8630
8631 * sparc-nat.c: Include sys/param.h where possible.
8632
f65ca430
DJ
86332002-03-20 Daniel Jacobowitz <drow@mvista.com>
8634
8635 Fix PR gdb/422.
8636 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8637 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8638 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8639 complex types.
8640 * stabsread.c (rs6000_builtin_type): Likewise.
8641 (read_sun_floating_type): Likewise.
8642
0c867556
PS
86432002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8644
8645 * stabsread.c (read_member_functions): Remove skip code for duplicate
8646 constructor/destructor methods. Use standard parsing for these
8647 methods and just do not chain them to the list of methods after
8648 parsing.
8649
12b9c64f
AO
86502002-03-19 Alexandre Oliva <aoliva@redhat.com>
8651
8652 * coffread.c: Remove redundant static declarations. Replace
8653 occurrences of `PTR' with `void *'.
8654 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8655 * top.h (quit_cover): Likewise.
8656 * defs.h (catch_errors): Likewise.
8657
349c5d5f
AC
86582002-03-18 Andrew Cagney <ac131313@redhat.com>
8659
8660 * defs.h (XMALLOC): Define.
8661 * gdb-events.sh (XMALLOC): Delete macro.
8662 * gdb-events.c, gdb-events.h: Regenerate.
8663 * gdbarch.sh (XMALLOC): Delete macro.
8664 * gdbarch.c: Regenerate.
8665 * serial.c (XMALLOC): Delete macro.
8666 * ui-file.c (XMALLOC): Ditto.
8667 * ser-unix.h (XMALLOC): Ditto.
8668 * sh-tdep.c (XMALLOC): Ditto.
8669 * ui-out.c (XMALLOC): Ditto.
8670 * utils.c (XMALLOC): Ditto.
8671 * i386-tdep.c (XMALLOC): Ditto.
8672 * gdb-events.c (XMALLOC): Ditto.
8673 * d10v-tdep.c (XMALLOC): Ditto.
8674 * cli-out.c (XMALLOC): Ditto.
8675
8676 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8677 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8678 * ui-file.c, ui-out.c: Ditto.
8679
7d0766f3
AC
86802002-03-18 Andrew Cagney <ac131313@redhat.com>
8681
8682 * command.h (struct cmd_list_element): Add field context.
8683 (set_cmd_context, get_cmd_context): Declare.
8684 * cli/cli-decode.h: Ditto.
8685 * cli/cli-decode.c (get_cmd_context): New function.
8686 (set_cmd_context): New function.
8687 (add_cmd): Initialize context.
8688 Part of fixing PR gdb/145 and PR gdb/146.
8689
5913bcb0
AC
86902002-03-17 Andrew Cagney <ac131313@redhat.com>
8691
1868c04e
AC
8692 * cli/cli-decode.c (cmd_type): New function.
8693 * command.h (cmd_type): Declare.
8694 * infrun.c (set_schedlock_func): Call function cmd_type.
8695 * kod.c (kod_set_os): Call cmd_type.
8696 * cris-tdep.c (cris_version_update): Use function cmd_type.
8697 (cris_mode_update, cris_abi_update): Ditto.
8698
5913bcb0
AC
8699 * command.h: (execute_cmd_post_hook): Declare.
8700 (execute_cmd_pre_hook): Declare.
8701 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8702 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8703 functions. Execute pre/post hook while ensuring that afterwords
8704 hook_in is cleared.
8705 * top.c (execute_command): Use execute_cmd_post_hook, and
8706 execute_cmd_pre_hook to execute pre/post commands.
8707 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8708 hook_stop_stub.
8709 (hook_stop_stub): Call execute_cmd_pre_hook.
8710
b51450c9
AC
87112002-03-17 Andrew Cagney <ac131313@redhat.com>
8712
8713 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8714 set'' and this leads to a core dump. Move xstrdup of
8715 operating_system to after check that it is not NULL.
8716
f66c9f11
AC
87172002-03-17 Andrew Cagney <ac131313@redhat.com>
8718
8e694ecf
AC
8719 * kod.c (kod_set_os): Remove unnecessary check that
8720 ``command->type'' is set_cmd.
8721
f66c9f11
AC
8722 * valprint.c (set_input_radix): Use input_radix.
8723 (set_output_radix): Use output_radix.
8724 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8725 isn't reverted.
8726
9d01611c
AC
87272002-03-16 Andrew Cagney <ac131313@redhat.com>
8728
8729 * value.h (struct value): Delete field ``substring_addr''. Change
8730 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8731 force_core_addr_align and force_pointer_aligh.
8732
8733 * value.h (struct value): Fix typo in above change.
9d01611c 8734
4156bb53
PS
87352002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8736
8737 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8738 to fix internal_error from ``maintenance print architecture''.
8739
0e5e3ea6
PS
87402002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8741
8742 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8743 for gcc versions after gcc-2.8.1.
8744
9b013045
PS
87452002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8746
8747 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8748 for method resolution. Restore adjustment of ``this'' pointer after
8749 calling value_struct_elt, which was accidentally removed during the
8750 HP merge.
8751
376c9600
AC
87522002-03-15 Andrew Cagney <ac131313@redhat.com>
8753
8754 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8755 value_of_register.
8756 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8757 get_saved_register.
8758 * value.h (value_of_register): Update.
8759
a4db0f07
RH
87602002-03-14 Richard Henderson <rth@redhat.com>
8761
8762 * configure.in: Detect declaration for canonicalize_file_name.
8763 * utils.c (canonicalize_file_name): Declare, if needed.
8764 (gdb_realpath): Prefer realpath if available and usable.
8765 * config.in, configure: Rebuild.
8766
96383835
RH
87672002-03-14 Richard Henderson <rth@redhat.com>
8768
8769 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8770 a constant array bound.
8771
8772 * MAINTAINERS: Add myself to write-after-approval.
8773
75245b24
MS
87742002-03-14 Michael Snyder <msnyder@redhat.com>
8775
8776 * symfile.c (syms_from_objfile): Return immediately if no syms.
8777 (symbol_file_add): Return immediately if no syms.
8778 (find_sym_fns): Return immediately if no syms.
8779
e641a1ca
ML
87802002-03-13 Michal Ludvig <mludvig@suse.cz>
8781
8782 * gdbserver/remote-util.c (remote_open): Print remote-side's
8783 IP address when remote debugging over the network.
7e336ba1 8784
df08bfec
DB
87852002-03-12 David O'Brien <obrien@FreeBSD.org>
8786
8787 * config/sparc/fbsd.mh: Fix copyright.
8788 * config/sparc/fbsd.mt: Likewise.
8789
9a57864f
RE
87902002-03-11 Richard Earnshaw <rearnsha@arm.com>
8791
8792 * MAINTAINERS: Fix typo in name of gdb warnings option.
8793 (x86-64): Fix formating so that this can be parsed by awk.
8794
dd7bf85e
DJ
87952002-03-10 Daniel Jacobowitz <drow@mvista.com>
8796
8797 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8798 * defs.h: Include "gdb/signals.h".
8799 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8800
33a0a2ac
ML
88012002-03-10 Michal Ludvig <mludvig@suse.cz>
8802
8803 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8804 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8805 from x86-64-tdep.h
8806
dd824b04
DJ
88072002-03-10 Daniel Jacobowitz <drow@mvista.com>
8808 Don Howard <dhoward@redhat.com>
8809
8810 * mips-tdep.c (ST0_FR): Define.
8811 (mips2_fp_compat): New function, temporarily disabled.
8812 (mips_read_fp_register_single): New function.
8813 (mips_read_fp_register_double): New function.
8814 (mips_print_register): Use them.
8815 (do_fp_register_row): Likewise.
8816
6a41ff59
AC
88172002-03-09 Andrew Cagney <ac131313@redhat.com>
8818
8819 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8820 approval''.
8821
4ea09c10
PS
88222002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8823
8824 * stabsread.c (read_member_functions): Fix is_stub test for
8825 static member functions, improve comment.
8826
6ccc741d
RE
88272002-03-07 Richard Earnshaw <rearnsha@arm.com>
8828
8829 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8830 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8831 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8832 commands that set boolean values.
8833 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8834 (arm_rdi_resume): Always initialize PC.
8835 (arm_rdi_open): Don't use rslt as a boolean.
8836 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8837 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8838 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8839 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8840
438013df
AO
88412002-03-06 Alexandre Oliva <aoliva@redhat.com>
8842
8843 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8844 * configure: Rebuilt.
8845
70ed8774
SC
88462002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8847
8848 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8849 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8850
5ba2abeb
AC
88512002-03-06 Andrew Cagney <ac131313@redhat.com>
8852
8853 * cli/cli-decode.c (set_cmd_completer): New function.
8854 * command.h (set_cmd_completer): Declare.
8855 * cli/cli-decode.h (set_cmd_completer): Ditto.
8856
8857 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8858 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8859 * win32-nat.c (_initialize_inftarg): Ditto.
8860 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8861 * proc-api.c (_initialize_proc_api): Ditto.
8862 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8863 * source.c (_initialize_source): Ditto.
8864 * exec.c (_initialize_exec): Ditto.
8865 * solib.c (_initialize_solib): Ditto.
8866 * top.c (init_main): Ditto.
8867 * tracepoint.c (_initialize_tracepoint): Ditto.
8868 * symfile.c (_initialize_symfile): Ditto.
8869 * printcmd.c (_initialize_printcmd): Ditto.
8870 * infcmd.c (_initialize_infcmd): Ditto.
8871 * corefile.c (_initialize_core): Ditto.
8872
f779ca99
AC
88732002-03-05 Andrew Cagney <ac131313@redhat.com>
8874
8875 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8876
01a3934b
AC
88772002-03-05 Andrew Cagney <ac131313@redhat.com>
8878
8879 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8880
37057839
AC
88812002-03-05 Andrew Cagney <ac131313@redhat.com>
8882
8883 * NEWS: Update headings, 5.2 has branched.
8884
c6ecbae5
DJ
88852002-03-04 Daniel Jacobowitz <drow@mvista.com>
8886
8887 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8888 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8889 (register_addr, REGISTER_RAW_SIZE): Likewise.
8890 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8891 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8892
e9f30c21
ML
88932002-03-03 Michal Ludvig <mludvig@suse.cz>
8894
8895 * MAINTAINERS (x86-64): Add myself.
8896 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8897 changed value_ptr -> struct value *
8898
54394ac3
DB
88992002-03-01 David O'Brien <obrien@FreeBSD.org>
8900
8901 * configure.host (sparc64-*-freebsd): Add.
8902 * configure.tgt: Likewise.
8903 * config/sparc/fbsd.mh: New file.
8904 * config/sparc/fbsd.mt: Likewise.
8905 * config/sparc/nm-fbsd.h: Likewise.
8906 * config/sparc/tm-fbsd.h: Likewise.
8907
bfe95955
DJ
89082002-03-01 Daniel Jacobowitz <drow@mvista.com>
8909
8910 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8911 regformats/reg-s390x.dat.
8912
f33c6cbf
AC
89132002-03-01 Andrew Cagney <ac131313@redhat.com>
8914
8915 * utils.c: Add FIXME explaining true/false problem.
8916
5ecaa7dd
AC
89172002-02-28 Andrew Cagney <ac131313@redhat.com>
8918
8919 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8920
2a251cc2
MC
89212002-02-28 Michael Chastain <mec@shout.net>
8922
8923 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8924
6a8031a3 89252002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8926
8927 * gdbserver/linux-s390-low.c: New file.
8928 * regformats/reg-s390.dat: New file.
8929 * regformats/reg-s390x.dat: New file.
8930 * gdbserver/configure.srv: Add S/390.
8931 * gdbserver/Makefile.in: Add S/390.
8932 * configure.tgt: Enable gdbserver for S/390.
8933
ac469903
EZ
89342002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8935
8936 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8937 first line of the doc string for "info dos", except at the end of
8938 the sentence, since the short help stops at the first period.
8939
985cb1a3
JM
89402002-02-28 Jason Merrill <jason@redhat.com>
8941
8942 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8943
c570663e
FF
89442002-02-27 Fred Fish <fnf@redhat.com>
8945
8946 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8947 comment (dumy -> dummy).
8948
43630227
PS
89492002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8950
8951 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8952
b84911e8
RB
89532002-02-27 Rodney Brown <rbrown64@csc.com.au>
8954
8955 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8956
58caa3dc
DJ
89572002-02-27 Daniel Jacobowitz <drow@mvista.com>
8958
8959 * gdbserver/acconfig.h: New file.
8960 * gdbserver/i387-fp.c: New file.
8961 * gdbserver/i387-fp.h: New file.
8962 * gdbserver/linux-x86-64.c: New file.
8963 * regformats/reg-x86-64.dat: New file.
8964 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8965 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8966 * gdbserver/configure.in: Add support for regsets.
8967 * gdbserver/config.in: Regenerate.
8968 * gdbserver/configure: Regenerate.
8969 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8970 * gdbserver/linux-low.h: New file.
8971 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8972 for regsets.
8973 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8974 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8975 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8976 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8977 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8978 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8979 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8980 "i387-fp.h". Add PTRACE_GETREGS and friends.
8981 * gdbserver/regcache.c (supply_register): New function.
8982 (supply_register_by_name): New function.
8983 (collect_register): New function.
8984 (collect_register_by_name): New function.
8985
93652174
DJ
89862002-02-27 Daniel Jacobowitz <drow@mvista.com>
8987
8988 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8989 (config.status): Add configure.srv dependency.
8990 (server_h): Add config.h dependency.
8991
a02e4a61
DJ
89922002-02-27 Daniel Jacobowitz <drow@mvista.com>
8993
8994 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8995 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8996 * gdbserver/configure.srv: Change i386-*-linux* to use
8997 reg-i386-linux.o.
8998
ce0eebec
AC
89992002-02-26 Andrew Cagney <ac131313@redhat.com>
9000
9001 * x86-64-tdep.c: Re-indent. Update copyright date.
9002
82dbc5f7
AC
90032002-02-26 Andrew Cagney <ac131313@redhat.com>
9004
9005 From Michal Ludvig <mludvig@suse.cz>:
9006 * x86-64-tdep.c (value.h): Delete.
9007 (gdb_assert.h): Include.
9008 (x86_64_register_convert_to_virtual,
9009 x86_64_register_convert_to_raw ): Add check which lets only
9010 floating-point values to be converted.
9011 (value_push): Delete.
9012 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9013 (i386_gdbarch_init): Number of register_bytes fixed.
9014
e4621584
AC
90152002-02-26 Andrew Cagney <ac131313@redhat.com>
9016
9017 * MAINTAINERS: Add x86-64 target.
9018
81a9a963
AC
90192002-02-26 Andrew Cagney <ac131313@redhat.com>
9020
9021 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9022 * osfsolib.c (solib_map_sections): Ditto.
9023 * irix5-nat.c (solib_map_sections): Ditto.
9024 * corelow.c (gdb_check_format): Ditto.
9025 * symfile.c (symfile_bfd_open): Ditto.
9026 * solib.c (solib_map_sections): Ditto.
9027 Fix PR gdb/354.
7e336ba1 9028
0f017ab9
AC
90292002-02-26 Andrew Cagney <ac131313@redhat.com>
9030
9031 * remote.c (_initialize_remote): By default, disable ``e'' and
9032 ``E'' step out-of-range packets.
9033
75738c29
AS
90342002-02-26 Andreas Schwab <schwab@suse.de>
9035
9036 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9037 m68k_linux_frame_saved_pc.
9038 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9039 in_sigtramp.
9040 (SIGCONTEXT_PC_OFFSET): Remove.
9041 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9042 m68k_linux_sigtramp_saved_pc): New functions.
9043 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9044 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9045 (UCONTEXT_PC_OFFSET): Define.
9046 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9047 non-RT and RT signal trampolines.
9048
7e8ed687
RE
90492002-02-26 Richard Earnshaw <rearnsha@arm.com>
9050
9051 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9052 (TARGET_NBPG, STACK_END_ADDR): Delete
9053 (VARIABLES_INSIDE_BLOCK): Delete.
9054
6972bc8b
AC
90552002-02-25 Andrew Cagney <ac131313@redhat.com>
9056
9057 * utils.c (perror_with_name): Make string parameter constant.
9058 (print_sys_errmsg): Ditto.
9059 (query): Ditto.
9060 * defs.h (perror_with_name): Update.
9061 (print_sys_errmsg): Update.
9062 (query): Update.
9063
aa32f823
DJ
90642002-02-25 Daniel Jacobowitz <drow@mvista.com>
9065
9066 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9067 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9068
19caaa45
PS
90692002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9070
9071 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9072 if it already matches the current architecture from the exec file.
9073 Include arch-utils.h for gdbarch_info_init prototype.
9074 * Makefile.in (rs6000-nat.o): Update dependencies.
9075
d951901f
EZ
90762002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9077
9078 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9079 list of exported variables.
9080
7ea81414
DJ
90812002-02-24 Daniel Jacobowitz <drow@mvista.com>
9082
9083 * gdbserver/configure.srv: New file.
9084 * gdbserver/configure.in: Use configure.srv instead
9085 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9086 from it.
9087 * gdbserver/configure: Regenerated.
9088 * gdbserver/terminal.h: New file.
9089 * gdbserver/Makefile.in: Update for configure changes. Remove
9090 more unneeded include paths.
9091
080fe24b
AC
90922002-02-24 Andrew Cagney <ac131313@redhat.com>
9093
9094 From wiz at danbala:
9095 * config/sparc/tm-sp64.h: Fix grammar and typos.
9096 Fix PR gdb/287.
9097
8605d56e
AC
90982002-02-24 Andrew Cagney <ac131313@redhat.com>
9099
9100 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9101 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9102 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9103 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9104 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9105 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9106 * s390-tdep.c: Ditto.
92362027
AC
9107 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9108 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9109 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9110 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9111 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9112 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9113 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9114 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9115 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9116 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9117 Fix PR gdb/378.
7e336ba1 9118
8ed32cc0
AC
91192002-02-23 Andrew Cagney <ac131313@redhat.com>
9120
a3007b6f
AC
9121 * lin-thread.c: Delete file.
9122 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9123 to gdb_proc_service.h.
9124 * configure: Re-generate.
9125
50a9e2f1
AC
9126 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9127 * serial.c (serial_open): Delete check for "ocd".
9128 Fix PR gdb/349.
9129
8b6e7932
AC
9130 * Makefile.in (linux-thread.o): Delete target.
9131 * linux-thread.c: Delete file.
9132
d155c46b
AC
9133 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9134 renamed SH files to be consistent.
9135
8ed32cc0
AC
9136 * symtab.c (sort_search_symbols): Use xfree.
9137
0e18d038
RE
91382002-02-23 Richard Earnshaw <rearnsha@arm.com>
9139
9140 * arm-linux-tdep.c (arm_linux_init_abi): Register
9141 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9142 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9143 definition with undef, since we don't want the sysvr4 definition.
9144 (SKIP_TRAMPOLINE_CODE): Likewise.
9145
27aac7ff
AC
91462002-02-23 Andrew Cagney <ac131313@redhat.com>
9147
9148 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9149
9150 * configure.in: (AC_CHECK_FUNCS) Added test for
9151 canonicalize_file_name Regenerated.
9152 * config.in, configure: Regenerated.
9153 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9154 defined use canonicalize_file_name.
7e336ba1 9155
65a6e0ee
MC
91562002-02-23 Michael Chastain <mec@shout.net>
9157
9158 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9159
47b95330
AC
91602002-02-23 Andrew Cagney <ac131313@redhat.com>
9161
9162 * README: Remove references to cygnus.com.
9163 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9164 dot com'' form. Remove references to cygnus.com and sourceware.
9165
696f451b
AC
91662002-02-23 Andrew Cagney <ac131313@redhat.com>
9167
9168 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9169 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9170 1003.1-2001 no longer allows "head -1".
9171 * gdb/Makefile.in (version.c): Likewise.
9172 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9173 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9174 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9175
bbaca940
AC
91762002-02-23 Andrew Cagney <ac131313@redhat.com>
9177
9178 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9179 * command.h (cmd_cfunc_eq): Declare.
9180 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9181
9182 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9183 ``struct cmd_list_element *''.
9184 * cli/cli-cmds.c (is_complete_command): Update. Use
9185 cmd_cfunc_eq.
9186 * top.c (execute_command): Pass the command to
9187 is_complete_command.
9188 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9189
b8b8b047
AC
91902002-02-23 Andrew Cagney <ac131313@redhat.com>
9191
9192 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9193 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9194 architecture defines.
9195 * s390-tdep.c (s390_gdbarch_init): Likewise.
9196
19d3fc80
RE
91972002-02-23 Richard Earnshaw <rearnsha@arm.com>
9198
9199 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9200 (arm_linux_push_arguments): Likewise.
9201 (arm_linux_init_abi): Register them. Also register linux-specific
9202 call_dummy_words.
9203 (find_minsym_and_objfile): Use strcmp, not STREQ.
9204 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9205 (arm_linux_call_dummy_words): Delete declaration.
9206 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9207 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9208 declarations.
9209 (LOWEST_PC): Delete.
9210
3ab13650
PS
92112002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9212
9213 * maint.c (print_section_info): Do not prepend `0x' to filepos
9214 output, it will be handled by local_hex_string_custom.
9215
19d3fc80 92162002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9217
9218 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9219 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9220 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9221
d85a5daf
JB
92222002-02-22 Jim Blandy <jimb@redhat.com>
9223
9224 Indicate that the bcache functions don't change the strings
9225 they're passed.
9226 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9227 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9228
eeb25b8a
PM
92292002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9230
9231 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9232
6badb179
CF
92332002-02-21 Christopher Faylor <cgf@redhat.com>
9234
9235 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9236 find the complete path to a loaded DLL.
9237
e8717518
FF
92382002-02-21 Fred Fish <fnf@redhat.com>
9239
9240 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9241 that marks the end of the range of a function, enter a line number
9242 entry that has a line number of zero and a PC offset that matches
9243 the end of the function. This starts a range of PC's for which no
9244 line number information is known.
9245 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9246 PC's for which no line number info is found (line number is zero)
9247 then we didn't find any valid line information.
9248 * symtab.h: Document use of zero line number entry.
9249
9abe5450
EZ
92502002-02-21 Elena Zannoni <ezannoni@redhat.com>
9251
9252 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9253 (have_ptrace_getvrregs): Define for run time checks.
9254 (gdb_vrregset_t): New type for Altivec register handling.
9255 (fetch_register, store_register): Fetch/store altivec register
9256 when needed.
9257 (fetch_altivec_register, store_altivec_register): New functions.
9258 (supply_vrregset, fill_vrregset): New functions.
9259 (fetch_altivec_registers, store_altivec_registers): New functions.
9260 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9261 registers as well.
9262
aaa38bb5
AJ
92632002-02-21 Jiri Smid <smid@suse.cz>
9264
9265 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9266
b34db576
RE
92672002-02-21 Richard Earnshaw <rearnsha@arm.com>
9268
9269 * Makefile.in (armnbsd-nat.o): Update dependencies.
9270 * armnbsd-nat.c (supply_gregset): New function. Common code to
9271 supply the integer register set.
9272 (supply_fparegset): New function. Similar for FPA registers.
9273 (fetch_regs, fetch_fp_regs): Use them.
9274 (fetch_core_registers): Likewise.
9275 (fetch_elfcore_registers): New function.
9276 (arm_netbsd_elfcore_fns): New core-file type specification.
9277 (_initialize_arm_netbsd_nat): Register it.
9278
3e56fc4b
RE
92792002-02-21 Richard Earnshaw <rearnsha@arm.com>
9280
9281 * armnbsd-nat.c: Include gdbcore.h.
9282 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9283 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9284 'void' to declaration, to shut up ARI.
9285 (fetch_core_registers): Make static. Rewrite using supply_register.
9286 (arm_netbsd_core_fns): New core-file type specification.
9287 (_initialize_arm_netbsd_nat): New function.
9288
097f6b0b
CF
92892002-02-21 Christopher Faylor <cgf@redhat.com>
9290
9291 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9292 value.
9293
c914e0cc
CF
92942002-02-20 Christopher Faylor <cgf@redhat.com>
9295
9296 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9297 fails.
9298
385fa495
DJ
92992002-02-20 Daniel Jacobowitz <drow@mvista.com>
9300
9301 * jv-exp.y (parse_number): Change type of implicit longs
9302 to builtin_type_uint64.
9303
e5f1222d
DJ
93042002-02-20 Daniel Jacobowitz <drow@mvista.com>
9305
9306 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9307 to be an integer instead of a `union wait'.
9308
75c9abc6
DJ
93092002-02-20 Daniel Jacobowitz <drow@mvista.com>
9310
9311 * mips-linux-nat.c: Call the operating system GNU/Linux.
9312 * mips-linux-tdep.c: Likewise.
9313 * mips-tdep.c: Likewise.
9314
551792a5
DJ
93152002-02-20 Daniel Jacobowitz <drow@mvista.com>
9316
9317 Fix PR gdb/265.
9318 * jv-exp.y (parse_number): Handle 64-bit integers.
9319
ee6e2b82
DJ
93202002-02-20 Daniel Jacobowitz <drow@mvista.com>
9321
9322 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9323 AC_STDC_HEADERS to AC_HEADER_STDC.
9324 * gdbserver/configure: Regenerated.
9325
a48442a0
RE
93262002-02-20 Richard Earnshaw <rearnsha@arm.com>
9327
9328 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9329 is defined.
9330 * sparc-tdep.c (get_longjmp_target): Likewise.
9331
fe419ffc
RE
93322002-02-20 Richard Earnshaw <rearnsha@arm.com>
9333
9334 * News: Add news about ARM and Multi-arch. Mention the new target
9335 arm*-*-netbsd*.
9336
5832ed7e
JB
93372002-02-19 Jim Blandy <jimb@redhat.com>
9338
9339 * stabsread.c (error_type_complaint): Improve error message.
9340
84563040
DJ
93412002-02-19 Daniel Jacobowitz <drow@mvista.com>
9342
9343 * gdbserver/README: Update documentation.
9344 * gdbserver/configure.in: Update configury to match documentation.
9345 * gdbserver/Makefile.in: Likewise.
9346 * gdbserver/configure: Regenerated.
9347 * gdbserver/aclocal.m4: New file, generated by aclocal.
9348 * gdbserver/config.in: New file, generated by autoheader.
9349
375fd65b
RE
93502002-02-19 Richard Earnshaw <rearnsha@arm.com>
9351
9352 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9353 armnbsd-nat.c.
9354
08216dd7
RE
93552002-02-19 Richard Earnshaw <rearnsha@arm.com>
9356
9357 * arm-tdep.h (enum arm_float_model): New enum.
9358 (struct gdbarch_tdep): Add fp_model.
9359 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9360 up floating-point conversions until we know the floating-point model
9361 in use by the inferior. Don't complain about being unable to
9362 determine the ABI of the inferior when we don't have one.
9363 (arm_extract_return_value): Support different floating-point models.
9364 (arm_store_return_value): Likewise.
aaa38bb5 9365 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9366 ARM_FLOAT_SOFT.
9367 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9368
65d6d66a
PS
93692002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9370
9371 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9372 of ``current_gdbarch''.
9373
47221191
RE
93742002-02-19 Richard Earnshaw <rearnsha@arm.com>
9375
9376 * armnbsd-nat.c : ANSIfy all function declarations.
9377 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9378 (fetch_inferior_registers): Re-implement in terms of above.
9379 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9380 (store_inferior_registers): Re-implement in terms of above.
9381
fdf39c9a
RE
93822002-02-19 Richard Earnshaw <rearnsha@arm.com>
9383
aaa38bb5 9384 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9385 kernel.
9386 * arm-linux-tdep.c: Likewise.
9387 * config/arm/tm-linux.h: Likewise.
9388
93247f88
RE
93892002-02-19 Richard Earnshaw <rearnsha@arm.com>
9390
9391 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9392 * config/arm/nbsd.mt (TM_FILE): Delete.
9393 * config/arm/tm-nbsd.h: Delete.
9394
d7b486e7
RE
93952002-02-19 Richard Earnshaw <rearnsha@arm.com>
9396
9397 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9398 Initialize CALL_DUMMY_LENGTH.
9399
41d39a95
RE
94002002-02-19 Richard Earnshaw <rearnsha@arm.com>
9401
9402 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9403 function.
9404 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9405 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9406 defines one thing and that is incorrect for this port.
9407 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9408
e1195560
PM
94092002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9410
9411 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9412
c1748f97
PM
94132002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9414
9415 * win32-nat.c (display_selector): New function. Displays information
9416 about the information returned by GetThreadSelectorEntry API function.
9417 (display_selectors): New function. Displays the infomation of
9418 the selector given as argument, or of CS, DS ans FS selectors
9419 if no argument is given.
9420 ( _initialize_inftarg): Add "w32" as info prefix command.
9421 Add "info w32 selector" as command calling display_selectors.
9422
e41e6bbf
PM
94232002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9424
9425 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9426 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9427 if not defined.
9428
0d3a9f48
RE
94292002-02-18 Richard Earnshaw <rearnsha@arm.com>
9430
9431 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9432
3fb4b924
RE
94332002-02-18 Richard Earnshaw <rearnsha@arm.com>
9434
9435 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9436 (arm_fix_call_dummy): Call it.
9437 (arm_call_dummy_breakpoint_offset): Delete.
9438 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9439 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9440
7f55af32
AC
94412002-02-18 Andrew Cagney <ac131313@redhat.com>
9442
9443 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9444 Default to func_frame_chain_valid.
9445 * gdbarch.h, gdbarch.c: Re-generate.
9446 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9447
05f13b9c
EZ
94482002-02-18 Elena Zannoni <ezannoni@redhat.com>
9449
9450 * ppc-linux-nat.c: Update copyright.
9451 (fetch_register, store_register): Add tid parameter, don't compute
9452 tid here.
9453 (fetch_ppc_registers, store_ppc_registers): Add tid
9454 parameter. Pass it along to callees.
9455 (fetch_inferior_registers, store_inferior_registers): Compute tid
9456 here, and pass it to calleed functions.
9457 (fill_gregset, supply_fpregset): Clean up formatting.
9458
d7afb4c9
RE
94592002-02-18 Richard Earnshaw <rearnsha@arm.com>
9460
9461 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9462 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9463
9df628e0
RE
94642002-02-18 Richard Earnshaw <rearnsha@arm.com>
9465
9466 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9467 * gdbarch.c gdbarch.h: Regenerate.
9468 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9469 function.
9470 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9471 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9472 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9473
9474 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9475 * arm-tdep.c (arm_get_longjmp_target): New function.
9476 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9477 this to a positive value register arm_get_longjmp_target as the
9478 longjmp handler.
9479 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9480 (arm_linux_init_abi): Set up longjmp description in tdep.
9481 * armnbsd-nat.c (get_longjmp_target): Delete.
9482 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9483 description in tdep.
9484 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9485 (get_longjmp_target): Delete declaration.
9486 (GET_LONGJMP_TARGET): Delete.
9487 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9488 (GET_LONGJMP_TARGET): Delete.
9489
57bc8964
KB
94902002-02-17 Kevin Buettner <kevinb@redhat.com>
9491
9492 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9493 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9494 of ``current_gdbarch''.
9495
83d31a92
TT
94962002-02-17 Tom Tromey <tromey@redhat.com>
9497
9498 * cli/cli-cmds.c (compare_strings): New function.
9499 (complete_command): Only print each unique item once.
9500 * completer.h (complete_line): Declare.
9501 * completer.c (complete_line): New function.
9502 (line_completion_function): Use it.
9503
17ef5d92
AC
95042002-02-16 Andrew Cagney <ac131313@redhat.com>
9505
9506 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9507 * gdbarch.h, gdbarch.c: Re-generate.
9508
491b8946
DJ
95092002-02-16 Daniel Jacobowitz <drow@mvista.com>
9510
9511 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9512
95132002-02-16 Daniel Jacobowitz <drow@mvista.com>
9514
9515 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9516 * valops.c (value_arg_coerce): Don't take the address of a reference
9517 to convert an argument to a reference.
9518
dfe7f3ac
CF
95192002-02-15 Christopher Faylor <cgf@redhat.com>
9520
9521 * win32-nat.c (get_image_name): New function.
9522 (handle_load_dll): Use get_image_name function.
9523 (get_child_debug_event): Avoid registering debug events until possibly
9524 execed process is started.
9525 (child_create_inferior): Allow invocation via shell so that command
9526 line redirection, etc. works ok.
9527 (_initialize_inftarg): Add new command: "set shell" to control whether
9528 a shell is used to start a process.
9529
1d33e73a
DJ
95302002-02-15 Daniel Jacobowitz <drow@mvista.com>
9531
9532 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9533 instead of find_register_by_number.
9534 (cannot_store_register): Likewise.
9535
48cd0caa
PM
95362002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9537
aaa38bb5 9538 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9539 fprintf_unfiltered (gdb_stderr, ...).
9540
8656e7d8
DJ
95412002-02-15 Daniel Jacobowitz <drow@mvista.com>
9542
9543 * gdbserver/gdbserver.1: Document --attach.
9544
66e810cd
RE
95452002-02-15 Richard Earnshaw <rearnsha@arm.com>
9546
9547 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9548 descriptions.
9549 * arm-tdep.c (arm_default_arm_le_breakpoint)
9550 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9551 (arm_default_thumb_be_breakpoint): New. Initialize them from
9552 traditional breakpoint defines.
9553 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9554 (arm_gdbarch_init): Initialize new breakpoint variables.
9555 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9556 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9557 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9558 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9559 code out to ...
9560 (arm_netbsd_init_abi_common): ... here; new function.
9561 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9562 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9563 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9564 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9565
97e03143
RE
95662002-02-15 Richard Earnshaw <rearnsha@arm.com>
9567
9568 * arm-tdep.h (enum arm_abi): New enum.
9569 (struct gdbarch_tdep): New structure.
9570 (LOWEST_PC): Provide a default.
9571 (arm_gdbarch_register_os_abi): Declare new function.
9572 * arm-tdep.c (arm_abi_names): New array.
9573 (process_note_abi_tag_sections): New function.
9574 (get_elfosabi): New function.
9575 (arm_gdbarch_register_os_abi): New function.
9576 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9577 support for that ABI has been built in, then call the appropriate
9578 configuration routine. Use gdbarch_num_regs() to get the number
9579 of registers.
9580 (arm_dump_tdep): New function.
9581 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9582 place-holder functions.
9583 (_initialize_arm_tdep): Register them.
9584 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9585
9586 * armnbsd-tdep.c: New file.
9587 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9588 * config/arm/nbsd.mt (TDEPFILES): Add it.
9589 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9590
9591 * armnbsd-nat.c: Include regcache.h.
9592 * Makefile.in (armnbsd-nat.o): Update dependency list.
9593
9594 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9595
ad68be46
DJ
95962002-02-14 Daniel Jacobowitz <drow@mvista.com>
9597
9598 * gdbserver/Makefile.in: Fix typos in target rules.
9599
003d6d1d
DJ
96002002-02-14 Daniel Jacobowitz <drow@mvista.com>
9601
aaa38bb5 9602 Fix part of PR gdb/267.
003d6d1d
DJ
9603 * linespec.c (find_methods): Handle constructors specially for now.
9604
6b230f1b
CV
96052002-02-14 Corinna Vinschen <vinschen@redhat.com>
9606
9607 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9608 handling.
9609 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9610 standard_coerce_float_to_double().
9611
1ea98d12
CF
96122002-02-14 Christopher Faylor <cgf@redhat.com>
9613
9614 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9615 GDBINIT_FILENAME.
9616
dd47e6fd
EZ
96172002-02-14 Elena Zannoni <ezannoni@redhat.com>
9618
9619 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9620 find_variant_by_name, because it confuses the multiarch
9621 framework. Return NULL if there isn't an architecture with the
9622 user supplied name, instead of forcing a different one without
9623 recording the change with the multiarch machinery.
9624 (find_variant_by_name): Delete.
9625
d7e39b9e
PS
96262002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9627
9628 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9629 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9630
76e42a4f
MH
96312002-02-13 Martin M. Hunt <hunt@redhat.com>
9632
aaa38bb5 9633 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9634 print_frame_info_listing_hook, set current_source_symtab.
9635
0a30fbc4
DJ
96362002-02-14 Daniel Jacobowitz <drow@mvista.com>
9637
9638 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9639 and remove unused $(INCLUDE_DIR).
9640 Add regcache.c to OBS.
9641 Add generated register protocol files to clean target.
9642 Update dependencies for new objects, obsolete old target code.
9643
9644 * gdbserver/linux-low.c: Remove all platform-specific code to
9645 new files. Remove various dead code. Update to use regcache
9646 functionality.
9647 * gdbserver/remote-utils.c (fromhex): Add return statement
9648 to quiet warning.
9649 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9650 constant.
9651 (input_interrupt): Add integer parameter to match prototype
9652 of a signal handler.
9653 (outreg): Use register_data ().
9654 (prepare_resume_reply): Use gdbserver_expedite_regs.
9655 * gdbserver/server.c (main): Dynamically allocate own_buf because
9656 PBUFSIZ is no longer constant. Use registers_to_string () and
9657 registers_from_string ().
9658 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9659 for error (), fatal (), and warning (). Update definition of
9660 PBUFSIZ to use regcache functionality. Add include guard.
9661 * gdbserver/utils.c (fatal): Add missing ``const''.
9662 (warning): New function.
9663
9664 * regformats/regdat.sh: Include "regcache.h" in generated files.
9665 Provide init_registers () function.
9666 * regformats/regdef.h: Add prototype for set_register_cache ().
9667 Add include guard.
9668
9669 * gdbserver/linux-arm-low.c: New file.
9670 * gdbserver/linux-i386-low.c: New file.
9671 * gdbserver/linux-ia64-low.c: New file.
9672 * gdbserver/linux-m68k-low.c: New file.
9673 * gdbserver/linux-mips-low.c: New file.
9674 * gdbserver/linux-ppc-low.c: New file.
9675 * gdbserver/linux-sh-low.c: New file.
9676
9677 * gdbserver/regcache.c: New file.
9678 * gdbserver/regcache.h: New file.
9679
9680 * gdbserver/low-linux.c: Removed obsolete file.
9681
4cc841d0
DJ
96822002-02-14 Daniel Jacobowitz <drow@mvista.com>
9683
9684 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9685 * config/i386/linux.mt: Likewise.
9686 * config/ia64/linux.mt: Likewise.
9687 * config/m68k/linux.mh: Likewise.
9688 * config/powerpc/linux.mh: Likewise.
9689 * config/mips/linux.mt: Likewise.
9690
9691 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9692
9693 * config/i386/i386lynx.mh: Mark gdbserver variables
9694 as (currently) obsolete for this target.
9695 * config/i386/nbsd.mt: Likewise.
9696 * config/i386/nbsdelf.mt: Likewise.
9697 * config/m32r/m32r.mt: Likewise.
9698 * config/m68k/m68klynx.mh: Likewise.
9699 * config/m68k/nbsd.mt: Likewise.
9700 * config/m68k/sun3os4.mh: Likewise.
9701 * config/mips/vr5000.mt: Likewise.
9702 * config/ns32k/nbsd.mt: Likewise.
9703 * config/pa/hppabsd.mh: Likewise.
9704 * config/pa/hppaosf.mh: Likewise.
9705 * config/powerpc/nbsd.mt: Likewise.
9706 * config/rs6000/rs6000lynx.mh: Likewise.
9707 * config/s390/s390.mt: Likewise.
9708 * config/s390/s390x.mt: Likewise.
9709 * config/sparc/sparclynx.mh: Likewise.
9710 * config/sparc/sun4os4.mh: Likewise.
9711 * config/i386/x86-64linux.mt: Likewise.
9712 * config/sparc/linux.mh: Likewise.
9713
a85f51e7
DJ
97142002-02-14 Daniel Jacobowitz <drow@mvista.com>
9715
9716 * configure.tgt: Configure gdbserver only for known working
9717 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9718 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9719 SUBDIRS if it is configured. Update comment for ${nativefile}.
9720 * configure: Regenerated.
9721
65554fef
MS
97222002-02-13 Michael Snyder <msnyder@redhat.com>
9723
670a52db
MS
9724 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9725
6dbdc4a3
MS
9726 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9727 (default_gcore_mach): Just return 0, work around a problem in bfd.
9728 (default_gcore_target): OK to return NULL if exec_bfd is null.
9729 (make_mem_sec): Use a cast, avoid a warning.
9730
9731 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9732 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9733 sizeof (host pointer) != sizeof (target pointer)).
9734 (procfs_make_note_section): Avoid overflow in psargs string.
9735
aaa38bb5 9736 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9737 implementation return an error.
9738
97392002-02-13 Rodney Brown <rbrown64@csc.com.au>
9740
9741 * procfs.c (procfs_make_note_section): Provide a default definition
9742 (for alpha-dec-osf4.0f). Fix typos.
9743
1e4d76e7
EZ
97442002-02-13 Elena Zannoni <ezannoni@redhat.com>
9745
9746 * linux-proc.c: Add include of regcache.h.
9747 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9748
b6d1a1d5
AC
97492002-02-13 Andrew Cagney <ac131313@redhat.com>
9750
9751 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9752 * memattr.c (create_mem_region): Disallow useless empty region.
9753 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9754 non-overlapping.
b6d1a1d5 9755
6c6ea35e
MC
97562002-02-13 Michael Chastain <mec@shout.net>
9757
9758 * defs.h: Kill CONST_PTR.
9759 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9760 * c-lang.c (c_builtin_types): Likewise.
9761 * ch-lang.c (ch_builtin_types): Likewise.
9762 * f-lang.c (f_builtin_types): Likewise.
9763 * language.c (unknown_builtin_types): Likewise.
9764 * m2-lang.c (m2_builtin_types): Likewise.
9765 * p-lang.c (pascal_builtin_types): Likewise.
9766 * scm-lang.c (c_builtin_types): Likewise.
9767
3e0b0f48
KS
97682002-02-13 Keith Seitz <keiths@redhat.com>
9769
9770 * arm-tdep.h (arm_get_next_pc): Add declaration.
9771
67255d04
RE
97722002-02-13 Richard Earnshaw <rearnsha@arm.com>
9773
9774 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9775 with other related struct-returning functions.
9776 (arm_extract_struct_value_address): New function.
9777 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9778 initialize float_format, double_format and long_double_format as
9779 appropriate to the endianness of the target.
9780 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9781 (arm_use_struct_convention): Delete declaration.
9782 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9783
079777f6
KS
97842002-02-13 Keith Seitz <keiths@redhat.com>
9785
9786 * defs.h (core_addr_to_string_nz): New function.
9787
34588f23
MK
97882002-02-13 Mark Kettenis <kettenis@gnu.org>
9789
9790 Apply missing bits of 2002-01-15 patch.
9791 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9792 (fill_fpregset): Use i387_fill_fsave.
9793
49b563f9
KS
97942002-02-12 Keith Seitz <keiths@redhat.com>
9795
49b563f9
KS
9796 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9797 (core_addr_to_string_nz): New function.
9798
aeb98c60
RE
97992002-02-11 Richard Earnshaw <rearnsha@arm.com>
9800
9801 * arm-linux-nat.c: Really include arm-tdep.h.
9802 * config/arm/tm-linux.h (struct type, struct value): Declare.
9803
65554fef
MS
98042002-02-11 Michael Snyder <msnyder@redhat.com>
9805
9806 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9807 (gcore section): Ifdef for Solaris and Unixware only.
9808 (procfs_do_thread_registers): Unixware needs one lwpstatus
9809 per thread (not one prstatus or pstatus).
9810 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9811 not over all gdb threads. For unixware, call elfcore_write_pstatus
9812 once before iterating over threads.
9813
34e8f22d
RE
98142002-02-11 Richard Earnshaw <rearnsha@arm.com>
9815
9816 * arm-tdep.h: New file.
9817 * arm-tdep.c: Include arm-tdep.h.
9818 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9819 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9820 (arm_print_float_info, arm_register_type, convert_to_extended)
9821 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9822 (arm_extract_return_value, arm_register_name): Make static.
9823 (arm_software_single_step): Similarly. Fix types in declaration.
9824 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9825 (arm_store_return_value, arm_store_struct_return): New functions.
9826 (arm_gdbarch_init): Register the above functions. Also register
9827 call_dummy_start_offset, sizeof_call_dummy_words,
9828 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9829 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9830 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9831 prologue_cache.saved_regs here, rather than ...
9832 (_initialize_arm_tdep): ... here.
9833 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9834 declarations.
9835 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9836 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9837 (arm_print_float_info, arm_register_type, convert_to_extended)
9838 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9839 (arm_extract_return_value, arm_register_name): Delete declarations.
9840 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9841 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9842 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9843 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9844 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9845 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9846 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9847 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9848 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9849 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9850 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9851 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9852 interface.
9853 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9854 * remote-rdi.c remote-rdp.c: Likewise.
9855 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9856 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9857 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9858 definition.
9859
9860 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9861 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9862 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9863 from non-ARM_ prefixed definitions.
9864 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9865 all uses of above.
9866 * remote-rdi.c remote-rdp.c: Likewise.
9867 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9868
148754e5
RE
98692002-02-11 Richard Earnshaw <rearnsha@arm.com>
9870
9871 * arm-tdep.c (arm_frameless_function_invocation)
9872 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9873 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9874 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9875 (arm_pop_frame, arm_get_next_pc): Make static.
9876 (arm_gdbarch_init): Register above in gdbarch structure.
9877 (arm_read_fp): Renamed from arm_target_read_fp.
9878 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9879 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9880 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9881 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9882 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9883 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9884 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9885 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9886 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9887 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9888 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9889
434d2d4f
DJ
98902002-02-10 Daniel Jacobowitz <drow@mvista.com>
9891
9892 * symtab.c (compare_search_syms): New function.
9893 (sort_search_symbols): New function.
9894 (search_symbols): Sort symbols after searching rather than
9895 before.
9896
55241689
AC
98972002-02-10 Andrew Cagney <ac131313@redhat.com>
9898
9899 * NEWS: Linux -> GNU/Linux.
9900
028c194b
AC
99012002-02-10 Andrew Cagney <ac131313@redhat.com>
9902
9903 * gdbarch.sh: For for level one methods, disallow a definition
9904 when partially multi-arched. Add comments explaining rationale.
9905 * gdbarch.h: Re-generate.
9906
6acf50cd
AC
99072002-02-10 Andrew Cagney <ac131313@redhat.com>
9908
9909 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9910 multi-arch partial.
aaa38bb5 9911
50248794
AC
99122002-02-10 Andrew Cagney <ac131313@redhat.com>
9913
9914 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9915 field. Use diff -u.
9916 * gdbarch.c: Re-generate.
9917
c30e0066
AC
99182002-02-10 Andrew Cagney <ac131313@redhat.com>
9919
9b56c5f3 9920 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9921 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9922 partial.
9923
6e6d6484
AC
99242002-02-10 Andrew Cagney <ac131313@redhat.com>
9925
9926 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9927 multi-arch partial.
9928 (PUSH_ARGUMENTS): Switch to using predefault.
9929 * gdbarch.c: Regenerate.
9930
c203844d
AC
99312002-02-10 Andrew Cagney <ac131313@redhat.com>
9932
9933 * valops.c (PUSH_ARGUMENTS): Delete definition.
9934 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9935 partial. Default to default_push_arguments.
9936 * gdbarch.h, gdbarch.c: Regenerate.
9937
b5a2688f
AC
99382002-02-09 Andrew Cagney <ac131313@redhat.com>
9939
9940 * defs.h (throw_exception): Rename return_to_top_level. Update
9941 comments.
9942 * utils.c (error_stream, internal_verror, quit): Ditto.
9943 * top.c (throw_exception, catcher): Ditto.
9944 * sparclet-rom.c (sparclet_load): Ditto.
9945 * remote.c (interrupt_query, minitelnet): Ditto.
9946 * remote-sds.c (interrupt_query): Ditto.
9947 * remote-mips.c (mips_error, mips_kill): Ditto.
9948 * ocd.c (interrupt_query): Ditto.
9949 * monitor.c (monitor_interrupt_query): Ditto.
9950 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9951 * target.h: Update comment.
aaa38bb5 9952
b5a2688f 9953 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9954
2fa5c1e0
AC
99552002-02-09 Andrew Cagney <ac131313@redhat.com>
9956
9957 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9958 default_double_format.
9959 * gdbarch.h, gdbarch.c: Re-generate.
9960 * findvar.c (floatformat_unknown): Delete variable definition.
9961 * doublest.h (floatformat_unknown): Delete variable declaration.
9962
da966255
JB
99632002-02-09 Jim Blandy <jimb@redhat.com>
9964
9965 * stabsread.c (read_type): Add code to parse Sun's syntax for
9966 prototyped function types.
9967
123a4891
AC
99682002-02-09 Andrew Cagney <ac131313@redhat.com>
9969
9970 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9971 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9972
fb39c8f3
PS
99732002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9974
9975 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9976 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9977 now _initialize_xcoffsolib gets called again and overrides the
9978 commands from solib.c in a native configuration.
9979
0b87a11d
MK
99802002-02-09 Mark Kettenis <kettenis@gnu.org>
9981
9982 * doublest.c (store_typed_floating): Don't try to return a value.
9983 Fixes PR gdb/290.
9984
bdc2fc72
JB
99852002-02-08 Jim Blandy <jimb@redhat.com>
9986
9987 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9988 is prototyped and has no arguments, print its argument list as
9989 `(void)'.
9990
da69bbcf
CD
99912002-02-08 Chris Demetriou <cgd@broadcom.com>
9992
9993 * MAINTAINERS (write-after-approval): Add myself.
9994 (paper-trail): I've escaped!
aaa38bb5 9995
b69571f5
CF
99962002-02-08 Christopher Faylor <cgf@redhat.com>
9997
9998 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9999 changes.
10000 (_initialize_check_for_gdb_ini): Ditto.
10001
f6871398
MH
100022002-02-08 Martin M. Hunt <hunt@redhat.com>
10003
10004 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10005 xaprintf -> xasprintf.
10006
4e52d31c
PM
100072002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10008
10009 * win32-nat.c: Remove use of printf and sprintf functions.
10010
39bbf761
RE
100112002-02-08 Richard Earnshaw <rearnsha@arm.com>
10012
10013 * arm-tdep.c (arm_frame_chain_valid): Make static.
10014 (arm_push_arguments): Likewise.
10015 (arm_gdbarch_init): New function.
10016 (_initialize_arm_tdep): Call it.
10017 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10018 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10019 (FRAME_CHAIN_VALID): Delete.
10020 (arm_frame_chain_valid): Delete declaration.
10021 (PUSH_ARGUMENTS): Delete.
10022 (arm_push_arguments): Delete declaration.
10023 (CALL_DUMMY_P): Delete.
10024
9c9532c9
CV
100252002-02-08 Andrew Cagney <ac131313@redhat.com>
10026 Corinna Vinschen <vinschen@redhat.com>
10027
10028 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10029 on builtin float types.
10030
4e8f7a8b
DJ
100312002-02-08 Daniel Jacobowitz <drow@mvista.com>
10032
10033 * utils.c: Include <curses.h> before "bfd.h".
10034 * tui/tui-hooks.c: Likewise.
10035 * tui/tui.c: Likewise.
10036 * tui/tuiCommand.c: Likewise.
10037 * tui/tuiData.c: Likewise.
10038 * tui/tuiDataWin.c: Likewise.
10039 * tui/tuiDisassem.c: Likewise.
10040 * tui/tuiGeneralWin.c: Likewise.
10041 * tui/tuiIO.c: Likewise.
10042 * tui/tuiLayout.c: Likewise.
10043 * tui/tuiRegs.c: Likewise.
10044 * tui/tuiSource.c: Likewise.
10045 * tui/tuiSourceWin.c: Likewise.
10046 * tui/tuiStack.c: Likewise.
10047 * tui/tuiWin.c: Likewise.
10048
cd4bffcf
EZ
100492002-02-07 Elena Zannoni <ezannoni@redhat.com>
10050
10051 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10052 to include space for pseudoregs as well. Update loops accordingly.
10053 (sh_fp_frame_init_saved_regs): Ditto.
10054 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10055
26806ce2
AC
100562002-02-07 Andrew Cagney <ac131313@redhat.com>
10057
10058 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10059 Add Richard Earnshaw to Arm maintainers.
10060
97fdab62
AC
100612002-02-07 Andrew Cagney <ac131313@redhat.com>
10062
a6b98203
AC
10063 * defs.h (warning_begin): Delete declaration.
10064
97fdab62
AC
10065 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10066 Delete macro.
10067
78b29b40
MS
100682002-02-07 Michael Snyder <msnyder@redhat.com>
10069
aaa38bb5 10070 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10071 Logic bug, remove misplaced else.
10072
d8849953
KD
100732002-02-07 Klee Dienes <klee@apple.com>
10074
10075 * fork-inferior.c (fork_inferior): Add '!' to the list of
10076 characters that need to be quoted when building a string for the
10077 shell. Quote '!' specifically with a backslash, since CSH chokes
10078 when trying to evaluate "str!str".
aaa38bb5 10079
095778a0
NC
100802002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10081
10082 * rdi-share/host.h: Only provide a typedef for bool if it is not
10083 defined.
10084
1900040c
MS
100852002-02-04 Michael Snyder <msnyder@redhat.com>
10086
10087 * breakpoint.h (enum bptype): Add new overlay event bp type.
10088 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10089
1900040c
MS
10090 * breakpoint.c (create_internal_breakpoint): New function.
10091 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10092 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10093 (create_thread_event_breakpoint): Ditto.
10094 (create_solib_event_breakpoint): Ditto.
10095 (create_overlay_event_breakpoint): New function.
10096 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10097 (update_breakpoints_after_exec): Delete and re-initialize
10098 overlay event breakpoints after an exec. Add FIXME comment
10099 about longjmp breakpoint.
10100 (print_it_typical): Ignore overlay event breakpoints.
10101 (print_one_breakpoint): Ditto.
10102 (mention): Ditto.
10103 (bpstat_what): Do not stop for overlay event breakpoints.
10104 (delete_breakpoint): Don't delete overlay event breakpoints.
10105 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10106 (breakpoint_re_set): Re-create overlay event breakpoint.
10107
10108 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10109 (overlay_manual_command): Disable overlay breakpoints.
10110 (overlay_off_command): Disable overlay breakpoints.
10111
082fc60d
RE
101122002-02-06 Richard Earnshaw <rearnsha@arm.com>
10113
10114 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10115 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10116 to here from config/tm-arm.h.
10117 (coff_sym_is_thumb): Make static.
10118 (arm_elf_make_msymbol_special): New function.
10119 (arm_coff_make_msymbol_special): New function.
10120 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10121 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10122 (coff_sym_is_thumb): Delete declaration.
10123 (arm_elf_make_msymbol_special): Declare.
10124 (arm_coff_make_msymbol_special): Declare.
10125 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10126 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10127
039c5766
RE
101282002-02-06 Richard Earnshaw <rearnsha@arm.com>
10129
10130 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10131
101322002-02-06 Richard Earnshaw <rearnsha@arm.com>
10133
10134 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10135 * gdbarch.c gdbarch.h: Regenerate.
10136 * arch-utils.c (default_print_float_info): New function.
10137 * arch-utils.h (default_print_float_info): Prototype it.
10138 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10139 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10140 (PRINT_FLOAT_INFO): Document it.
10141
10142 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10143 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10144 (PRINT_FLOAT_INFO): Define.
10145
58fa08f0
PM
101462002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10147
aaa38bb5 10148 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10149 Add typecast to sprintf argument to suppress a warning.
10150
7393af7c
PM
101512002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10152
58fa08f0 10153 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10154 to allow easier handling of pass state.
10155 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10156 that gives exception name and address.
10157 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10158 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10159 exceptions added.
aaa38bb5
AJ
10160 (child_continue): Correctly report continue_status.
10161 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10162 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10163 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10164 the exception should be passed to debuggee or not.
10165
6af4589c
MS
101662002-02-05 Michael Snyder <msnyder@redhat.com>
10167
10168 * regcache.c (fetch_register): Call target_fetch_register
10169 only if we don't call FETCH_PSEUDO_REGISTER.
10170 (store_register): Call target_store_register only if we
10171 don't call STORE_PSEUDO_REGISTER.
10172
a2cf933a
EZ
101732002-02-05 Elena Zannoni <ezannoni@redhat.com>
10174
10175 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10176 ELF_MAKE_MSYMBOL_SPECIAL.
10177 * gdbarch.c, gdbarch.h: Regenerate.
10178 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10179 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10180 * elfread.c (elf_symtab_read): Compile use of
10181 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10182 multiarched.
10183 * coffread.c (coff_symtab_read): Ditto, for
10184 COFF_MAKE_MSYMBOL_SPECIAL.
10185
6bb7be43
JB
101862002-02-05 Jim Blandy <jimb@redhat.com>
10187
10188 * solib-svr4.c (svr4_truncate_ptr): New function.
10189 (svr4_relocate_section_addresses): Do the address arithmetic with
10190 the appropriate truncation for target addresses, even when
10191 CORE_ADDR is larger than a target address.
10192
e18651ec
DJ
101932002-02-05 Daniel Jacobowitz <drow@mvista.com>
10194
10195 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10196 to (int *).
10197
6b2725be
DJ
101982002-02-05 Daniel Jacobowitz <drow@mvista.com>
10199
10200 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10201 code.
10202
fca9e603
DJ
102032002-02-05 Daniel Jacobowitz <drow@mvista.com>
10204
10205 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10206
6c537a52
DJ
102072002-02-05 Daniel Jacobowitz <drow@mvista.com>
10208
10209 * gdbserver/linux-low.c: Remove unused include files.
10210
d844cde6
DJ
102112002-02-05 Daniel Jacobowitz <drow@mvista.com>
10212
10213 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10214 (read_inferior_memory): Use it.
10215 (write_inferior_memory): Likewise.
10216
d07c63e7
DJ
102172002-02-05 Daniel Jacobowitz <drow@mvista.com>
10218
10219 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10220 grubbing through sys_errlist.
10221
da6d8c04
DJ
102222002-02-05 Daniel Jacobowitz <drow@mvista.com>
10223
10224 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10225
5b421780
PM
102262002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10227 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10228
9f60d481
AC
102292002-02-04 Andrew Cagney <ac131313@redhat.com>
10230
10231 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10232 (do_sfunc, set_cmd_sfunc): New functions.
10233
10234 * command.h (struct cmd_list_element): Add field func.
10235 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10236 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10237 * cli/cli-decode.h: Ditto.
10238
10239 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10240 (help_all, help_cmd_list): Ditto.
10241 (find_cmd, complete_on_cmdlist): Ditto.
10242 * top.c (execute_command): Ditto.
10243
10244 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10245 function.sfunc.
10246
10247 * infcmd.c (notice_args_read): Fix function signature.
10248
10249 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10250 * cli/cli-decode.c (add_set_cmd): Ditto.
10251 * utils.c (initialize_utils): Ditto.
10252 * maint.c (_initialize_maint_cmds): Ditto.
10253 * infrun.c (_initialize_infrun): Ditto.
10254 * demangle.c (_initialize_demangler): Ditto.
10255 * remote.c (add_packet_config_cmd): Ditto.
10256 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10257 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10258 * proc-api.c (_initialize_proc_api): Ditto.
10259 * kod.c (_initialize_kod): Ditto.
10260 * valprint.c (_initialize_valprint): Ditto.
10261 * top.c (init_main): Ditto.
10262 * infcmd.c (_initialize_infcmd): Ditto.
10263 * corefile.c (_initialize_core): Ditto.
10264 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10265 * arch-utils.c (initialize_current_architecture): Ditto.
10266 (_initialize_gdbarch_utils): Ditto.
10267 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10268
10269 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10270 * wince.c (_initialize_inftarg): Ditto.
10271 * symfile.c (_initialize_symfile): Ditto.
10272 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10273 * language.c (_initialize_language): Ditto.
10274 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10275
f9ba0717
MS
102762002-02-04 Michael Snyder <msnyder@redhat.com>
10277
10278 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10279
0c74b2a7
DJ
102802002-02-04 Daniel Jacobowitz <drow@mvista.com>
10281
10282 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10283 Add rules for building the register data files.
10284
c638789f
DJ
102852002-02-04 Daniel Jacobowitz <drow@mvista.com>
10286
10287 * regformats/regdat.sh: Add braces to the definition of
10288 expedite_regs_${arch}.
10289
db253027
DJ
102902002-02-04 Daniel Jacobowitz <drow@mvista.com>
10291
10292 * regformats/regdef.h (struct reg): Add comment describing the
10293 requirements for offset and size fields.
10294
206be19c
AS
102952002-02-04 Andreas Schwab <schwab@suse.de>
10296
10297 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10298 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10299
181c1381
RE
103002002-02-04 Richard Earnshaw <rearnsha@arm.com>
10301
10302 * gdbarch.sh (copyright): Update years in generated header.
10303 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10304 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10305 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10306 * dbxread.c: Likewise.
10307 * dwarfread.c: Likewise.
10308 * elfread.c: Likewise.
10309 * somread.c: Likewise.
10310
10311 * arm-tdep.c (arm_smash_text_address): New function.
10312 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10313
fa4ba8da
PM
103142002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10315
10316 Add support for hardware watchpoints on win32 native.
aaa38bb5 10317 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10318 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10319 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10320 of debug registers.
10321 (debug_registers_changed): New variable. Reflects when debug registers
10322 are changed and need to be written to inferior.
aaa38bb5 10323 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10324 was set, used when new threads are created.
10325 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10326 i386-nat code.
10327 (thread_rec): Set dr array if id is the thread of current_event .
10328 (child_continue, child_resume): Change the debug registers for all
10329 threads if debug_registers_changed.
10330 (child_add_thread): Change the debug registers if debug_registers_used.
10331 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10332 Link nm.h to new nm-cygwin.h file.
10333 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10334 of hardware registers.
10335
a73c86fb
AC
103362002-02-03 Andrew Cagney <ac131313@redhat.com>
10337
10338 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10339 Restore behavour broken by 2002-01-20 Andrew Cagney
10340 <ac131313@redhat.com> IEEE_FLOAT removal.
10341
acf5ed49
DJ
103422002-02-03 Daniel Jacobowitz <drow@mvista.com>
10343
10344 * c-valprint.c (c_val_print): Pass a proper valaddr to
10345 cp_print_class_method.
10346 * valops.c (search_struct_method): If there is only one method
10347 and args is NULL, return that method.
10348
493d28d5
DJ
103492002-02-03 Daniel Jacobowitz <drow@mvista.com>
10350
10351 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10352 accessing tag_name directly.
10353
7495dfdb
DJ
103542002-02-03 Daniel Jacobowitz <drow@mvista.com>
10355
10356 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10357 of accessing tag_name directly.
10358
dd6bda65
DJ
103592002-02-03 Daniel Jacobowitz <drow@mvista.com>
10360
10361 PR gdb/280
10362 * gdbtypes.c (replace_type): New function.
10363 * gdbtypes.h (replace_type): Add prototype.
10364 * stabsread.c (read_type): Use replace_type.
10365
88fe217c
RE
103662002-02-03 Richard Earnshaw <rearnsha@arm.com>
10367
10368 * Makefile.in (memattr.o): Add missing dependencies rule.
10369
e5d66720
PS
103702002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10371
10372 * breakpoint.c (break_at_finish_command): Really export.
10373 (break_at_finish_at_depth_command): Ditto.
10374 (tbreak_at_finish_command): Ditto.
10375 * hppa-tdep.c: Include completer.h.
10376 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10377 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10378
fffee0be
AC
103792002-02-01 Andrew Cagney <ac131313@redhat.com>
10380
10381 * utils.c (do_write): New function.
10382 (error_stream): Rewrite combining the code from error_begin and
10383 verror.
10384 (verror): Rewrite using error_stream.
10385 (error_begin): Delete function.
10386
255e7dbf
AC
103872002-02-01 Andrew Cagney <ac131313@redhat.com>
10388
10389 * utils.c (error_begin): Make static.
10390 * defs.h (error_begin): Delete declaration.
10391
10392 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10393 (decode_line_1): Use cplusplus_error instead of error_begin,
10394 cplusplus_hint and return_to_top_level.
10395 * coffread.c (coff_symfile_read): Use error instead of error_begin
10396 and return_to_top_level.
10397 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10398
ddfe3c15
AC
103992002-02-01 Andrew Cagney <ac131313@redhat.com>
10400
10401 * language.h (type_error, range_error): Make string parameter
10402 constant.
10403 * language.c (warning_pre_print): Delete extern declaration.
10404 * dwarfread.c (warning_pre_print): Ditto.
10405 * language.c (type_error, range_error): Rewrite to use verror and
10406 vwarning instead of warning_begin.
10407
03ac34d5
MS
104082002-02-01 Michael Snyder <msnyder@redhat.com>
10409
261c4ca2
MS
10410 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10411 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10412
e00d1dc8
AC
104132002-02-01 Andrew Cagney <ac131313@redhat.com>
10414
10415 * command.h (NO_FUNCTION): Delete macro.
10416 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10417 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10418 * tracepoint.c (_initialize_tracepoint): Ditto.
10419 * cli/cli-decode.c (add_set_cmd): Ditto.
10420 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10421
76b79d6e
DJ
104222002-02-01 Daniel Jacobowitz <drow@mvista.com>
10423
10424 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10425 Update ``this'' pointer when calling virtual functions.
10426
799f9e91
MS
104272002-02-01 Michael Snyder <msnyder@redhat.com>
10428
c7bd442c 10429 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10430 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10431
3cf384d4
DJ
104322002-02-01 Daniel Jacobowitz <drow@mvista.com>
10433
10434 * regformats/reg-arm.dat: New file.
10435 * regformats/reg-i386.dat: New file.
10436 * regformats/reg-ia64.dat: New file.
10437 * regformats/reg-m68k.dat: New file.
10438 * regformats/reg-mips.dat: New file.
10439 * regformats/reg-ppc.dat: New file.
10440 * regformats/reg-sh.dat: New file.
10441 * regformats/regdef.h: New file.
10442 * regformats/regdat.sh: New file.
10443
0defa245
RE
104442002-02-01 Richard Earnshaw <reanrsha@arm.com>
10445
10446 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10447 (arm_frame_args_address, arm_frame_locals_address): New functions.
10448 (arm_frame_num_args): New function.
10449 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10450 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10451 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10452
405f26e6
MS
104532002-01-31 Michael Snyder <msnyder@redhat.com>
10454
502fd408
MS
10455 * breakpoint.c (break_at_finish_command): Export.
10456 (break_at_finish_at_depth_command): Export.
10457 (tbreak_at_finish_command): Export.
d6020d45 10458 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10459 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10460 "txbreak" commands, which are HPPA specific.
502fd408 10461
7d35e135
MS
10462 * printcmd.c (disassemble_command): Remove an ancient
10463 artifact of an old merge.
10464
aaa38bb5 10465 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10466 Define enum constant values for overlay mode.
10467 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10468 (overlay_is_mapped, overlay_auto_command,
10469 overlay_manual_command): Ditto.
d874f1e2 10470
aaa38bb5
AJ
10471 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10472 breakpoint_here_p, breakpoint_inserted_here_p,
10473 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10474 describe_other_breakpoints, check_duplicates, clear_command):
10475 Coding standard fixes.
10476
8add0441 10477 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10478 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10479 code: check bfd SEC_READONLY flag for section.
10480
e351066e
AC
104812002-01-31 Andrew Cagney <ac131313@redhat.com>
10482
7d35e135 10483 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10484
8a48e967
DJ
104852002-01-30 Daniel Jacobowitz <drow@mvista.com>
10486
10487 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10488 data symbols, since we search based on textlow and texthigh.
10489 (find_pc_sect_symtab): Likewise.
10490
f5a96129
AC
104912002-01-30 Andrew Cagney <ac131313@redhat.com>
10492
10493 * defs.h (vwarning): Declare.
f5a96129
AC
10494 * utils.c (vwarning): New function.
10495 (warning): Call vwarning.
10496 (warning_begin): Delete function.
10497
10498 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10499 the warning message.
10500 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10501 warning_begin.
10502
cefd4ef5
MS
105032002-01-30 Michael Snyder <msnyder@redhat.com>
10504
1a703748
MS
10505 * NEWS: Mention "set trust-readonly-sections" command.
10506 Mention generate-core-file command.
cefd4ef5 10507
3a11626d
MS
105082002-01-15 Michael Snyder <msnyder@redhat.com>
10509
10510 * target.c: New command, "set trust-readonly-sections on".
10511 (do_xfer_memory): Honor the suggestion to trust readonly sections
10512 by reading them from the object file instead of from the target.
10513 (initialize_targets): Register command "set trust-readonly-sections".
10514
d1c7e53b
AC
105152002-01-29 Andrew Cagney <ac131313@redhat.com>
10516
10517 * parse.c (target_map_name_to_register): Simplify, search regs and
10518 pseudo-regs using a single loop.
10519
e2c9a72c
AC
105202002-01-30 Andrew Cagney <ac131313@redhat.com>
10521
10522 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10523
69824b4e
MK
105242002-01-15 Rodney Brown <rbrown64@csc.com.au>
10525
10526 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10527 * config/i386/i386v42mp.mh: Add i387-nat.o .
10528 * i386v4-nat.c: Include i387-nat.h.
10529 (supply_fpregset): Use i387_supply_fsave.
10530 (fill_fpregset): Use i387_fill_fsave.
10531
6eb69eab
RE
105322002-01-30 Richard Earnshaw <rearnsha@arm.com>
10533
10534 * arm-tdep.c (arm_call_dummy_words): Define.
10535 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10536 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10537 (CALL_DUMMY_WORDS): Define.
10538 (arm_call_dummy_words): Declare.
10539 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10540 (arm_linux_call_dummy_words): Declare.
10541
9852326a
AS
105422002-01-30 Andreas Schwab <schwab@suse.de>
10543
10544 * m68klinux-nat.c: Fix last change to use regcache_collect
10545 instead of referencing registers[] directly.
10546
977a3030
AC
105472002-01-29 Andrew Cagney <ac131313@redhat.com>
10548
10549 * parse.c (target_map_name_to_register): Delete code wrapped in
10550 #ifdef REGISTER_NAME_ALIAS_HOOK.
10551
2076c72b
MS
105522002-01-28 Michael Snyder <msnyder@redhat.com>
10553
10554 * regcache.c (legacy_read_register_gen): Need to be able to
10555 read pseudo-register as well as real register.
10556 (legacy_write_register_gen): Ditto.
10557
8fcc723b
AC
105582002-01-28 Andrew Cagney <ac131313@redhat.com>
10559
10560 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10561 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10562 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10563 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10564 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10565 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10566 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10567 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10568 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10569 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10570 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10571 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10572 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10573 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10574 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10575 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10576 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10577 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10578 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10579 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10580
afe64c1a
AC
105812002-01-28 Andrew Cagney <ac131313@redhat.com>
10582
10583 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10584 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10585 (initialize_current_architecture): Update target_byte_order using
10586 information from BFD.
aaa38bb5 10587 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10588 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10589
75bc7ddf
AC
105902002-01-28 Andrew Cagney <ac131313@redhat.com>
10591
10592 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10593 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10594
10595 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10596 #ifdef INVALID_FLOAT.
10597 * infcmd.c (do_registers_info): Ditto.
10598 * values.c (unpack_double): Ditto. Add comment.
10599
10600 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10601 already commented out.
10602
0280a90a
AS
106032002-01-26 Andreas Schwab <schwab@suse.de>
10604
10605 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10606 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10607 registers and add support for PTRACE_GETREGS.
10608
7072a954
AC
106092002-01-24 Andrew Cagney <ac131313@redhat.com>
10610
10611 GDB 5.1.1 released from 5.1 branch.
10612 * NEWS: Add 5.1.1 news.
10613 * README: Sync with 5.1 branch.
10614
86f902e0
FF
106152002-01-23 Fred Fish <fnf@redhat.com>
10616
10617 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10618 stabstring on initial malloc. Reallocing will copy it for us,
10619 if necessary.
10620
8af51c36
EZ
106212002-01-23 Elena Zannoni <ezannoni@redhat.com>
10622
aaa38bb5 10623 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10624 (HFILES_NO_SRCDIR): Remove hpread.h.
10625 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10626 (hpread.o): Update dependencies.
10627 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10628
10629 * hp-psymtab-read.c: Remove file.
10630 * hp-symtab-read.c: Remove file.
10631 * hpread.h: Remove file.
10632
10633 * hpread.c: Merge all contents of hp-psymtab-read.c,
10634 hp-symtab-read.c and hpread.h into this file, as it was prior to
10635 January 1999.
10636
10637 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10638 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10639 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10640 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10641
dc5cfeb6
EZ
106422002-01-23 Elena Zannoni <ezannoni@redhat.com>
10643
10644 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10645 fill_gregset): Call gdbarch_tdep() just once, assign result to
10646 variable and use that, instead of calling the function several
10647 times.
10648
ea87b71b
AO
106492002-01-24 Alexandre Oliva <aoliva@redhat.com>
10650
10651 * configure.host: Accept sparcv9 as alias for sparc64.
10652 * configure.tgt: Likewise.
10653
13fc0c2f
KB
106542002-01-22 Kevin Buettner <kevinb@redhat.com>
10655
10656 * solib-aix5.c (build_so_list_from_mapfile)
10657 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10658 arguments is not reversed.
10659 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10660 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10661
7bd872fe
EZ
106622002-01-22 Elena Zannoni <ezannoni@redhat.com>
10663
10664 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10665 modified version of obsolete sh_fetch_pseudo_register.
10666 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10667 (sh4_register_read): New function.
10668 (sh_pseudo_register_write): New function. Renamed and modified
10669 version of obsolete sh_store_pseudo_register.
10670 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10671 (sh4_register_write): New function.
10672 (sh_gdbarch_init): Remove setting of gdbarch function
10673 fetch_pseudo_register and store_pseudo_register. Remove setting of
10674 register_convert_to_raw, register_convert_to_virtual,
10675 register_convertible.
10676 (sh_sh4_register_convertible): Delete. No longer needed. All is
10677 taken care by architecture specific functions
10678 register_read/register_write.
10679 (sh_sh4_register_convert_to_virtual): Make static.
10680 (sh_sh4_register_convert_to_raw): Ditto.
10681
069e84fd
AC
106822002-01-22 Andrew Cagney <ac131313@redhat.com>
10683
10684 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10685 (floatformat_is_nan, floatformat_mantissa): Ditto.
10686
10687 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10688 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10689 builtin_type_ieee_double_little,
10690 builtin_type_ieee_double_littlebyte_bigword,
10691 builtin_type_m68881_ext, builtin_type_i960_ext,
10692 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10693 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10694 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10695 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10696
211a4f69
CV
106972002-01-22 Corinna Vinschen <vinschen@redhat.com>
10698
10699 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10700 parameter. Set frameless flag if it exists and depended of
10701 whether the scanned function is frameless or not.
10702 (xstormy16_skip_prologue): If function is frameless, return
10703 result of xstormy16_scan_prologue().
10704 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10705 call.
10706
f81353e4
EZ
107072002-01-21 Elena Zannoni <ezannoni@redhat.com>
10708
10709 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10710 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10711 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10712 sh_sh4_register_byte, sh_sh4_register_raw_size,
10713 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10714 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10715 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10716 sh_store_pseudo_register, sh_do_pseudo_register): Call
10717 gdbarch_tdep() just once, assign result to variable and use that,
10718 instead of calling the function several times.
10719
63c73a17
MK
107202002-01-20 Mark Kettenis <kettenis@gnu.org>
10721
10722 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10723 macros instead of LAST_FPU_CTRL_REGNUM.
10724 (store_register): Likewise.
10725
39ad761d
JB
107262002-01-21 Jim Blandy <jimb@redhat.com>
10727
10728 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10729 is up-to-date before running the program, not just when a program
10730 exits.
10731
3d74b771
FF
107322002-01-21 Fred Fish <fnf@redhat.com>
10733
10734 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10735 when we have found all instructions we are looking for.
10736
966fbf70
RE
107372002-01-21 Richard Earnshaw <rearnsha@arm.com>
10738
10739 * arm-tdep.c (arm_register_name): New function.
10740 (arm_registers_names): Make static.
10741 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10742 (arm_register_name): Declare.
10743 (REGISTER_NAME): Use it.
10744
c3b4394c
RE
107452002-01-21 Richard Earnshaw <rearnsha@arm.com>
10746 Kevin Buettner <kevinb@redhat.com>
10747
10748 Convert arm targets to new FRAME interface.
10749 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10750 (arm_frame_find_save_regs): Delete.
10751 (arm_frame_init_saved_regs): New.
10752 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10753 Allocate extra_info as required. Convert all uses of fsr.regs
10754 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10755 to use extra_info.
10756 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10757 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10758 (check_prologue_cache, save_prologue_cache): Likewise.
10759 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10760 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10761 (FRAME_FIND_SAVED_REGS): Delete.
10762 (arm_frame_find_saved_regs): Delete prototype.
10763 (arm_frame_init_saved_regs): New prototype.
10764 (FRAME_INIT_SAVED_REGS): Define.
10765
61d99182
AC
107662002-01-20 Andrew Cagney <ac131313@redhat.com>
10767
10768 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10769
6aaea291
AC
107702002-01-20 Andrew Cagney <ac131313@redhat.com>
10771
10772 From Jeff Law <law@redhat.com>:
10773 * infttrace.c: Include <sys/pstat.h>.
10774 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10775 exec file if the ttrace equivalent fails.
10776
15f698d2
AC
107772002-01-20 Andrew Cagney <ac131313@redhat.com>
10778
10779 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10780 (closeLogFile): Ditto.
10781
f86ddd7c
MC
107822002-01-20 Michael Chastain <mec@shout.net>
10783
10784 * top.c (print_gdb_version): Bump copyright year to 2002.
10785
904507ce
AC
107862002-01-20 Andrew Cagney <ac131313@redhat.com>
10787
10788 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10789 Zannoni and Eli Zaretskii.
10790
d7f0b9ce
DJ
107912002-01-20 Daniel Jacobowitz <drow@mvista.com>
10792
10793 * buildsym.c: Update copyright years.
10794 * c-typeprint.c: Likewise.
10795 * dwarf2read.c: Likewise.
10796 * f-typeprint.c: Likewise.
10797 * gdbtypes.c: Likewise.
10798 * gdbtypes.h: Likewise.
10799 * hp-symtab-read.c: Likewise.
10800 * hpread.c: Likewise.
10801 * mdebugread.c: Likewise.
10802 * p-typeprint.c: Likewise.
10803
3fd3d7d2
AC
108042002-01-20 Andrew Cagney <ac131313@redhat.com>
10805
10806 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10807 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10808 byte-order selectable.
10809 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10810 * arch-utils.c: Ditto.
10811 (set_endian): Ditto.
10812 (set_endian_from_file): Ditto.
10813 * gdbserver/low-sim.c (create_inferior): Ditto.
10814 * gdbarch.sh: Ditto.
10815 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10816 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10817 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10818 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10819 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10820 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10821 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10822 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10823 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10824 macro definition.
10825 * config/mips/tm-wince.h: Remove #undef of macro
10826 TARGET_BYTE_ORDER_SELECTABLE.
10827 * config/sh/tm-wince.h: Ditto.
10828
b02dede2
DJ
108292002-01-20 Daniel Jacobowitz <drow@mvista.com>
10830
10831 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10832 member function fields. Add accessor macro
10833 TYPE_FN_FIELD_ARTIFICIAL.
10834 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10835 * c-typeprint.c (c_type_print_base): Skip artificial member
10836 functions.
10837
c3643761
DJ
108382002-01-20 Daniel Jacobowitz <drow@mvista.com>
10839
10840 * f-typeprint.c: Delete unused function f_type_print_args.
10841 * p-typeprint.c: Delete unused function pascal_type_print_args.
10842
8176bb6d
DJ
108432002-01-20 Daniel Jacobowitz <drow@mvista.com>
10844
10845 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10846 comment. Add ``artificial'' to ``union field_location''.
10847
10848 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10849
10850 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10851 * mdebugread.c (parse_symbol): Likewise.
10852 * stabsread.c (define_symbol): Likewise.
10853 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10854 initializing TYPE_FIELD_BITPOS to n (obsolete).
10855 (hpread_doc_function_type): Likewise.
10856 * hpread.c (hpread_function_type): Likewise.
10857
7fd60527
AC
108582002-01-20 Andrew Cagney <ac131313@redhat.com>
10859
10860 * configure.in (host_makefile_frag): Only require a host makefile
10861 fragment when a native build.
10862 * configure: Re-generate.
10863
c2f05ac9
AC
108642002-01-20 Andrew Cagney <ac131313@redhat.com>
10865
10866 * doublest.h (floatformat_from_type): Declare.
10867 * doublest.c (floatformat_from_type): New function.
10868 (convert_typed_floating): Use.
10869
10870 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10871 call to function floatformat_from_type.
10872
10873 * gdbarch.sh (IEEE_FLOAT): Delete.
10874 * gdbarch.h, gdbarch.c: Re-generate.
10875 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10876 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10877 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10878 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10879 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10880 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10881 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10882 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10883 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10884 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10885 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10886 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10887
10888 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10889 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10890 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10891 * sh-tdep.c (sh_gdbarch_init): Ditto.
10892 * mips-tdep.c (mips_gdbarch_init): Ditto.
10893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10894 * cris-tdep.c (cris_gdbarch_init): Ditto.
10895
abf22e64
AJ
108962002-01-20 Jiri Smid <smid@suse.cz>
10897
10898 * configure.host, configure.tgt: Support x86-64.
10899 * NEWS: Note new target x86-64.
10900
b7c4cbf8
AJ
10901 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10902 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10903 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10904 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10905 x86-64-linux-nat.o): Fix dependencies.
10906
82600034
AC
109072002-01-19 Andrew Cagney <ac131313@redhat.com>
10908
10909 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10910 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10911 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10912 * config/sparc/xm-sun4os4.h: Delete file.
10913 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10914
bbe5c628
AC
109152002-01-19 Andrew Cagney <ac131313@redhat.com>
10916
10917 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10918 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10919 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10920 * config/i386/i386lynx.mh (XM_FILE): Delete.
10921 * config/rs6000/xm-rs6000ly.h: Delete file.
10922 * config/sparc/xm-sparclynx.h: Delete file.
10923 * config/m68k/xm-m68klynx.h: Delete file.
10924 * config/i386/xm-i386lynx.h: Delete file.
10925 * config/xm-lynx.h: Delete file.
10926 * config/djgpp/fnchange.lst: Update.
10927
f8453e34
JT
109282002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10929
10930 * alpha-tdep.c (alpha_register_byte): New function.
10931 (alpha_register_raw_size): Ditto.
10932 (alpha_register_virtual_size): Ditto.
10933 (alpha_skip_prologue_internal): Renamed from
10934 alpha_skip_prologue.
10935 (alpha_skip_prologue): New version that calls
10936 alpha_skip_prologue_internal.
10937 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10938 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10939 second argument from alpha_skip_prologue.
10940 (REGISTER_BYTE): Use alpha_register_byte.
10941 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10942 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10943 (FRAMELESS_FUNCTION_INVOCATION): Use
10944 generic_frameless_function_invocation_not.
10945 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10946 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10947
52d9e613
AC
109482002-01-19 Andrew Cagney <ac131313@redhat.com>
10949
10950 * config/mips/xm-news-mips.h: Delete file.
10951 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10952
10953 * config/m88k/xm-m88k.h: Delete file.
10954 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10955 * config/m88k/xm-delta88v4.h: Ditto.
10956 * config/m88k/xm-delta88.h: Ditto.
10957
10958 * config/alpha/xm-fbsd.h: Delete file.
10959 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10960
10961 * config/sparc/xm-sparc.h: Delete file.
10962 * Makefile.in (xm-sun4os4.h): Delete dependency.
10963 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10964 * config/sparc/xm-sun4os4.h: Ditto.
10965 * config/sparc/xm-linux.h: Ditto.
10966
10967 * config/i386/xm-windows.h: Delete file.
10968
2d1b2124
AC
109692002-01-19 Andrew Cagney <ac131313@redhat.com>
10970
10971 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10972 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10973
ee1f65f0
JT
109742002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10975
10976 * alpha-tdep.c (alpha_call_dummy_words): New.
10977 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10978 (CALL_DUMMY_P): Define.
10979 (CALL_DUMMY_WORDS): Define.
10980 (SIZEOF_CALL_DUMMY_WORDS): Define.
10981
98081e55
PB
109822002-01-19 Per Bothner <per@bothner.com>
10983
10984 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10985 isn't NULL, which can happen with some gcj-3.x-produced code.
10986
0d056799
JT
109872002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10988
10989 * alpha-tdep.c (alpha_register_virtual_type): New function.
10990 (alpha_init_frame_pc_first): Ditto.
10991 (alpha_fix_call_dummy): Ditto.
10992 (alpha_store_struct_return): Ditto.
10993 (alpha_extract_struct_value_address): Ditto.
10994 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10995 alpha_register_virtual_type.
10996 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10997 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10998 alpha_extract_struct_value_address.
10999 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11000 (INIT_FRAME_PC): Use init_frame_pc_noop.
11001 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11002
4604bcad
MK
110032002-01-19 Mark Kettenis <kettenis@gnu.org>
11004
11005 * i386gnu-nat.c: Include "i386-tdep.h".
11006 (fetch_fpregs): Simplify code dealing with uninitialized floating
11007 point states such that it doesn't require FP7_REGNUM.
11008
140f9984
JT
110092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11010
abf22e64
AJ
11011 * alpha-tdep.c (frame_extra_info): New.
11012 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11013 frame->extra_info.
11014 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11015 (alpha_frame_saved_pc): Use frame->extra_info.
11016 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11017 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11018 (init_extra_frame_info): Rename to...
11019 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11020 (alpha_print_extra_frame_info): New function.
140f9984
JT
11021 (alpha_frame_locals_address): Ditto.
11022 (alpha_frame_args_address): Ditto.
abf22e64 11023 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11024 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11025 alpha_frame_args_address.
abf22e64 11026 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11027 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11028 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11029 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11030 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11031 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11032
d734c450
JT
110332002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11034
11035 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11036 (alpha_cannot_fetch_register): Ditto.
11037 (alpha_cannot_store_register): Ditto.
11038 (alpha_register_convertible): Ditto.
11039 (alpha_use_struct_convention): Ditto.
11040 * config/alpha/tm-alpha.h: Update copyright years.
11041 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11042 (INNER_THAN): Use core_addr_lessthan.
11043 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11044 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11045 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11046 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11047 (FRAME_CHAIN): Remove unnecessary cast.
11048
b4ceaee6
AC
110492002-01-18 Andrew Cagney <ac131313@redhat.com>
11050
11051 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11052 obsolete.
11053
0a65a603
AC
110542002-01-18 Andrew Cagney <ac131313@redhat.com>
11055
11056 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11057 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11058 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11059 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11060 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11061 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11062 * x86-64-linux-nat.c: Ditto.
11063
636a6dfc
JT
110642002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11065
abf22e64 11066 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11067 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11068 (REGISTER_NAME): Define.
11069
acceddb6
JT
110702002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11071
11072 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11073
ec32e4be
JT
110742002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11075
11076 * alpha-tdep.c: Update copyright years.
11077 (alpha_next_pc): New function.
11078 (alpha_software_single_step): Ditto.
11079 * config/alpha/tm-alpha.h: Add prototype for
11080 alpha_software_single_step.
11081
e771a871
JT
110822002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11083
11084 * alphabsd-nat.c: Update copyright years.
11085 (fill_gregset): Use regcache_collect.
11086 (fill_fpregset): Likewise.
11087 (fetch_inferior_registers): Only fetch integer registers
11088 if requested to do so.
11089 (store_inferior_registers): Only store integer registers
11090 if requested to do so.
11091
7708fa01
AC
110922002-01-17 Andrew Cagney <ac131313@redhat.com>
11093
11094 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11095 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11096 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11097 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11098 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11099 * config/arm/linux.mh (XDEPFILES): Delete.
11100 * config/arm/nbsd.mh (XDEPFILES): Delete.
11101 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11102 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11103 * config/i386/i386m3.mh (XDEPFILES): Delete.
11104 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11105 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11106 * config/i386/fbsd.mh (XDEPFILES): Delete.
11107 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11108 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11109 * config/i386/i386v4.mh (XDEPFILES): Delete.
11110 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11111 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11112 * config/i386/i386aix.mh (XDEPFILES): Delete.
11113 * config/i386/go32.mh (XDEPFILES): Delete.
11114 * config/i386/cygwin.mh (XDEPFILES): Delete.
11115 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11116 * config/i386/i386mach.mh (XDEPFILES): Delete.
11117 * config/i386/i386v32.mh (XDEPFILES): Delete.
11118 * config/i386/linux.mh (XDEPFILES): Delete.
11119 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11120 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11121 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11122 * config/i386/i386sco.mh (XDEPFILES): Delete.
11123 * config/i386/i386v.mh (XDEPFILES): Delete.
11124 * config/i386/nbsd.mh (XDEPFILES): Delete.
11125 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11126 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11127 * config/i386/symmetry.mh (XDEPFILES): Delete.
11128 * config/i386/obsd.mh (XDEPFILES): Delete.
11129 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11130 * config/ia64/linux.mh (XDEPFILES): Delete.
11131 * config/ia64/aix.mh (XDEPFILES): Delete.
11132 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11133 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11134 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11135 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11136 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11137 * config/m68k/linux.mh (XDEPFILES): Delete.
11138 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11139 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11140 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11141 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11142 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11143 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11144 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11145 * config/m88k/delta88.mh (XDEPFILES): Delete.
11146 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11147 * config/m88k/m88k.mh (XDEPFILES): Delete.
11148 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11149 * config/mips/linux.mh (XDEPFILES): Delete.
11150 * config/mips/irix6.mh (XDEPFILES): Delete.
11151 * config/mips/irix5.mh (XDEPFILES): Delete.
11152 * config/mips/irix4.mh (XDEPFILES): Delete.
11153 * config/mips/irix3.mh (XDEPFILES): Delete.
11154 * config/mips/decstation.mh (XDEPFILES): Delete.
11155 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11156 (NATDEPFILES): Move core-aout.o to here.
11157 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11158 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11159 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11160 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11161 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11162 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11163 * config/pa/hpux11.mh (XDEPFILES): Delete.
11164 * config/powerpc/aix.mh (XDEPFILES): Delete.
11165 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11166 * config/powerpc/linux.mh (XDEPFILES): Delete.
11167 * config/romp/rtbsd.mh: Rename XDEPFILES.
11168 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11169 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11170 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11171 * config/s390/s390.mh (XDEPFILES): Delete.
11172 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11173 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11174 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11175 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11176 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11177 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11178 * config/sparc/linux.mh (XDEPFILES): Delete.
11179 * config/vax/vaxult.mh (XDEPFILES): Delete.
11180 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11181 * Makefile.in (DEPFILES): Remove XDEPFILES.
11182
375fc983
AC
111832002-01-17 Andrew Cagney <ac131313@redhat.com>
11184
11185 * utils.c (internal_verror): Fix comments, default is yes not no.
11186 Update queries to match. Default to quit and dump core.
11187
8926118c
AC
111882002-01-17 Andrew Cagney <ac131313@redhat.com>
11189
11190 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11191 copyright.
11192 * defs.h, event-top.c, gdbcmd.h: Ditto.
11193 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11194 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11195 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11196 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11197 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11198 * mi/mi-main.c:Ditto.
11199
11200 * stack.c, symfile.c: Update copyright.
11201
45b7b345
DJ
112022002-01-17 Daniel Jacobowitz <drow@mvista.com>
11203
db728ff7
DJ
11204 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11205 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11206 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11207 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11208
db728ff7
DJ
112092002-01-17 Daniel Jacobowitz <drow@mvista.com>
11210
11211 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11212 * gdbserver/low-lynx.c (myattach): Likewise.
11213 * gdbserver/low-nbsd.c (myattach): Likewise.
11214 * gdbserver/low-sim.c (myattach): Likewise.
11215 * gdbserver/low-sparc.c (myattach): Likewise.
11216 * gdbserver/low-sun3.c (myattach): Likewise.
11217
11218 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11219
db728ff7 11220 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11221 (main): Handle "--attach".
11222
8de3c354
AC
112232002-01-16 Andrew Cagney <ac131313@redhat.com>
11224
11225 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11226 maintainer.
11227
b0129042
DJ
112282002-01-15 Daniel Jacobowitz <drow@mvista.com>
11229
11230 * c-typeprint.c (is_type_conversion_operator): Add additional
11231 check for non-conversion operators.
11232
ba8679fb 112332002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11234
11235 * linux-proc.c: Add "info proc" command, a la procfs.c.
11236 (read_mapping): New function, abstract and re-use code.
11237 (linux_find_memory_regions): Use new func read_mapping.
11238 (linux_info_proc_cmd): New function, implement "info proc".
11239 (_initialize_linux_proc): Add new command "info proc".
11240
e4f9b4d5
MS
112412002-01-15 Michael Snyder <msnyder@redhat.com>
11242
11243 * symfile.c (generic_load): Use bfd_map_over_sections method
11244 instead of manipulating bfd structure members directly.
11245 (add_section_size_callback): New function, bfd sections callback
11246 used by generic_load.
11247 (load_sections_callback): New function, bfd sections callback
11248 used by generic_load.
11249
08cf96df
EZ
112502002-01-15 Elena Zannoni <ezannoni@redhat.com>
11251
abf22e64 11252 [Based on work by Jim Blandy]
08cf96df
EZ
11253 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11254 (builtin_type_vec128): Export.
11255 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11256 types.
11257 (builtin_type_vec128): New builtin type for 128 bit vector
11258 registers.
11259 (build_gdbtypes): Initialize builtin_type_v16qi and
11260 builtin_type_v8hi. Create the vec128 register builtin type
11261 structure.
11262 (build_builtin_type_vec128): New function.
abf22e64 11263 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11264 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11265 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11266 AltiVec register to new builtin type.
11267
d7242108
DJ
112682001-01-15 Daniel Jacobowitz <drow@mvista.com>
11269
11270 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11271 to make_cv_type.
11272
4ee3352d
AC
112732002-01-14 Andrew Cagney <ac131313@redhat.com>
11274
11275 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11276 CLEAN_UP_REGISTER_VALUE.
11277 * regcache.c (supply_register): Update only call.
11278
f015b2e7
AC
112792002-01-14 Andrew Cagney <ac131313@redhat.com>
11280
11281 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11282 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11283 a29k-*-vxworks* targets as obsolete.
11284
356ae49d
MS
112852002-01-14 Michael Snyder <msnyder@redhat.com>
11286
11287 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11288 until we can resolve portability issues.
11289 * gregset.h: Remove references to fpxregs.
11290 * gcore.c (gcore_command): Initialize note_sec to NULL.
11291
ade8f45e
AC
112922002-01-13 Andrew Cagney <ac131313@redhat.com>
11293
11294 * signals.c (target_signal_to_name): Rewrite. Only use
11295 signals[].name when in bounds and non-NULL.
abf22e64 11296
89c49e7a
AC
112972002-01-13 Andrew Cagney <ac131313@redhat.com>
11298
11299 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11300 * signals.c (target_signal_to_name): Verify that SIG is within the
11301 bounds of the signals array.
11302
4daa9f9f
AC
113032002-01-13 Andrew Cagney <ac131313@redhat.com>
11304
11305 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11306
ba4bbdcb
KS
113072002-01-13 Keith Seitz <keiths@redhat.com>
11308
11309 * stack.c (print_frame_info_base): Print the frame's pc
11310 only if when print_frame_info_listing_hook is not defined.
11311
575bbeb6
KS
113122002-01-13 Keith Seitz <keiths@redhat.com>
11313
11314 * varobj.c (varobj_set_value): Make sure that there were no
11315 errors evaluating the object before attempting to set its
11316 value.
11317 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11318 so this offset adjustment is no longer necessary.
11319 (create_child): Don't set the error flag if the child is
11320 a CPLUS_FAKE_CHILD.
11321 (value_of_child): If value_fetch_lazy fails, return NULL
11322 so that callers will be notified that an error occurred.
11323 (c_value_of_variable): Delay check of variable's validity
11324 until later. We actually want all structs and unions to have
11325 the value "{...}".
11326 Do not return "???" for variables which could not be evaluated.
11327 This error condition must be returned to the caller so that it
11328 can get the error condition from gdb.
11329 (cplus_name_of_child): Adjust index for vptr before figuring
11330 out the name of the child.
11331 (cplus_value_of_child): If a child's (real) parent is not valid,
11332 don't even bother trying to give a value for it. Just return
11333 an error. Change all instances in this function.
11334 (cplus_type_of_child): If our parent is one of the "fake"
11335 parents, we need to get at the type of the real parent, and
11336 derive the child's true type using this information.
11337
b76898ab
AC
113382002-01-13 Andrew Cagney <ac131313@redhat.com>
11339
11340 From 2002-01-09 John Marshall <johnm@falch.net>:
11341 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11342 sources.redhat.com, and tweak some related URLs which had
11343 suffered from linkrot.
11344
b6649e88
AC
113452002-01-13 Andrew Cagney <ac131313@redhat.com>
11346
11347 From Jeff law:
11348 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11349 structures passed in registers.
11350
82cc5033
EZ
113512002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11352
11353 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11354 white space which prevented compilation. Reported by DSK
11355 <dsk@student.unsw.edu.au>.
11356
ba5f2f8a
MS
113572002-01-11 Michael Snyder <msnyder@redhat.com>
11358
fbd35540
MS
11359 * symfile.c (build_section_addr_info_from_section_tab):
11360 Use bfd access method instead of manipulating bfd directly.
11361 (syms_from_objfile): Ditto.
11362 (simple_overlay_update_1): Ditto.
11363 (simple_overlay_update): Ditto.
11364 (generic_load): Ditto.
11365 (overlay_unmapped_address): FIXME comment, bfd access methods.
11366 (sections_overlap): FIXME comment, bfd access methods.
11367 (pc_in_mapped_range): FIXME comment, bfd access methods.
11368 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11369 (section_is_mapped): FIXME comment, bfd access methods.
11370 (section_is_overlay): FIXME comment, bfd access methods.
11371
ba5f2f8a
MS
11372 * symfile.c (generic_load): Whitespace and long line cleanups.
11373 Remove duplicate variable, change several local variables to
11374 more appropriate data types.
11375 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11376
17df2af6
AC
113772002-01-12 Andrew Cagney <ac131313@redhat.com>
11378
11379 From Peter Schauer:
11380 * language.c (longest_local_hex_string_custom): Use phex_nz to
11381 convert NUM to a hex string.
11382
ec920329
EZ
113832002-01-12 Elena Zannoni <ezannoni@redhat.com>
11384
11385 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11386 the function.
538a76d6 11387 Update Copyright year.
ec920329 11388
3abd2e01
AC
113892002-01-12 Andrew Cagney <ac131313@redhat.com>
11390
11391 * language.c (longest_raw_hex_string): Delete unused function.
11392
b21b22e0
PS
113932002-01-11 Petr Sorfa <petrs@caldera.com>
11394
11395 * MAINTAINERS (write-after-approval): Add myself.
11396 * dwarf2read.c (read_tag_string_type): Handling of
11397 DW_AT_byte_size.
11398 (read_tag_string_type): FORTRAN fix to prevent propagation of
11399 first string size.
11400 (set_cu_language): Handling of DW_LANG_Fortran95
11401
747fe712
RE
114022002-01-11 Richard Earnshaw <rearnsha@arm.com>
11403
11404 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11405 GETPID(inferior_ptid).
11406 (store_inferior_registers): Likewise.
11407
f1bea926
JM
114082002-01-10 Jason Merrill <jason@redhat.com>
11409
11410 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11411 Fix DW_OP_minus.
11412
ae940673
AC
114132002-01-10 Andrew Cagney <ac131313@redhat.com>
11414
11415 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11416 and bfd/elf32-sh-nbsd.c.
11417
00546b04
MS
114182002-01-10 Michael Snyder <msnyder@redhat.com>
11419
352ed7b4
MS
11420 * NEWS: Mention --pid and corefile/proc-id behavior change.
11421
c18be923
MS
11422 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11423 * gcore.c: Include cli/cli-decode.h instead of command.h.
11424
00546b04
MS
11425 * main.c (captured_main): Add new command line option "--pid".
11426 If the second command line argument (following the symbol-file)
11427 begins with a digit, try to attach to it before trying to open
11428 it as a corefile.
11429 (print_gdb_help): Document the "--pid" argument.
11430
db60ec62
EZ
114312002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11432
11433 * completer.c (command_completer): New function.
11434
11435 * completer.h <command_completer>: Add prototype.
11436
11437 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11438 completer for the "help" command.
11439
39c22d1a
JM
114402002-01-09 Jason Merrill <jason@redhat.com>
11441
11442 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11443
c564377f
MS
114442002-01-09 Michael Snyder <msnyder@redhat.com>
11445
975aec09
MS
11446 * i386-linux-nat.c (fill_fpxregset): Make global.
11447 (store_fpxregset): Ditto.
11448
db4a10fa
MS
11449 * gregset.h (gdb_fpxregset_t): Define.
11450 (supply_fpxregset): Prototype.
11451 (fill_fpxregset): Prototype.
11452
c564377f
MS
11453 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11454
c3d45d70
RE
114552002-01-09 Richard Earnshaw <rearnsha@arm.com>
11456
11457 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11458 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11459 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11460
fcc87af1
AC
114612002-01-09 Andrew Cagney <ac131313@redhat.com>
11462
11463 * MAINTAINERS: Update target maintainer rules so that any
11464 Maintainer can approve a tested patch for a maintenance-only
11465 target.
11466
dd96c05b
RE
114672002-01-09 Richard Earnshaw <rearnsha@arm.com>
11468
d4297db9 11469 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11470
d4297db9 11471 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11472 IN_SIGTRAMP.
11473
145fdc6e
MS
114742002-01-08 Michael Snyder <msnyder@redhat.com>
11475
11476 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11477 real name of the executable, rather than the /proc name.
11478
be4d1333
MS
114792002-01-03 Michael Snyder <msnyder@redhat.com>
11480
11481 Implement a "generate-core-file" command in gdb, save target state.
11482 * gcore.c: New file. Implement new command 'generate-core-file'.
11483 Save a corefile image of the current state of the inferior.
11484 * linux-proc.c: Add linux-specific code for saving corefiles.
11485 * target.h (struct target_ops): Add new target vectors for saving
11486 corefiles; to_find_memory_regions and to_make_corefile_notes.
11487 (target_find_memory_regions): New macro.
11488 (target_make_corefile_notes): New macro.
11489 * target.c (update_current_target): Inherit new target methods.
11490 (dummy_find_memory_regions): New place-holder method.
11491 (dummy_make_corefile_notes): New place-holder method.
11492 (init_dummy_target): Initialize new dummy target vectors.
11493 * exec.c (exec_set_find_memory_regions): New function.
11494 Allow the exec_ops vector for memory regions to be taken over.
11495 (exec_make_note_section): New function, target vector method.
11496 * defs.h (exec_set_find_memory_regions): Export prototype.
11497 * procfs.c (proc_find_memory_regions): New function, corefile method.
11498 (procfs_make_note_section): New function, corefile method.
11499 (init_procfs_ops): Set new target vector pointers.
11500 (find_memory_regions_callback): New function.
11501 (procfs_do_thread_registers): New function.
11502 (procfs_corefile_thread_callback): New function.
11503 * sol-thread.c (sol_find_memory_regions): New function.
11504 (sol_make_note_section): New function.
11505 (init_sol_thread_ops): Initialize new target vectors.
11506 * inftarg.c (inftarg_set_find_memory_regions): New function.
11507 Allow to_find_memory_regions vector to be taken over.
11508 (inftarg_set_make_corefile_notes): New function.
11509 Allow to_make_corefile_notes vector to be taken over.
11510 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11511 interface layer if not target_has_execution (may be a corefile).
11512 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11513 * config/sparc/sun4sol2.mh: Ditto.
11514 * config/alpha/alpha-linux.mh: Ditto.
11515 * config/arm/linux.mh: Ditto.
11516 * config/i386/x86-64linux.mh: Ditto.
11517 * config/ia64/linux.mh: Ditto.
11518 * config/m68k/linux.mh: Ditto.
11519 * config/mips/linux.mh: Ditto.
11520 * config/powerpc/linux.mh: Ditto.
11521 * config/sparc/linux.mh: Ditto.
11522
c6b92abd
MS
115232002-01-07 Michael Snyder <msnyder@redhat.com>
11524
11525 * arm-linux-nat.c: Remove references to regcache.c internal data
11526 (registers[] and register_valid[]).
11527
4b09dc8c
MS
115282002-01-07 Michael Snyder <msnyder@redhat.com>
11529
abf22e64
AJ
11530 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11531 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11532 symbol file and shlibs.
11533 * Makefile.in: Add rule for linux-proc.o.
11534 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11535 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11536 * config/arm/linux.mh: Ditto.
11537 * config/i386/linux.mh: Ditto.
11538 * config/i386/x86-64linux.mh: Ditto.
11539 * config/ia64/linux.mh: Ditto.
11540 * config/m68k/linux.mh: Ditto.
11541 * config/mips/linux.mh: Ditto.
11542 * config/powerpc/linux.mh: Ditto.
11543 * config/sparc/linux.mh: Ditto.
11544
c25b74ac
PM
115452002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11546
11547 * win32-nat.c: Add i386-tdep.h dependency.
11548
94cd915f
MS
115492002-01-07 Michael Snyder <msnyder@redhat.com>
11550
c7cccb76
MS
11551 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11552 instead of bfd_get_arch_size. Don't bail out just because
11553 there's no exec_bfd.
abf22e64 11554
34c0bd93
MS
11555 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11556 * p-valprint.c (pascal_object_print_value): Ditto.
11557 * somread.c (som_symtab_read): Ditto.
11558 * symfile.c (simple_free_overlay_region_table): Ditto.
11559 * valops.c (value_assign): Ditto.
11560
21c1c920
MS
11561 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11562 use tilde_expand and strerror for opening save-tracepoints file.
11563
5bbd998e
MS
11564 * thread-db.c (thread_db_new_objfile): Indendation fix.
11565
94cd915f
MS
11566 * infptrace.c (GDB_MAX_ALLOCA): New define.
11567 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11568 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11569 can be overridden with whatever value is appropriate to the host).
11570 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11571 alloca to allocate potentially large buffer.
11572 * rs6000-nat.c (child_xfer_memory): Ditto.
11573 * symm-nat.c (child_xfer_memory): Ditto.
11574 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11575
494e8a93
JSC
115762002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11577
11578 From Nick Clifton <nickc@redhat.com>
11579 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11580
d0e1d48e
MS
115812002-01-07 Michael Snyder <msnyder@redhat.com>
11582
abf22e64 11583 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11584 Don't use exec_bfd if it's NULL.
11585
290b2c7a
MK
115862002-01-06 Mark Kettenis <kettenis@gnu.org>
11587
abf22e64 11588 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11589
aef21287
AC
115902002-01-06 Andrew Cagney <ac131313@redhat.com>
11591
11592 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11593 * gnu-nat.c: Ditto.
11594
30efa627
AC
115952002-01-06 Andrew Cagney <ac131313@redhat.com>
11596
11597 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11598 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11599 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11600 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11601 z8k-coff have not been multi-arched. Update z8k-coff build
11602 status.
11603
9b4ff276
AC
116042002-01-06 Andrew Cagney <ac131313@redhat.com>
11605
11606 * MAINTAINERS: Mark a29k target as obsolete.
11607 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11608 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11609 comments.
11610 * NEWS: Note that a29k targets are obsolete.
11611 * a29k-tdep.c: Mark as obsolete.
11612 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11613 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11614 a29k-*-vxworks* targets as obsolete.
11615 * remote-adapt.c: Obsolete.
11616 * remote-eb.c: Obsolete.
11617 * remote-mm.c: Obsolete.
11618 * remote-udi.c: Obsolete.
11619 * config/a29k/a29k-udi.mt: Obsolete.
11620 * config/a29k/a29k.mt: Obsolete.
11621 * config/a29k/tm-a29k.h: Obsolete.
11622 * config/a29k/tm-vx29k.h: Obsolete.
11623 * config/a29k/vx29k.mt: Obsolete.
11624
a9011d31
AC
116252002-01-05 Andrew Cagney <ac131313@redhat.com>
11626
11627 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11628 with BFD_ENDIAN_BIG.
11629
9299404e
AC
116302002-01-05 Andrew Cagney <ac131313@redhat.com>
11631
11632 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11633 * configure, config.in: Re-generate.
11634 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11635 * defs.h: Do not include <endian.h>.
11636
7e89e357
JT
116372002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11638
11639 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11640 * config.in: Regenerate.
11641 * configure.in: Update copyright years.
11642 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11643 * configure: Regenerate.
11644 * i386bsd-nat.c: Update copyright years.
11645 (fill_gregset): Use regcache_collect.
11646 (fetch_inferior_registers): Only fetch integer registers
11647 if requested to do so. Add support for XMM registers
11648 using PT_GETXMMREGS.
11649 (store_inferior_registers): Only store integer registers
11650 if requested to do so. Add support for XMM registers
11651 using PT_SETXMMREGS.
11652 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11653 (store_inferior_registers): Remove.
11654 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11655 (fetch_elfcore_registers): New function.
11656 (i386nbsd_elfcore_fns): New.
11657 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11658 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11659 i386bsd-nat.o.
11660 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11661 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11662 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11663 * config/i386/tm-nbsd.h: Update copyright years.
11664 (HAVE_SSE_REGS): Define.
11665 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11666 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11667 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11668 (SIGCONTEXT_PC_OFFSET): Remove.
11669 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11670
a752853e
AC
116712002-01-05 Andrew Cagney <ac131313@redhat.com>
11672
11673 * configure.tgt: Remove powerpc-*-macos* target.
11674 * config/m68k/xm-mpw.h: Delete file.
11675 * config/xm-mpw.h: Delete file.
11676 * ser-mac.c: Delete file.
11677 * mpw-make.sed: Delete file.
11678 * mpw-config.in: Delete file.
11679 * mac-xdep.c: Delete file.
11680 * mac-gdb.r: Delete file.
11681 * mac-defs.h: Delete file.
11682 * mac-nat.c: Delete file.
11683 * config/powerpc/macos.mh: Delete file.
11684 * config/powerpc/macos.mt: Delete file.
11685 * config/powerpc/nm-macos.h: Delete file.
11686 * config/powerpc/tm-macos.h: Delete file.
11687 * source.c (openp, open_source_file): Remove obsolete code.
11688 * top.c (gdb_readline): Ditto.
11689 * utils.c (query): Ditto.
11690 * event-top.c (display_gdb_prompt): Ditto.
11691 * Makefile.in (ser-mac.o): Delete obsolete target.
11692 * NEWS: Update.
11693
d7449b42
AC
116942002-01-04 Andrew Cagney <ac131313@redhat.com>
11695
11696 * defs.h (BIG_ENDIAN): Delete macro definition.
11697 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11698 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11699 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11700 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11701 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11702 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11703 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11704 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11705 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11706 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11707 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11708 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11709 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11710 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11711 * gdbarch.c: Re-generate.
11712
356374e8
DJ
117132002-01-04 Daniel Jacobowitz <drow@mvista.com>
11714
11715 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11716 for core files.
11717
a2b8f8f8
JT
117182002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11719
11720 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11721
12466af9
AC
117222002-01-04 Andrew Cagney <ac131313@redhat.com>
11723
11724 * value.h (value_ptr): Delete typedef.
11725
3549ab40
JT
117262002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11727
11728 * i386nbsd-nat.c: Update copyright years.
11729 Include i386-tdep.h.
11730
fedbd091
EZ
117312002-01-04 Elena Zannoni <ezannoni@redhat.com>
11732
11733 * stabsread.c: Update copyright years.
11734
11735 From Debashis Mahata <debashis.mahata@wipro.com>:
11736 (read_struct_fields): Deal with Sun C compiler erroneous stab
11737 output for structs and unions.
fec8b34f 11738 Fix PR gdb/269.
fedbd091 11739
eb43544b
DJ
117402002-01-04 Daniel Jacobowitz <drow@mvista.com>
11741
11742 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11743 prototype.
11744
1514d34e
DJ
117452002-01-04 Daniel Jacobowitz <drow@mvista.com>
11746
11747 * cp-abi.c: Fix whitespace.
11748 (baseclass_offset): New wrapper function.
11749 * cp-abi.h (baseclass_offset): Add prototype.
11750 (struct cp_abi_ops): Add baseclass_offset pointer.
11751
11752 * valops.c (vb_match): Move to...
11753 * gnu-v2-abi.c (vb_match): here.
11754 * valops.c (baseclass_offset): Move to...
11755 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11756
11757 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11758
11759 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11760 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11761 * hpacc-abi.c (init_hpacc_ops): Likewise.
11762
7f8c9282
DJ
117632002-01-04 Daniel Jacobowitz <drow@mvista.com>
11764
11765 * valops.c (find_overload_match): Accept obj as a
11766 reference parameter. Update it before returning.
11767 * value.h (find_overload_match): Update prototype.
11768 * eval.c (evaluate_subexp_standard): Pass object to
11769 find_overload_match by reference.
11770
f23631e4
AC
117712002-01-03 Andrew Cagney <ac131313@redhat.com>
11772
11773 * valarith.c: Replace value_ptr with struct value pointer. Remove
11774 register attribute from value declarations.
11775 * valops.c: Ditto.
11776 * value.h: Ditto.
11777 * scm-lang.c (scm_lookup_name): Ditto.
11778
79e10fab 117792002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11780
79e10fab
AC
11781 Abstract the functionality of iterating over mapped memory
11782 regions into a general purpose iterator function.
abf22e64 11783 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11784 iterator for memory sections.
11785 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11786 (solib_mappings_callback): New function, callback for above.
11787 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11788 (info_mappings_callback): New function, callback for above.
11789
11790 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11791
c5ad026a
MK
117922002-01-01 Mark Kettenis <kettenis@gnu.org>
11793
d2a7c97a
MK
11794 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11795 * i386-tdep.c: Include "elf-bfd.h".
11796 (process_note_abi_tag_sections): New function.
11797 (i386_gdbarch_init): Add code to recognize various OS/ABI
11798 combinations.
11799
c5ad026a
MK
11800 * maint.c (_initialize_maint_cmds): Add missing \ in
11801 string-literal.
11802
a1a5b71e 11803For older changes see ChangeLog-2001
c906108c
SS
11804\f
11805Local Variables:
11806mode: change-log
11807left-margin: 8
11808fill-column: 74
11809version-control: never
11810End:
This page took 1.028601 seconds and 4 git commands to generate.