2002-10-12 H.J. Lu (hjl@gnu.org)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e2b23ee9
AF
12002-10-11 Adam Fedor <fedor@gnu.org>
2
3 * printcmd.c (address_info): Print 'self' for ObjC.
4
b01ab485
AF
52002-10-11 Adam Fedor <fedor@gnu.org>
6
7 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
8 OP_SELF.
9
806e6073
AF
102002-10-11 Adam Fedor <fedor@gnu.org>
11
12 * language.h (CAST_IS_CONVERSION): Add language_objc.
13
50f85cdf
AF
142002-10-11 Adam Fedor <fedor@gnu.org>
15
16 * defs.h (enum language): Add language_objc.
17
0d540cdf
KD
182002-10-11 Klee Dienes <kdienes@apple.com>
19
20 * findvar.c (read_memory_typed_address): New function.
21 * gdbcore.h (read_memory_typed_address): Add prototype.
22 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
23 to read a value destined for a CORE_ADDR, not read_memory_integer.
24 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
25 (f77_get_dynamic_lowerbound): Ditto.
26
d5dc7960
MH
272002-10-11 Martin M. Hunt <hunt@redhat.com>
28
29 * utils.c (string_to_core_addr): After turning string into
30 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
31 which will do necessary sign-extension, etc.
32
8343f86c
DJ
332002-10-11 Daniel Jacobowitz <drow@mvista.com>
34
35 * c-exp.y (THIS): Delete token and grammar rule.
36 (yylex): Don't return THIS.
37 * cp-valprint.c (vtbl_ptr_name_old): Delete.
38 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
39 * demangle.c (cplus_markers): Update comment. Put '$'
40 first. Remove CPLUS_MARKER.
41 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
42 * jv-exp.y (THIS): Delete token and grammar rule.
43 (yylex): Don't return THIS.
44 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
45 * objc-exp.y (THIS): Delete token and grammar rule.
46 (yylex): Don't return THIS.
47 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
48 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
49 (read_member_functions): Likewise for opname.
50 (read_tilde_fields): Use is_cplus_marker.
51
52 * defs.h (CPLUS_MARKER): Don't define.
53 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
54 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
55 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
56 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
57 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
58
59 * config/i386/tm-i386v4.h: Delete file.
60 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
61 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
62 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
63 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
64 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
65 * config/i386/i386sco5.mt (TM_FILE): Likewise.
66 * config/i386/i386v4.mt (TM_FILE): Likewise.
67 * config/i386/ncr3000.mt (TM_FILE): Likewise.
68
967c0d83
MM
692002-10-10 Marko Mlinar <markom@opencores.org>
70
71 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
72 accidentially not commited 2002-10-09
73 * gdbarch.h, gdbarch.c: Re-generate.
74
f74fa174
MM
752002-10-09 Marko Mlinar <markom@opencores.org>
76
77 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
78 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
79 * gdbarch.h, gdbarch.c: Re-generate.
80
57349743
JB
812002-10-08 Petr Sorfa <petrs@caldera.com>
82
83 Revised and re-submitted by John Wolfe <jlw@caldera.com>
84
85 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
86 so we can work on more than one compilation unit at a time. This
87 helps prepare GDB to handle inter-CU die references.
88 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
89 the code to be defined before struct comp_unit_head.
90 (comp_unit_head): Added new members - offset, cu_head,
91 begin_die, next and dwarf2_abbrevs.
92 (dwarf2_abbrevs): Removed single static var; now member of
93 struct comp_unit_head.
94 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
95 members.
96 (psymtab_to_symtab_1): Changed to work with the new
97 struct comp_unit_head.
98 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
99 constructs the dwarf2_abbrevs[] inside the cu_header.
100 (dwarf2_empty_abbrev_table): Now expects a ptr to a
101 dwarf2_abbrev table to clean up.
102 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
103 handling of dwarf2_abbrevs inside the cu_header.
104 (read_partial_die): Now supports the call to the new
105 dwarf2_lookup_abbrev.
106 (read_full_die): Now supports the call to the new
107 dwarf2_lookup_abbrev.
108
4092aadb
CF
1092002-10-06 Christopher Faylor <cgf@redhat.com>
110
111 * Makefile.in (install-gdbtk): Add missing continuation backslash to
112 insure that shell variables, such as "transformed_name" are propagated
113 to later shell statements in rule.
114
af0b2512
MK
1152002-10-06 Mark Kettenis <kettenis@gnu.org>
116
117 * config/i386/nm-i386sco.h: Add protection against
118 multiple-inclusion. Include "i386/nm-i386v.h".
119 (REGISTER_U_ADDR): Remove define.
120 (i386_register_u_addr): Remove prototype.
121
d6020d45
MS
1222002-10-04 Michael Snyder <msnyder@redhat.com>
123
124 * m32r-stub.c (handle_exception): Make sure exception is "trap"
125 before treating it as a single-step event.
126
7248f48e
AF
1272002-10-03 Adam Fedor <fedor@gnu.org>
128
129 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
130 (objc_demangle): Remove assignment in if statements, Replace
131 free with xfree.
132 (add_msglist): Likewise.
133 (end_msglist): Likewise.
134 (complare_selectors): Likewise.
135 (selectors_info): Likewise.
136 (compare_classes): Likewise.
137 (classes_info): Likewise.
138 (print_object_command): Likewise.
139 (find_objc_msgcall_submethod): Replace PTR with void *.
140 * objc-lang.h: Remove check for __STDC__.
141
52c6a6ac
JJ
1422002-10-03 Jeff Johnston <jjohnstn@redhat.com>
143
144 * ui-out.h (ui_out_field_fmt_int): New prototype.
145 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
146 of field width and alignment.
147 * stack.c (print_frame_info_base): When printing frame level, use
148 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
149 PR gdb/192
150
7e3cec17
JJ
1512002-10-03 Jeff Johnston <jjohnstn@redhat.com>
152
153 * MAINTAINERS: Add self to Write After Approval list.
154
a58dd373
EZ
1552002-10-02 Elena Zannoni <ezannoni@redhat.com>
156
157 * infcmd.c (interrupt_target_command_wrapper): Delete.
158 (interrupt_target_command): Make non static.
159 (nofp_registers_info): Make static.
160 * stack.c (return_command_wrapper): Delete.
161 (return_command): Make non static.
162
cee6ddeb
EZ
1632002-10-02 Elena Zannoni <ezannoni@redhat.com>
164
165 * event-top.c (gdb_setup_readline): New function. Code moved from
166 _initialize_event_loop().
167 (_initialize_event_loop): Call gdb_setup_readline().
168
c4ed33b9
AC
1692002-10-02 Andrew Cagney <ac131313@redhat.com>
170
171 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
172 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
173 * gdbarch.h, gdbarch.c: Re-generate.
174
cef4f5dd
DJ
1752002-10-02 Daniel Jacobowitz <drow@mvista.com>
176
177 Fix PR gdb/778
178 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
179 before recursing.
180 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
181 of fill_in_vptr_fieldno.
182
36dc181b 1832002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 184
36dc181b
EZ
185 * inferior.h (registers_info, stepi_command, nexti_command,
186 continue_command, interrupt_target_command): Export from infcmd.c.
187 * frame.h (args_info, selected_frame_level_changed_hook,
188 return_command): Export from stack.c.
189 * v850ice.c (stepi_command, nexti_command, continue_command): use
190 prototypes from inferior.h.
191 * tracepoint.c (registers_info, args_info, locals_info): Use
192 prototypes from frame.h and inferior.h.
193 * Makefile.in (mi-main.o): Add dependency on frame.h.
194
6f99cb26
AC
1952002-10-02 Andrew Cagney <ac131313@redhat.com>
196
da3eff49
AC
197 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
198 value in register 3 adjusted by ppc_gp0_regnum.
199
6f99cb26
AC
200 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
201
da615bee
MM
2022002-10-02 Marko Mlinar <markom@opencores.org>
203
204 * MAINTAINERS: Add myself to the Write After Approval list.
205
d154bee2
AO
2062002-10-01 Alexandre Oliva <aoliva@redhat.com>
207
62a49b2c
AO
208 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
209 of the section for the N64 ABI, fixed.
210
d154bee2
AO
211 * config/mips/tm-irix6.h: Include solib.h.
212
ed348acc
EZ
2132002-10-01 Elena Zannoni <ezannoni@redhat.com>
214
215 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
216 GNU operators.
217
da0f9dcd
AC
2182002-10-01 Andrew Cagney <ac131313@redhat.com>
219
220 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
221 and that "mi0" syntax has been removed.
222
bdf64bac
DC
2232002-09-30 David Carlton <carlton@math.stanford.edu>
224
225 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
226 * ppc-sysv-tdep.c: #include "gdb_string.h".
227 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
228 pacify GCC.
229
54c2a1e6
AC
2302002-10-01 Andrew Cagney <ac131313@redhat.com>
231
232 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
233 "vrsave"'s register number.
234
cedea778
AC
2352002-09-30 Andrew Cagney <ac131313@redhat.com>
236
237 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
238 use frame_unwind_signed_register to obtain the PC.
239 (mips_frame_chain): Handle a generic dummy frame.
240 (mips_init_extra_frame_info): When a generic dummy frame, don't
241 re-compute the frame base.
242 (mips_pop_frame): Handle generic dummy frames.
243 (mips_gdbarch_init): When generic dummy frames, set
244 use_generic_dummy_frames, push_dummy_frame to
245 generic_push_dummy_frame, pc_in_call_dummy to
246 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
247 generic_save_dummy_frame_tos.
248
68315eb8
AC
2492002-09-30 Andrew Cagney <ac131313@redhat.com>
250
251 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
252 against TOP when TOP was explictly set.
253 (generic_push_dummy_frame): Set TOP to zero.
254
3b8630c3
EZ
2552002-09-30 Elena Zannoni <ezannoni@redhat.com>
256
257 * event-loop.c (start_event_loop): Rename variable 'result' to
258 'gdb_result', to avoid conflicts with upcoming intepreters changes.
259
28ee05e9
KS
2602002-09-30 Keith Seitz <keiths@redhat.com>
261
262 * gdb-events.sh (selected_thread_changed): New event.
263 * gdb-events.c: Regenerated.
264 * gdb-events.h: Regenerated.
265
6eecb1c8
HPN
2662002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
267
268 * MAINTAINERS: Add self to Write After Approval list.
269
92df71f0
FN
2702002-09-30 Fernando Nasser <fnasser@redhat.com>
271
3b8630c3
EZ
272 * disasm.c: New file.
273 * disasm.h: New file.
92df71f0
FN
274 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
275 (compare_lines): Ditto.
276 (dump_insns): Ditto.
3b8630c3
EZ
277 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
278 argument.
92df71f0 279 (do_assembly_only): Ditto.
3b8630c3
EZ
280 (do_disassembly): Renamed to gdb_disassembly and moved to
281 disasm.c. Sdded uiout argument.
282 * Makefile.in: Add new files. Reorder SFILES list. Update
283 dependencies. Include libgdb.a later in the insight executable.
92df71f0 284
0c22854d
AC
2852002-09-29 Andrew Cagney <ac131313@redhat.com>
286
287 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
288 bfd/elf64-alpha-fbsd.c.
289
e67f2023
AC
2902002-09-29 Andrew Cagney <ac131313@redhat.com>
291
292 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
293 i386gnu-tdep.c.
294
89396210
AC
2952002-09-29 Andrew Cagney <ac131313@redhat.com>
296
297 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
298 __FUNCTION__.
299 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
300 function name.
301 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
302 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
303 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
304 (S_msg_sig_post_reply): Ditto.
305
7079c36c
CV
3062002-09-28 Corinna Vinschen <vinschen@redhat.com>
307
89396210
AC
308 * sh-tdep.c (sh_use_struct_convention): Use definition according
309 to ABI.
7079c36c
CV
310 (sh_push_arguments): Store in register with correct endianess.
311 (sh_default_store_return_value): Ditto.
312 (sh_gdbarch_init): Set sizeof long double to 8.
313
975ac915
MK
3142002-09-27 Mark Kettenis <kettenis@gnu.org>
315
316 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
317 Fix some whitespace problems.
318
9bbe19fb
DC
3192002-09-27 David Carlton <carlton@math.stanford.edu>
320
321 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
322 (mcore-tdep.o): Ditto.
323 (ns32k-tdep.o): Ditto.
324 (ns32knbsd-tdep.o): Ditto.
325 (sh3-rom.o): Ditto.
326 (vax-tdep.o): Ditto.
327 * cris-tdep.c: #include "gdb_string.h"
328 * mcore-tdep.c: Ditto.
329 * ns32k-tdep.c: Ditto.
330 * ns32knbsd-tdep.c: Ditto.
331 * sh3-rom.c: Ditto.
332 * vax-tdep.c: Ditto.
333
43b2fdc7
DC
3342002-09-27 David Carlton <carlton@math.stanford.edu>
335
336 * config/djgpp/fnchange.lst: Add entries for
337 gdb/testsuite/gdb.c++/m-static files.
338
e8cfbbd9
JW
3392002-09-27 Jim Wilson <wilson@redhat.com>
340
341 * MAINTAINERS: Add myself to the Write After Approval list.
342
43b2fdc7 3432002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
344
345 * mips-tdep.c (find_proc_desc): Initialize startaddr.
346
347
9f3b7f07
AC
3482002-09-26 Andrew Cagney <ac131313@redhat.com>
349
350 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
351 frame.
352
11269d7e
AC
3532002-09-26 Andrew Cagney <ac131313@redhat.com>
354
355 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
356 (rs6000_struct_return_address): Delete variable.
357 (rs6000_store_struct_return): Update.
358 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
359 deprecated_extract_struct_value_address.
360 (rs6000_frame_align): New function.
361 (rs6000_gdbarch_init): Set frame_align.
362
f15ab4a7
AC
3632002-09-26 Andrew Cagney <ac131313@redhat.com>
364
365 From Grace Sainsbury <graces@redhat.com>:
366 * Makefile.in (gdbtk-main.o): New target.
367 (gdb.o): New target.
368 (main_h): Define.
369 (main.o): Update dependencies.
370 (gdb$(EXEEXT)): Add gdb.o.
371 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
372 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
373 (SUBDIR_GDBTK_CLEAN): Set.
374 (install-gdbtk): Install the insight binary.
375 (uninstall-gdbtk): New target.
376 (all-gdbtk, clean-gdbtk): New rule.
377 * top.c (use_windows): Default to zero.
378 * main.c: Include "main.h".
379 (main): Delete.
380 (struct captured_main_args): Delete.
381 (gdb_main): New function.
382 * main.h: New file.
383 * gdb.c: New File.
384
e36180d7
AC
3852002-09-25 Andrew Cagney <cagney@redhat.com>
386
387 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
388 (frame_map_regnum_to_name): New function.
389 (frame_map_name_to_regnum): New function.
390 * frame.h (frame_map_name_to_regnum): Declare.
391 (frame_map_regnum_to_name): Declare.
392 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
393 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
394 * parse.c: Do not include "builtin-regs.h".
395 (target_map_name_to_register): Delete function.
396 (write_dollar_variable): Use frame_map_name_to_regnum.
397 * parser-defs.h (target_map_name_to_register): Delete declaration.
398 * expprint.c: Include "frame.h".
399 (print_subexp): Use frame_map_regnum_to_name.
400 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
401 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
402
8b69000d
AC
4032002-09-25 Andrew Cagney <ac131313@redhat.com>
404
405 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
406 wasn't saved, and the next innermost frame is a dummy, return the
407 dummy frame's link register.
408
046ca86a
JB
4092002-09-24 Jim Blandy <jimb@redhat.com>
410
411 Fix from Paul Breed:
412 * main.c (captured_main): Add a `break' after the case for 'b'.
413
94b66fa7
KS
4142002-09-24 Keith Seitz <keiths@redhat.com>
415
416 * varobj.c (c_type_of_child): Use get_target_type instead
417 of TYPE_TARGET_TYPE.
418
c214a6fd
FN
4192002-09-22 Fernando Nasser <fnasser@redhat.com>
420
53cb0458
FN
421 * source.c (get_current_or_default_source_symtab_and_line): Remove
422 function.
423 (set_default_source_symtab_and_line): New function. Attempts to
424 determine a source file to list lines from if one is not currently
425 defined.
426 (get_current_source_symtab_and_line): Initialize sal.pc and
427 sal.end fields.
428 (set_current_source_symtab_and_line): Mark argument as const.
429 * source.h: Update declarations and comments.
430 * linespec.c (decode_line_1): Replace call to removed routine above.
431 * stack.c (print_frame_info_base): Ditto.
432 * cli/cli-cmds.c (edit_command): Ditto.
433 (list_command): Ditto.
434
4352002-09-22 Fernando Nasser <fnasser@redhat.com>
436
d6020d45 437 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 438 sal.pc and sal.end fields.
c214a6fd
FN
439 (get_current_or_default_source_symtab_and_line): Ditto.
440 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
441 so we do not cause a new source symtab to be searched for (reverting an
442 unintentional change from the 2002-09-20 patch).
443 * scm-lang.c (scm_unpac): Ditto.
444
cc3b68a5
AC
4452002-09-21 Andrew Cagney <cagney@redhat.com>
446
447 * complaints.c (symfile_explanations): Remove new-line from
448 ``isolated_message''.
449 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
450 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
451
5835abe7
NC
4522002-09-20 Nick Clifton <nickc@redhat.com>
453
454 * NEWS: Announce that V850EA ISA is no longer supported.
455 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
456
a15ef5f5
DC
4572002-09-20 David Carlton <carlton@math.stanford.edu>
458
06ba1b39
DC
459 * Makefile.in (c-lang.o): Correct dependencies.
460 (utils.o): Gather dependencies.
461 (charset.o): Move.
a15ef5f5
DC
462 * c-lang.c: #include "gdb_string.h"
463
87885426
FN
4642002-09-20 Fernando Nasser <fnasser@redhat.com>
465
466 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
467 * cli/cli-cmds.c (list_command): New function. Implements the new
468 cli edit command.
469 (_init_cli_cmds): Add new command definition.
470 * gdb.1: Document edit command.
471 * doc/gdb.texinfo: Document edit command.
472
4732002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
474
475 * source.c: Make global variables current_source_symtab and
476 current_source_line static.
477 (list_command): Moved to cli/cli-cmds.c.
478 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
479 (get_first_line_listed): New accessor function.
480 (get_lines_to_list): New accessor function.
481 (get_current_source_symtab_and_line): New function. Retrieves the
482 position in the source code that we consider current.
483 (get_current_or_default_source_symtab_and_line): New function.
484 Like the above but attempts to determine a default position if one
485 is not currently defined.
486 (set_current_source_symtab_and_line): New function. Sets the source
487 code position considered current and returns the previously set one.
488 (clear_current_source_symtab_and_line): Reset stored information about
489 a current source line.
490 (_initialize_source): Remove registration for the "list" command and
491 its alias.
492 * source.h: Add declarations for the new functions above.
493 * symtab.h: Remove declarations for the global variables mentioned
494 above.
495 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
496 obtain current source line.
497 * linespec.c (decode_line_1): Ditto.
498 * macroscope.c (default_macro_scope): Ditto.
499 * scm-lang.c (scm_unpac): Ditto.
500 * stack.c (print_frame_info_base): Ditto.
501 * symfile.c (clear_symtab_users): Ditto.
502 * symtab.c (decode_line_spec): Ditto.
503 * cli/cli-cmds.c (list_command): Moved here from source.c.
504 (ambiguous_line_spec): Moved here from source.c.
505 (_init_cli_cmds): Add definition for "list" and its alias.
506 * Makefile.in: Update dependencies.
507
ddd216ea
CV
5082002-09-20 Corinna Vinschen <vinschen@redhat.com>
509
510 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
511 with what gcc thinks is correct.
512
6d305052
CV
5132002-09-20 Corinna Vinschen <vinschen@redhat.com>
514
515 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
516 multiple register push instruction.
517
234b45d4
KB
5182002-09-19 Jim Blandy <jimb@redhat.com>
519
520 Add support for distinct host and target character sets.
521 * charset.c, charset.h: New files.
522 * c-exp.y: #include "charset.h".
523 (yylex): Convert character and string literals to the target
524 character set, before returning them as the semantic value of the
525 token.
526 * c-lang.c: #include "charset.h".
527 (c_emit_char): Use charset-specific methods to recognize
528 characters with backslash escape forms, to decide which characters
529 to print literally and which to print using numeric escape
530 sequences, and to convert target characters to host characters
531 before printing.
532 * utils.c: #include "charset.h".
533 (no_control_char_error): New function.
534 (parse_escape): Use charset-specific methods to recognize
535 backslash escapes, parse `control character' notation, and convert
536 characters from the host character set to the target character set.
537 * configure.in: Set the default host character set.
538 Check where to find iconv, and what its argument types might be.
539 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
540 * Makefile.in (SFILES): List charset.c.
541 (COMMON_OBS): List charset.o.
542 (charset.o): New rule.
543 (charset_h): New header dependency variable.
544 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
545 (LIBICONV): New variable, set by configure.
546 (CLIBS): Include $(LIBICONV) here.
547 * aclocal.m4, config.in, configure: Regenerated.
548
525d6a61
JB
5492002-09-19 Joel Brobecker <brobecker@gnat.com>
550
551 * ada-exp.y: Add missing semicolons to end rules. Fixes a
552 bison 1.35 warning.
553
3ed93867
RE
5542002-09-19 Richard Earnshaw <rearnsha@arm.com>
555
556 * gdb_mbuild.sh: New file.
557
437666f8
AC
5582002-09-19 Andrew Cagney <ac131313@redhat.com>
559
560 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
561
389e51db
AC
5622002-09-18 Andrew Cagney <ac131313@redhat.com>
563
564 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
565 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
566 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
567 valops.c, value.h: Revert previous change.
568
3b4efeaa
MS
5692002-09-18 Michael Snyder <msnyder@redhat.com>
570
571 Preliminary support for Objective-C:
572 * defs.h (language_objc): New enum value.
573 (puts_filtered_tabular): Declaration only, exported from utils.c.
574 (skip_quoted): Delete, declared in completer.h.
575 * c-exp.y: Include completer.h.
576 * p-exp.y: Ditto.
577 * jv-exp.y: Ditto.
578 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
579 New operator enum values.
580 * language.h (CAST_IS_CONVERSION): Test for language_objc.
581 * language.c (binop_result_type): Handle language_objc case.
582 (integral_type, character_type, string_type, boolean_type,
583 structured_type, binop_type_check): Ditto.
584 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
585 (struct objc_specific): Add to general_symbol_info.
586 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
587 (SYMBOL_DEMANGLED_NAME): Handle objc case.
588 * parser-defs.h (struct objc_class_str): New struct type.
589 (start_msglist, end_msglist, add_msglist): Declaration only,
590 exported from objc-lang.c.
591 * value.h (value_of_local, value_nsstring,
592 call_function_by_hand_expecting_type): Exported from valops.c.
593 * valops.c (find_function_addr): Export.
594 (call_function_by_hand_expecting_type): New function.
595 (value_of_local): New function.
596 * symfile.c (init_filename_language_table): Add ".m" extension
597 for Objective-C.
598 * utils.c (puts_filtered_tabular): New function.
599 (fprintf_symbol_filtered): Add objc demangling support (disabled).
600 (set/show demangle): Extend help-string to refer to ObjC.
601 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
602 * stabsread.c (symbol_reference_defined): Objective-C symbols
603 may contain colons: make allowances when scanning stabs strings
604 for colons.
605 (objc_find_colon): New function.
606 * printcmd.c (address_info): If language == objc then print
607 "self" instead of "this".
608 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
609 OP_NSSTRING, and OP_SELF.
610 (prefixify_subexp): Ditto.
611 * source.c (print_source_lines): Mention objc in comment.
612 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
613 method names.
614
b9caf505
AC
6152002-09-18 Andrew Cagney <ac131313@redhat.com>
616
617 * complaints.h: Update copyright.
618 (struct complaints): Declare.
619 (struct complaint): Make `message' constant.
620 (internal_complaint): Declare.
621 (complaint): Declare.
622 (complaint_root): Delete declaration.
623 (symfile_complaints): Delete declaration.
624 (struct complaints): Add opaque declaration.
625 (clear_complaints): Add a complaints parameter.
626 * complaints.c: Update copyright.
627 (enum complaint_series): Define.
628 (complaint_root): Delete.
629 (struct complaints): Define.
630 (complaint_sentinel, symfile_complaint_book): New variables.
631 (symfile_explanations, symfile_complaints): New variables.
632 New variables.
633 (get_complaints): New function.
634 (vcomplaint): New function.
635 (complaint): New function.
636 (internal_complaint): New function.
637 (complain): Call vcomplain with symfile_complaint.
638 (clear_complaints): Rewrite.
639 (_initialize_complaints): Use add_setshow_command.
640 * Makefile.in (complaints.o): Update dependencies.
641 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
642 to call to clear_complaints.
643 (new_symfile_objfile, reread_symbols): Ditto.
644 (oldsyms_complaint): Delete.
645 (empty_symtab_complaint, unknown_option_complaint): Delete.
646 (free_named_symtabs): Use complaint instead of complain.
647
d2e6263c
MS
6482002-09-18 Michael Snyder <msnyder@redhat.com>
649
5fb2031a
AC
650 Contributed by Apple Computer, Inc. Merged with current sources
651 by Adam Fedor <fedor@doc.com> [cagney].
652
d2e6263c
MS
653 * objc-lang.c: First clean-up round: comments, indentation.
654 * objc-lang.h: Ditto.
655 * objc-lang.y: Ditto.
656
dec43320
AC
6572002-09-18 Andrew Cagney <ac131313@redhat.com>
658
659 * maint.c (maintenance_internal_error): Print the parameter as the
660 error message.
661 (maintenance_internal_warning): New function.
662 (_initialize_maint_cmds): Add command `maint internal-warning'.
663
664 * defs.h (internal_warning, internal_vwarning): Declare.
665 * utils.c (struct internal_problem): Define.
666 (internal_vproblem): New function.
667 (internal_warning): New function.
668 (internal_vwarning): New function.
669 (internal_warning_problem, internal_error_problem): New variables.
670 (internal_verror): Just call internal_vproblem.
671
b81654f1
MS
6722002-09-18 Michael Snyder <msnyder@redhat.com>
673
674 * objc-lang.c: New file, support for Objective-C.
675 Preliminary check-in, not yet integrated into gdb.
676 * objc-lang.h: New file.
677 * objc-exp.y: New file.
678
0542c381
AC
6792002-09-18 Andrew Cagney <ac131313@redhat.com>
680
7bda5e4a
AC
681 * infrun.c (signal_stop_update): Convert definition to ISO C.
682 (signal_print_update): Ditto.
683 (signal_pass_update): Ditto.
684 * inflow.c (terminal_save_ours): Ditto.
685
5247b418
AC
686 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
687 comments.
688
fc60962c
AC
689 * config/djgpp/fnchange.lst: Handle name clashes between
690 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
691 bfd/coff-tic80.c.
692
0542c381
AC
693 * i386-linux-tdep.h: Fix tipo.
694
5b924b9b
AF
6952002-09-18 Adam Fedor <fedor@gnu.org>
696
697 * MAINTAINERS: Add myself to the Write After Approval list.
698
5afc051b
JB
6992002-09-18 Jim Blandy <jimb@redhat.com>
700
701 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
702 texthigh and textlow to reader-specific structs caused
703 objfile_relocate to miss them. This is fixable, but the work that
704 the change was supposed to prepare GDB for never got done anyway.
705
eb944380
DC
7062002-09-18 David Carlton <carlton@math.stanford.edu>
707
708 * MAINTAINERS: Alphabetize Write After Approval list.
709
948e66d9
DJ
7102002-09-18 Daniel Jacobowitz <drow@mvista.com>
711
712 Fix PR gdb/709
713 * values.c (value_static_field): Call read_var_value.
714
dc604539
AC
7152002-09-18 Andrew Cagney <ac131313@redhat.com>
716
717 * valops.c (hand_function_call): Align the initial stack pointer
718 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
719 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
720 return value.
721 * mips-tdep.c (mips_frame_align): New function.
722 (mips_gdbarch_init): Set frame_align.
723 * gdbarch.sh (FRAME_ALIGN): New method.
724 * gdbarch.h, gdbarch.c: Re-generate.
725
cb7e422f
ML
7262002-09-18 Michal Ludvig <mludvig@suse.cz>
727
728 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
729 registers.
730
a094c6fb
AC
7312002-09-17 Andrew Cagney <ac131313@redhat.com>
732
733 * NEWS: Mention that MIPS $fp behavior changed.
734 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
735 reference to FP_REGNUM.
736 (mipsnbsd_cannot_store_register): Ditto.
737 * mips-linux-nat.c: Update copyright.
738 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
739 (mips_linux_cannot_store_register): Ditto.
740 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
741 * config/mips/tm-mips.h: Update copyright.
742 (FP_REGNUM): Delete macro.
743 (MIPS_REGISTER_NAMES): Replace "fp" with "".
744 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
745 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
746 (mips_r3041_reg_names, mips_r3051_reg_names)
747 (mips_r3081_reg_names): Replace "fp" with "".
748 Fix PR gdb/480.
749
45cf40d1
TR
7502002-09-17 Theodore A. Roth <troth@verinet.com>
751
752 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
753 generic_read_register_dummy() (PR gdb/703).
754 (avr_push_return_address): #if 0 out unused vars.
755 (avr_gdbarch_init): Enable use of avr_push_return_address().
756
c7e701b5
MS
7572002-09-17 Michael Snyder <msnyder@redhat.com>
758
d76ba2a5 759 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
760 RTE will take care of it.
761
20bcf01c
AC
7622002-09-17 Andrew Cagney <ac131313@redhat.com>
763
764 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
765 invalid, return SP_REGNUM.
766
009a9971 7672002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
768
769 * mips-tdep.c (mips_pop_frame): Read saved values of floating
770 point registers without sign extension.
771
135c175f
AC
7722002-09-17 Andrew Cagney <cagney@redhat.com>
773
774 * blockframe.c (deprecated_read_register_dummy): Rename
775 generic_read_register_dummy.
776 * frame.c (frame_unwind_signed_register): New function.
777 (frame_unwind_unsigned_register): New function.
778 * frame.h (frame_unwind_signed_register): Declare.
779 (frame_unwind_unsigned_register): Declare.
780 (deprecated_read_register_dummy): Rename
781 generic_read_register_dummy.
782
783 * h8300-tdep.c (h8300_frame_chain): Update.
784 (h8300_frame_saved_pc): Update.
785 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
786 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
787 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
788 (s390_frame_chain): Update.
789 * v850-tdep.c (v850_find_callers_reg): Update.
790 (v850_frame_saved_pc): Update.
791 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
792 (m32r_find_callers_reg): Update.
793 (m32r_frame_saved_pc): Update.
794 * sh-tdep.c (sh_find_callers_reg): Update.
795 (sh64_get_saved_pr): Update.
796 (sh_init_extra_frame_info): Update.
797 (sh_init_extra_frame_info): Update.
798 (sh64_init_extra_frame_info): Update.
799 (sh64_init_extra_frame_info): Update.
800 * mcore-tdep.c (mcore_find_callers_reg): Update.
801 (mcore_frame_saved_pc): Update.
802 (mcore_init_extra_frame_info): Update.
803 * i386-tdep.c (i386_frame_saved_pc): Update.
804 * ia64-tdep.c (ia64_frame_saved_pc): Update.
805 (ia64_init_extra_frame_info): Update.
806 (ia64_init_extra_frame_info): Update.
807 * d10v-tdep.c (d10v_frame_saved_pc): Update.
808 * cris-tdep.c (cris_init_extra_frame_info): Update.
809 * avr-tdep.c (avr_frame_chain): Update.
810 (avr_init_extra_frame_info): Update.
811 (avr_frame_saved_pc): Update.
812 * arm-tdep.c (arm_find_callers_reg): Update.
813 (arm_init_extra_frame_info): Update.
814 (arm_frame_saved_pc): Update.
815
a741e514
TT
8162002-09-17 Tom Tromey <tromey@redhat.com>
817
818 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
819 is "'".
820
d1a8e808
CV
8212002-09-17 Corinna Vinschen <vinschen@redhat.com>
822
823 * MAINTAINERS: Remove "non multi-arched" text from h8300.
824 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
825 NEXT_PROLOGUE_INSN.
826 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
827 NEXT_PROLOGUE_INSN.
828
d9025a18
JB
8292002-09-16 Joel Brobecker <brobecker@gnat.com>
830
831 * osfsolib.c: Remove file, replaced by solib-osf.c.
832 * Makefile.in: Remove compilation rules for osfsolib.c.
833
1b2ef1b6
DC
8342002-09-16 David Carlton <carlton@math.stanford.edu>
835
836 * cp-valprint.c (cp_print_class_method): Correct args to
837 check_stub_method_group.
838
928e48af
CV
8392002-09-16 Corinna Vinschen <vinschen@redhat.com>
840
841 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
842 `set architecture'. Unify naming convention of functions.
843 (h8300_skip_prologue): Improve prologue analysis.
844 (h8300_push_arguments): Rewritten to more closely match GCC's
845 bizarre argument-passing behavior, along with the comment describing
846 said behavior.
847 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
848 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
849 sim, remote-e7000.c, remote-hms.c and remote.c
850
5e3397bb
MK
8512002-09-15 Mark Kettenis <kettenis@gnu.org>
852
853 * i386-tdep.c (gdb_print_insn_i386): Removed.
854 (i386_print_insn): New function.
855 (i386_gdbarch_init): Set print_insn to i386_print_insns.
856 (_initialize_i386_tdep): Don't initialize tm_print_insn and
857 tm_print_insn_info.
858
f710f4fc
MK
8592002-09-14 Mark Kettenis <kettenis@gnu.org>
860
861 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
862 zero.
863
db54fef4
CV
8642002-09-14 Corinna Vinschen <vinschen@redhat.com>
865
866 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
867 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
868 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
869
2becadee
CF
8702002-09-13 Christopher Faylor <cgf@redhat.com>
871
872 * win32-nat.c (child_create_inferior): Honor 'tty' command.
873
de17c821
DJ
8742002-09-13 Daniel Jacobowitz <drow@mvista.com>
875
876 * gdbtypes.c (check_stub_method): Make static.
877 (check_stub_method_group): New function.
878 * gdbtypes.h: Update prototypes.
879 * cp-support.c: New file.
880 * cp-support.h: New file.
881
882 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
883 (update_method_name_from_physname): New function.
884 (read_member_functions): Correct method names for operators
885 and v3 constructors/destructors. Separate v2 constructors and
886 destructors.
887 * Makefile.in (stabsread.o): Update dependencies.
888 (SFILES): Add cp-support.c.
889 (COMMON_OBS): Add cp-support.o.
890 (cp_support_h, cp-support.o): Add.
891
892 * cp-valprint.c (cp_print_class_method): Call
893 check_stub_method_group instead of check_stub_method. Remove
894 extraneous QUITs.
895 * p-valprint.c (pascal_object_print_class_method): Likewise.
896 * valops.c (search_struct_method): Likewise.
897 (find_method_list, value_struct_elt_for_reference): Likewise.
898
e76cff22
AC
8992002-09-13 Andrew Cagney <cagney@redhat.com>
900
901 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
902 * gdbarch.h, gdbarch.c: Regenerate.
903
905abb3f
AC
9042002-09-13 Andrew Cagney <ac131313@redhat.com>
905
906 * frame.c (find_saved_register): Delete function.
907 * frame.h (find_saved_register): Delete declaration.
908 Fix PR gdb/631.
909
64159455
AC
910Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
911
912 * mips-tdep.c (read_next_frame_reg): Re-hack using
913 frame_register_unwind.
914
795e1e11
AC
915Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
916
917 * mips-tdep.c (mips_get_saved_register): Re-hack using
918 frame_register_unwind.
919
5720643c
JB
9202002-09-12 Joel Brobecker <brobecker@gnat.com>
921
922 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
923 vector. Will be useful for Interix.
924 * gdbarch.h, gdbarch.c: Regenerate.
925
926 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
927 name of the malloc function by NAME_OF_MALLOC.
928
3bada2a2
JB
9292002-09-12 Joel Brobecker <brobecker@gnat.com>
930
931 * value.h (find_function_in_inferior): Add const keyword to
932 one of the parameters. Allows us to invoke this function with
933 a const char *.
934 * valops.c (find_function_in_inferior): Likewise.
935
3db26b01
JB
9362002-09-12 Joel Brobecker <brobecker@gnat.com>
937
938 * exec.c (xfer_memory): Fix compilation warning with old versions
939 of GCC.
940 * tracepoint.c (trace_find_tracepoint_command): Likewise.
941
17c5ed2c
DC
9422002-09-12 David Carlton <carlton@math.stanford.edu>
943
944 * symtab.h: Run through gdb_indent.h.
945 Add 2002 to Copyright year list.
946
ecd1107e
AM
9472002-09-12 Alan Modra <amodra@bigpond.net.au>
948
949 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
950 mach constants.
951 * MAINTAINERS: Add myself to write after approval list.
952
e64f66d1
JB
9532002-09-11 J. Brobecker <brobecker@gnat.com>
954
955 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
956
f9395794
JB
9572002-09-11 J. Brobecker <brobecker@gnat.com>
958
959 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
960 Interix.
961
1a303dec
MS
9622002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
963
964 * procfs.c (do_detach): Clear current signal, not just fault.
965 Corrects problem with breakpoint trap signal leaking to detached
966 process on Tru64.
967
c0219d42
MS
9682002-09-10 Michael Snyder <msnyder@redhat.com>
969
970 * buildsym.c (finish_block): Protect against null pointer.
971
9d84ac84
AC
9722002-09-10 Andrew Cagney <cagney@redhat.com>
973
974 * infcmd.c (default_print_registers_info): Send all output to
975 ``file'' instead of ``gdb_stdout''.
976
77d8f2b4
MS
9772002-09-10 Michael Snyder <msnyder@redhat.com>
978
979 * mips-tdep.c (mips_extract_struct_value_address): Make val a
980 LONGEST, and use signed register read (addresses are sign-
981 extended for mips).
982
99656a61
SC
9832002-09-10 Stephane Carrez <stcarrez@nerim.fr>
984
985 * event-loop.c (gdb_do_one_event): Make public.
986 * event-loop.h (gdb_do_one_event): Declare.
987
da12f4d8
JL
9882002-09-10 Jeff Law <law@redhat.com>
989
990 * infttrace.c (child_resume): Simplify and rework to avoid
991 TT_PROC_CONTINUE.
992
d0aee0c4
FF
9932002-09-09 Fred Fish <fnf@intrinsity.com>
994
995 * printcmd.c (print_scalar_formatted): "len" is the number of
996 target bytes, NOT the number of target bits.
997
7cb3ec5e
EZ
9982002-09-09 Elena Zannoni <ezannoni@redhat.com>
999
1000 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1001 * top.c (init_main): Set rl_terminal_name.
1002
4dc81987
AS
10032002-09-08 Aidan Skinner <aidan@velvet.net>
1004
1005 * ada-lang.c (ada_array_bound, ada_type_match,
1006 _initialize_ada_language): Fix K&R definitions.
1007 * ada-tasks.c (get_current_task): Fix K&R definitions.
1008 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1009
842330b4
CF
10102002-09-07 Christopher Faylor <cgf@redhat.com>
1011
1012 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1013 Add XP.
1014
43156d82
MK
10152002-09-06 Mark Kettenis <kettenis@gnu.org>
1016
66da5fd8
MK
1017 * i386-tdep.c (i386_register_virtual_type,
1018 i386_register_convertible, i386_register_convert_to_virtual,
1019 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1020 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1021 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1022 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1023 Don't set push_arguments twice.
1024
4b218c18
MK
1025 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1026 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1027 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1028 sigtramp_end to NULL.
1029 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1030 defines.
1031 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1032
4cc314d5
MK
1033 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1034 whitespace.
1035
43156d82
MK
1036 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1037 * gdbarch.h, gdbarch.c: Re-generate.
1038 * blockframe.c (find_pc_sect_partial_function): Convert to use
1039 SIGTRAMP_START_P predicate.
1040
6672060b
MS
10412002-09-05 Michael Snyder <msnyder@redhat.com>
1042
a90c3637
MS
1043 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1044 generic_dummy_frame method and old method. Also distinguish
1045 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1046 (arm_extract_return_value): Use new regcache method.
a90c3637 1047
6672060b
MS
1048 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1049 adjustment that doesn't conform to the ABI.
1050 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1051 saved regcache, not from current regcache.
1052
299ffc64
AC
10532002-09-05 Andrew Cagney <ac131313@redhat.com>
1054
1055 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1056 * README: Update.
1057
a3a2ee65
JT
10582002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1059
1060 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1061 if arm_apcs_32 is false.
1062
2bc7eea9
AC
10632002-09-04 Andrew Cagney <ac131313@redhat.com>
1064
1065 GDB 5.3 branch created.
1066
8a55a7c5
TR
10672002-09-03 Theodore A. Roth <troth@verinet.com>
1068
1069 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1070 generic_unwind_get_saved_register.
1071
e26fb1d7
DC
10722002-09-03 David Carlton <carlton@math.stanford.edu>
1073
1074 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1075 argument (PR gdb/653). Update call to smash_to_method_type.
1076 (read_structure_scope): Update call to dwarf2_add_member_fn.
1077
30d52491
ML
10782002-09-03 Michal Ludvig <mludvig@suse.cz>
1079
1080 * x86-64-linux-tdep.c: Include gdb_string.h
1081 * x86-64-linux-nat.c: Ditto.
1082
06891d83
JT
10832002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1084
1085 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1086 when YYDEBUG is set to 1.
1087 * c-exp.y: Likewise.
1088 * f-exp.y: Likewise.
1089 * jv-exp.y: Likewise.
1090 * m2-exp.y: Likewise.
1091 * p-exp.y: Likewise.
1092
7d400e77
JT
10932002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1094
1095 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1096 dependency list.
1097 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1098 solib_svr4_fetch_link_map_offsets to
1099 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1100 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1101 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1102 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1103 solib-svr4.o, and solib-legacy.o.
1104 * config/i386/tm-nbsd.h: Include solib.h.
1105
704a27c4
JT
11062002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1107
1108 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1109 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1110 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1111 comment noting that this needs its own target configuration.
1112 * config/i386/nbsd.mt: New file.
1113 * config/i386/nbsdaout.mt: Remove.
1114 * config/i386/nbsdelf.mt: Ditto.
1115 * config/i386/tm-nbsdaout.h: Ditto.
1116
d66198e1
JT
11172002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1118
1119 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1120 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1121 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1122 tdep->sigtramp_end.
1123 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1124 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1125 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1126
3cac699e
JT
11272002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1128
1129 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1130 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1131 * i386-tdep.h (i386bsd_init_abi): New prototype.
1132 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1133 function declaration.
1134 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1135 for NetBSD-a.out or NetBSD-ELF.
1136 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1137 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1138 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1139 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1140 and nbsd-tdep.h.
1141 (i386nbsd_pc_in_sigtramp): New function.
1142 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1143 i386nbsd_pc_in_sigtramp.
1144 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1145 and i386nbsdelf_init_abi OS ABI handlers.
1146 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1147 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1148
7010ca0a
MK
11492002-09-02 Mark Kettenis <kettenis@gnu.org>
1150
1151 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1152 registers if the target really has them.
1153
6dd93b72
JT
11542002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1155
1156 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1157 than nbsd-tdep.h.
1158
2ca8ae21
JT
11592002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1160
1161 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1162 list.
1163 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1164 (alphanbsd_skip_sigtramp_frame): New functions.
1165 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1166 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1167 to alphanbsd_sigcontext_addr.
1168
3d9b49b0
JT
11692002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1170
1171 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1172 list.
1173 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1174 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1175 nbsd_pc_in_sigtramp.
1176 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1177 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1178 * nbsd-tdep.c: Include gdb_string.h.
1179 (nbsd_pc_in_sigtramp): New function.
1180 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1181 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1182 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1183 ppcnbsd_pc_in_sigtramp.
1184 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1185 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1186 shnbsd_pc_in_sigtramp.
1187 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1188 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1189 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1190
c860120c
PM
11912002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1192
1193 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1194 watchpoints to NULL.
1195 (insert_breakpoints): set val field of watchpoints if NULL.
1196
1197
c7612d53
JB
11982002-08-29 Jim Blandy <jimb@redhat.com>
1199
1200 * symtab.c (lookup_symbol_aux): In the cases where we find a
1201 minimal symbol of an appropriate name and use its address to
1202 select a symtab to read and search, use `name' (as passed to us)
1203 as the demangled name when searching the symtab's global and
1204 static blocks, not the minsym's name.
1205
66609862
KS
12062002-08-29 Keith Seitz <keiths@redhat.com>
1207
1208 * stack.c (print_frame_info_base): Always set current_source_symtab
1209 and current_source_line.
1210
151fefe2
JB
12112002-08-29 Donn Terry <donnte@microsoft.com>
1212
1213 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1214
bfb3754e
KS
12152002-08-28 Keith Seitz <keiths@redhat.com>
1216
1217 * stack.c (select_frame): Add FIXME concerning selected-frame
1218 events.
1219 (select_frame_command): Send selected-frame-level-changed
1220 event notification, but only if the level actually changed.
1221 (up_silently_base): Add selected-frame-level-changed event
1222 notification.
1223 (down_silently_base): Likewise.
1224
e822a2a0
AC
12252002-08-28 Andrew Cagney <ac131313@redhat.com>
1226
1227 * Makefile.in: Update dependencies for all gdb/*.c files.
1228
309367d4
TT
12292002-08-27 Tom Tromey <tromey@redhat.com>
1230
1231 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1232 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1233 Update dependencies.
1234 * i387-tdep.c: Include gdb_string.h.
1235 * osabi.c: Likewise.
1236 * i386-linux-nat.c: Likewise.
1237 * lin-lwp.c: Likewise.
1238 * ax-gdb.c: Likewise.
1239 * signals/signals.c: Likewise.
1240 * jv-valprint.c: Likewise.
1241 * p-lang.c: Likewise.
1242 * c-valprint.c: Likewise.
1243 * cp-abi.c: Likewise.
1244
e1507482
EZ
12452002-08-27 Elena Zannoni <ezannoni@redhat.com>
1246
1247 * cli/cli-script.h (copy_command_lines): Export.
1248 * breakpoint.c: Include cli/cli-script.h.
1249 * Makefile.in (breakpoint.o): Update dependencies.
1250
c6510018
MS
12512002-08-26 Michael Snyder <msnyder@redhat.com>
1252
1253 * breakpoint.c (insert_breakpoints): Protect all references
1254 to 'process_warning'. Shorten long lines.
1255
c2b8ed2c
MS
12562002-08-26 Joel Brobecker <brobecker@gnat.com>
1257
1258 * cli/cli-script.c (copy_command_lines): New function.
1259 * defs.h (copy_command_lines): Export.
1260 * testsuite/gdb.base/commands.exp: New tests for commands
1261 attached to a temporary breakpoint, and for commands that
1262 delete the breakpoint they are attached to.
1263
12642002-08-26 Michael Snyder <msnyder@redhat.com>
1265
1266 * breakpoint.c (bpstat_stop_status): Instead of copying the
1267 pointer to the breakpoint commands struct, make a new copy
1268 of the struct and point to that.
1269 (bpstat_clear): Free the commands struct.
1270 (bpstat_clear_actions): Free the commands struct.
1271 (bpstat_do_actions): Free the command actions. Also execute
1272 the local cleanups, instead of deleting them.
1273 (delete_breakpoint): Leave the commands field of the bpstat
1274 chain alone -- it will be freed later.
1275
64b84175
KB
12762002-08-26 Kevin Buettner <kevinb@redhat.com>
1277
1278 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1279 deleted in 2002-08-20 commit. This function is still used by
1280 ppc-linux-nat.c.
1281
55970da6
KS
12822002-08-26 Keith Seitz <keiths@redhat.com>
1283
1284 * gdb-events.sh: Add selected-frame-level-changed event.
1285 * gdb-events.c: Regenerated.
1286 * gdb-events.h: Regenerated.
1287
a790ad35
SC
12882002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1289
1290 Fix PR gdb/393:
1291 * inflow.c (terminal_save_ours): New function to save terminal
1292 settings.
1293 * inferior.h (terminal_save_ours): Declare.
1294 * target.c (debug_to_terminal_save_ours): New function.
1295 (cleanup_target): Defaults to_terminal_save_ours.
1296 (update_current_target): Inherit to_terminal_save_ours.
1297 (setup_target_debug): Set to_terminal_save_ours.
1298 * target.h (target_terminal_save_ours): New to save terminal settings.
1299 (target_ops): New member to_terminal_save_ours.
1300 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1301 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1302 * inftarg.c (init_child_ops): Likewise.
1303 * m3-nat.c (init_m3_ops): Likewise.
1304 * procfs.c (init_procfs_ops): Likewise.
1305 * wince.c (init_child_ops): Likewise.
1306 * win32-nat.c (init_child_ops): Likewise.
1307 * sol-thread.c (init_sol_thread_ops): Likewise.
1308
c00dcbe9
MK
13092002-08-26 Mark Kettenis <kettenis@gnu.org>
1310
3d7f4f49
MK
1311 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1312 use regcache_* functions.
1313 (i386_gdbarch_init): Set store_return_value instead of
1314 deprecated_store_return_value.
1315
c00dcbe9
MK
1316 * regcache.c (regcache_raw_write_signed,
1317 regcache_raw_write_unsigned): New functions.
1318 * regcache.h (regcache_raw_write_signed,
1319 regcache_raw_write_unsigned): New prototypes.
1320
0e0d15ca
AC
13212002-08-25 Andrew Cagney <ac131313@redhat.com>
1322
1323 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1324 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1325 source file dependencies. Cleanup corresponding generator rules.
1326
d3b22ed5
AC
13272002-08-25 Andrew Cagney <ac131313@redhat.com>
1328
1329 * regcache.h (register_offset_hack): Declare.
1330 (regcache_cooked_read_using_offset_hack): Declare.
1331 (regcache_cooked_write_using_offset_hack): Declare.
1332
1333 * regcache.c (register_offset_hack): New function.
1334 (regcache_cooked_read_using_offset_hack): New function.
1335 (regcache_cooked_write_using_offset_hack): New function.
1336 (regcache_dump): Check that the registers, according to their
1337 offset, are packed hard against each other.
1338 (cooked_xfer_using_offset_hack): New function.
1339
bb425013
AC
13402002-08-25 Andrew Cagney <ac131313@redhat.com>
1341
1342 * regcache.c (struct regcache_descr): Add field register_type.
1343 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1344 in as a parameter
1345 (init_regcache_descr): Initialize register_type. Pass the descr
1346 to init_legacy_regcache_descr. Use register_type instead of
1347 REGISTER_VIRTUAL_TYPE.
1348 (register_type): New function.
1349 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1350 * regcache.h (register_type): Declare.
1351
d0403e00
AC
13522002-08-25 Andrew Cagney <ac131313@redhat.com>
1353
1354 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1355 instead of deprecated_store_return_value. Fix fallout from
1356 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1357
0ed04cce
AC
13582002-08-25 Andrew Cagney <ac131313@redhat.com>
1359
1360 * regcache.c (max_register_size): New function.
1361 (init_legacy_regcache_descr): Ensure that max_register_size is
1362 large enough for REGISTER_VIRTUAL_SIZE.
1363 * regcache.h (max_register_size): Declare.
1364
46d79c04
AC
13652002-08-24 Andrew Cagney <ac131313@redhat.com>
1366
1367 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1368 store_return_value.
1369 (e500_extract_return_value): Change type of valbuf pointer to
1370 void.
1371
853c7bd0
MK
13722002-08-24 Mark Kettenis <kettenis@gnu.org>
1373
cd87e769
MK
1374 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1375 workaround.
1376
853c7bd0
MK
1377 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1378 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1379 long long) to prevent compiler warning on 64-bit systems.
1380
ebba8386
AC
13812002-08-23 Andrew Cagney <cagney@redhat.com>
1382
1383 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1384 (DEPRECATED_STORE_RETURN_VALUE): New method.
1385 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1386 * gdbarch.h, gdbarch.c: Re-generate.
1387
1388 * values.c (set_return_value): Pass current_regcache to
1389 STORE_RETURN_VALUE.
1390 * arch-utils.h (legacy_store_return_value): Declare.
1391 * arch-utils.c (legacy_store_return_value): New function.
1392 (legacy_extract_return_value): Update parameters.
1393
1394 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1395 STORE_RETURN_VALUE.
1396 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1397 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1398 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1399 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1400 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1401 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1402 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1403 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1404 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1405 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1406
1407 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1408 * i386-tdep.c (i386_extract_return_value): Update.
1409 * arch-utils.c (legacy_extract_return_value): Update.
1410 * frv-tdep.c (frv_gdbarch_init): Update.
1411 * cris-tdep.c (cris_gdbarch_init): Update.
1412 * d10v-tdep.c (d10v_gdbarch_init): Update.
1413 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1414 * m68k-tdep.c (m68k_gdbarch_init): Update.
1415 * mcore-tdep.c (mcore_gdbarch_init): Update.
1416 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1417 * s390-tdep.c (s390_gdbarch_init): Update.
1418 * sparc-tdep.c (sparc_gdbarch_init): Update.
1419 * sh-tdep.c (sh_gdbarch_init): Update.
1420 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1421 * v850-tdep.c (v850_gdbarch_init): Update.
1422 * avr-tdep.c (avr_gdbarch_init): Update.
1423 * ia64-tdep.c (ia64_gdbarch_init): Update.
1424 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1425 * vax-tdep.c (vax_gdbarch_init): Update.
1426 * alpha-tdep.c (alpha_gdbarch_init): Update.
1427 * arm-tdep.c (arm_gdbarch_init): Update.
1428 * mips-tdep.c (mips_gdbarch_init): Update.
1429 * i386-tdep.c (i386_gdbarch_init): Update.
1430
5bd8c6d0
AC
14312002-08-23 Andrew Cagney <ac131313@redhat.com>
1432
1433 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1434 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1435
e73e1724
MK
14362002-08-24 Mark Kettenis <kettenis@gnu.org>
1437
1438 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1439 problems.
1440
3e6564e1
JB
14412002-08-23 Joel Brobecker <brobecker@gnat.com>
1442
1443 * infrun.c (handle_inferior_event): Move a comment outside of a
1444 function call, in order to avoid indent reformatting this part
1445 of the code in an unreadable way.
1446
81d0cc19
GS
14472002-08-23 Grace Sainsbury <graces@redhat.com>
1448
1449 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1450 when breakpoints fail. Move general breakpoint error messages to
1451 insert_breakpoints.
1452 * breakpoint.c (insert_breakpoints): Change warnings when
1453 breakpoints are nto inserted to specify the type. Remove call to
1454 memory_error when hardware breakpoints can't be inserted. Remove
1455 multiple calls to warning so all messages are sent to the user at
1456 once.
1457 (delete_breakpoints): Make insert error messsages more explicit.
1458
17574093
DJ
14592002-08-23 Daniel Jacobowitz <drow@mvista.com>
1460
1461 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1462 gdbserver/ChangeLog.
1463
8acc2935
MK
14642002-08-23 Mark Kettenis <kettenis@gnu.org>
1465
dfe01d39
MK
1466 * i386-tdep.c: Include "objfiles.h".
1467 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1468 skip_trampoline_code.
1469 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1470 (CPLUS_MARKER): Define to '.'.
1471
8acc2935
MK
1472 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1473 member.
1474 (linux_corefile_thread_callback): Increase args->num_notes.
1475 (linux_make_note_section): Initialize thread_args.num_notes, and
1476 use it to determine whether notes for any threads were created.
1477
151fefe2 14782002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1479
1480 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1481 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1482 and PCUNKILL.
1483 (write_with_trace): Conditionalize out the switch branch handling
1484 PCSHOLD if the corresponding macro is not defined. Likewise for
1485 PRSABORT and PRSTOP.
1486 This change will be needed by the Interix port.
1487
e1507482
EZ
14882002-08-22 Elena Zannoni <ezannoni@redhat.com>
1489
1490 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1491 write_register wherever possible instead of manipulating the
1492 register bytes directly.
1493 Assign VALUE_CONTENTS to a variable and use that.
1494 The GPR numbers are now dependent on the architecture.
1495
96ff0de4
EZ
14962002-08-22 Elena Zannoni <ezannoni@redhat.com>
1497
1498 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1499 ev_offset fields.
1500 (skip_prologue): Add support for BookE/e500 instructions.
1501 (e500_extract_return_value): New function.
1502 (frame_get_saved_regs): Add support for saving ev registers and
1503 pseudo gpr's.
1504 (e500_store_return_value): New function.
1505 (rs6000_gdbarch_init): Move up default intializations of
1506 deprecated_extract_return_value and store_return_value. Overwrite
1507 init of store_return_value with e500 specific version.
1508 Set extract_return_value for e500.
1509
fbefca5b
EZ
15102002-08-22 Elena Zannoni <ezannoni@redhat.com>
1511
1512 * blockframe.c (generic_call_dummy_register_unwind): Use
1513 regcache_cooked_read to catch cases in which the variable is
1514 stored in a pseudo register.
1515
4d210288
AC
15162002-08-22 Andrew Cagney <cagney@redhat.com>
1517
1518 * NEWS: Mention that the i960 has been made obsolete.
1519 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1520 i960-tdep.c
1521 (remote-nrom.o): Obsolete target.
1522 (remote-nindy.o, i960-tdep.o): Ditto.
1523 * remote-nrom.c: Make file obsolete.
1524 * remote-nindy.c, remote-vx960.c: Ditto.
1525 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1526 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1527 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1528 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1529 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1530 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1531 i960-*-vxworks* obsolete.
1532 * MAINTAINERS: Note that the i960 is obsolete.
1533
6c0c456d
CV
15342002-08-21 Corinna Vinschen <vinschen@redhat.com
1535
1536 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1537 detach to allow reinitialization.
1538
9f9d12b3
AC
15392002-08-22 Andrew Cagney <ac131313@redhat.com>
1540
1541 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1542 attempt).
1543
ebeb39fe
JB
15442002-08-22 Jim Blandy <jimb@redhat.com>
1545
1546 * coffread.c (coff_symfile_read): Don't try to read the line
1547 number table from disk if the image file doesn't have a symbol
1548 table; we'll never actually look at the info anyway, and Windows
1549 ships DLL's with bogus file offsets for the line number data.
1550
5bf1c677
EZ
15512002-08-21 Elena Zannoni <ezannoni@redhat.com>
1552
1553 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1554 an e500 executable.
1555
71b8ef93
MS
15562002-08-21 Michael Snyder <msnyder@redhat.com>
1557
1558 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1559 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1560 (DEFAULT_MIPS_TYPE): Delete unused macro.
1561 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1562 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1563
d174216d
JB
15642002-08-21 Jim Blandy <jimb@redhat.com>
1565
1566 * valops.c (value_cast): Simplify and correct logic for doing a
1567 static cast from a pointer to a base class to a pointer to a
1568 derived class.
1569
0ab7a791
AC
15702002-08-21 Andrew Cagney <ac131313@redhat.com>
1571
1572 * infcmd.c (default_print_registers_info): Replace
1573 do_registers_info.
1574 (registers_info): Use gdbarch_print_registers_info instead of
1575 DO_REGISTERS_INFO.
1576 * inferior.h (default_print_registers_info): Replace
1577 do_registers_info.
1578 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1579 (DO_REGISTERS_INFO): Change to a predicate function.
1580 * gdbarch.h, gdbarch.c: Regenerate.
1581
e23792cc
KS
15822002-08-21 Keith Seitz <keiths@redhat.com>
1583
1584 * gdb-events.sh: Add target-changed event.
1585 * gdb-events.c: Regenerated.
1586 * gdb-events.c: Regenerated.
1587 * valops.c (value_assign): Add target-changed event notification
1588 to inlval_register, lval_memory, and lval_reg_frame_relative.
1589
9fb14e79
JB
15902002-08-21 Joel Brobecker <brobecker@gnat.com>
1591
1592 * NEWS: Add an entry regarding the improvement of the next/step
1593 operation on Alpha Tru64 multi-processor machines.
1594
6d39a69f
AC
15952002-08-21 Andrew Cagney <ac131313@redhat.com>
1596
72acd513
AC
1597 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1598 directores.
342af04b 1599 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1600 * Makefile.in (install-gdbtk): Move to install section.
1601 (rdi-share/libangsd.a): Move to end of file.
1602
fa5f27c7
AC
16032002-08-19 Andrew Cagney <ac131313@redhat.com>
1604
1605 * frame.c (frame_register_unwind): When a register, set addrp to
1606 the register's byte.
1607
5a89d8aa
MS
16082002-08-20 Michael Snyder <msnyder@redhat.com>
1609
1610 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1611 used locally, so move them from the target machine header to here.
1612 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1613 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1614 Make static.
1615 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1616
822e978b
AC
16172002-08-20 Andrew Cagney <cagney@redhat.com>
1618
1619 * NEWS: Mention that the Apollo line was made obsolete.
1620 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1621 m68*-hp-hpux* obsolete.
1622 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1623 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1624 * buildsym.c (make_blockvector): Make static.
1625 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1626 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1627 (ALLDEPFILES): Remove dstread.c.
1628 (dstread.o): Obsolete make rule.
1629 * dstread.c: Makefile obsolete.
1630 * dst.h: Ditto.
1631 * config/m68k/hp300hpux.mt: Ditto.
1632 * config/m68k/hp300hpux.mh: Ditto.
1633 * config/m68k/hp300bsd.mt: Ditto.
1634 * config/m68k/hp300bsd.mh: Ditto.
1635 * config/m68k/apollo68b.mt: Ditto.
1636 * config/m68k/apollo68v.mh: Ditto.
1637 * config/m68k/apollo68b.mh: Ditto.
1638
e41b17f0
MS
16392002-08-20 Michael Snyder <msnyder@redhat.com>
1640
1641 * mips-tdep.c (mips_in_return_stub): Make static.
1642 (mips_gdbarch_init): Set in_solib_return_trampoline.
1643 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1644
d50355b6
MS
16452002-08-20 Michael Snyder <msnyder@redhat.com>
1646
1647 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1648 * gdbarch.c, gdbarch.h: Regenerate.
1649 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1650 Add.
1651 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1652
757a7cc6
MS
16532002-08-20 Michael Snyder <msnyder@redhat.com>
1654
1655 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1656 (mips_gdbarch_init): Set skip_trampoline_code,
1657 in_solib_call_trampoline.
1658 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1659 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1660
c8001721
EZ
16612002-08-20 Elena Zannoni <ezannoni@redhat.com>
1662
1663 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1664
1665 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1666 vector type for ev registers.
1667 (e500_pseudo_register_read): New function.
1668 (e500_pseudo_register_write): New function.
1669 (e500_dwarf2_reg_to_regnum): New function.
1670 (PPC_UISA_NOFP_SPRS): New macro.
1671 (PPC_EV_REGS): New macro.
1672 (PPC_GPRS_PSEUDO_REGS): New macro.
1673 (registers_e500): New register set for e500.
1674 (variants): Add e500 variant.
1675 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1676 before setting architectural dependent variations. Initialize ev
1677 registers numbers. Add case for e500 architecture. Set the
1678 number of pseudo registers.
1679
64366f1c
EZ
16802002-08-20 Elena Zannoni <ezannoni@redhat.com>
1681
1682 * rs6000-tdep.c: Clean up comments.
1683
7e78f0ca
AC
16842002-08-20 Andrew Cagney <cagney@redhat.com>
1685
1686 * h8300-tdep.c: Re-indent file.
1687
697f7479
JB
16882002-08-20 Jim Blandy <jimb@redhat.com>
1689
1690 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1691 default for this.
697f7479 1692
e86ae29f
KS
16932002-08-20 Keith Seitz <keiths@redhat.com>
1694
1695 * breakpoints.c (watch_command_1): Use internal breakpoint
1696 when setting a watchpoint_scope breakpoint.
1697
216b504f
EZ
16982002-08-20 Elena Zannoni <ezannoni@redhat.com>
1699
1700 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1701 (build_builtin_type_vec64i): Ditto.
1702 (build_builtin_type_vec128): Ditto.
1703 (build_builtin_type_vec128i): Ditto.
1704
f7ab6ec6
MS
17052002-08-19 Michael Snyder <msnyder@redhat.com>
1706
1707 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1708 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1709 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1710 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1711 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1712 CALL_DUMMY_ADDRESS): Delete.
1713 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1714 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1715 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1716 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1717 push_return_address.
1718 (mips_register_raw_size, mips_eabi_use_struct_convention,
1719 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1720 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1721 mips_init_extra_frame_info, mips_eabi_push_arguments,
1722 mips_n32n64_push_arguments, mips_push_return_address,
1723 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1724 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1725
b5d1566e
MS
17262002-08-19 Michael Snyder <msnyder@redhat.com>
1727
1728 * mips-tdep.c (mips_frame_num_args): New function.
1729 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1730 frame_saved_pc, frame_args_address, frame_locals_address,
1731 frame_num_args, and frame_args_skip.
1732 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1733 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1734 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1735 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1736
2f1488ce
MS
17372002-08-20 Michael Snyder <msnyder@redhat.com>
1738
1739 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1740 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1741 * mips-tdep.c (mips_store_struct_return): New function.
1742 (mips_extract_struct_value_address): New function.
1743 (mips_gdbarch_init): Set store_struct_return and
1744 extract_struct_value_address.
1745
41ff2da1
DC
17462002-08-20 David Carlton <carlton@math.stanford.edu>
1747
1748 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1749 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1750 (read_file_scope): Check that line_header is nonzero before
1751 decoding macro information.
1752
e5451d58
MK
17532002-08-20 Mark Kettenis <kettenis@gnu.org>
1754
1755 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1756 flag the general-purpose registers as floating-point on targets
1757 that don't support the floating-point registers.
1758
4a6daafa
EZ
17592002-08-20 Elena Zannoni <ezannoni@redhat.com>
1760
1761 * rs6000-tdep.c (altivec_register_p): Delete.
1762 (rs6000_do_altivec_registers): Delete.
1763 (rs6000_altivec_registers_info): Delete.
1764 (rs6000_do_registers_info): Delete.
1765 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1766 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1767
ab4327e0
EZ
17682002-08-20 Elena Zannoni <ezannoni@redhat.com>
1769
1770 * infcmd.c (do_registers_info): Print vector registers in hex
1771 format only.
1772 (print_vector_info): Check that printing registers
1773 makes sense.
1774 (print_float_info): Ditto.
1775
cb1d2653
AC
17762002-08-20 Andrew Cagney <ac131313@redhat.com>
1777
1778 * mips-tdep.c (mips_gdbarch_init): Update.
1779 (mips_o32_extract_return_value): Rewrite.
1780 (mips_o32_store_return_value): Rewrite.
1781 (mips_o32_xfer_return_value): New function.
1782 (mips_xfer_register): Tweak debug print message. Allow for
1783 buf_offset when dumping the value transfered.
1784
dfc3d9b2
AC
17852002-08-20 Andrew Cagney <ac131313@redhat.com>
1786
1787 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1788 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1789 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1790 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1791 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1792
7807aa61
MS
17932002-08-14 Michael Snyder <msnyder@redhat.com>
1794
1795 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1796
489461e2
EZ
17972002-08-19 Elena Zannoni <ezannoni@redhat.com>
1798
1799 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1800 register.
1801 (P): New macro to define a register as a pseudo register.
1802 (R, R4, R8, R16, FR32, R64, R0): Updated.
1803 (struct variant): Add new fields for number of pseudo registers
1804 and number of total registers.
1805 (tot_num_registers): New macro replacing....
1806 (num_registers): ...deleted macro.
1807 (num_registers): New function.
1808 (num_pseudo_registers): New function.
1809 (variants): Update all variants to intialize new fields correctly.
1810 Postpone initialization of number of pseudo regs and real regs.
1811 (init_variants): New function.
1812 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1813 registers offsets.
1814
fcaffe4c
DC
18152002-08-19 David Carlton <carlton@math.stanford.edu>
1816
2c2738a0
DC
1817 * valops.c (search_struct_field): Change error message to treat
1818 return value of 0 from value_static_field as meaning that field is
1819 optimized out.
1820 (value_struct_elt_for_reference): Ditto.
1821 * values.c (value_static_field): Treat an unresolved location the
1822 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1823 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1824 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1825 * MAINTAINERS: Add self to Write After Approval list.
1826
88658117
AC
18272002-08-19 Andrew Cagney <ac131313@redhat.com>
1828
1829 * mips-tdep.c (mips_xfer_register): New function.
1830 (mips_n32n64_extract_return_value): Rewrite.
1831 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1832 instead of deprecated_extract_return_value.
1833
21283beb
EZ
18342002-08-19 Elena Zannoni <ezannoni@redhat.com>
1835
1836 * rs6000-tdep.c (TDEP): Delete macro.
1837 (branch_dest): Replace use of TDEP macro with its body.
1838 (rs6000_pop_frame): Ditto.
1839 (rs6000_push_arguments): Ditto.
1840 (rs6000_skip_trampoline_code): Ditto.
1841 (rs6000_frame_saved_pc): Ditto.
1842 (rs6000_frame_chain): Ditto.
1843 (rs6000_register_name): Ditto.
1844 (rs6000_register_byte): Ditto.
1845 (rs6000_register_raw_size): Ditto.
1846 (rs6000_register_virtual_type): Ditto.
1847 (rs6000_register_convertible): Ditto.
1848 (rs6000_convert_from_func_ptr_addr): Ditto.
1849
bf072999
DJ
18502002-08-19 Daniel Jacobowitz <drow@mvista.com>
1851
1852 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1853 conditionally.
1854 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1855 MIPS_LINUX_JB_ELEMENT_SIZE.
1856 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1857 for MAX_REGISTER_RAW_SIZE arrays.
1858 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1859 MIPS_LINUX_JB_ELEMENT_SIZE.
1860
9b949a49
PM
18612002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1862
1863 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1864
6d3e79c6
AS
18652002-08-19 Aidan Skinner <aidan@velvet.net>
1866
1867 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1868 ada-valprint.c ada-tasks.c.
1869 (YYFILES): Add ada-exp.y.
1870 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1871 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1872 (ada-exp.tab.o): New target.
1873
06c0b04e
AC
18742002-08-18 Andrew Cagney <ac131313@redhat.com>
1875
1876 * regcache.c (regcache_xfer_part): New function.
1877 (regcache_raw_read_part): New function.
1878 (regcache_raw_write_part): New function.
1879 (regcache_cooked_read_part): New function.
1880 (regcache_cooked_write_part): New function.
1881 * regcache.h (regcache_raw_read_part): Declare.
1882 (regcache_raw_write_part): Declare.
1883 (regcache_cooked_read_part): Declare.
1884 (regcache_cooked_write_part): Declare.
1885
92d1e331
DJ
18862002-08-18 Daniel Jacobowitz <drow@mvista.com>
1887
1888 * remote.c (remote_open_1): Add async_p.
1889 (remote_async_open_1): Delete.
1890 (open_remote_target): Delete.
1891 (remote_open, extended_remote_open): Update calls to remote_open_1.
1892 (remote_async_open, extended_remote_async_open): Call
1893 remote_open_1 instead of remote_async_open_1.
1894
247055de
MK
18952002-08-19 Mark Kettenis <kettenis@gnu.org>
1896
1897 * blockframe.c: Fix a few coding standard violations.
1898
641eda39
MK
18992002-08-19 Mark Kettenis <kettenis@gnu.org>
1900
0b717710
MK
1901 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1902 here from ...
1903 * config/i386/tm-i386sco5.h: ... here. File removed.
1904 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1905
26d28e12 1906 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1907 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1908 (TM_FILE): Set to tm-i386.h.
1909 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1910 * config/i386/tm-i386v.h: Remove file.
1911 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1912 instead of "i386/tm-i386v.h".
1913 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1914 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1915 "i386/tm-i386v.h".
1916 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1917 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1918 "i386/tm-i386.h".
1919
d4e0bab4
MK
19202002-08-18 Mark Kettenis <kettenis@gnu.org>
1921
1922 * config/i386/nm-i386v.h: Add protection against
1923 multiple-inclusion.
1924 (i386_register_u_addr): Remove prototype.
1925 (register_u_addr): New prototype.
1926 (REGISTER_U_ADDR): Redefine accordingly.
1927 * i386v-nat.c: Improve several comments.
1928 (i386_register_u_addr): Change signature and rename to
1929 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1930 ubase variable.
1931
46cac009
AC
19322002-08-18 Andrew Cagney <ac131313@redhat.com>
1933
1934 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1935 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1936 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1937 deprecated_extract_return_value.
1938 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1939 rename mips_o32o64_push_arguments.
1940 (mips_gdbarch_init): Update.
1941 (mips_extract_return_value): Delete.
1942 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1943 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1944 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1945 (mips_n32n64_extract_return_value): Clone
1946 mips_extract_return_value.
1947 (mips_store_return_value): Delete.
1948 (mips_o32_store_return_value): Clone mips_store_return_value.
1949 (mips_o64_store_return_value): Clone mips_store_return_value.
1950 (mips_eabi_store_return_value): Clone mips_store_return_value.
1951 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1952
d2e4a39e
AS
19532002-08-18 Aidan Skinner <aidan@velvet.net>
1954
0c30c098
AS
1955 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1956 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1957
19582002-08-18 Aidan Skinner <aidan@velvet.net>
1959
1960 * ada-lang.c: Run through gdb_indent.sh.
1961 * ada-lang.h: Run through gdb_indent.sh.
1962 * ada-tasks.c: Run through gdb_indent.sh.
1963 * ada-typeprint.c: Run through gdb_indent.sh.
1964 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1965
01fc4e33
AC
19662002-08-18 Andrew Cagney <ac131313@redhat.com>
1967
1968 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1969 ABI.
1970
d8ee244c
MK
19712002-08-18 Mark Kettenis <kettenis@gnu.org>
1972
c38d8261
MK
1973 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1974
222db64c
MK
1975 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1976 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1977
c2848c82
MK
1978 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1979 write_register_gen instead of write_register_bytes.
1980
d8ee244c
MK
1981 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1982 i[3456]-*-osf1mk* configurations have been made obsolete.
1983 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1984 i[3456]86-*-osf1mk* hosts obsolete.
1985 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1986 targets obsolete.
1987 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1988 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1989 config/i386/i386m3.mt, config/i386/nm-m3.h,
1990 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1991 config/i386/i386mk.mh, config/i386/i386mk.mt,
1992 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1993 obsolete.
1994 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1995 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1996 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1997
61d8d407
AC
19982002-08-18 Andrew Cagney <ac131313@redhat.com>
1999
2000 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2001 (hppa_value_returned_from_stack): Declare.
2002 (hppa_extract_return_value): Declare.
2003 * config/pa/hppa.mt: New file.
2004 * configure.tgt: Recognize hppa*-*-*.
2005 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2006
0c52bd59
MK
20072002-08-18 Mark Kettenis <kettenis@gnu.org>
2008
2009 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2010 comment.
2011
b5686e99
MK
20122002-08-17 Mark Kettenis <kettenis@gnu.org>
2013
2014 * top.c (gdb_rl_operate_and_get_next): Make sure
2015 operate-and-get-next functions correctly even when the history
2016 list is completely filled.
2017
c1bab85b
AC
20182002-08-18 Andrew Cagney <ac131313@redhat.com>
2019
2020 * MAINTAINERS (Target Instruction Set Architectures): Rename
2021 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2022 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2023 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2024 already listed under Host/Native.
2025
2026 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2027 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2028 mips*-*-*.
2029
32089c7c
AC
20302002-08-17 Andrew Cagney <ac131313@redhat.com>
2031
2032 * config/ia64/ia64.mt: New file.
2033 * config/alpha/alpha.mt: New file.
2034 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2035 ia64-linux-gnu. Mention that ia64-elf is broken.
2036 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2037
b4671f85
MK
20382002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2039
2040 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2041 generic_func_frame_valid instead of func_frame_valid.
2042
c8edd8b4
JB
20432002-08-16 Joel Brobecker <brobecker@gnat.com>
2044
2045 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2046 procfs appears to be broken when debugging on multi-processor
2047 machines. So enable software single stepping in order to avoid
2048 using the procfs interface to do next/step operations, using
2049 internal breakpoints instead.
2050
2051 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2052 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2053 make this pc address equal to the value it would have if the
2054 system stepping capability was used. Also set a new flag used
2055 to ensure that we don't readjust the PC one more time later.
2056
2057 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2058 address by DECR_PC_AFTER_BREAK when software single step is
2059 in use for this architecture, as this has already been taken
2060 care of in handle_inferior_event().
2061
238617f6
JB
20622002-08-16 Joel Brobecker <brobecker@gnat.com>
2063
2064 * infrun.c (handle_inferior_event): Minor reformatting, to make
2065 a rather long condition expression easier to read.
2066
541a7aac
AC
20672002-08-16 Andrew Cagney <ac131313@redhat.com>
2068
2069 * Makefile.in (gdbtk.o): Move to end of file.
2070 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2071 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2072 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2073 (gdbtk-wrapper.o, gdbres.o): Ditto.
2074
f92d4a7b
AC
20752002-08-16 Andrew Cagney <ac131313@redhat.com>
2076
2077 * Makefile.in (copying.o): Separate out compile rule.
2078 (hpux-thread.o, procfs.o, signals.o): Ditto.
2079 (v850ice.o, z8k-tdep.o): Ditto.
2080 (tui-file.o): Move to TUI section.
2081 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2082 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2083
1cce71eb
JB
20842002-08-16 Joel Brobecker <brobecker@gnat.com>
2085
2086 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2087 skip_trampoline_code, for better namespace-proofing.
2088
2089 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2090
0851f23d
JB
20912002-08-16 Joel Brobecker <brobecker@gnat.com>
2092
2093 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2094
f8d40ec8
JB
20952002-08-16 Joel Brobecker <brobecker@gnat.com>
2096
2097 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2098 signal, check whether we hit a breakpoint before checking for a
2099 single step breakpoint. Otherwise, GDB fails to notice that a
2100 breakpoint has been hit when stepping onto a breakpoint.
2101
63d022e0
KS
21022002-08-16 Keith Seitz <keiths@redhat.com>
2103
2104 * gdb-events.sh (clear_gdb_event_hooks): New function.
2105 * gdb-events.c: Regenerate.
2106 * gdb-events.h: Regenerate.
2107
6e31adb3
AC
21082002-08-16 Andrew Cagney <ac131313@redhat.com>
2109
2110 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2111 not_a_sw_breakpoint.
2112 * breakpoint.h (bpstat_stop_status): Add parameter names.
2113
c8189ed1
GS
21142002-08-16 Grace Sainsbury <graces@redhat.com>
2115
2116 * remote.c (remote_insert_hw_breakpoint)
2117 (remote_remove_hw_breakpoint): Fix calculation of length field
2118 for Z-packet.
2119
d05285fa
MS
21202002-08-15 Michael Snyder <msnyder@redhat.com>
2121
466d7106
MS
2122 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2123 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2124 (supply_fpregset): Ditto.
2125
d05285fa
MS
2126 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2127 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2128 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2129 (TARGET_READ_SP): Delete.
bf1f5b4c 2130 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2131 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2132 Delete.
2133 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2134 from macros to functions.
bf1f5b4c 2135
d05285fa
MS
2136 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2137 (mips_register_convertible, mips_register_convert_to_virtual,
2138 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2139 (mips_read_sp): New function.
2140 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2141 (mips_do_registers_info): Make static.
2142 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2143 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2144 (mips_register_convert_from_type, mips_register_convert_to_type):
2145 New functions.
2146 (mips_gdbarch_init): Set up function_start_offset,
2147 register_virtual_size, pc_in_sigtramp.
d05285fa 2148
e76f1f2e
AC
21492002-08-15 Andrew Cagney <ac131313@redhat.com>
2150
2151 * infcmd.c (vector_info): New function.
2152 (_initialize_infcmd): Add command "info vector".
2153 (print_vector_info): New function.
2154
2155 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2156 * gdbarch.h, gdbarch.c: Regenerate.
2157
4782dc19
AC
21582002-08-15 Andrew Cagney <ac131313@redhat.com>
2159
2160 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2161 ``print_all''. Only print vector registers when ``print_all''.
2162
23e3a7ac
AC
21632002-08-15 Andrew Cagney <ac131313@redhat.com>
2164
8e186fd6
AC
2165 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2166 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2167
23e3a7ac
AC
2168 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2169 Add `args' parameter.
2170 * gdbarch.h, gdbarch.c: Regenerate.
2171
2172 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2173
2174 * infcmd.c (float_info): Call print_float_info.
2175 (print_float_info): New function. By default, print the
2176 floating-point registers.
2177
2178 * arch-utils.h (default_print_float_info): Delete declaration.
2179 * arch-utils.c (default_print_float_info): Delete function.
2180
e0ca2bb9
MK
21812002-08-16 Mark Kettenis <kettenis@gnu.org>
2182
3f733acc
MK
2183 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2184 out define.
2185
7d8d2918
MK
2186 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2187 FRAME.
2188
1c7cc583
MK
2189 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2190 * configure.host: Make i[3456]86-*-aix host obsolete.
2191 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2192 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2193 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2194 config/i386/xm-i386aix.h: Make files obsolete.
2195 * i386aix-nat.c: Make file obsolete.
2196 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2197 (i386aix-nat.o): Make target obsolete.
2198
e0ca2bb9
MK
2199 * config/i386/nm-gnu.h: Removed.
2200 * config/i386/nm-i386gnu.h: New file.
2201 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2202 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2203 Moved here from ...
2204 * config/i386/tm-i386gnu.h: ... here. Removed.
2205 * config/i386/xm-i386gnu.h: Removed.
2206 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2207 (NAT_FILE): Set to nm-i386gnu.h.
2208 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2209 * i386-tdep.c: New file.
2210 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2211 (i386gnu-tdep.o): Specify dependencies.
2212
16057ec7 22132002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2214
6b99ee2e
MK
2215 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2216 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2217 Adjust a few comments to reflect reality a bit closer.
2218 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2219 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2220 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2221 target_insert_watchpoint, target_remove_watchpoint):
2222 Move defines to ...
2223 * config/i386/nm-i386sco5.h: ... here.
2224 (kernel_u_size): Add prototype. Improve a few comments and add
2225 protection against multiple inclusion.
2226
d9a6f65c
MK
2227 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2228 out define.
2229
047eff6a
MK
2230 * uw-thread.c (SP_ARG0): Define if not already defined.
2231 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2232
dcdb1290
MK
2233 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2234
5d2d0b2a
MK
2235 * config/i386/tm-i386.h: Don't include "regcache.h".
2236
61113f8b
MK
2237 * i387-tdep.h (i387_print_float_info): New prototype.
2238 * i387-tdep.c (print_i387_value, print_i387_ext,
2239 print_i387_status_word, print_i387_control_word): Add `struct
2240 ui_file *' argument and use it for output.
2241 (i387_print_float_info): Renamed from i387_float_info. Add
2242 `struct gdbarch *' and `struct ui_file *' arguments and use the
2243 latter for output.
2244 * i386-tdep.c: Include "i387-tdep.h".
2245 (i386_gdbarch_init): Set print_float_info.
2246 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2247 (FLOAT_INFO): Remove define.
2248
46e0f506
MS
22492002-08-13 Michael Snyder <msnyder@redhat.com>
2250
2251 * mips-tdep.c (mips_push_arguments): Rename to
2252 mips_eabi_push_arguments, and tune for EABI.
2253 (MIPS_REGS_HAVE_HOME_P): Delete.
2254 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2255 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2256 Delete references to mips_regs_have_home_p.
2257
409268de
KS
22582002-08-14 Keith Seitz <keiths@redhat.com>
2259
2260 * Makefile.in (install-gdbtk): Create insight plugin directory.
2261 Install plugins.tcl file.
2262
ffc6a242
KS
22632002-08-14 Keith Seitz <keiths@redhat.com>
2264
2265 * configure.in: Move SUBDIRS to near top of the file so that
2266 --enable options may add things to it.
2267 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2268 * configure: Regenerate.
2269
ebafbe83
MS
22702002-08-13 Michael Snyder <msnyder@redhat.com>
2271
2272 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2273 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2274 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2275
32f6f25d
AC
22762002-08-13 Andrew Cagney <ac131313@redhat.com>
2277
2278 * vax-tdep.c (vax_get_saved_register): Delete function.
2279 (vax_gdbarch_init): Update.
2280 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2281 (ns32k_gdbarch_init): Update.
2282 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2283 (alpha_gdbarch_init): Update.
2284
53826de9
AC
22852002-08-13 Andrew Cagney <cagney@redhat.com>
2286
2287 * regcache.c (init_regcache_descr): Overallocate the
2288 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2289 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2290 nr_raw_registers.
2291 (set_register_cached): Add range checking assertions. Use
2292 current_regcache.
2293
16057ec7 22942002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2295
2296 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2297 numbers for MMX registers.
2298
7b4c2dce
AC
22992002-08-13 Andrew Cagney <cagney@redhat.com>
2300
2301 * i386-tdep.c (i386_gdbarch_init): Use
2302 generic_unwind_get_saved_register.
2303
1e03ad20
KB
23042002-08-13 Kevin Buettner <kevinb@redhat.com>
2305
2306 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2307 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2308 target vector.
2309 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2310 Delete. Add comment regarding this now-deleted target method.
2311
548bcbec
SC
23122002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2313
2314 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2315 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2316 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2317 real PC and the page number (if it's within the memory bank window).
2318 (m68hc11_pseudo_register_write): Likewise when saving.
2319 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2320 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2321 (m68hc11_register_raw_size): And use 32-bit for it.
2322 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2323 16K memory bank is used by the prog; also use the virtual pc.
2324
7df11f59
SC
23252002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2326
2327 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2328 (m68hc11_gdbarch_init): Install it in gdbarch.
2329 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2330 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2331 (MSYMBOL_SIZE): New for documentation.
2332 (insn_return_kind): Enum to specify how a function returns.
2333 (frame_extra_info): Cleanup and record the return mode.
2334 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2335 register in address computation.
2336 (m68hc11_get_return_insn): New to obtain the return instruction used
2337 by the function.
2338 (m68hc11_frame_init_saved_regs): Take into account the return
2339 instruction used by the function for far and interrupt functions.
2340 (m68hc11_init_extra_frame_info): Take into account page register.
2341 (m68hc11_frame_args_address): Adjust according to the return mode.
2342 (show_regs): Print page register only when it's used.
2343
5706502a
SC
23442002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2345
2346 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2347 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2348 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2349 registers.
2350 (m68hc11_register_raw_size): Likewise.
2351
28fc6740
AC
23522002-08-13 Andrew Cagney <cagney@redhat.com>
2353
2354 * i386-tdep.c (i386_register_name): Handle mmx registers.
2355 (mmx_regnum_p): New function.
2356 (i386_mmx_names): New array.
2357 (mmx_num_regs): New variable.
2358 (i386_pseudo_register_read): New function.
2359 (i386_pseudo_register_write): New function.
2360 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2361
2362 * regcache.c (regcache_raw_read_unsigned): New function.
2363 (regcache_raw_read_signed): New function.
2364 * regcache.h (regcache_raw_read_unsigned): Declare.
2365 (regcache_raw_read_signed): Declare.
2366
a378f419
AC
23672002-08-13 Andrew Cagney <cagney@redhat.com>
2368
2369 * regcache.c (regcache_raw_read_as_address): Delete function.
2370 (regcache_cooked_read_signed): New function.
2371 (regcache_cooked_read_unsigned): New function.
2372 * regcache.h (regcache_cooked_read_signed): Declare.
2373 (regcache_cooked_read_unsigned): Declare.
2374 (regcache_raw_read_as_address): Delete declaration.
2375
2376 * blockframe.c (generic_read_register_dummy): Use
2377 regcache_cooked_read_unsigned.
2378 * i386-tdep.c (i386_extract_struct_value_address): Use
2379 regcache_cooked_read_unsigned.
2380
81967506
SC
23812002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2382
2383 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2384 double sizes according to ELF ABI flags.
2385 (gdbarch_tdep): Record elf_flags.
2386
ffe1f3ee
SC
23872002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2388
2389 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2390 (m6812_prolog): They can appear in 68HC12 function prologue.
2391 (m68hc11_frame_chain): Cleanup.
2392
98216c5d
AC
23932002-08-12 Andrew Cagney <cagney@redhat.com>
2394
2395 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2396 declarations.
2397 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2398 (i386_linux_register_raw_size): Delete function.
2399 (i386_linux_init_abi): Update.
2400 * i386-tdep.c (i386_register_raw_size): Delete function.
2401 (i386_register_byte): Delete function.
2402 (i386_gdbarch_init): Update.
2403 (i386_register_size): Delete array.
2404 (i386_register_offset): Delete array.
2405
2406 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2407 (REGISTER_RAW_SIZE): Delete macro.
2408 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2409 (REGISTER_BYTE): Delete macro.
2410
3b19021e
AS
24112002-08-11 Aidan Skinner <aidan@velvet.net>
2412
2413 * ada-lang.c (ada_lookup_partial_symbol)
2414 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2415 prototype names so that grep ^func works properly.
2416
2417 * ada-lang.c (ada_array_element_type)
2418 (ada_lookup_partial_symbol): Fix typos in parameter list.
2419
2420 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2421 Fix prototype names so that grep ^func works properly.
2422
b063e7a2
AC
24232002-08-10 Andrew Cagney <cagney@redhat.com>
2424 Elena Zannoni <ezannoni@redhat.com>
2425 Martin M. Hunt <hunt@redhat.com>
2426
2427 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2428 (build_builtin_type_vec128i): Set the vector bit.
2429 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2430 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2431 (build_builtin_type_vec64): New function.
2432 (build_builtin_type_vec64i): New function.
2433 (build_gdbtypes): Initialize builtin_type_vec64 and
2434 builtin_type_vec64i.
2435
a7e3c2ad
AC
24362002-08-09 Andrew Cagney <cagney@redhat.com>
2437
2438 * regcache.c (regcache_dump): Compare the register offset
2439 with REGISTER_BYTE.
2440 * arch-utils.c (generic_register_byte): New function.
2441 * arch-utils.h (generic_register_byte): Declare.
2442 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2443 * gdbarch.h, gdbarch.c: Regenerate.
2444
af030b9a
AC
24452002-08-09 Andrew Cagney <cagney@redhat.com>
2446
2447 * regcache.c: Include "gdbcmd.h"
2448 (_initialize_regcache): Add commands "maintenance print
2449 registers", "maintenance print raw-registers" and "maintenance
2450 print cooked-registers".
2451 (enum regcache_dump_what): Define.
2452 (dump_endian_bytes): New function.
2453 (regcache_dump): New function.
2454 (regcache_print): New function.
2455 (maintenance_print_registers): New function.
2456 (maintenance_print_raw_registers): New function.
2457 (maintenance_print_cooked_registers): New function.
2458 * Makefile.in (regcache.o): Update dependencies.
2459
cb3d25d1
MS
24602002-08-09 Michael Snyder <msnyder@redhat.com>
2461
2462 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2463 (mips_push_arguments): Correct some comments. Use paddr_nz
2464 for printing addresses in debug output. Replace static
2465 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2466 (mips_n32n64_push_arguments): New function, cloned from
2467 mips_push_arguments and tuned for the n32/n64 ABI.
2468 (mips_push_register): Buffer needs dynamic allocation.
2469 (mips_print_register): Ditto.
2470 (do_gp_register_row): Ditto.
2471 (mips_store_return_value): Ditto.
2472 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2473
2163ab9d
DH
24742002-08-09 Don Howard <dhoward@redhat.com>
2475
2476 * memattr.c (mem_info_command): Print special case of upper bound
2477 as max CORE_ADDR + 1.
2478
b78bcb18
MS
24792002-08-08 Michael Snyder <msnyder@redhat.com>
2480
2481 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2482 returns structs by ref if they're too big to fit in two registers.
2483
ffabd70d
KB
24842002-08-09 Kevin Buettner <kevinb@redhat.com>
2485
2486 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2487 saved regs value.
2488 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2489 mips_find_saved_regs().
2490 (mips_pop_frame): Likewise.
2491
fbcdb4a3
KB
24922002-08-09 Kevin Buettner <kevinb@redhat.com>
2493
2494 * blockframe.c (frame_saved_regs_register_unwind): Revise
2495 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2496 frames are in use.
2497
3c3bea1c
GS
24982002-08-09 Grace Sainsbury <graces@redhat.com>
2499
2500 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2501 T-packets; the 'a' is not taken as a register number.
2502 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2503 (remote_stopped_data_address): New functions; add to target
2504 vector.
2505 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2506 prototypes to match other implementations of this
2507 function. replace integer argument with pointer -- the length
2508 field in the Z-packet is the length of what is pointed to or 1 if
2509 pointer is null. Add to target vector.
2510 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2511 target vector.
2512
2513 From Mark Salter:
2514 * remote.c (remote_wait): Add support to extract optional
2515 watchpoint information from T-packet. Ignore unrecognized
2516 optional info in T-packet.
2517 (remote_async_wait): Ditto.
2518
5d1d95de
CV
25192002-08-09 Corinna Vinschen <vinschen@redhat.com>
2520
2521 * cli/cli-dump.c: Change fopen modes to use binary open modes
2522 as defined in include/fopen-bin.h throughout.
2523
c86b5b38
MS
25242002-08-08 Michael Snyder <msnyder@redhat.com>
2525
2526 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2527
b30590dc
KB
25282002-08-08 Kevin Buettner <kevinb@redhat.com>
2529
2530 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2531 assertion failure by returning early after a warning.
2532
498868ed
KB
25332002-08-08 Kevin Buettner <kevinb@redhat.com>
2534
2535 * mips-tdep.c (mips_find_saved_regs): Make static.
2536 (mips_frame_init_saved_regs): New function.
2537 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2538 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2539 (mips_find_saved_regs): Delete declaration.
2540
b2dd6311
GS
25412002-08-08 Grace Sainsbury <graces@redhat.com>
2542
3c3bea1c
GS
2543 * remote.c (remote_wait, remote_async_wait): Change
2544 thread_num from int to ULONGEST.
2545 (unpack_varlen_hex): Change result parameter from
2546 int * to ULONGEST *.
b2dd6311 2547
ea47855f
AC
25482002-08-08 Andrew Cagney <ac131313@redhat.com>
2549
2550 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2551 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2552 powerpc*-*-*.
2553 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2554
69db8bae
AC
25552002-08-08 Andrew Cagney <cagney@redhat.com>
2556
2557 * gcore.c (override_derive_stack_segment): Delete variable.
2558 (preempt_derive_stack_segment): Delete function.
2559 (derive_stack_segment): Delete function.
2560 (default_derive_stack_segment): Renamed to derive_stack_segment.
2561 (override_derive_heap_segment): Delete variable.
2562 (preempt_derive_heap_segment): Delete function.
2563 (derive_heap_segment): Delete function.
2564 (default_derive_heap_segment): Rename to derive_heap_segment.
2565
cb811fe7
MS
25662002-08-06 Michael Snyder <msnyder@redhat.com>
2567
2568 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2569 * mips-tdep.c (mips_EABI_use_struct_convention,
2570 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2571 New functions. (mips_use_struct_convention): Delete.
2572 (mips_gdbarch_init): set use_gdbarch_convention.
2573
8b389c40
MS
25742002-08-06 Michael Snyder <msnyder@redhat.com>
2575
2576 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2577 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2578 mips_o32_reg_struct_has_addr): New functions.
2579 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2580
5c27f28a
AC
25812002-08-07 Andrew Cagney <ac131313@redhat.com>
2582
2583 * regcache.c (pseudo_register): Delete function.
2584 (fetch_register): Delete function.
2585 (store_register): Delete function.
2586 (regcache_raw_read, legacy_read_register_gen): Use
2587 target_fetch_registers instead of fetch_register.
2588 (legacy_write_register_gen, regcache_raw_write): Use
2589 target_store_register instead of store_register.
2590 (write_register_bytes): Ditto.
2591
2592 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2593 (STORE_PSEUDO_REGISTER): Delete.
2594 * gdbarch.h, gdbarch.c: Regenerate.
2595
5b331675
CV
25962002-08-06 Corinna Vinschen <vinschen@redhat.com>
2597
2598 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2599 write dump file binary.
2600
6acdf5c7
MS
26012002-08-05 Michael Snyder <msnyder@redhat.com>
2602
2603 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2604 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2605 (mips_gdbarch_init): Set N32 target to be mips64.
2606
b2f01c35
KB
26072002-08-06 Kevin Buettner <kevinb@redhat.com>
2608
2609 * frame.c (find_saved_register): Break out of loop once saved
2610 register address is found. Don't mention sparc in loop comment
2611 anymore.
2612
63db5580
KB
26132002-08-06 Kevin Buettner <kevinb@redhat.com>
2614
2615 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2616 mips_default_saved_regsize to 8.
2617
5e34e75e
AC
26182002-08-06 Andrew Cagney <ac131313@redhat.com>
2619
2620 * gcore.c: Do not include <sys/procfs.h>.
2621 * Makefile.in (gcore.o): Update dependencies.
2622
eb4c54a2
AC
26232002-08-06 Andrew Cagney <cagney@redhat.com>
2624
2625 * configure.tgt: Make arc-*-* obsolete.
2626 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2627 * MAINTAINERS: Make arc-elf obsolete.
2628 * arc-tdep.c: Make file obsolete.
2629 * config/arc/arc.mt: Ditto.
2630 * config/arc/tm-arc.h: Ditto.
2631
ced15480
TR
26322002-08-05 Theodore A. Roth <troth@verinet.com>
2633
c1bab85b 2634 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2635
b4743822
AC
26362002-08-05 Andrew Cagney <ac131313@redhat.com>
2637
2638 * mcore-tdep.c (mcore_gdbarch_init): Use
2639 generic_unwind_get_saved_register instead of
2640 generic_get_saved_register.
2641 * v850-tdep.c (v850_gdbarch_init): Ditto.
2642 * frv-tdep.c (frv_gdbarch_init): Ditto.
2643 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2644 * s390-tdep.c (s390_gdbarch_init): Ditto.
2645 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2646 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2647 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2648
3956d554
JB
26492002-08-05 Joel Brobecker <brobecker@gnat.com>
2650
2651 * objfiles.h: Add missing #include "symfile.h"
2652
2653 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2654
8249c0d6
AC
26552002-08-04 Andrew Cagney <ac131313@redhat.com>
2656
2657 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2658 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2659 of FIELD_BITSIZE.
2660
b9d14705
DJ
26612002-08-04 Daniel Jacobowitz <drow@mvista.com>
2662
2663 * NEWS: Cleanup and nitpick.
2664
dd73b9bb
AC
26652002-08-03 Andrew Cagney <ac131313@redhat.com>
2666
2667 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2668
043a27f8
AC
26692002-08-03 Andrew Cagney <ac131313@redhat.com>
2670
2671 * Makefile.in (gdbtk-bp.o): Update dependencies.
2672 (gdbtk-register.o): Ditto.
2673 (gdbtk-varobj.o): Ditto.
2674
46ce284d
AC
26752002-08-03 Andrew Cagney <cagney@redhat.com>
2676
2677 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2678 m68hc11_fetch_pseudo_register.
2679 (m68hc11_pseudo_register_write): Replace
2680 m68hc11_store_pseudo_register.
2681 (m68hc11_gdbarch_init): Update.
2682
b66d6d2e
AC
2683Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2684
2685 * gdbarch.sh: Include "gdb_string.h".
2686 * gdbarch.c: Regenerate.
2687
2688 * regcache.c: Include "gdb_string.h".
2689 * ax-general.c: Ditto.
2690 * varobj.c: Ditto.
2691 * std-regs.c: Ditto.
2692 * fbsd-proc.c: Ditto.
2693 * thread.c: Ditto.
2694
2695 * Makefile.in (regcache.o): Update dependencies.
2696 (thread.o, gdbarch.o): Ditto.
2697 (ax-general.o, gdbarch.o): Ditto.
2698 (varobj.o, std-regs.o): Ditto.
2699 (fbsd-proc.o): Specify dependencies.
2700
29e1842b
AC
27012002-08-02 Andrew Cagney <cagney@redhat.com>
2702
2703 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2704 regnum.
2705 (regcache_cooked_write): Ditto.
2706
68365089
AC
27072002-08-02 Andrew Cagney <ac131313@redhat.com>
2708
2709 * regcache.c (regcache_cooked_read): New function.
2710 (regcache_cooked_write): New function.
2711 (read_register_gen): Rewrite using regcache_cooked_read.
2712 (write_register_gen): Rewrite using regcache_cooked_write.
2713
2714 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2715 Declare.
2716
d8124050
AC
27172002-08-02 Andrew Cagney <cagney@redhat.com>
2718
2719 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2720 Replace the architecture methods register_read and register_write.
2721 * gdbarch.h, gdbarch.c: Regenerate.
2722 * regcache.c (init_regcache_descr): Update.
2723 (read_register_gen): Update.
2724 (write_register_gen): Update.
2725 (supply_register): Update comment.
2726
2727 * sh-tdep.c (sh_gdbarch_init): Update.
2728 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2729 `regcache' and `gdbarch' parameters. Make `buffer' a void
2730 pointer. Update code.
2731 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2732 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2733 void pointer. Update code.
2734 (sh64_register_write): Delete.
2735 (sh4_register_read): Delete.
2736 (sh64_register_read): Delete.
2737 (sh4_register_write): Delete.
2738 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2739 void pointer, `to' parameter a void pointer.
2740 (sh_sh64_register_convert_to_raw): Ditto.
2741
a6425924
KB
27422002-08-01 Kevin Buettner <kevinb@redhat.com>
2743
2744 * mips-tdep.c (mips_register_virtual_type): Use architecture
2745 invariant return values.
2746
ff5922b5
AC
27472002-08-01 Andrew Cagney <cagney@redhat.com>
2748
2749 * linux-proc.c: Include "gdb_string.h".
2750 * Makefile.in (linux-proc.o): Update dependency list.
2751
32a6503c
KB
27522002-08-01 Kevin Buettner <kevinb@redhat.com>
2753
2754 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2755 comment.
2756
ccaa32c7
GS
27572002-08-01 Grace Sainsbury <graces@redhat.com>
2758
2759 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2760 to_insert_watchpoint, to_remove_watchpoint,
2761 to_stopped_by_watchpoint, to_stopped_data_address,
2762 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2763 target vecctor. Define their corresponding macros so they call
2764 them.
2765
2766 * target.c: Add default and debug versions of for
2767 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2768 to_insert_watchpoint, to_remove_watchpoint,
2769 to_stopped_by_watchpoint, to_stopped_data_address,
2770 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2771
78fde5f8
KB
27722002-08-01 Kevin Buettner <kevinb@redhat.com>
2773
2774 * mips-tdep.c (mips_register_virtual_type): New function.
2775 (mips_gdbarch_init): Register mips_register_virtual_type()
2776 with gdbarch machinery.
2777 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2778 this file instead of tm-bigmips.h.
2779 (MIPS_REGSIZE): Delete this macro.
2780 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2781 multiarch version in mips-tdep.c will be found.
2782
db034ac5
AC
27832002-08-01 Andrew Cagney <cagney@redhat.com>
2784
2785 * NEWS: Menion that CHILL has been made obsolete.
2786
2787 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2788 * stabsread.c (read_range_type): Ditto.
2789 * gdbtypes.h: Ditto.
2790 * language.c (binop_type_check): Ditto.
2791 (binop_result_type): Ditto.
2792 (integral_type): Ditto.
2793 (character_type): Ditto.
2794 (string_type): Ditto.
2795 (boolean_type): Ditto.
2796 (structured_type): Ditto.
2797 (lang_bool_type): Ditto.
2798 (binop_type_check): Ditto.
2799 * language.h (_LANG_chill): Ditto.
2800 * dwarfread.c (set_cu_language): Ditto.
2801 * dwarfread.c (CHILL_PRODUCER): Ditto.
2802 * dwarfread.c (handle_producer): Ditto.
2803 * expression.h (enum exp_opcode): Ditto.
2804 * eval.c: Ditto for comments.
2805 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2806 * expprint.c (print_subexp): Ditto.
2807 (print_subexp): Ditto.
2808 * valops.c (value_cast): Ditto.
2809 (search_struct_field): Ditto.
2810 * value.h (COERCE_VARYING_ARRAY): Ditto.
2811 * symfile.c (init_filename_language_table): Ditto.
2812 (add_psymbol_with_dem_name_to_list): Ditto.
2813 * valarith.c (value_binop): Ditto.
2814 (value_neg): Ditto.
2815 * valops.c (value_slice): Ditto.
2816 * symtab.h (union language_specific): Ditto.
2817 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2818 (SYMBOL_DEMANGLED_NAME): Ditto.
2819 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2820 * defs.h (enum language): Ditto.
2821 * symtab.c (got_symtab): Ditto.
2822 * utils.c (fprintf_symbol_filtered): Ditto.
2823
2824 * ch-typeprint.c: Make file obsolete.
2825 * ch-valprint.c: Make file obsolete.
2826 * ch-lang.h: Make file obsolete.
2827 * ch-exp.c: Make file obsolete.
2828 * ch-lang.c: Make file obsolete.
2829
2830 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2831 CHILL_LIB.
2832 (TARGET_FLAGS_TO_PASS): Ditto.
2833 (CHILLFLAGS): Obsolete.
2834 (CHILL): Obsolete.
2835 (CHILL_FOR_TARGET): Obsolete.
2836 (CHILL_LIB): Obsolete.
2837 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2838 ch-valprint.c.
2839 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2840 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2841 ch-lang.o.
2842 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2843 targets.
2844
8aaf0b47
JB
28452002-07-31 Joel Brobecker <brobecker@gnat.com>
2846
2847 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2848 This does not change anything at the moment, but will be helpful
2849 later when full Ada support is integrated.
2850
f3a7b3a5
KB
28512002-07-31 Kevin Buettner <kevinb@redhat.com>
2852
2853 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2854 help message.
2855
fb850278
KB
28562002-07-31 Kevin Buettner <kevinb@redhat.com>
2857
2858 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2859 and save it in a local variable. Use variable in later test.
2860
e3bddbfa
KB
28612002-07-31 Kevin Buettner <kevinb@redhat.com>
2862
2863 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2864 test. (Thanks to Daniel Jacobowitz.)
2865
28d169de
KB
28662002-07-31 Kevin Buettner <kevinb@redhat.com>
2867
2868 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2869 (mips_abi_strings): Add "n64".
2870 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2871
7fe7e44e
KB
28722002-07-31 Kevin Buettner <kevinb@redhat.com>
2873
2874 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2875 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2876
c6caf090
KB
28772002-07-31 Kevin Buettner <kevinb@redhat.com>
2878
2879 * utils.c (host_pointer_to_address, address_to_host_pointer):
2880 Use gdb_assert() instead of explicit call to internal_error().
2881
c41669e0
KB
28822002-07-30 Kevin Buettner <kevinb@redhat.com>
2883
2884 * Makefile.in (rs6000-nat.o): Update dependencies.
2885
2886 From Nicholas Duffek:
2887 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2888 (aix-thread.o): New rule.
2889 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2890 * config/powerpc/aix432.mh: New file.
2891
2fda4977
DJ
28922002-07-30 Daniel Jacobowitz <drow@mvista.com>
2893
2894 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2895 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2896 (fetch_core_registers, ppc_linux_supply_gregset)
2897 (ppc_linux_supply_fpregset): New functions.
2898 (ppc_linux_regset_core_fns): New.
2899 (_initialize_ppc_linux_tdep): Call add_core_fns.
2900 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2901 and ppc_linux_supply_gregset.
2902 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2903 (supply_fpregset): Call ppc_linux_supply_fpregset.
2904 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2905 corelow.o.
2906 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2907
729051e6
DJ
29082002-07-30 Daniel Jacobowitz <drow@mvista.com>
2909
2910 * symtab.c (lookup_symbol): Demangle before lowercasing.
2911
5f8a3188
AC
29122002-07-30 Andrew Cagney <ac131313@redhat.com>
2913
2914 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2915 declaration.
2916 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2917 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2918 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2919 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2920 "gdb_string.h".
2921 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2922 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2923 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2924 (avr-tdep.o, mon960-rom.o): Ditto.
2925 (aout_stabs_gnu_h): Define.
2926 (symtab_h): Remove $(gdb_obstack_h).
2927
67f07146
JB
29282002-07-30 Jim Blandy <jimb@redhat.com>
2929
2930 Patch from David Carlton <carlton@math.stanford.edu>:
2931 * gdbinit.in: Move the `dir' commands that add GDB's own source
2932 directory to the search path to the end, so that the `gdb' source
2933 directory will be searched first.
2934
04ea0df1
AC
29352002-07-29 Andrew Cagney <ac131313@redhat.com>
2936
2937 * gdb_obstack.h: New file.
2938 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2939 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2940 * objfiles.h: Include "gdb_obstack.h".
2941 * Makefile.in (gdb_obstack_h): Define.
2942 (symtab_h): Add $(gdb_obstack_h).
2943 (objfiles_h): Add $(gdb_obstack_h).
2944
2945 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2946 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2947 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2948 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2949 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2950 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2951 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2952 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2953
2954 * Makefile.in (bcache.o): Update dependencies.
2955 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2956 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2957 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2958 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2959 (stabsread.o, symfile.o, symmisc.o): Ditto.
2960 (symtab.o, typeprint.o, macroexp.o): Ditto.
2961 (macrotab.o, mdebugread.o): Ditto.
2962 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2963 (coff_ecoff_h, aout_aout64_h): Define.
2964 (aout_stabs_gnu_h, libaout_h): Define.
2965
d138e37a
AC
29662002-07-29 Andrew Cagney <cagney@redhat.com>
2967
2968 * regcache.c (struct regcache_descr): Rename nr_registers to
2969 nr_cooked_registers. Revise comments describing the structure
2970 member fields.
2971 (init_regcache_descr): Update.
2972 (init_legacy_regcache_descr): Update.
2973 (read_register_gen, write_register_gen): When a cooked register in
2974 the raw register range, directly access the value from the raw
2975 register cache.
2976
460e6ec3
AC
29772002-07-29 Andrew Cagney <ac131313@redhat.com>
2978
2979 * z8k-tdep.c: Do not include "obstack.h".
2980 * h8300-tdep.c, h8500-tdep.c: Ditto.
2981 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2982 * valprint.c, v850-tdep.c: Ditto.
2983 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2984 * mn10200-tdep.c: Ditto.
2985
2986 * Makefile.in (z8k-tdep.o): Update dependencies.
2987 (m68hc11-tdep.o, valprint.o): Ditto.
2988 (v850-tdep.o, d10v-tdep.o): Ditto.
2989 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2990 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2991 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2992 (sh_opc_h, gdb_sim_sh_h): Define.
2993 (elf_sh_h, elf_bfd_h): Define.
2994 (opcode_m68hc11_h): Define.
2995 (OPCODES_SRC, OPCODES_DIR): define.
2996 (OPCODES): Use $(OPCODES_DIR).
2997 (gdb_sim_d10v_h): Rename sim_d10v_h.
2998 (gdb_sim_arm_h): Rename sim_arm_h.
2999
790c9cf0
KB
30002002-07-26 Kevin Buettner <kevinb@redhat.com>
3001
3002 * utils.c (host_pointer_to_address, address_to_host_pointer):
3003 Change internal_error() message to indicate function responsible
3004 for the error.
3005
9647fa49
KB
30062002-07-26 Kevin Buettner <kevinb@redhat.com>
3007
3008 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3009 calls to local_hex_string_custom().
3010
dabbe2c0
KB
30112002-07-26 Kevin Buettner <kevinb@redhat.com>
3012
3013 * irix5-nat.c: Move IRIX shared library support from here...
3014 * solib-irix.c: ...to here. Revised substantially to work with
3015 generic solib framework.
3016
b96d0a4e
KB
3017 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3018 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3019 * mips-irix-tdep.c: New file.
3020
313fb2f6
KB
3021 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3022 (mips-irix-tdep.o, solib-irix.o): New rules.
3023 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3024 solib-irix.o.
3025 * config/mips/irix6.mt (TDEPFILES): Likewise.
3026 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3027
ab2eaf26
KB
30282002-07-26 Kevin Buettner <kevinb@redhat.com>
3029
177e4768 3030 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3031 disabled (via ``#if 0'') includes.
3032
7244546a
KB
30332002-07-26 Kevin Buettner <kevinb@redhat.com>
3034
3035 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3036 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3037 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3038 Add support for the fpscr register.
3039 * rs6000-nat.c (regmap, fetch_inferior_registers)
3040 (store_inferior_registers, fetch_core_registers): Likewise.
3041
dd7be90a
KB
30422002-07-26 Kevin Buettner <kevinb@redhat.com>
3043
3044 * rs6000-nat.c (language.h): Include.
3045 (special_regs): Delete this array.
3046 (regmap): New function.
3047 (fetch_register, store_register): Use regmap() to map gdb
3048 register numbers to ptrace register numbers. Also, use
3049 outputs from regmap() to make decisions regarding type of
3050 ptrace() call to make. In particular, don't compare against
3051 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3052 (fetch_inferior_registers, store_inferior_registers): Where
3053 possible, obtain register numbers from tdep struct. Don't
3054 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3055 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3056 (LAST_UISA_SP_REGNUM): Delete.
3057
11bf77db
KB
30582002-07-25 Kevin Buettner <kevinb@redhat.com>
3059
3060 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3061 (fetch_registers, store_register, fetch_core_registers): Don't
3062 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3063 regcache_collect() as appropriate.
3064 (find_toc_address): Format hex address with local_hex_string().
3065
06afebeb
AC
30662002-07-25 Andrew Cagney <ac131313@redhat.com>
3067
3068 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3069 bfd/elf32-frv.c.
3070
8c554d79
TT
30712002-07-24 Tom Tromey <tromey@redhat.com>
3072
3073 * jv-exp.y: Marked all strings with _().
3074 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3075 internal_error.
3076 (MethodInvocation, CastExpression, parse_number, yyerror,
3077 java_type_from_name, push_expression_name, yylex): Typo fixes.
3078
e4c242d9
DJ
30792002-07-24 Daniel Jacobowitz <drow@mvista.com>
3080
3081 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3082 (tee_file_flush, tee_file_write, tee_file_fputs)
3083 (tee_file_isatty): New.
3084 * ui-file.h (tee_file_new): Add prototype.
3085
ebf56fd3
AS
30862002-07-24 Aidan Skinner <aidan@velvet.net>
3087
3088 * ada-lang.c: Change k&r style function definitions to prototyped
3089 form.
3090 * ada-typeprint.c: Change k&r style function definitions to prototyped
3091 form.
3092 * ada-valprint.c: Change k&r style function definitions to prototyped
3093 form.
3094
7fb623f7
AC
30952002-07-24 Andrew Cagney <cagney@redhat.com>
3096
3097 * README: Remove reference to remote-bug.
3098 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3099 remote-bug.c.
3100 (m88k-nat.o): Delete rule.
3101 (m88k-tdep.o): Delete rule.
3102 (remote-bug.o): Delete rule.
3103 * MAINTAINERS: Mark as obsolete.
3104 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3105 * m88k-tdep.c: Make file obsolete.
3106 * config/m88k/m88k.mh: Ditto.
3107 * config/m88k/delta88v4.mh: Ditto.
3108 * config/m88k/delta88v4.mt: Ditto.
3109 * config/m88k/delta88.mt: Ditto.
3110 * config/m88k/delta88.mh: Ditto.
3111 * remote-bug.c: Ditto.
3112 * config/m88k/tm-delta88.h: Ditto.
3113 * config/m88k/nm-delta88v4.h: Ditto.
3114 * config/m88k/xm-delta88.h: Ditto.
3115 * config/m88k/xm-dgux.h: Ditto.
3116 * config/m88k/tm-m88k.h: Ditto.
3117 * config/m88k/nm-m88k.h: Ditto.
3118 * config/m88k/tm-delta88v4.h: Ditto.
3119 * m88k-nat.c: Ditto.
3120 * cxux-nat.c: Ditto.
3121 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3122 and m88*-*-* obsolete.
3123 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3124 m88*-*-* obsolete.
3125
37611a2b
AC
31262002-07-24 Andrew Cagney <cagney@redhat.com>
3127
3128 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3129 constant. Same for local pointer variables.
3130 (extract_signed_integer): Ditto.
3131 * defs.h (extract_unsigned_integer): Update.
3132 (extract_signed_integer): Update.
3133
1aaa5f99
AC
31342002-07-24 Andrew Cagney <cagney@redhat.com>
3135
3136 * regcache.c (regcache_raw_write): Change buf parameter to a
3137 constant void pointer.
3138 (regcache_raw_read): Change buf parameter to a void pointer.
3139 (legacy_write_register_gen): Change myaddr parameter a constant
3140 void pointer.
3141 (supply_register): Change val parameter to a const void pointer.
3142 * regcache.h (regcache_raw_write): Update declaration.
3143 (regcache_raw_read): Update declaration.
3144 (supply_register): Update declaration.
3145
b4f5539f
TT
31462002-07-24 Tom Tromey <tromey@redhat.com>
3147
3148 * defs.h (gdb_readline_wrapper): Declare.
3149 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3150 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3151 * top.c (gdb_readline_wrapper): New function.
3152 (command_line_input): Use it.
3153
0818c12a
AC
31542002-07-24 Andrew Cagney <cagney@redhat.com>
3155
3156 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3157 regcache_read and regcache_write.
3158 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3159 * regcache.c: Update.
3160 * sh-tdep.c (sh64_push_arguments): Update comment.
3161 (sh_pseudo_register_read): Update.
3162 (sh_pseudo_register_write): Update.
3163 (sh4_register_read): Update.
3164 (sh4_register_write): Update.
3165 (sh64_pseudo_register_read): Update.
3166 (sh64_pseudo_register_write): Update.
3167 (sh64_register_read): Update.
3168 (sh64_register_write): Update.
3169 * i386-tdep.c (i386_extract_return_value): Update.
3170 (i386_extract_struct_value_address): Update.
3171 (i386_extract_return_value): Update.
3172 * blockframe.c (generic_read_register_dummy): Update.
3173 (generic_call_dummy_register_unwind): Update
3174 * infrun.c (write_inferior_status_register): Update.
3175
f7321c06
JB
31762002-07-23 Jim Blandy <jimb@redhat.com>
3177
3178 * parser-defs.h (expression_context_pc): Make this extern.
3179 (Thanks to Michael Snyder.)
3180
2037aebb
AC
31812002-07-23 Andrew Cagney <ac131313@redhat.com>
3182
3183 GDB 5.2.1 released from 5.2 branch.
3184 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3185 * README: Update to mention 5.2.1.
3186
66504d44
MS
31872002-07-23 Mark Salter <msalter@redhat.com>
3188
3189 * remote.c (remote_read_bytes): Fix check for error.
3190
27bae383
KB
31912002-07-22 Kevin Buettner <kevinb@redhat.com>
3192
3193 * aix-thread.c (language.h): Include.
3194 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3195 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3196 Print newlines at end of debug messages.
3197 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3198 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3199
32002002-07-22 Kevin Buettner <kevinb@redhat.com>
3201
3202 * aix-thread.c (ppc-tdep.h): Include.
3203 (special_register_p): New function.
3204 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3205 (store_regs_user_thread): Use register number information from
3206 gdbarch_tdep struct instead of hardcoded offsets relative to
3207 FIRST_UISA_SP_REGNUM.
3208 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3209 special_register_p() instead of using FPLAST_REGNUM and
3210 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3211 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3212 will be MQ's register number.
3213
32142002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3215
3216 * aix-thread.c (ops): Rename to aix_thread_ops.
3217 (base_ops): Rename to base_target.
3218 (ops_attach): Rename to aix_thread_attach.
3219 (ops_detach): Rename to aix_thread_detach.
3220 (ops_resume): Rename to aix_thread_detach.
3221 (ops_wait): Rename to aix_thread_wait.
3222 (ops_kill): Rename to aix_thread_kill.
3223 (init_ops): Rename to init_aix_thread_ops.
3224 (ops_fetch_register): Rename to aix_thread_fetch_register.
3225 (ops_store_register): Rename to aix_thread_store_register.
3226 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3227 (ops_thread_alive): Rename to aix_thread_thread_alive.
3228 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3229 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3230 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3231 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3232 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3233 (store_regs_lib): Rename to store_regs_user_thread.
3234 (store_regs_kern): Rename to store_regs_kernel_thread.
3235
27bae383 32362002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3237
3238 * aix-thread.c (ops_prepare_to_store): Eliminate.
3239 (init_ops): Don't initialize ops.prepare_to_store.
3240 (store_regs_kern): Pre-fetch register buffers from child,
3241 because some registers may not be in the cache. Copy
3242 regs from register cache only if they are cached.
3243 (store_regs_lib): Copy regs from register cache only
3244 if they are cached.
3245 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3246 fill_gprs64): Ditto.
3247
61c5da0b
KB
32482002-07-22 Kevin Buettner <kevinb@redhat.com>
3249
3250 * aix-thread.c (gdb_assert.h): Include.
3251 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3252 register sizes (from register cache) match size of buffer holding
3253 register data.
3254 (fill_sprs32): Change parameter types to match those in the ptrace()
3255 buffer.
3256 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3257 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3258
32592002-07-22 Michael Snyder <msnyder@redhat.com>
3260
3261 * aix-thread.c (supply_sprs64): Cosmetic change.
3262 (supply_sprs32): Cosmetic change.
3263 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3264 (fill_sprs64): Use regcache_collect instead of read_register.
3265 (store_regs_lib): Use regcache_collect instead of
3266 read_register. Use fill_sprs32 instead of fill_sprs64,
3267 if debugging a 32-bit architecture.
3268 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3269 out of the register cache, instead of passing a pointer into
3270 the register cache directly to ptrace. Use regcache_collect
3271 insteaad of read_register.
3272 (ops_prepare_to_store): Use target_read_registers instead
3273 of read_register_bytes.
3274
36479eb1
AS
32752002-07-20 Aidan Skinner <aidan@velvet.net>
3276
3277 * MAINTAINERS: Add self under write after approval.
3278
80ae6ee2
AS
32792002-07-20 Aidan Skinner <aidan@velvet.net>
3280
3281 * ada-tasks.c: Change k&r style function definitions to prototyped
3282 form.
3283
8a8ab2b9
AC
32842002-07-19 Andrew Cagney <ac131313@redhat.com>
3285
3286 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3287 * x86-64-tdep.c: Include "objfiles.h".
3288 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3289 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3290
fb16b900
ML
32912002-07-17 Michal Ludvig <michal@suse.cz>
3292
3293 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3294 (update_context): Initialise cfa variable.
3295
0fe7bf7b
MS
32962002-07-17 Michael Snyder <msnyder@redhat.com>
3297
3298 * aix-thread.c: Shorten some long lines.
3299 Bring comments into line with code spec.
3300
488f131b
JB
33012002-07-18 Joel Brobecker <brobecker@gnat.com>
3302
3303 * infrun.c: Re-indent using gdb_indent.sh.
3304
46c415d2
JB
33052002-07-18 Joel Brobecker <brobecker@gnat.com>
3306
3307 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3308 Leave the indentation temporarily untouched, to minimize the diffs.
3309
cdecafbe
EZ
33102002-07-18 Elena Zannoni <ezannoni@redhat.com>
3311
3312 * stabsread.c: Make os9k sections of the code obsolete,
3313 for real this time.
3314 * stabsread.h: Make os9k sections of the code obsolete.
3315
7b6aa020
ML
33162002-07-18 Michal Ludvig <mludvig@suse.cz>
3317
09ec9b38
ML
3318 * linux-low.c (regsets_store_inferior_registers): Add free()
3319 at the end of a loop to prevent memory leak.
3320 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3321 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3322 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3323 line a comment.
4894ac5d 3324 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3325
233282cd
JB
33262002-07-17 Jim Blandy <jimb@redhat.com>
3327
3328 * macrocmd.c (info_macro_command): Remove newline from error
3329 message.
3330
7b6aa020 33312002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3332
3333 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3334 (sh_gdbarch_init): Use it for sh-dsp.
3335
f7ef9339
KB
33362002-07-16 Kevin Buettner <kevinb@redhat.com>
3337
3338 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3339 64-bit DWARF2 format.
3340
8dd72958
JB
33412002-07-16 Joel Brobecker <brobecker@gnat.com>
3342
3343 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3344 <sys/proc.h> when not available.
3345
a99a9e1b
AC
33462002-07-16 Andrew Cagney <ac131313@redhat.com>
3347
3348 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3349 * stabsread.c: Make os9k sections of the code obsolete.
3350 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3351 * config/i386/i386os9k.mt: Make file obsolete.
3352 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3353 (COMMON_OBS): Remove os9kread.o
3354 (SFILES): Remove os9kread.c.
3355 (os9kread.o, remote-os9k.o): Make target obsolete.
3356 * remote-os9k.c: Make file obsolete.
3357 * os9kread.c: Make file obsolete.
3358 * Makefile.in
3359
7a3085c1
AC
33602002-07-16 Andrew Cagney <ac131313@redhat.com>
3361
3362 * NEWS: Mention that the FR30 has been made obsolete.
3363 * fr30-tdep.c: Make file obsolete.
3364 * config/fr30/tm-fr30.h: Ditto.
3365 * config/fr30/fr30.mt: Ditto.
3366 * configure.tgt: Make fr30-*-elf obsolete.
3367 * MAINTAINERS: Make fr30-elf obsolete.
3368
28a93f5a
PM
33692002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3370
3371 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3372 found is not inside a section.
3373
be006b8b
KB
33742002-07-15 Kevin Buettner <kevinb@redhat.com>
3375
3376 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3377 strerror().
3378 (pdc_realloc): Use xrealloc() instead of realloc().
3379
14fa3751
KB
33802002-07-15 Kevin Buettner <kevinb@redhat.com>
3381
3382 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3383 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3384 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3385 macros.
3386
42cc437f
KB
33872002-07-15 Kevin Buettner <kevinb@redhat.com>
3388
3389 * aix-thread.c (ptrace_check): Eliminate goto.
3390 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3391 problem.
3392
8e2c28d4
KB
33932002-07-15 Kevin Buettner <kevinb@redhat.com>
3394
3395 * aix-thread.c (gdbcmd.h): Include.
3396 (DEBUG, DBG, DBG2, dbg): Eliminate.
3397 (debug_aix_thread): New static global.
3398 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3399 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3400 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3401 invocations to DBG and DBG2 macros to test against
3402 ``debug_aix_thread'' and call fprintf_unfiltered().
3403 (_initialize_aix_thread): Add new command "set debug aix-thread".
3404
30413464
AC
34052002-07-15 Andrew Cagney <ac131313@redhat.com>
3406
3407 From Gerhard Tonn <TON@de.ibm.com>:
3408 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3409 instead of supply_register.
3410
7c43edc1
AC
34112002-07-15 Andrew Cagney <ac131313@redhat.com>
3412
3413 * dwarf2cfi.c: Include "gdb_assert.h".
3414 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3415 non-NULL.
3416 (update_context): Do not use __func__. Add missing ``break''.
3417 (update_context): Do not use __func__.
3418
9364a0ef
EZ
34192002-07-15 Elena Zannoni <ezannoni@redhat.com>
3420
3421 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3422 and its setting. Set gdbarch instruction printing functions
3423 directly. For non-rs6000 case use new function
3424 gdb_print_insn_powerpc.
3425 (gdb_print_insn_powerpc): New function.
3426
3fbeef0b
AC
34272002-07-13 Andrew Cagney <ac131313@redhat.com>
3428
92eb23c5 3429 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3430 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3431 * configure.tgt: Mark d30v-*-* as obsolete.
3432 * d30v-tdep.c: Mark file as obsolete.
3433 * config/d30v/d30v.mt: Ditto.
3434 * config/d30v/tm-d30v.h: Ditto.
3435
aacb1f0a
AS
34362002-07-13 Aidan Skinner <aidan@velvet.net>
3437
3438 * ada-tasks.c (add_task_entry): replace calls to
3439 malloc() with xmalloc
3440 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3441
3442 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3443 ada_finish_decode_line_1, all_sals_for_line
3444 ada_breakpoint_rewrite): replace calls to free() with xfree()
3445
c11d79f2
KB
34462002-07-12 Kevin Buettner <kevinb@redhat.com>
3447
3448 From Nicholas Duffek (with minor changes by Martin Hunt,
3449 Louis Hamilton, and Kevin Buettner):
3450 * aix-thread.c: New file.
3451
8e19ed76
PS
34522002-07-12 Petr Sorfa <petrs@caldera.com>
3453
3454 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3455 complaint for invalid attribute class or form.
3456 (read_func_scope): DW_AT_frame_base
3457 better handling of DW_AT_block*.
3458 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3459 better handling of DW_AT_block*.
3460 (read_common_block): DW_AT_location
3461 better handling of DW_AT_block*.
3462 (read_partial_die): DW_AT_location better handling
3463 of DW_AT_block*.
3464 (new_symbol): DW_AT_external better handling of
3465 DW_AT_block*. Proper initialization of variable
3466 "addr".
3467 (attr_form_is_block): New function that returns true
3468 if the attribute's form is of DW_FORM_block*.
3469
295401f7
DJ
34702002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3471
3472 * valops.c (find_method_list): Remove comment about
3473 removed STATIC_MEMFUNCP argument.
3474 (value_find_oload_method_list): Likewise.
3475
e42dc924
KB
34762002-07-12 Kevin Buettner <kevinb@redhat.com>
3477
3478 From Nicholas Duffek:
3479 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3480 target_new_objfile_hook.
3481
6904b546
KB
34822002-07-12 Kevin Buettner <kevinb@redhat.com>
3483
3484 From Nicholas Duffek:
3485 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3486 csect.
3487
53fe9346
AC
34882002-07-12 Andrew Cagney <cagney@redhat.com>
3489
3490 * MAINTAINERS: Mention --enable-sim-build-warnings.
3491 (m68hc11-elf): Disable sim build warnings.
3492 (m32r-elf): Mark as broken obsolete candidate.
3493 (x86_64-linux-gnu): Mark as buildable with -Werror.
3494 (arm-elf): Change -w to ``,'' which enables warnings but not
3495 -Werror.
3496
af5f3db6
AC
34972002-07-12 Andrew Cagney <ac131313@redhat.com>
3498
3499 * bcache.h: Update copyright.
3500 (struct bstring, struct bcache): Move definition to "bcache.c".
3501 Replaced by opaque declaration.
3502 (bcache_xfree): Replace free_bcache.
3503 (bcache_xmalloc, bcache_memory_used): Declare.
3504
3505 * bcache.c: Update copyright.
3506 (struct bstring, struct bcache): Moved to here from "bcache.h".
3507 Update comments.
3508 (bcache_xmalloc, bcache_memory_used): New functions.
3509 (bcache_xfree): Replace function free_bcache.
3510
3511 * Makefile.in (objfiles.o): Add $(bcache_h).
3512 (objfiles_h): Remove $(bcache_h).
3513 (symfile.o): Add $(bcache_h).
3514
3515 * symmisc.c: Update copyright.
3516 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3517 (print_objfile_statistics): Use bcache_memory_used.
3518
3519 * symfile.c: Include "bcache.h".
3520 (reread_symbols): Use bcache_xfree.
3521 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3522 (add_psymbol_to_list): Pass psymbol_cache by value.
3523 (add_psymbol_with_dem_name_to_list): Ditto.
3524
3525 * objfiles.h: Update copyright.
3526 (struct bcache): Declare opaque. Do not include "bcache.h".
3527 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3528 bcache'' pointers.
3529 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3530
3531 * objfiles.c: Include "bcache.h". Update copyright.
3532 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3533 macro_cache.
3534 (free_objfile): Use bcache_xfree.
3535
444199e7
GS
35362002-07-11 Grace Sainsbury <graces@redhat.com>
3537
3538 * monitor.c (monitor_fetch_register): Make name a constant.
3539 (monitor_store_register): Same.
3540
261397f8
DJ
35412002-07-11 Daniel Jacobowitz <drow@mvista.com>
3542
3543 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3544 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3545 (finish_block) For non-function blocks, hash the symbol table. For
3546 function blocks, mark the symbol table as unhashed.
3547 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3548 (msymbol_hash_iw): Likewise.
3549 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3550 value.
3551 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3552 (lookup_minimal_symbol): Likewise for both.
3553 * symtab.h (struct block): Add `hashtable' flag. Comment the
3554 hashtable.
3555 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3556 (ALL_BLOCK_SYMBOLS): Update.
3557 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3558 (struct symbol): Add `hash_next' pointer.
3559 * symtab.c (lookup_block_symbol): Search using the hash table when
3560 possible.
3561 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3562 (search_symbols, find_addr_symbol): Likewise.
3563
3564 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3565 (read_dst_symtab): Likewise.
3566 * jv-lang.c (get_java_class_symtab): Likewise.
3567 * mdebugread.c: Include "gdb_assert.h".
3568 (shrink_block): Assert that the block being modified is not hashed.
3569 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3570 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3571 symbols.
3572 (dump_symtab): Recognize hashed blocks.
3573 * printcmd.c (print_frame_args): Assert that function blocks do not
3574 have hashed symbol tables.
3575 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3576 (fill_in_ada_prototype, debug_print_block): Likewise.
3577 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3578
6f0eaa01
CV
35792002-07-11 Corinna Vinschen <vinschen@redhat.com>
3580
3581 * stack.c (print_frame): Use result of frame_address_in_block()
3582 instead of fi->pc when evaluating symbols.
3583 (backtrace_command_1): Ditto.
3584
a208b0cb
AC
35852002-07-11 Andrew Cagney <cagney@redhat.com>
3586
3587 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3588 Make static.
3589
3590 * arm-tdep.c (arm_register_name): Make return type constant.
3591
a6b6b089
AC
35922002-07-10 Andrew Cagney <ac131313@redhat.com>
3593
5ae5f592
AC
3594 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3595 prototype.
3596 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3597 * s390-tdep.c (s390_fp_regnum): Ditto.
3598 (s390_read_fp): Ditto.
3599 (s390_pop_frame): Ditto.
3600 (_initialize_s390_tdep): Ditto.
3601 * remote.c (get_remote_state): Ditto.
3602 * procfs.c (mappingflags): Ditto.
3603 * memattr.c (_initialize_mem): Ditto.
3604 * mcore-tdep.c (mcore_pop_frame): Ditto.
3605 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3606 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3607 * language.c (set_case_str): Ditto.
3608 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3609 * frv-tdep.c (new_variant): Ditto.
3610 (frv_stopped_data_address): Ditto.
3611 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3612 (context_alloc): Ditto.
3613 (frame_state_alloc): Ditto.
3614 (unwind_tmp_obstack_init): Ditto.
3615 (unwind_tmp_obstack_free): Ditto.
3616 (cfi_read_fp): Ditto.
3617 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3618 (cris_pop_frame): Ditto.
3619 * c-lang.c (scanning_macro_expansion): Ditto.
3620 (finished_macro_expansion): Ditto.
3621 (c_preprocess_and_parse): Ditto.
3622 * gdbarch.sh: Ditto.
3623 * gdbarch.h, gdbarch.c: Regenerate.
3624 * config/mn10200/tm-mn10200.h: Adjust indentation.
3625 * target.c: Adjust indentation.
3626 * symtab.h: Adjust indentation.
3627 * stabsread.h: Adjust indentation.
3628 * remote-es.c: Adjust indentation.
3629 * os9kread.c: Adjust indentation.
3630
36312002-07-10 Andrew Cagney <ac131313@redhat.com>
3632
a6b6b089
AC
3633 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3634 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3635
a1789893
GS
36362002-07-10 Grace Sainsbury <graces@redhat.com>
3637
3638 * NEWS: Mention m68k, mcore multi-arching.
3639 * MAINTAINERS: Change status of m68k, mcore to reflect
3640 multi-arching.
3641
02f0d45d
DJ
36422002-07-10 Daniel Jacobowitz <drow@mvista.com>
3643
3644 * valops.c (find_overload_match): Free oload_syms.
3645
f15f768e
JB
36462002-07-09 Joel Brobecker <brobecker@gnat.com>
3647
3648 Define HAVE_SYS_PROC_H if sys/proc.h exists
3649 * configure.in: Add check for sys/proc.h
3650 * config.in: Regenerate.
3651 * configure: Regenerate.
3652
902a7139
GS
36532002-07-09 Grace Sainsbury <graces@redhat.com>
3654
3655 * config/m68k/tm-m68k.h: Remove macros wrapped in
3656 #if !GDB_MULTI_ARCH.
3657
a534e424
AC
36582002-07-08 Andrew Cagney <ac131313@redhat.com>
3659
3660 * config.in, configure: Regenerate.
3661
9b94f7bf
MK
36622002-07-08 Mark Kettenis <kettenis@gnu.org>
3663
3664 * dwarf2cfi.c: Include "gcore.h".
3665 (execute_stack_op): Fix implementation of the
3666 DW_OP_deref and DW_OP_deref_size operators by letting do their
3667 lookup in the target.
3668
1d34db41
MK
36692002-07-07 Mark Kettenis <kettenis@gnu.org>
3670
3671 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3672 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3673 tdep->sc_sp_offset.
3674
79d5b63a
DJ
36752002-07-05 Daniel Jacobowitz <drow@mvista.com>
3676
3677 Fix PR gdb/595, gdb/602
3678 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3679 Don't call value_cast, just read the vtable pointer; update comments
3680 to match.
3681
3bb912e8
GS
36822002-07-05 Grace Sainsbury <graces@redhat.com>
3683
3684 * config/mcore/tm-mcore.h: Remove file.
3685 * config/mcore/mcore.mt: Remove definition of TM_FILE
3686 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3687
ca39387d
MK
36882002-07-05 Mark Kettenis <kettenis@gnu.org>
3689
3690 * i386bsd-tdep.c: Include "gdb_string.h".
3691
efdc1108
GS
36922002-07-04 Grace Sainsbury <graces@redhat.com>
3693
3694 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3695 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3696 mcore-tdep.
3697 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3698 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3699 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3700 (RETVAL_REGNUM): Move macros from tm-mcore.h
3701 (mcore_reg_struct_has_addr): New function.
3702 (mcore_gdbarch_init): Added initializations for the macros removed
3703 from tm-mcore.h.
3704
bb21884d
MK
37052002-07-04 Mark Kettenis <kettenis@gnu.org>
3706
3707 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3708 traditonal string branding within the ELF header.
3709
228c6d41
DJ
37102002-07-04 Daniel Jacobowitz <drow@mvista.com>
3711
3712 * symtab.c (remove_params): New function.
3713 (make_symbol_overload_list): Use it instead of cplus_demangle.
3714 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3715
2404952e
MK
37162002-07-04 Mark Kettenis <kettenis@gnu.org>
3717
e5e4acad
MK
3718 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3719
baadce09
MK
3720 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3721 New variables.
3722 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3723 and tdep->sigtramp_end.
3724 * i386obsd-nat.c: New file.
3725 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3726
2404952e
MK
3727 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3728 Don't call get_current_frame().
3729
9b4f1ba7
PM
37302002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3731
3732 * i386-nat.c (child_post_startup_inferior): New function
3733 calling i386_cleanup_dregs if
3734 I386_USE_GENERIC_WATCHPOINTS is defined.
3735 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3736 conditional to acknowledge that i386-nat.c has its
3737 own child_post_startup_inferior function.
3738
c0d1d883
MK
37392002-07-04 Mark Kettenis <kettenis@gnu.org>
3740
00f8375e
MK
3741 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3742 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3743 instead of MAX_REGISTER_RAW_SIZE.
3744 (i386_extract_return_value, i386_extract_struct_value_address):
3745 Convert to use regcache.
3746 (i386_gdbarch_init): Set max_register_raw_size and
3747 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3748 Set extract_return_value and extract_struct_value_address instead
3749 of their deprecated variants.
3750
c0d1d883
MK
3751 Convert i386 target to generic dummy frames.
3752 * i386-tdep.c: Include "symfile.h".
3753 (i386_frameless_signal_p): Consider a function to be frameless if
3754 the pc points at the first instruction of the function.
3755 (i386_frame_chain): Handle (generic) call dummies.
3756 (i386_frame_saved_pc): Likewise.
3757 (i386_frame_init_saved_regs): Remove code dealing with call
3758 dummies on the stack.
3759 (i386_push_dummy_frame): Removed.
3760 (i386_call_dummy_words): Removed.
3761 (i386_fix_call_dummy): Removed.
3762 (i386_push_return_address): New function.
3763 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3764 parameter, and don't call get_current_frame.
3765 (i386_pop_frame): New function.
3766 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3767 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3768 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3769 call_dummy_length to 0, set call_dummy_words to NULL, set
3770 sizeof_call_dummy_words to 0, set fix_call_dummy to
3771 generic_fix_call_dummy, set pc_in_call_dummy to
3772 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3773 generic_push_dummy_frame, set push_return_address to
3774 i386_push_return_address and set frame_chain_valid to
3775 generic_file_frame_chain_valid.
3776
049ee0e4
AC
37772002-07-03 Andrew Cagney <ac131313@redhat.com>
3778
3779 * gdbarch.sh (struct regcache): Add opaque declaration.
3780 (EXTRACT_RETURN_VALUE): New architecture method.
3781 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3782 * gdbarch.h, gdbarch.c: Regenerate.
3783 * arch-utils.c (legacy_extract_return_value): New function.
3784 * arch-utils.h (legacy_extract_return_value): Declare.
3785 * values.c (value_being_returned): Re-enable code handling
3786 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3787 deprecated_grub_regcache_for_registers call to block handling
3788 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3789 (EXTRACT_RETURN_VALUE): Do not define.
3790
4e0d9804
GS
37912002-07-03 Grace Sainsbury <graces@redhat.com>
3792
3793 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3794 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3795 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3796 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3797 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3798 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3799 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3800 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3801 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3802 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3803 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3804 argument so the function fits the prototype in the architecture
3805 vector.
3806 (mcore_pop_frame): Remove argument so the function fits the
3807 prototype. Use get_current_frame instead of the argument.
3808 (mcore_push_arguments): Change type of struct_return so the
3809 function can be used in the architecture vector.
3810 (mcore_store_struct_return): Add.
3811 (mcore_frame_init_saved_regs): Add.
3812 (mcore_gdbarch_init): Add function calls to replace the macros
3813 removed from tm-mcore.h
3814
36160dc4
AC
38152002-07-03 Andrew Cagney <ac131313@redhat.com>
3816
3817 * infcmd.c (print_return_value): Remove compatibility code calling
3818 deprecated_grub_regcache_for_registers.
3819
3820 * values.c: Include "regcache.h".
3821 (value_being_returned): Update. Use
3822 deprecated_grub_regcache_for_registers to extract the register
3823 buffer address.
3824 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3825 ``struct regcache''.
3826 * Makefile.in (values.o): Add dependency on $(regcache_h).
3827
3828 * inferior.h (run_stack_dummy): Change type of second parameter to
3829 a ``struct regcache''.
3830 * valops.c (hand_function_call): Change type of retbuf to ``struct
3831 regcache''. Allocate using regcache_xmalloc, clean using
3832 make_cleanup_regcache_xfree.
3833 * infcmd.c (run_stack_dummy): Update. Use
3834 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3835
3836 * regcache.c (do_regcache_xfree): New function.
3837 (make_cleanup_regcache_xfree): New function.
3838 * regcache.h (make_cleanup_regcache_xfree): Declare.
3839
e64d9b3d
MH
38402002-07-03 Martin M. Hunt <hunt@redhat.com>
3841
4dd79c29
MH
3842 * event-top.c (command_line_handler): Don't read past
3843 beginning of buffer.
e64d9b3d 3844
4dd79c29
MH
38452002-07-03 Martin M. Hunt <hunt@redhat.com>
3846
e64d9b3d
MH
3847 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3848 struct frame_id.
3849 (varobj_create): Store frame_id for root.
3850 (varobj_gen_name): Use xasprintf.
3851 (varobj_update): Save and restore frame using get_frame_id() and
3852 frame_find_by_id().
3853 (create_child): Use xasprintf.
3854 (new_root_variable): Initialize frame_id.
3855 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3856 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3857 to prevent memory leak.
3858
26e6c56a
AC
38592002-07-03 Andrew Cagney <ac131313@redhat.com>
3860
3861 * valops.c (hand_function_call): Move declaration of retbuf to
3862 start of function, allocate using malloc, add a cleanup but before
3863 the inf_status cleanup, cleanup the buffer. Rename local variable
3864 old_chain to inf_status_cleanup.
3865
f436dd25
MH
38662002-07-03 Martin M. Hunt <hunt@redhat.com>
3867
3868 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3869
3870 * cli/cli-decode.c (cmd_func_p): New function.
3871 (cmd_func): New function.
3872
3873 * command.h: Add cmd_func() and cmd_func_p().
3874
4cfe2084
GS
38752002-07-03 Grace Sainsbury <graces@redhat.com>
3876
3877 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3878 (REGISTER_SIZE): Remove.
3879 (MAX_REGISTER_RAW_SIZE): Remove.
3880 (REGISTER_VIRTUAL_TYPE): Remove.
3881 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3882 (REGISTER_NAME): Remove.
3883 (USE_GENERIC_DUMMY_FRAMES): Remove.
3884 (CALL_DUMMY): Remove.
3885 (CALL_DUMMY_START_OFFSET): Remove.
3886 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3887 (CALL_DUMMY_LOCATION): Remove.
3888 (FIX_CALL_DUMMY): Remove.
3889 (CALL_DUMMY_ADDRESS): Remove.
3890 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3891 (SAVE_DUMMY_FRAME_TOS): Remove.
3892 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3893 (mcore_register_virtual_type): New function.
3894 (mcore_register_byte): New function.
3895 (mcore_register_size): New function.
3896 (mcore_register_name): New function.
3897 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3898 macros removed from tm-mcore.h.
3899 (mcore_dump_tdep): Add.
3900 (_initialize_mcore_tdep): Add gdbarch_register call.
3901
4fd667e9
MK
39022002-07-03 Mark Kettenis <kettenis@gnu.org>
3903
3904 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3905 frameless_look_for_prologue, such that we actually call this
3906 function.
3907
42f99ac2
JB
39082002-07-02 Joel Brobecker <brobecker@gnat.com>
3909
3910 * frame.h (frame_address_in_block): New function.
3911
3912 * blockframe.c (frame_address_in_block): New function extracted
3913 from get_frame_block().
3914 (get_frame_block): Use frame_address_in_block().
3915 (block_innermost_frame): Use frame_address_in_block() to match
3916 the frame pc address against the block boundaries rather than
3917 the frame pc directly. This prevents a failure when a frame pc
3918 is actually a return-address pointing immediately after the end
3919 of the given block.
3920
103a1597 39212002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3922
3923 * MAINTAINERS: Add self under write after approval.
3924
39252002-07-02 Grace Sainsbury <graces@redhat.com>
3926
103a1597
GS
3927 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3928 used in architecture vector. The default is
3929 m68k_local_breakpoint_from_pc.
3930 (m68k_local_breakpoint_from_pc): Add.
3931 (enum): Add register numbers from tm-m68k.h.
3932 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3933 vector.
3934 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3935 GDB_MULTI_ARCH_PARTIAL.
3936 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3937 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3938 m68k-tdep.c.
3939 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3940 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3941 to enum in m68k-tdep.c
3942
7a5a0534
JB
39432002-07-02 Joel Brobecker <brobecker@gnat.com>
3944
3945 * solib-osf.c (open_map): Compute the list of shared libraries
3946 loaded by the inferior, rather than the list of libraries loaded
3947 by GDB itself. Otherwise, GDB ends up reading the symbols from
3948 the wrong shared libraries...
3949
6f558d74
MK
39502002-07-02 Mark Kettenis <kettenis@gnu.org>
3951
b7d15bf7
MK
3952 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3953 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3954 macros.
3955 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3956 Remove functions.
3957 (FRAMELESS_SIGNAL): Remove function.
3958 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3959 i386_linux_saved_pc_after_call): Removed.
3960 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3961 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3962 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3963
6bff26de
MK
3964 * i386-tdep.c (i386_frameless_signal_p): New function.
3965 (i386_frame_chain): Deal with frameless signals.
3966 (i386_sigtramp_saved_sp): New function.
3967 (i386_frame_saved_pc): Deal with frameless signals.
3968 (i386_saved_pc_after_call): Make sure the correct value is
3969 returned just after entry into a sigtramp.
3970 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3971 i386fbsd4_sc_sp_offset): New variables.
3972 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3973 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3974 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3975 similiar to what we already did for sc_pc_offset.
3976 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3977 tdep->sc_sp_offset.
3978
6f558d74
MK
3979 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3980
145564b7
ML
39812002-07-02 Michal Ludvig <mludvig@suse.cz>
3982
3983 * config/i386/tm-x86-64linux.h: New.
3984 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3985 definitions.
3986 * config/i386/nm-x86-64.h: Rename to ...
3987 * config/i386/nm-x86-64linux.h: ... this one.
3988 * config/i386/x86-64linux.mh: Reflect the above change.
3989
3a1e71e3
MK
39902002-07-01 Mark Kettenis <kettenis@gnu.org>
3991
21d0e8a4
MK
3992 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3993 with sigcontext_addr. Add sc_sp_offset.
3994 (i386bsd_sigtramp_saved_pc): Remove prototype.
3995 (i386bsd_sicontext_addr): Add prototype.
3996 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3997 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3998 (i386_svr4_sigtramp_saved_pc): Removed.
3999 (i386_svr4_sigcontext_addr): New function.
4000 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4001 Initialize tdep->sigcontext_addr instead. Initialize
4002 tdep->sc_pc_offset and tdep->sc_sp_offset.
4003 (i386_gdbarch_init): Likewise.
4004 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4005 any more.
4006 (i386bsd_sigtramp_saved_pc): Remove function.
4007 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4008 Initialize tdep->sigcontext_addr instead. Initialize
4009 tdep->sc_pc_offset.
4010 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4011 of tdep->sigtramp_saved_pc.
4012 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4013 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4014 instead.
4015
3a1e71e3
MK
4016 * i386-tdep.c (i386_frameless_function_invocation,
4017 i386_frame_num_args, i386_frame_init_saved_regs,
4018 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4019 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4020 i386_extract_return_value, i386_store_return_value,
4021 i386_extract_struct_value_address, i386_register_virtual_type,
4022 i386_register_convertible, i386_register_convert_to_virtual,
4023 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4024 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4025 static.
4026
52e9098c
MK
40272002-07-01 Mark Kettenis <kettenis@gnu.org>
4028
77b13a25
MK
4029 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4030
52e9098c
MK
4031 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4032 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4033 this macro. Include "value.h".
4034
1b372fff
AS
40352002-06-30 Aidan Skinner <aidan@velvet.net>
4036
4037 * ada-exp.tab.c: remove as it's a generated file
4038 * ada-lex.c: remove as it's a generated file
4039
9c5045b5
MK
40402002-06-30 Mark Kettenis <kettenis@gnu.org>
4041
4a93c5bb
MK
4042 * config/i386/tm-i386.h (struct frame_info, struct
4043 frame_saved_regs, struct value, struct type): Remove forward
4044 declarations.
4045
322d4fe0
MK
4046 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4047 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4048 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4049 (FILL_FPXREGSET): Define.
4050
fdd8263d
MK
4051 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4052
482e577b
MK
4053 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4054 i[3456]86-*-netbsd* case.
4055 * config/i386/tm-obsd.h: Removed.
4056 * config/i386/obsd.mt: Removed.
4057 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4058 core-aout.o.
4059 (MH_CFLAGS): Add -DYYDEBUG=0.
4060
6916549a
MK
4061 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4062 i386nbsd_sc_pc_offset on OpenBSD too.
4063
9c5045b5
MK
4064 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4065 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4066 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4067 define.
4068 * i386bsd-tdep.c: Include "arch-utils.h".
4069 (i386bsd_aout_in_solib_call_trampoline): New function.
4070 (i386bsd_init_abi): Set in_solib_call_trampoline to
4071 i386bsd_aout_in_solib_call_trampoline.
4072 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4073 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4074
aa84d1bb
AC
40752002-06-28 Andrew Cagney <ac131313@redhat.com>
4076
4077 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4078 (struct obstack, struct bcache): Add opaque declarations.
4079 * Makefile.in (macrotab_h): Update
4080
b4d83933
AC
40812002-06-28 Andrew Cagney <ac131313@redhat.com>
4082
4083 * blockframe.c (generic_find_dummy_frame): Change return type to
4084 ``struct regcache''.
4085 (struct dummy_frame): Replace field ``registers'' with regcache, a
4086 struct regcache object.
4087 (generic_find_dummy_frame): Update.
4088 (generic_push_dummy_frame): Update. Use regcache_xfree,
4089 regcache_xmalloc and regcache_cpy.
4090 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4091 regcache_xfree.
4092 (deprecated_generic_find_dummy_frame): Update.
4093 (generic_read_register_dummy): Update. Use
4094 regcache_read_as_address.
4095 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4096 (generic_get_saved_register): Update. Use regcache_read.
4097
08c0b5bc
AC
40982002-06-28 Andrew Cagney <ac131313@redhat.com>
4099
4100 * Makefile.in (objfiles_h): Add $(bcache_h).
4101 * objfiles.h: Include "bcache.h".
4102
4103 * Makefile.in (symtab_h): Remove $(bcache_h).
4104 * symtab.h: Do not include "bcache.h".
4105
1f89801a
AC
41062002-06-28 Andrew Cagney <ac131313@redhat.com>
4107
4108 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4109 generic_func_frame_chain_valid.
4110
b9644b58
DB
41112002-06-28 David O'Brien <obrien@FreeBSD.org>
4112
4113 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4114 * config/i386/tm-fbsd.h: Likewise.
4115
dd486634
AC
41162002-06-28 Andrew Cagney <ac131313@redhat.com>
4117
4118 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4119 generic_unwind_get_saved_register.
4120
0b434a00
AC
41212002-06-27 Andrew Cagney <ac131313@redhat.com>
4122
4123 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4124 * regcache.c (supply_register): Add missing argument to
4125 register_buffer call.
4126
f30e5a77
AC
41272002-06-27 Andrew Cagney <ac131313@redhat.com>
4128
4129 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4130 Solaris /bin/grep does not not like it. From Peter Schauer.
4131
9f064c95
TT
41322002-06-26 Tom Tromey <tromey@redhat.com>
4133
4134 * command.h (add_setshow_cmd): Declare.
4135 (add_setshow_cmd_full): Declare.
4136 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4137 returns void. Use add_setshow_cmd_full.
4138 (add_setshow_cmd_full): New function.
4139 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4140 (add_setshow_boolean_cmd): Likewise.
4141
099c7589
JT
41422002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4143
4144 * config/vax/tm-vax.h: Protect from multiple inclusion.
4145 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4146 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4147 * config/vax/tm-vaxbsd.h: ...here. New file.
4148 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4149
1d049c5e
JT
41502002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4151
4152 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4153 (BELIEVE_PCC_PROMOTION): Remove.
4154 (AP_REGNUM): Move to...
4155 * config/vax/nm-vax.h: ...here.
4156 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4157 (vax_breakpoint_from_pc): New function.
4158 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4159 and gdbarch_believe_pcc_promotion.
4160
4791e091
JT
41612002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4162
4163 * Makefile.in (vax_tdep_h): Define.
4164 (vax-tdep.o): Use $(vax_tdep_h).
4165 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4166 (vax_dump_tdep): New function.
4167 (_initialize_vax_tdep): Register vax_dump_tdep.
4168 * vax-tdep.h: Include osabi.h.
4169 (struct gdbarch_tdep): New.
4170
da130f98
AC
41712002-06-26 Andrew Cagney <cagney@redhat.com>
4172
4173 * frame.h (deprecated_generic_find_dummy_frame): Rename
4174 generic_find_dummy_frame.
4175 * blockframe.c (generic_find_dummy_frame): Make static.
4176 (deprecated_generic_find_dummy_frame): New function.
4177 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4178 generic_find_dummy_frame with deprecated_find_dummy_frame.
4179 (sh64_nofp_frame_init_saved_regs): Ditto.
4180 (sh_fp_frame_init_saved_regs): Ditto.
4181 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4182 (s390_frame_chain): Ditto.
4183 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4184
6300c360
GS
41852002-06-26 Grace Sainsbury <graces@redhat.com>
4186
4187 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4188 gdbarch vector are at the top.
4189 (NUM_REGS): Remove.
4190 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4191 (FRAME_ARGS_ADDRESS): Remove.
4192 (FRAME_LOCALS_ADDRESS): Remove.
4193 (FRAME_NUM_ARGS): Remove.
4194 (FRAME_ARGS_SKIP): Remove.
4195 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4196 (m68k_gdbarch_init): Add gdbarch initializations for macros
4197 undefined in tm-m68k.h
4198
1c617db8
GS
41992002-06-26 Grace Sainsbury <graces@redhat.com>
4200
4201 * monitor.h: Add the function regname to monitor_ops
4202 structure. This way NUM_REGS does not have to be a constant.
4203 * monitor.c (monitor_fetch_register): Added support for regname
4204 function. The function is called if the array regnames is NULL.
4205 (monitor_store_register): Same.
da130f98
AC
4206 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4207 regnames array.
1c617db8
GS
4208 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4209 cpu32bug_cmds.regname to point to new function.
4210 * abug-rom.c (abug_regname): Same as above.
4211 (init_abug_cmds): Same.
4212 * dbug-rom.c (dbug_regname): Same as above.
4213 (init_dbug_cmds): Same.
4214 * remote-est.c (est_regname): Same.
4215 (init_est_cmds): Same.
4216 * rom68k-rom.c (rom68k_regname): Same.
4217 (init_rom68k_cmds): Same.
4218
ea9365bb
TT
42192002-06-25 Tom Tromey <tromey@redhat.com>
4220
4221 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4222
72cec141
AC
42232002-06-25 Andrew Cagney <cagney@redhat.com>
4224
4225 * infrun.c (stop_registers): Change variable's type to ``struct
4226 regcache'''.
4227 (xmalloc_inferior_status): Delete function.
4228 (free_inferior_status): Delete function.
4229 (normal_stop): Use regcache_cpy.
4230 (struct inferior_status): Change type of fields ``stop_registers''
4231 and ``registers'' to ``struct regcache''.
4232 (write_inferior_status_register): Use regcache_write.
4233 (save_inferior_status): Instead of calling
4234 xmalloc_inferior_status, allocate the inf_status buffer directly.
4235 Use regcache_dup_no_passthrough and regcache_dup to save the
4236 buffers.
4237 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4238 Replace the stop_registers regcache instead of overriding it. Use
4239 regcache_xfree. Instead of calling free_inferior_status, xfree
4240 the buffer directly.
4241 (discard_inferior_status): Use regcache_xfree. Instead of calling
4242 free_inferior_status, xfree the buffer directly.
4243 (build_infrun): Use regcache_xmalloc.
4244 (_initialize_infrun): Delete redundant call to build_infrun.
4245
4246 * Makefile.in (infcmd.o): Add $(regcache_h).
4247
4248 * infcmd.c: Include "regcache.h".
4249 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4250 obtain the address of `stop_registers' register buffer.
4251 (print_return_value): Ditto.
4252
4253 * inferior.h (struct regcache): Add opaque declaration.
4254 (stop_registers): Change variable's declared type to ``struct
4255 regcache''.
4256
defc6f8c
TT
42572002-06-24 Tom Tromey <tromey@redhat.com>
4258
c0e624e7
TT
4259 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4260 * target.c (initialize_targets): Fixed typo in
4261 trust-readonly-sections `show' documentation.
4262
defc6f8c
TT
4263 * main.c: Marked all strings with _().
4264
2b236d82
DH
42652002-06-24 Don Howard <dhoward@redhat.com>
4266
4267 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4268 that means max CORE_ADDR+1.
4269 (lookup_mem_region): Ditto.
4270 (mem_info_command): Ditto.
4271
942dc0e9
GS
42722002-06-24 Grace Sainsbury <graces@redhat.com>
4273
4274 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4275 (REGISTER_BYTES_OK): Remove.
4276 (REGISTER_BYTES): Remove.
4277 (STORE_STRUCT_RETURN): Remove.
4278 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4279 (STORE_RETURN_VALUE): Remove.
4280 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4281 (FRAME_CHAIN): Remove.
4282 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4283 (FRAME_SAVED_PC): Remove.
4284 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4285 (m68k_store_struct_return): Add.
4286 (m68k_deprecated_extract_return_value): Add.
4287 (m68k_deprecated_extract_struct_value_address): Add.
4288 (m68k_store_return_value): Add.
4289 (m68k_frame_chain): Add.
4290 (m68k_frameless_function_invocation): Add.
4291 (m68k_frame_saved_pc): Add.
4292 (m68k_gdbarch_init): added set_gdbarch calls for new
4293 functions and deleted macros.
4294
03c30d4d
TT
42952002-06-23 Tom Tromey <tromey@redhat.com>
4296
4297 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4298 (ALLDEPFILES): Likewise.
4299 (udiheaders): Removed.
4300 (udip2soc.o): Likewise.
4301 (udi2go32.o): Likewise.
4302 (udr.o): Likewise.
4303 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4304
37e71372
AC
43052002-06-22 Andrew Cagney <ac131313@redhat.com>
4306
06a6ac57
AC
4307 * infrun.c (_initialize_infrun): Delete unnecessary call to
4308 build_infrun.
4309
37e71372
AC
4310 * regcache.h: Update comments describing the regcache_cpy family
4311 of functions.
4312 (regcache_save, regcache_restore): Delete declaration.
4313 (regcache_save_no_passthrough): Delete declaration.
4314 (regcache_restore_no_passthrough): Delete declaration.
4315 * regcache.c (regcache_save): Delete function.
4316 (regcache_save_no_passthrough): Delete function.
4317 (regcache_restore): Delete function.
4318 (regcache_restore_no_passthrough): Delete function.
4319
78f6d055
AC
43202002-06-21 Andrew Cagney <ac131313@redhat.com>
4321
4322 * config/m68k/tm-m68k.h: Fix typo.
4323 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4324 (m68k_frame_init_saved_regs): Declare.
4325
78b119cb
JB
43262002-06-21 Jim Blandy <jimb@redhat.com>
4327
4328 Remove some vestiges of Harris 88k support.
4329 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4330 register numbering quirk.
4331 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4332 odd symbols occurring in Harris 88k ELF targets.
4333
0fbb3da7
TT
43342002-06-21 Tom Tromey <tromey@redhat.com>
4335
4336 * gdb_locale.h: New file.
4337 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4338 (defs_h): Added gdb_locale.h.
4339 * configure, config.in: Rebuilt.
4340 * configure.in (PACKAGE): Define.
4341 * defs.h: Include gdb_locale.h.
4342 * main.c (captured_main): Call setlocale, bindtextdomain,
4343 textdomain.
4344
456f8b9d
DB
43452002-06-21 Dave Brolley <brolley@redhat.com>
4346
4347 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4348 * config/frv/frv.mt: New file.
4349 * config/frv/tm-frv.h: New file.
4350 * configure.tgt: Support frv-*-*.
4351 * Makefile.in (frv-tdep.o): New target.
4352 * frv-tdep.c: New file.
4353 * NEWS: Mention frv.
4354
cdd463f9
DB
43552002-06-21 Dave Brolley <brolley@redhat.com>
4356
4357 * MAINTAINERS: Add self to "Write After Approval" list.
4358
5d3ed2e3
GS
43592002-06-21 Grace Sainsbury <graces@redhat.com>
4360
4361 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4362 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4363 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4364 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4365 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4366
4367 * m68k-tdep.c: Include arch-utils.h
4368 (m68k_register_raw_size): Add.
4369 (m68k_register_virtual_size): Add.
4370 (m68k_register_virtual_type): Add.
4371 (m68k_register_name): Add.
4372 (m68k_stack_align): Add.
4373 (m68k_register_byte): Add.
4374 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4375 tm-m68k.h.
4376
7f8e7424
GS
43772002-06-21 Grace Sainsbury <graces@redhat.com>
4378
a2c6a6d5 4379 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4380 m68k_find_saved_regs.
4381 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4382 references to it with frame->saved_regs.
7f8e7424
GS
4383 (m68k_gdbarch_init): Added function calls to initialize the
4384 gdbarch structure.
a2c6a6d5
GS
4385 (m68k_fix_call_dummy): Add.
4386 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4387 (CALL_DUMMY): Remove.
4388 (CALL_DUMMY_LENGTH): Remove.
4389 (CALL_DUMMY_START_OFFSET): Remove.
4390 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4391 (FIX_CALL_DUMMY): Remove.
4392 (PUSH_DUMMY_FRAME): Remove.
4393 (POP_FRAME): Remove.
7f8e7424 4394
f461f5cf
PM
43952002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4396
4397 * parse.c (parse_fprintf): New function used to avoid calls to
4398 fprintf in bison parser generated debug code.
4399 * parser-defs.h: Declaration of new parse_fprintf function.
4400 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4401 Set YYDEBUG to 1 by default.
4402 Set YYFPRINTF as parse_fprintf.
4403
7f0c12ed
ML
44042002-06-21 Michal Ludvig <mludvig@suse.cz>
4405
4406 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4407 encoding anymore.
4408 (pointer_encoding, enum ptr_encoding): New.
4409 (execute_cfa_program): Take care about pointer encoding.
4410 (dwarf2_build_frame_info): Only call parse_frame_info for
4411 .debug_frame and .eh_frame.
4412 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4413 fixed augmentation handling, added relative addressing,
4414 ignore duplicate FDEs. Added comments.
19d833a2 4415 * dwarf2cfi.c: Reindented.
7f0c12ed 4416
87c4a039
EZ
44172002-06-20 Elena Zannoni <ezannoni@redhat.com>
4418
4419 * event-top.c (command_handler): Don't use space_at_cmd_start
4420 unless there is sbrk() on the host. Assign time and space data
4421 to union fields of the appropriate length.
4422
1cf877ad
ML
44232002-06-20 Michal Ludvig <mludvig@suse.cz>
4424
4425 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4426 x86_64_register_name. Return type changed to 'const char *'.
4427 (x86_64_register_name2nr): Rename to x86_64_register_number.
4428 (x86_64_gdbarch_init): Update to reflect the change.
4429 * x86-64-tdep.h: Ditto.
4430 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4431 (supply_fpregset): Ditto.
4432
3fadccb3
AC
44332002-06-19 Andrew Cagney <cagney@redhat.com>
4434
4435 * regcache.h: Update copyright.
4436 (struct regcache, struct gdbarch): Add opaque declarations.
4437 (current_regcache): Declare global variable.
4438 (regcache_read, regcache_write): Add gdbarch parameter.
4439 (regcache_save, regcache_save_no_passthrough)
4440 (regcache_restore, regcache_restore_no_passthrough)
4441 (regcache_dup, regcache_dup_no_passthrough)
4442 (regcache_cpy, regcache_cpy_no_passthrough)
4443 (deprecated_grub_regcache_for_registers)
4444 (deprecated_grub_regcache_for_register_valid)
4445 (regcache_valid_p): Add function declarations.
4446
4447 * regcache.c: Update copyright.
4448 (regcache_descr_handle): New global variable.
4449 (struct regcache_descr): Define.
4450 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4451 (regcache_descr, xfree_regcache_descr): New functions.
4452 (struct regcache): Define.
4453 (regcache_xmalloc, regcache_xfree): New functions.
4454 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4455 (regcache_dup, regcache_dup_no_passthrough): New functions.
4456 (regcache_valid_p, regcache_read_as_address): New functions.
4457 (deprecated_grub_regcache_for_registers): New function.
4458 (deprecated_grub_regcache_for_register_valid): New function.
4459 (current_regcache): New global variable.
4460 (register_buffer): Add regcache parameter. Update calls.
4461 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4462 (read_register_gen, write_register_gen): Update register_buffer
4463 call. Test for legacy_p instead of gdbarch_register_read_p or
4464 gdbarch_register_write_p.
4465 (regcache_collect): Update register_buffer call.
4466 (build_regcache): Rewrite. Use deprecated grub functions.
4467 (regcache_save, regcache_save_no_passthrough): New functions.
4468 (regcache_restore, regcache_restore_no_passthrough): New
4469 functions.
4470 (_initialize_regcache): Create the regcache_data_handle. Swap
4471 current_regcache global variable.
4472
4473 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4474 parameter to regcache_read and regcache_write calls.
4475 (sh4_register_read): Ditto.
4476 (sh64_pseudo_register_read): Ditto.
4477 (sh64_register_read): Ditto.
4478 (sh_pseudo_register_write): Ditto.
4479 (sh4_register_write): Ditto.
4480 (sh64_pseudo_register_write): Ditto.
4481 (sh64_register_write): Ditto.
4482
4483 * defs.h (XCALLOC): Define.
4484
152d9db6
GS
44852002-06-19 Grace Sainsbury <graces@redhat.com>
4486
4487 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4488 * m68k-tdep.c (m68k_gdbarch_init): Added.
4489 (m68k_dump_tdep): Added.
4490
170911c7
DJ
44912002-06-19 Daniel Jacobowitz <drow@mvista.com>
4492
4493 * ada-lang.c (fill_in_ada_prototype): Update comment.
4494
2e4ebe70
DJ
44952002-06-19 Daniel Jacobowitz <drow@mvista.com>
4496
4497 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4498 MIPS_ABI_LAST.
4499 (mips_abi_string, mips_abi_strings): New.
4500 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4501 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4502 tdep->mips_abi_string. Honor mips_abi_string. Default to
4503 O32 if no ABI is found.
4504 (mips_dump_tdep): Use mips_abi_strings.
4505 (mips_abi_update): New function.
4506 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4507 ``set mips abi'' and ``show mips abi''. Check the size of
4508 mips_abi_strings.
4509
16775908
AC
45102002-06-19 Andrew Cagney <cagney@redhat.com>
4511
4512 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4513 constant.
4514
5051bfa4 45152002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4516
5051bfa4
JB
4517 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4518 current frame using only the first stack size adjustment. All
4519 subsequent size adjustments are not considered to be part of
4520 the "static" part of the current frame.
4521 Compute the address of the saved registers relative to the
4522 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4523 in use in this frame.
4524
56468235
DH
45252002-06-18 Don Howard <dhoward@redhat.com>
4526
4527 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4528 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4529 suggesting this solution.
4530
0b624158
AC
45312002-06-18 Andrew Cagney <ac131313@redhat.com>
4532
4533 * config/romp/xm-rtbsd.h: Delete file.
4534 * config/romp/rtbsd.mh: Delete file.
4535
221ea385
KS
45362002-06-18 Keith Seitz <keiths@redhat.com>
4537
4538 * breakpoint.c (condition_command): Post breakpoint_modify
4539 when a condition is added to an existing breakpoint.
4540 (commands_command): Likewise for commands.
4541 (set_ignore_count): Likewise for ignore counts.
4542 If no tty, do not simply return, still need to send event
4543 notification.
4544 (ignore_command): Only print a newline if the command came
4545 from a tty.
4546 Don't call breakpoints_changed, since this is now properly
4547 handled by set_ignore_count.
4548
5402eed1
AC
45492002-06-18 Andrew Cagney <cagney@redhat.com>
4550
4551 * MAINTAINERS: Note that cris-elf target can be compiled with
4552 -Werror.
4553 * cris-tdep.c (cris_register_name): Make return type constant.
4554 (cris_breakpoint_from_pc): Ditto.
4555
cc22880b
ML
45562002-06-18 Michal Ludvig <mludvig@suse.cz>
4557
4558 * frame.h (struct frame_info): Change type of context to
4559 'struct context'.
4560
fa88f677
AC
45612002-06-17 Andrew Cagney <cagney@redhat.com>
4562
4563 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4564 pointer.
4565 * gdbarch.h, gdbarch.c: Regenerate.
4566 * config/mips/tm-mips.h (mips_register_name): Update.
4567 * i386-tdep.h (i386_register_name): Update.
4568 * mips-tdep.c (mips_register_name): Update
4569 * alpha-tdep.c (alpha_register_name): Update.
4570 * arch-utils.c (legacy_register_name): Update.
4571 * arch-utils.h (legacy_register_name): Update.
4572 * avr-tdep.c (avr_register_name): Update.
4573 * ia64-tdep.c (ia64_register_name): Update.
4574 * i386-tdep.c (i386_register_name): Update.
4575 * sparc-tdep.c (sparc32_register_name): Update.
4576 (sparc64_register_name): Update.
4577 (sparclite_register_name): Update.
4578 (sparclet_register_name): Update.
4579 * sh-tdep.c (sh_generic_register_name): Update.
4580 (sh_sh_register_name): Update.
4581 (sh_sh3_register_name): Update.
4582 (sh_sh3e_register_name): Update.
4583 (sh_sh_dsp_register_name): Update.
4584 (sh_sh3_dsp_register_name): Update.
4585 (sh_sh4_register_name): Update.
4586 (sh_sh64_register_name): Update.
4587 * s390-tdep.c (s390_register_name): Update.
4588 * rs6000-tdep.c (rs6000_register_name): Update.
4589 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4590 (ns32k_register_name_32382): Update.
4591 * d10v-tdep.c (d10v_ts2_register_name): Update.
4592 (d10v_ts3_register_name): Update.
4593 * xstormy16-tdep.c (xstormy16_register_name): Update.
4594 * vax-tdep.c (vax_register_name): Update.
4595 * v850-tdep.c (v850_register_name): Update.
4596 * m68hc11-tdep.c (m68hc11_register_name): Update.
4597 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4598 (am33_register_name): Update.
4599
ea1e7ef6
GS
46002002-06-17 Grace Sainsbury <graces@redhat.com>
4601
4602 * m68k-tdep.c: Reindented.
4603
9b02dd1b
AC
46042002-06-17 Andrew Cagney <ac131313@redhat.com>
4605
4606 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4607 list of predefined types.
4608
8758dec1
MK
46092002-06-16 Mark Kettenis <kettenis@gnu.org>
4610
b6197528
MK
4611 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4612 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4613 REGISTER_CONVERT_TO_RAW): Remove defines.
4614 (i386_register_virtual_type, i386_register_convertible,
4615 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4616 Remove prototypes.
4617 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4618 macros mentioned above.
4619
82b47e62
MK
4620 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4621 (i386lynx_saved_pc_after_call): Remove prototype.
4622 * i386ly-tdep.c: Include "i386-tdep.h".
4623 (i386lynx_saved_pc_after_call): Make static. Use
4624 read_memory_nobpt instead of read_memory. Use
4625 read_memory_unsigned_integer instead of read_memory_integer.
4626 (i386lynx_init_abi): New function.
4627 (i386lynx_coff_osabi_sniffer): New function.
4628 (_initialize_i386bsd_tdep): New function.
4629
8758dec1
MK
4630 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4631 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4632 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4633 (i386_fix_call_dummy): Remove prototype.
4634 * i386-tdep.c (i386_call_dummy_words): New variable.
4635 (i386_gdbarch_init): Adjust for removal of the
4636 macros mentioned above.
4637
e9e68a56
AC
46382002-06-15 Andrew Cagney <ac131313@redhat.com>
4639
4640 * command.h (add_setshow_auto_boolean_cmd): Replace
4641 add_set_auto_boolean_cmd.
4642 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4643 add_set_auto_boolean_cmd.
4644 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4645 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4646 mask-address'' command.
4647 (show_mask_address): Add cmd parameter.
4648 * remote.c (add_packet_config_cmd): Update. Change type of
4649 set_func and show_func to cmd_sfunc_ftype.
4650 (_initialize_remote): Update `set remote Z-packet'
4651 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4652 (show_remote_protocol_e_packet_cmd): Ditto.
4653 (show_remote_protocol_E_packet_cmd): Ditto.
4654 (show_remote_protocol_P_packet_cmd): Ditto.
4655 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4656 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4657 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4658 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4659 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4660 (show_remote_protocol_Z_packet_cmd): Ditto.
4661 (show_remote_protocol_binary_download_cmd): Ditto.
4662 (show_remote_cmd): Pass NULL to all of above.
4663
fc08ec52
MK
46642002-06-15 Mark Kettenis <kettenis@gnu.org>
4665
4666 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4667 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4668 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4669 POP_FRAME): Remove defines.
4670 (i386_push_arguments, i386_store_struct_return,
4671 i386_extract_return_value, i386_store_return_value,
4672 i386_extract_struct_value_address, i386_push_dummy_frame,
4673 i386_pop_frame): Renove prototypes.
4674 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4675 macros mentioned above.
4676
e707bbc2
AC
46772002-06-15 Andrew Cagney <ac131313@redhat.com>
4678
4679 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4680 add_set_boolean_cmd.
4681 (add_setshow_cmd): New function.
4682 * command.h (add_setshow_boolean_cmd): Replace
4683 add_set_boolean_cmd.
4684 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4685 and ``set rdiromatzero''.
4686 * maint.c (_initialize_maint_cmds): Update commented out code.
4687 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4688 * target.c (initialize_targets): Update `set
4689 trust-readonly-sections'.
4690 * remote.c (_initialize_remote): Update `set remotebreak'.
4691
42fdc8df
MK
46922002-06-15 Mark Kettenis <kettenis@gnu.org>
4693
93924b6b
MK
4694 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4695 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4696 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4697 fit into multi-arch framework.
4698 (i386_breakpoint_from_pc): New function.
4699 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4700 above.
4701
42fdc8df
MK
4702 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4703 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4704 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4705 (i386_frameless_function_invocation, i386_frame_num_args,
4706 i386_frame_init_saved_regs): Remove prototypes.
4707 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4708 macros mentioned above.
4709
9773a94b
AC
47102002-06-15 Andrew Cagney <ac131313@redhat.com>
4711
4712 * cli/cli-decode.c (set_cmd_cfunc): Update.
4713 (set_cmd_sfunc): Update.
4714 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4715 (set_cmd_sfunc, set_cmd_cfunc): Update.
4716 * cli/cli-decode.h: Update.
4717
6e157172
MK
47182002-06-15 Mark Kettenis <kettenis@gnu.org>
4719
4720 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4721 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4722
7f19b9a2
AC
47232002-06-15 Andrew Cagney <ac131313@redhat.com>
4724
4725 * defs.h (auto_boolean): Declare enum.
4726 * command.h (cmd_auto_boolean): Delete enum.
4727 * mips-tdep.c (mask_address_var): Update.
4728 (mips_mask_address_p): Update.
4729 (show_mask_address): Update.
4730 * remote.c (struct packet_config): Update.
4731 (update_packet_config): Update.
4732 (show_packet_config_cmd): Update.
4733 (packet_ok): Update.
4734 (add_packet_config_cmd): Update.
4735 (_initialize_remote):
4736 * command.h: Update.
4737 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4738 (do_setshow_command): Update.
4739 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4740 * cli/cli-decode.h: Update.
4741
1cf88de5
MK
47422002-06-15 Mark Kettenis <kettenis@gnu.org>
4743
22ba8cf2
MK
4744 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4745 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4746 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4747 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4748 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4749 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4750
762c5349
MK
4751 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4752 list of DJGPP COFF targets.
4753
091198bb
MK
4754 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4755 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4756 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4757 (FP0_REGNUM): Remove define.
4758 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4759 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4760 (i386_register_virtual_size): Remove protoype.
4761 * i386-tdep.c (i386_register_virtual_size): Removed.
4762 (i386_extract_return_value, i386_store_return_value): Use
4763 FP0_REGNUM instead of NUM_FREGS to determine whether the
4764 floating-point registers are available.
4765 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4766 Adjust for removal of macros mentioned above.
4767
47682002-06-15 Mark Kettenis <kettenis@gnu.org>
4769
fcc9bf01
MK
4770 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4771 comments.
4772 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4773 Remove prototypes.
4774 (supply_gregset, fill_gregset): Remove use of register keyword and
4775 remove declaration for regmap. Use I386_NUM_GREGS instead of
4776 NUM_REGS and NUM_FREGS.
4777 (FPREGSET_FSAVE_OFFSET): Remove.
4778 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4779 NUM_FREGS to determine whether the floating-point registers are
4780 available.
4781
65e78234
MK
4782 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4783 gnu_store_registers): Replace usage of NUM_GREGS with
4784 I386_NUM_GREGS.
4785
98df6387
MK
4786 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4787 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4788 usage of NUM_GREGS with I386_NUM_GREGS.
4789
099a9414
MK
4790 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4791
57976e88
MK
4792 * i386bsd-nat.c: Include "i386-tdep.h".
4793 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4794 I386_NUM_GREGS.
4795
b335f4a6
MK
4796 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4797 and associated comment. They no longer make any sense, since we
4798 don't use this file anymore on Linux.
4799
1cf88de5
MK
4800 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4801 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4802 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4803 elements in these arrays.
4804 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4805 MAX_NUM_REGS.
4806
daa66587
MK
48072002-06-15 Mark Kettenis <kettenis@gnu.org>
4808
4809 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4810 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4811
26e9b323
AC
48122002-06-14 Andrew Cagney <cagney@redhat.com>
4813
4814 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4815 EXTRACT_RETURN_VALUE.
4816 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4817 EXTRACT_STRUCT_VALUE_ADDRESS.
4818 * gdbarch.h, gdbarch.c: Regenerate.
4819
4820 * values.c (value_being_returned): Handle
4821 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4822 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4823
4824 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4825 * arm-tdep.c (arm_gdbarch_init): Update.
4826 * avr-tdep.c (avr_gdbarch_init): Update.
4827 * cris-tdep.c (cris_gdbarch_init): Update.
4828 * d10v-tdep.c (d10v_gdbarch_init): Update.
4829 * ia64-tdep.c (ia64_gdbarch_init): Update.
4830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4831 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4832 * s390-tdep.c (s390_gdbarch_init): Update.
4833 * sh-tdep.c (sh_gdbarch_init): Update.
4834 * s390-tdep.c (s390_gdbarch_init): Update.
4835 * sparc-tdep.c (sparc_gdbarch_init): Update.
4836 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4837 * v850-tdep.c (v850_gdbarch_init): Update.
4838 * vax-tdep.c (vax_gdbarch_init): Update.
4839 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4840 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4841
4842 * config/arc/tm-arc.h: Update.
4843 * config/d30v/tm-d30v.h: Update.
4844 * config/fr30/tm-fr30.h: Update.
4845 * config/h8300/tm-h8300.h: Update.
4846 * config/h8500/tm-h8500.h: Update.
4847 * config/i386/tm-i386.h: Update.
4848 * config/i386/tm-ptx.h: Update.
4849 * config/i386/tm-symmetry.h: Update.
4850 * config/i960/tm-i960.h: Update.
4851 * config/m32r/tm-m32r.h: Update.
4852 * config/m68k/tm-delta68.h: Update.
4853 * config/m68k/tm-linux.h: Update.
4854 * config/m68k/tm-m68k.h: Update.
4855 * config/m88k/tm-m88k.h: Update.
4856 * config/mcore/tm-mcore.h: Update.
4857 * config/mips/tm-mips.h: Update.
4858 * config/mn10200/tm-mn10200.h: Update.
4859 * config/pa/tm-hppa.h: Update.
4860 * config/pa/tm-hppa64.h: Update.
4861 * config/sparc/tm-sp64.h: Update.
4862 * config/sparc/tm-sparc.h: Update.
4863 * config/sparc/tm-sparclet.h: Update.
4864 * config/z8k/tm-z8k.h: Update.
4865
5179e78f
AC
48662002-06-14 Andrew Cagney <cagney@redhat.com>
4867
4868 * Makefile.in (i386_linux_tdep_h): Define.
4869 (i386_tdep_h, i387_tdep_h): Define.
4870 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4871 $(i386_tdep_h) and $(i387_tdep_h).
4872 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4873
8201327c
MK
48742002-06-14 Mark Kettenis <kettenis@gnu.org>
4875
edf393ac
MK
4876 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4877 Already covered by the default.
4878
896fb97d
MK
4879 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4880 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4881 (i386_gdbarch_init): Initialize long_double_format and long_double
4882 bit.
4883
8201327c
MK
4884 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4885 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4886 Move these to ...
4887 * config/i386/i386sol2.mh: ... here.
4888 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4889 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4890 (SIGCONTEXT_PC_OFFSET): Remove define.
4891 (IN_SIGTRAMP): Remove define.
4892 * i386-sol2-tdep.c: New file.
4893
4894 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4895 * config/i386/tm-i386nw.h: Removed.
4896
4897 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4898 USE_STRUCT_CONVENTION): Remove defines.
4899 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4900 (get_longjmp_target): Remove prototype.
4901 (IN_SIGTRAMP): Remove define.
4902 (i386bsd_in_sigtramp): Remove prototype.
4903 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4904 function. Update comment accordingly
4905 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4906 (FRAME_SAVED_PC): Remove define.
4907 (i386bsd_frame_saved_pc): Remove prototype.
4908 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4909 GET_LONGJMP_TARGET): Remove defines.
4910 (get_longjmp_target): Remove prototype.
4911 (IN_SIGTRAMP): Remove define.
4912 (i386bsd_in_sigtramp): Remove prototype.
4913 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4914 function. Update comment accordingly
4915 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4916 (FRAME_SAVED_PC): Remove define.
4917 (i386bsd_frame_saved_pc): Remove prototype.
4918 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4919 Remove prototype.
4920 (USE_STRUCT_CONVENTION): Remove prototype.
4921 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4922 declaration.
4923 (_initialize_i386bsd_nat): Revise logic to determine some
4924 constants at compile time when compiling a native GDB. Warn if
4925 things don't match up with what we expect.
4926 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4927 Remove variables.
4928 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4929 to use date stored in `struct gdbarch_tdep'.
4930 (i386bsd_sigcontext_offset): Remove varaible.
4931 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4932 stored in `struct gdbarch_tdep'.
4933 (i386bsd_frame_saved_pc): Make static.
4934 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4935 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4936 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4937 i386fbsd4_sc_pc_offset): New variables.
4938 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4939 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4940 functions.
4941 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4942 functions.
4943 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4944 Modify the value of i386fbsd_sigtramp_start and
4945 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4946 i386fbsd_sigtramp_end.
4947 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4948 function.
4949
4950 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4951 define to i386-linux-tdep.h.
4952 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4953 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4954 defines.
4955 (i386_linux_register_name, i386_linux_register_byte,
4956 i386_linux_register_raw_size): Remove prototypes.
4957 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4958 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4959 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4960 TARGET_WRITE_PC): Remove defines.
4961 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4962 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4963 i386_linux_write_pc): Remove prototypes.
4964 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4965 (get_longjmp_target): Remove prototype.
4966 * i386-linux-tdep.h: New file.
4967 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4968 * i386-linux-tdep.c: Include "i386-tdep.h" and
4969 "i386-linux-tdep.h".
4970 (i386_linux_register_name, i386_linux_register_byte,
4971 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4972 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4973 Make static.
4974 (i386_linux_init_abi): New function.
4975 (_initialize_i386_linux_tdep): New function.
4976
4977 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4978 (i386_saved_pc_after_call): Remove prototype.
4979 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4980 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4981 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4982 (i386_register_name, i386_stab_reg_to_regnum,
4983 i386_dwarf_reg_to_regnum): Remove prototypes.
4984 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4985 SIZEOF_SSE_REGS): Remove defines.
4986 (REGISTER_BYTES): Remove define.
4987 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4988 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4989 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4990 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4991 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4992 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4993 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4994 (get_longjmp_target): Remove prototype.
4995 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4996 (sigtramp_saved_pc): Remove define.
4997 (i386v4_sigtramp_saved_pc): Remove prototype.
4998 * config/i386/tm-go32.h (FRAME_CHAIN,
4999 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5000 (i386go32_frame_saved_pc): Remove prototype.
5001 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5002 (get_longjmp_target): Remove prototype.
5003 * i386-tdep.h: Include "osabi.h".
5004 (enum i386_abi): Removed.
5005 (enum struct_return): New enum.
5006 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5007 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5008 sc_pc_offset members.
5009 (i386_gdbarch_register_os_abi): Remove prototype.
5010 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5011 I386_SSE_NUM_REGS): New defines.
5012 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5013 I386_SSE_SIZEOF_REGS): New defines.
5014 (i386_register_name, i386_register_byte, i386_register_raw_size):
5015 New prototypes.
5016 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5017 (i386bsd_sigtramp_saved_pc): New prototype.
5018 * i386-tdep.c: Don't include "elf-bfd.h".
5019 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5020 i386_frame_chain, i386_saved_pc_after_call): Make static.
5021 (i386_frame_saved_pc): Rewrite to call architecture dependent
5022 function to deal with signal handlers. Make static.
5023 (i386go32_frame_saved_pc): Removed.
5024 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5025 Removed.
5026 (i386_get_longjmp_target): New function.
5027 (default_struct_convention, pcc_struct_convention,
5028 reg_struct_convention, valid_conventions, struct_convention): New
5029 variables.
5030 (i386_use_struct_convention): New function.
5031 (i386v4_sigtramp_saved_pc): Renamed to
5032 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5033 (i386_pc_in_sigtramp): New function.
5034 (i386_abi_names): Removed.
5035 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5036 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5037 Removed.
5038 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5039 i386_gdbarch_register_os_abi): Removed.
5040 (struct i386_abi_handler): Removed.
5041 (i386_abi_handler_list): Removed.
5042 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5043 functions.
5044 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5045 i386_nw_init_abi): New functions.
5046 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5047 Use set_gdbarch_xxx() calls instead of relying on macros for a
5048 number of calls.
5049 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5050 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5051 Register the various architecture variants defined in this file.
5052
ad2f7632
DJ
50532002-06-14 Daniel Jacobowitz <drow@mvista.com>
5054
5055 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5056 (struct main_type): Remove arg_types member. Update comments for
5057 struct field.
5058 (TYPE_ARG_TYPES): Remove.
5059 (TYPE_FN_FIELD_ARGS): Update.
5060 (smash_to_method_type): Update prototype.
5061
5062 * c-typeprint.c (cp_type_print_method_args): Take method type
5063 instead of argument list. Use new argument layout. Simplify.
5064 (c_type_print_args): Use new argument layout. Simplify.
5065 (c_type_print_base): Update call to cp_type_print_method_args.
5066 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5067 argument; use die->type instead. Update call to
5068 smash_to_method_type.
5069 (read_structure_scope): Update call to dwarf2_add_member_fn.
5070 * gdbtypes.c (allocate_stub_method): Update comment.
5071 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5072 Use new argument layout.
5073 (check_stub_method): Use new argument layout. Don't count
5074 void as an argument.
5075 (print_arg_types): Update comments. Use new argument layout.
5076 (recursive_dump_type): Don't print arg_types member.
5077 * hpread.c (hpread_read_struct_type): Use new argument layout.
5078 (fixup_class_method_type): Likewise.
5079 (hpread_type_lookup): Likewise.
5080 * stabsread.c (read_type): Update calls to read_args and
5081 smash_to_method_type.
5082 (read_args): Use new argument layout. Simplify.
5083 * valops.c (typecmp): Use new argument layout. Update parameters
5084 and comments. Simplify.
5085 (hand_function_call): Use new argument layout.
5086 (search_struct_method): Update call to typecmp.
5087 (find_overload_match): Use new argument layout.
5088
6da02953
DJ
50892002-06-13 Daniel Jacobowitz <drow@mvista.com>
5090
5091 * NEWS: Mention multithreaded debug support for gdbserver.
5092
519b2366
DJ
50932002-06-13 Daniel Jacobowitz <drow@mvista.com>
5094
5095 * MAINTAINERS: Mention NEWS.
5096
6c0d6680
DJ
50972002-06-13 Daniel Jacobowitz <drow@mvista.com>
5098
5099 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5100 (struct mips_objfile_private, compare_pdr_entries): New.
5101 (non_heuristic_proc_desc): Read the ".pdr" section if it
5102 is present.
5103
6529d2dd
AC
51042002-06-12 Andrew Cagney <ac131313@redhat.com>
5105
5106 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5107 (arm_debug): New static variable.
5108 (_initialize_arm_tdep): Add ``set debug arm'' command.
5109
26216b98
AC
51102002-06-12 Andrew Cagney <ac131313@redhat.com>
5111
5112 * Makefile.in (sim_arm_h): Define.
5113 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5114 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5115 (arm_register_sim_regno): New function, map an internal REGNUM
5116 onto a simulator register number.
5117 (arm_gdbarch_init): Set register_sim_regno.
5118
814b3ba0
AH
51192002-06-09 Aldy Hernandez <aldyh@redhat.com>
5120
5121 * MAINTAINERS: Add self.
5122
475b0867
JB
51232002-06-11 Jim Blandy <jimb@redhat.com>
5124
919d772c
JB
5125 * source.c (source_info): Mention whether the symtab has
5126 information about preprocessor macros.
5127
475b0867
JB
5128 Call the command `info macro', not `show macro'.
5129 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5130 Fix error message.
5131 (_initialize_macrocmd): Register `info_macro_command' in
5132 `infolist', not `showlist'.
5133
9e364162
DJ
51342002-06-11 Daniel Jacobowitz <drow@mvista.com>
5135
5136 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5137 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5138 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5139 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5140 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5141 unconditionally.
5142 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5143 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5144 (_initialize_mips_tdep): Remove dead code.
5145 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5146 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5147 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5148 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5149 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5150 MIPS_LAST_FP_ARG_REGNUM): Remove.
5151
23aa4c72
ML
51522002-06-11 Michal Ludvig <mludvig@suse.cz>
5153
5154 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5155 (unwind_tmp_obstack_free, parse_frame_info)
5156 (update_context, cfi_read_fp, cfi_write_fp)
5157 (cfi_frame_chain, cfi_init_extra_frame_info)
5158 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5159 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5160
70eb15a4
CV
51612002-06-11 Corinna Vinschen <vinschen@redhat.com>
5162
5163 * v850-tdep.c (v850_type_is_scalar): New function.
5164 (v850_use_struct_convention): Match current gcc implementation
5165 as close as possible.
5166 (v850_push_arguments): Fix stack_offset handling. Don't write
5167 struct_addr into register. This is done by v850_store_struct_return.
5168 (v850_extract_return_value): Care for structs.
5169 (v850_store_return_value): Ditto.
5170 (v850_store_struct_return): Actually write address.
5171
482a4d06
ML
51722002-06-11 Michal Ludvig <mludvig@suse.cz>
5173
5174 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5175 without debug information too.
5176
d855c300
AC
51772002-06-10 Andrew Cagney <ac131313@redhat.com>
5178
5179 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5180 Make multi-arch pure.
5181 * gdbarch.h, gdbarch.c: Re-generate.
5182 * arm-tdep.c (arm_print_float_info): Update.
5183 * arch-utils.h (default_print_float_info): Update.
5184 * arch-utils.c (default_print_float_info): Update.
5185 * infcmd.c (float_info): Update call.
5186
dd12a101
AC
51872002-06-10 Andrew Cagney <ac131313@redhat.com>
5188
5189 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5190 the front of the initialize list.
5191
101dcfbe
AC
51922002-06-10 Andrew Cagney <ac131313@redhat.com>
5193
5194 * infrun.c (struct inferior_status): Replace fields
5195 selected_frame_address and selected_level with field
5196 selected_frame_id.
5197 (save_inferior_status): Update. Use get_frame_id.
5198 (struct restore_selected_frame_args): Delete.
5199 (restore_selected_frame): Update. Use frame_find_by_id.
5200 (restore_inferior_status): Update.
5201
5202 * breakpoint.h (struct breakpoint): Change type of
5203 watchpoint_frame to frame_id.
5204 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5205 call to get_current_frame.
5206 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5207 get_current_frame.
5208 (watchpoint_check): Use frame_find_by_id.
5209
5210 * frame.h (record_selected_frame): Delete declaration.
5211 * stack.c (record_selected_frame): Delete function.
5212
5213 * frame.h (struct frame_id): Define.
5214 (get_frame_id): Declare.
5215 (frame_find_by_id): Declare.
5216 * frame.c (frame_find_by_id): New function.
5217 (get_frame_id): New function.
5218
304270b6
AV
52192002-06-10 Andrey Volkov <avolkov@transas.com>
5220
5221 * ser-e7kpc.c: Fix duplicated define and call of
5222 _initialize_ser_e7000pc
5223
2f2cf184
DJ
52242002-06-09 Daniel Jacobowitz <drow@mvista.com>
5225
5226 * signals/signals.c (target_signal_from_host): Fix #ifdef
5227 SIGRTMIN case.
5228 (do_target_signal_to_host): Likewise.
5229
caaa3122
DJ
52302002-06-09 Daniel Jacobowitz <drow@mvista.com>
5231
5232 * mips-tdep.c (mips_find_abi_section): New function.
5233 (mips_gdbarch_init): Call it.
5234
6ac5df3a
MK
52352002-06-09 Mark Kettenis <kettenis@gnu.org>
5236
5237 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5238 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5239 after Andrew's 2002-06-08 gdbarch change.
5240
82ea117a
MK
52412002-06-09 Mark Kettenis <kettenis@gnu.org>
5242
5243 * i386-linux-nat.c (suppy_gregset): Don't supply
5244 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5245 register cache.
5246 (fill_gregset): Don't fetch it under the same circumstances.
5247
3c25f8c7
AC
52482002-06-09 Andrew Cagney <cagney@redhat.com>
5249
5250 * Makefile.in (callback_h): Define.
5251 (remote_sim_h): Update path to remote-sim.h.
5252 (remote-rdp.o): Add $(callback_h).
5253 (remote-sim.o): Use $(callback_h).
5254 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5255 * remote-rdp.c: Include "gdb/callback.h".
5256
1029b7fa
MK
52572002-06-09 Mark Kettenis <kettenis@gnu.org>
5258
5259 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5260 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5261
616675d3
AC
52622002-06-08 Andrew Cagney <ac131313@redhat.com>
5263
a3efda28
AC
5264 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5265 * rdi-share/serpardr.c: Ditto.
5266 * rdi-share/unixcomm.c: Ditto.
5267 * rdi-share/serdrv.c: Ditto.
5268 * rdi-share/hostchan.h: Ditto.
5269 * rdi-share/hostchan.c: Ditto.
5270 * rdi-share/host.h: Ditto.
5271 * rdi-share/devsw.c: Ditto.
5272
c5f10366
AC
5273 * objfiles.h: Change type of obj_private to void pointer.
5274 * pa64solib.c: Update copyright. Don't include "assert.h", use
5275 strcmp instead of STREQ, use LONGEST, do not use PTR
5276 * somsolib.c: Ditto.
5277
616675d3
AC
5278 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5279 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5280 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5281
e4b415d9
AC
52822002-06-08 Andrew Cagney <ac131313@redhat.com>
5283
5284 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5285 (default_get_saved_register): Delete function.
5286 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5287 generic_unwind_get_saved_register.
5288 * gdbarch.h, gdbarch.c: Re-generate.
5289
ca0d0b52
AC
52902002-06-08 Andrew Cagney <ac131313@redhat.com>
5291
5292 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5293 generic_func_frame_chain_valid.
5294 * gdbarch.h, gdbarch.c: Re-generate.
5295 * blockframe.c (generic_func_frame_chain_valid): Only check
5296 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5297 passing FP to PC_IN_CALL_DUMMY.
5298 Fix PR gdb/360.
5299
76860b5f
AC
53002002-06-08 Andrew Cagney <ac131313@redhat.com>
5301
5302 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5303 (register_gdbarch_data): Initialize init_p.
5304 (gdbarch_data): Initialize data pointer using the init function.
5305 (init_gdbarch_data): Delete function.
5306 (gdbarch_update_p): Update.
5307 (initialize_non_multiarch): Update.
5308 (struct gdbarch): Add field initialized_p.
5309 * gdbarch.h, gdbarch.c: Re-generate.
5310
8dda9770
ML
53112002-06-07 Michal Ludvig <mludvig@suse.cz>
5312
5313 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5314 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5315 better do the things actually here.
5316 * x86-64-tdep.c (x86_64_register_name2nr): New.
5317 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5318 (x86_64_gdbarch_init): Respect the above change.
5319 * x86-64-tdep.h (x86_64_register_name2nr)
5320 (x86_64_register_nr2name): Add prototypes.
5321 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5322
3d79a47c
MS
53232002-06-06 Michael Snyder <msnyder@redhat.com>
5324
7bd91a28
MS
5325 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5326 Delete extra braces and re-indent.
5327 (d10v_store_return_value): Char return values
3d79a47c
MS
5328 must be shifted over by one byte in R0.
5329 (d10v_extract_return_value): Delete extra braces, re-indent.
5330
095a4c96
EZ
53312002-06-06 Elena Zannoni <ezannoni@redhat.com>
5332
5333 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5334 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5335 (d10v_integer_to_address): Rewrite.
5336 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5337 the d10v specific functions which take care of converting to the
5338 correct space.
5339
e8a77ca4
EZ
53402002-06-06 Elena Zannoni <ezannoni@redhat.com>
5341
5342 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5343 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5344
4f2e4a4f
AC
53452002-06-02 Andrew Cagney <ac131313@redhat.com>
5346
5347 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5348 includes.
5349 * config/tm-linux.h: Ditto.
5350 * config/alpha/tm-alphalinux.h: Ditto.
5351 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5352 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5353 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5354 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5355 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5356 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5357 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5358 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5359 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5360 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5361 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5362 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5363 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5364 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5365 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5366 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5367 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5368 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5369 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5370 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5371 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5372 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5373 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5374 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5375 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5376 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5377 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5378 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5379 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5380 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5381 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5382 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5383 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5384 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5385 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5386 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5387 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5388
ae2ab2ce
AS
53892002-05-04 Aidan Skinner <aidan@velvet.net>
5390
5391 * ada-exp.tab.c: New file
5392 * ada-exp.y: New file
5393 * ada-lang.c: New file
5394 * ada-lang.h: New file
5395 * ada-lex.c: New file
5396 * ada-lex.l: New file
5397 * ada-tasks.c: New file
5398 * ada-typeprint.c: New file
5399 * ada-valprint.c: New file
5400
0ddd0135
JT
54012002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5402
5403 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5404 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5405
750fbacc
JT
54062002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5407
5408 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5409 insetead of ppc-linux-tdep.o.
5410 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5411 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5412
df94e18a
AC
54132002-06-02 Andrew Cagney <ac131313@redhat.com>
5414
5415 2002-05-07 Christian Groessler <chris@groessler.org>
5416 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5417 bit register contents for little endian hosts.
5418
1a38ab75
AC
54192002-06-01 Andrew Cagney <ac131313@redhat.com>
5420
5421 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5422 any maintainer.
5423
8b1632ac
AC
54242002-06-01 Andrew Cagney <ac131313@redhat.com>
5425
5426 * gdbarch.h: Regenerate.
5427
627054c8
AC
54282002-06-01 Andrew Cagney <ac131313@redhat.com>
5429
5430 * MAINTAINERS: Add everyone to write-after-approval list.
5431
4f460812
AC
54322002-06-01 Andrew Cagney <ac131313@redhat.com>
5433
5434 * stack.c (frame_info): Use frame_register_unwind instead of
5435 saved_regs. Mention when the SP is on the stack or in a register.
5436
5437 * frame.h (frame_register_unwind_ftype): Define. Document.
5438 (struct frame_info): Add field register_unwind and
5439 register_unwind_cache.
5440 (frame_register_unwind): Declare.
5441 (generic_unwind_get_saved_register): Declare.
5442
5443 * frame.c (frame_register_unwind): New function.
5444 (generic_unwind_get_saved_register): New function.
5445
5446 * blockframe.c (generic_call_dummy_register_unwind): New function.
5447 (frame_saved_regs_register_unwind): New function.
5448 (set_unwind_by_pc): New function.
5449 (create_new_frame): New function.
5450 (get_prev_frame): New function.
5451
de888f76
AC
54522002-05-30 Andrew Cagney <ac131313@redhat.com>
5453
5454 * a29k-share/: Delete directory.
5455 * remote-vx29k.c: Delete file.
5456
2f2c3626
JT
54572002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5458
5459 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5460 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5461
9ce5c36a
JT
54622002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5463
5464 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5465 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5466 (sparc64nbsd-nat.o)
5467 (sparcnbsd-nat.o)
5468 (sparcnbsd-tdep.o): New dependency lists.
5469 * NEWS: Note new UltraSPARC NetBSD native configuration.
5470 * configure.host (sparc64-*-netbsd*): New host.
5471 * configure.tgt (sparc-*-netbsdelf*)
5472 (sparc-*-netbsd*): Set gdb_target to nbsd.
5473 (sparc64-*-netbsd*): New target.
5474 * sparc64nbsd-nat.c: New file.
5475 * sparcnbsd-nat.c: New file.
5476 * sparcnbsd-tdep.c: New file.
5477 * sparcnbsd-tdep.h: New file.
5478 * config/sparc/nbsd.mt: New file.
5479 * config/sparc/nbsd64.mh: New file.
5480 * config/sparc/nbsd64.mt: New file.
5481 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5482 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5483 (HOST_IPC): Remove.
5484 * config/sparc/nbsdaout.mt: Remove.
5485 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5486 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5487 (HOST_IPC): Remove.
5488 * config/sparc/nbsdelf.mt: Remove.
5489 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5490 sparc-nat.c compatiblity defines.
5491 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5492 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5493 * config/sparc/tm-nbsd64.h: New file.
5494 * config/sparc/tm-nbsdaout.h: Remove.
5495 * config/sparc/xm-nbsd.h: Remove.
5496
ef3cf062
JT
54972002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5498
5499 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5500 * sparc-tdep.c: Include osabi.h.
5501 (gdbarch_tdep): Add osabi member.
5502 (_initialize_sparc_tdep): Use gdbarch_register.
5503 (sparc_gdbarch_init): Use generic OS ABI framework.
5504 (sparc_dump_tdep): New function.
5505
ee8ff470
KB
55062002-05-30 Kevin Buettner <kevinb@redhat.com>
5507
5508 * corefile.c (do_captured_read_memory_integer): Return non-zero
5509 result.
5510 (safe_read_memory_integer): Copy result of memory read when
5511 status is non-zero. Also, add comments.
5512
7b112f9c
JT
55132002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5514
5515 * Makefile.in (ppc_tdep_h): Define.
5516 (ppc-linux-nat.o)
5517 (ppc-linux-tdep.o)
5518 (rs6000-tdep.o): Use $(ppc_tdep_h).
5519 (ppc-sysv-tdep.o)
5520 (ppcnbsd-nat.o)
5521 (ppcnbsd-tdep.o): New dependency lists.
5522 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5523 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5524 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5525 (ppc_sysv_abi_broken_use_struct_convention)
5526 (ppc_sysv_abi_use_struct_convention)
5527 (ppc_sysv_abi_push_arguments): Move to...
5528 * ppc-sysv-tdep.c: ...here.
5529 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5530 * rs6000-tdep.c (process_note_abi_tag_sections)
5531 (get_elfosabi): Remove.
5532 (rs6000_gdbarch_init): Use generic OS ABI framework.
5533 (rs6000_dump_tdep): New function.
5534 (_initialize_rs6000_tdep): Use gdbarch_register.
5535 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5536 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5537 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5538 of ppc-linux-tdep.o.
5539 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5540 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5541 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5542 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5543 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5544 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5545
480dd42a
JB
55462002-05-29 Jim Blandy <jimb@redhat.com>
5547
5548 * macroscope.c (default_macro_scope): Put `void' in empty argument
5549 list.
5550
4182591f
AC
55512002-05-29 Andrew Cagney <ac131313@redhat.com>
5552
5553 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5554 * arch-utils.c: Include "sim-regno.h".
5555 * gdbarch.sh: Don't include "sim-regno.h".
5556 * gdbarch.h, gdbarch.c: Regenerate.
5557 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5558 here.
5559 * arch-utils.h (legacy_register_sim_regno): To here.
5560 * remote-sim.c (legacy_register_sim_regno): Move function from
5561 here.
5562 * arch-utils.c (legacy_register_sim_regno): To here.
5563
8238d0bf
AC
55642002-05-28 Andrew Cagney <ac131313@redhat.com>
5565
5566 * sim-regno.h: New file.
5567 * Makefile.in (sim_regno_h): Define.
5568 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5569 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5570 (legacy_register_sim_regno): New function.
5571 (one2one_register_sim_regno): New function.
5572 (gdbsim_fetch_register): Rewrite.
5573 (gdbsim_store_register): Only store a register when
5574 REGISTER_SIM_REGNO is valid.
5575 * d10v-tdep.c: Include "sim-regno.h".
5576 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5577 (d10v_ts3_register_sim_regno): Ditto.
5578 * gdbarch.sh: Include "sim-regno.h".
5579 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5580 * gdbarch.h, gdbarch.c: Regenerate.
5581 * arch-utils.h (default_register_sim_regno): Delete declaration.
5582 * arch-utils.c (default_register_sim_regno): Delete function.
5583
485721b1
JT
55842002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5585
5586 * ppcnbsd-nat.c: Rewrite.
5587 * ppcnbsd-tdep.c: New file.
5588 * ppcnbsd-tdep.h: New file.
5589 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5590 solib.o, and solib-svr4.o.
5591 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5592 nbsd-tdep.o, and corelow.o.
5593
697f244d
AC
55942002-05-28 Andrew Cagney <ac131313@redhat.com>
5595
5596 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5597 `tr' and `sed'. Mention that `broken' targets are not expected to
5598 build.
5599
f08caad1 56002002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5601
5602 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5603 Let PC point right after the prologue before looking up symbols.
5604
3139facc
MH
56052002-05-27 Martin M. Hunt <hunt@redhat.com>
5606
5607 * i386-tdep.c (i386_register_virtual_type): Return
5608 builtin_type_vec128i for SSE registers.
5609
5610 * gdbtypes.h (builtin_type_vec128i): Declare.
5611
5612 * gdbtypes.c (build_builtin_type_vec128i): New function.
5613 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5614 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5615 (build_gdbtypes): Initialize new builtin vector types.
5616 (_initialize_gdbtypes): Register new vector types with gdbarch.
5617
6e3ba3b8
JT
56182002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5619
5620 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5621 since it has been multi-arch'd.
5622 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5623 Move Alpha and VAX multi-arch news entries to same section
5624 as other multi-arch news.
5625
93d5585d
JT
56262002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5627
5628 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5629 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5630 static. Rename some register numbers to put them in ns32k-tdep
5631 private namespace.
5632 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5633 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5634 functions.
5635 (_initialize_ns32k_tdep): Use gdbarch_register.
5636 * ns32k-tdep.h: New file.
5637 * ns32knbsd-tdep.c: New file.
5638 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5639 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5640 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5641 REGISTER_BYTES, REGISTER_BYTE): Remove.
5642 * config/ns32k/tm-ns32k.h: New file.
5643 * config/ns32k/tm-umax.h: Remove.
5644
efb2c70e
JT
56452002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5646
5647 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5648 ns32k_store_struct_return, ns32k_extract_return_value,
5649 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5650 functions.
5651 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5652 ns32k_saved_pc_after_call.
5653 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5654 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5655 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5656 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5657 ns32k_extract_struct_value_address.
5658
7bcc927b
JT
56592002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5660
5661 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5662 ns32k_fix_call_dummy): New.
5663 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5664 ns32k_call_dummy_words.
5665 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5666 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5667 CALL_DUMMY_NARGS): Remove.
5668 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5669
78f9d765
JT
56702002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5671
5672 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5673 ns32k_frame_saved_pc, ns32k_frame_args_address,
5674 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5675 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5676 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5677 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5678 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5679 (BREAKPOINT): Remove..
5680 (FRAME_CHAIN): Define as ns32k_frame_chain.
5681 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5682 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5683 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5684 (FRAME_FIND_SAVED_REGS): Remove.
5685 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5686 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5687 (POP_FRAME): Define as ns32k_pop_frame.
5688
f2c762e0
JT
56892002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5690
5691 * ns32k-tdep.c (ns32k_register_byte_32082,
5692 ns32k_register_byte_32382, ns32k_register_raw_size,
5693 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5694 functions.
5695 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5696 ns32k_register_byte_32382.
5697 * config/ns32k/tm-umax.h: Update copyright years.
5698 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5699 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5700 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5701 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5702 (ns32k_get_enter_addr): Fix prototype.
5703
af137673
JT
57042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5705
5706 * ns32k-tdep.c: Update copyright years.
5707 (ns32k_register_name_32082): New function.
5708 (ns32k_register_name_32382): Ditto.
5709 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5710 (REGISTER_NAME): Define as ns32k_register_name_32382.
5711 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5712 (REGISTER_NAME): Define as ns32k_register_name_32082.
5713
a8bc7b56
JB
57142002-05-24 Jim Blandy <jimb@redhat.com>
5715
5716 * dwarf2read.c (free_line_header): Use xfree, not free.
5717
83a45910
JT
57182002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5719
5720 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5721 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5722
0db71247
AC
57232002-05-23 Andrew Cagney <ac131313@redhat.com>
5724
5725 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5726
b9e5e4dd
AC
57272002-05-23 Andrew Cagney <ac131313@redhat.com>
5728
5729 From Ross Alexander at NEC Europe:
5730 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5731
de530e84
MS
57322002-05-23 Michael Snyder <msnyder@redhat.com>
5733
5734 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5735 for input, rather than parse_and_eval_address.
5736
b91b96f4
AC
57372002-05-23 Andrew Cagney <ac131313@redhat.com>
5738
5739 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5740 * Makefile.in (sim_d10v_h): Update definition.
5741
8b279e7a
AC
57422002-05-24 Andrew Cagney <cagney@redhat.com>
5743
5744 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5745 change `2002-05-22 Michael Snyder' below.
5746 (d10v_push_arguments): Ditto.
5747 (d10v_extract_return_value): Ditto.
5748
0a3d0425
JB
57492002-05-23 Jim Blandy <jimb@redhat.com>
5750
5751 * macrotab.c (check_for_redefinition): Don't complain if the new
5752 definition is the same as the previous one. Take more arguments
5753 to allow the comparison.
5754 (macro_define_object, macro_define_function): Pass more arguments
5755 to check_for_redefinition.
5756
78eac43e
MS
57572002-05-22 Michael Snyder <msnyder@redhat.com>
5758
5759 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5760 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5761 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5762 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5763 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5764 Add a temp variable to save a call (and a memory read).
5765 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5766 if possible (so that PC_IN_CALL_DUMMY will work).
5767
9bc1edb8
CV
57682002-05-22 Corinna Vinschen <vinschen@redhat.com>
5769
5770 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5771
005ef3d2
ML
57722002-05-22 Michal Ludvig <mludvig@suse.cz>
5773
5774 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5775 fde->cie_ptr.
5776 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5777 (dwarf2_build_frame_info): Add offset to fde->initial_location
5778 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5779 (execute_stack_op): Change type of 'result' from ULONGEST to
5780 CORE_ADDR.
005ef3d2 5781
fcf4f891
JT
57822002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5783
5784 * config/alpha/tm-nbsd.h: Include solib.h.
5785
cfef91e4
JT
57862002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5787
5788 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5789 assumptions about the host's byte order.
5790
9964235a
JT
57912002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5792
5793 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5794 to dependency list.
5795 * alphanbsd-tdep.c: Include solib-svr4.h.
5796 * shnbsd-tdep.c: Ditto.
5797
9eeef8ef
JT
57982002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5799
5800 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5801 nbsd-tdep.h to dependency list.
5802 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5803 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5804 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5805 nbsdaout.mh and nbsdelf.mh consistently.
5806 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5807 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5808 nbsdaout.mt and nbsdelf.mh consistently.
5809 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5810 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5811 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5812 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5813 a.out shared library stuff from here...
5814 * config/nm-nbsdaout.h: ...to here.
5815 * config/tm-nbsd.h: Remove.
5816 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5817 * config/arm/nbsd.mh: Remove.
5818 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5819 nbsd-tdep.o.
5820 * config/arm/nbsdaout.mh: New file.
5821 * config/arm/nbsdelf.mh: New file.
5822 * config/arm/nm-nbsdaout.h: New file.
5823 * config/i386/nbsd.mh: Remove.
5824 * config/i386/nbsd.mt: Remove.
5825 * config/i386/nbsdaout.mh: New file.
5826 * config/i386/nbsdaout.mt: New file.
5827 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5828 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5829 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5830 i386_register_u_addr): Remove.
5831 * config/i386/nm-nbsdaout.h: New file.
5832 * config/i386/nm-nbsdelf.h: Remove.
5833 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5834 (USE_STRUCT_CONVENTION): Remove.
5835 * config/i386/tm-nbsdaout.h: New file.
5836 * config/i386/tm-nbsdelf.h: Remove.
5837 * config/m68k/nbsd.mh: Remove.
5838 * config/m68k/nbsd.mt: Remove.
5839 * config/m68k/nbsdaout.mh: New file.
5840 * config/m68k/nbsdaout.mt: New file.
5841 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5842 * config/m68k/nm-nbsdaout.h: New file.
5843 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5844 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5845 * config/ns32k/nbsd.mh: Remove.
5846 * config/ns32k/nbsd.mt: Remove.
5847 * config/ns32k/nbsdaout.mh: New file.
5848 * config/ns32k/nbsdaout.mt: New file.
5849 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5850 * config/ns32k/nm-nbsdaout.h: New file.
5851 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5852 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5853 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5854 (SVR4_SHARED_LIBS): Remove.
5855 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5856 * config/sparc/nbsd.mh: Remove.
5857 * config/sparc/nbsd.mt: Remove.
5858 * config/sparc/nbsdaout.mh: New file.
5859 * config/sparc/nbsdaout.mt: New file.
5860 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5861 * config/sparc/nbsdelf.mt: New file.
5862 * config/sparc/nm-nbsdaout.h: New file.
5863 * config/sparc/nm-nbsdelf.h: Remove.
5864 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5865 * config/sparc/tm-nbsdaout.h: New file.
5866
257ce470
JT
58672002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5868
5869 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5870 mipsnbsd-tdep.c
5871 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5872
76a6d5fe
JT
58732002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5874
5875 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5876 shnbsd-nat.c.
5877 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5878
45888261
JT
58792002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5880
5881 * NEWS: Note new MIPS NetBSD native configuration.
5882 * configure.host (mips*-*-netbsd*): New host.
5883 * configure.tgt (mips*-*-netbsd*): New target.
5884 * mipsnbsd-nat.c: New file.
5885 * mipsnbsd-tdep.c: New file.
5886 * mipsnbsd-tdep.h: New file.
5887 * config/mips/nbsd.mh: New file.
5888 * config/mips/nbsd.mt: New file.
5889 * config/mips/nm-nbsd.h: New file.
5890 * config/mips/tm-nbsd.h: New file.
5891
70f80edf
JT
58922002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5893
5894 * Makefile.in (SFILES): Add osabi.c.
5895 (COMMON_OBS): Add osabi.o.
5896 (osabi.o): New dependency list.
5897 * osabi.c: New file.
5898 * osabi.h: New file.
5899 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5900
5901 * Makefile.in (alpha_tdep_h): Define and use instead of
5902 alpha-tdep.h.
5903 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5904 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5905 Remove.
5906 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5907 * alpha-tdep.h: Include osabi.h.
5908 (alpha_abi): Remove.
5909 (gdbarch_tdep): Use generic OS ABI framework.
5910 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5911 gdbarch_register_osabi.
5912 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5913 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5914 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5915
5916 * Makefile.in (sh_tdep_h): Add osabi.h.
5917 * sh-tdep.h (sh_osabi): Remove.
5918 (gdbarch_tdep): Use generic OS ABI framework.
5919 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5920 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5921 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5922 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5923
5924 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5925 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5926 gdbarch_register_osabi.
5927 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5928 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5929 (get_elfosabi): Rename to...
5930 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5931 ABI framework support routines.
5932 (arm_gdbarch_init): Use generic OS ABI framework.
5933 (arm_dump_tdep): Likewise.
5934 (_initialize_arm_tdep): Likewise.
5935 * arm-tdep.h: Include osabi.h.
5936 (arm_abi): Remove.
5937 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5938 osabi member.
5939 (arm_gdbarch_register_os_abi): Remove prototype.
5940 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5941 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5942
5943 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5944 * mips-tdep.c: Include osabi.h.
5945 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5946 OS ABI framework.
5947
d194345b
KH
59482002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5949
5950 * h8300-tdep.c: Fix formatting.
5951
70c6b0d1
EZ
59522002-05-20 Elena Zannoni <ezannoni@redhat.com>
5953
5954 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5955 printing vector registers.
5956
165b8e33
AC
59572002-05-19 Andrew Cagney <ac131313@redhat.com>
5958
5959 From Fernando Nasser:
5960 * remote.c (remote_async_open_1): Re-throw the exception when the
5961 connection fails.
5962 (remote_cisco_open): Ditto.
5963 (remote_open_1): Ditto.
5964
36918e70
AC
59652002-05-19 Andrew Cagney <ac131313@redhat.com>
5966
5967 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5968 (remote_start_remote): Add uiout parameter. Pass through to
5969 remote_start_remote_dummy.
5970 (remote_open_1): Use catch_exception instead of catch_errors.
5971 (remote_async_open_1): Ditto.
5972 (remote_cisco_open): Ditto.
5973
ae44c0c4
AC
59742002-05-19 Andrew Cagney <ac131313@redhat.com>
5975
5976 * remote.c (remote_start_remote): Replace PTR with void pointer.
5977 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5978 static.
5979
8efe637d
AC
59802002-05-18 Andrew Cagney <ac131313@redhat.com>
5981
5982 * gdb_indent.sh: Allow the script to be run in the sim directory.
5983
2f1b5984
MK
59842002-05-18 Mark Kettenis <kettenis@gnu.org>
5985
f0f625e2
MK
5986 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5987 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5988
2f1b5984
MK
5989 * corelow.c (core_open): Only call set_gdbarch_from_file if
5990 exec_bfd is NULL.
5991
fc974602
AV
59922002-05-17 Andrey Volkov <avolkov@transas.com>
5993
5994 * h8300-tdep.c: Add support of EXR register
5995 * config/h8300/tm-h8300.h: Ditto.
5996
906709f4
AV
59972002-05-17 Andrey Volkov <avolkov@transas.com>
5998
5999 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6000
6e591d68
AV
60012002-05-17 Andrey Volkov <avolkov@transas.com>
6002
6003 * h8300-tdep.c: Change literal regnums to REGNO.
6004
84f0252a
JB
60052002-05-17 Jim Blandy <jimb@redhat.com>
6006
e0e9281e
JB
6007 * NEWS: Note addition of macro support.
6008
84f0252a
JB
6009 Expand preprocessor macros in C expressions.
6010 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6011 (scan_macro_expansion, scanning_macro_expansion,
6012 finished_macro_expansion): New function declarations.
6013 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6014 variable declarations.
6015 * parser-defs.h (expression_context_pc): New declaration.
6016 * parse.c (expression_context_pc): New variable.
6017 (parse_exp_1): Set expression_context_pc, as well as
6018 expression_context_block.
6019 * c-exp.y (yylex): If we're not already reading the result of a
6020 macro expansion, try to macro-expand the next token. When we're
6021 done scanning a macro expansion, switch back to the mainline text.
6022 Commas and `if's in a macro's expansion don't terminate the input.
6023 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6024 (macro_original_text, macro_expanded_text,
6025 expression_macro_lookup_func, expression_macro_lookup_baton): New
6026 variables.
6027 (scan_macro_expansion, scanning_macro_expansion,
6028 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6029 c_preprocess_and_parse): New functions.
6030 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6031 c_preprocess_and_parse, instead of c_parse.
6032 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6033 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6034
1c509ca8
JR
6035Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6036
6037 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6038 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6039 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6040
2250ee0c
CV
60412002-05-17 Corinna Vinschen <vinschen@redhat.com>
6042
6043 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6044
ab3b8126
JT
60452002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6046
6047 * Makefile.in (sh_tdep_h): Define and use.
6048 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6049 register enum): Move to...
6050 * * sh-tdep.h: ...here.
6051 * sh-tdep.c: Include sh-tdep.h.
6052 * sh3-rom.c: Likewise.
6053 * shnbsd-tdep.c: Likewise.
6054
ed9d4749
MS
60552002-05-16 Michael Snyder <msnyder@redhat.com>
6056
6057 * arm-tdep.c: Spelling fix in comment.
6058
2e276125
JB
60592002-05-16 Jim Blandy <jimb@redhat.com>
6060
6821892e
JB
6061 Add commands for manually expanding macros and showing their
6062 definitions.
6063 * macrocmd.c, macroscope.c, macroscope.h: New files.
6064 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6065 (macroscope_h): New variable.
6066 (HFILES_NO_SRCDIR): Add macroscope.h.
6067 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6068 (macroscope.o, macrocmd.o): New rules.
6069
2e276125
JB
6070 Teach the Dwarf 2 reader to read macro information.
6071 * dwarf2read.c: #include "macrotab.h".
6072 (dwarf_macinfo_buffer): New variable.
6073 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6074 dwarf_macinfo_size.
6075 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6076 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6077 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6078 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6079 dwarf2_macro_spaces_in_definition): New complaints.
6080 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6081 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6082 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6083 the partial symbol table.
6084 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6085 from what's recorded in the partial symbol table.
6086 (read_file_scope): If the compilation unit has a
6087 `DW_AT_macro_info' attribute, read its macro information.
6088 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6089
2f53fe6c
DJ
60902002-05-16 Daniel Jacobowitz <drow@mvista.com>
6091
6092 Fix PR gdb/546
6093 * ser-tcp.c: Don't include <netinet/udp.h>.
6094
2be99286
SC
60952002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6096
6097 * MAINTAINERS: Update my email address.
6098
c9af212b 60992002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6100
6101 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6102 include file of the same name.
6103
bf5f1a52
CV
61042002-05-16 Corinna Vinschen <vinschen@redhat.com>
6105
6106 * configure.tgt: Mark v850 as multi-arched.
6107 * config/v850/tm-v850.h: Remove file.
6108 * config/v850/v850.mt: Eliminate TM_FILE.
6109
435e042a
CV
61102002-05-16 Corinna Vinschen <vinschen@redhat.com>
6111
6112 * v850-tdep.c: Full multi-arch.
6113 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6114 Define GDB_MULTI_ARCH to 2.
6115
9819c6c8
PM
61162002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6117
6118 * p-exp.y (current_type): New static variable.
6119 Carries the type of the expression at the position that is parsed.
6120 (push_current_type, pop_current_type): Two new functions. Used
6121 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6122 (search_field): New static variable. Set to one after parsing a point
6123 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6124 (FIELDNAME): New token. After a point only a token belonging to
6125 current_type type definition is allowed.
6126 (all over token rules): reset and change current_type according
6127 to rules.
6128 (exp '[' rule): insert implicit array index field if
6129 exp is a pascal string type.
6130
3a06899a
CV
61312002-05-16 Corinna Vinschen <vinschen@redhat.com>
6132
6133 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6134 frame info. Use frame_info's saved_regs instead of matching member
6135 in extra_frame_info throughout.
6136 (v850_frame_init_saved_regs): New function.
6137 (v850_init_extra_frame_info): Move most functionality into
6138 v850_frame_init_saved_regs().
6139 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6140 (v850_frame_find_saved_regs): Remove declaration.
6141 (FRAME_FIND_SAVED_REGS): Remove definition.
6142 (v850_frame_init_saved_regs): Add declaration.
6143 (FRAME_INIT_SAVED_REGS): Add definition.
6144
6ed14b0e
CV
61452002-05-16 Corinna Vinschen <vinschen@redhat.com>
6146
6147 * v850-tdep.c: Begin multi-arch'ing v850.
6148 (v850_target_architecture_hook): Remove function.
6149 (v850_gdbarch_init): New function. Add code previously in
6150 v850_target_architecture_hook().
6151 (_initialize_v850_tdep): Don't set target_architecture_hook.
6152 Call register_gdbarch_init() instead.
6153
42725910
DJ
61542002-05-16 Daniel Jacobowitz <drow@mvista.com>
6155
6156 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6157 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6158 (fixup_class_method_type): Likewise.
6159
99d9066e
JB
61602002-05-15 Jim Blandy <jimb@redhat.com>
6161
6162 Add macro structures to GDB's symbol tables. Nobody puts anything
6163 in them yet.
6164 * symtab.h (struct symtab): New member: `macro_table'.
6165 * buildsym.h (pending_macros): New global variable.
6166 * buildsym.c: #include "macrotab.h".
6167 (buildsym_init): Initialize `pending_macros'.
6168 (end_symtab): If we found macro information while reading a CU's
6169 debugging info, do build a symtab structure for it. Make the
6170 symtab point to the macro information, and clear the
6171 `pending_macros' pointer which held it while we were reading the
6172 debug info.
6173 (really_free_pendings): Free any pending macro table.
6174 * objfiles.h (struct objfile): New member: `macro_cache'.
6175 * objfiles.c (allocate_objfile): Set allocate and free functions
6176 for the macro cache's objstack.
6177 (free_objfile): Empty the macro cache's obstack.
6178 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6179 set new allocate and free functions for it.
6180 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6181 free functions for the macro cache's objstack. (Why is this
6182 function building its own objfile?)
6183 * symmisc.c (print_objfile_statistics): Print statistics on the
6184 macro bcache.
6185 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6186
c899585b
RE
61872002-05-15 Richard Earnshaw <rearnsha@arm.com>
6188
6189 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6190 (REGISTER_U_ADDR): Delete definition.
6191 (arm_register_u_addr): Delete declaration.
6192
a6cdd8c5
RE
61932002-05-15 Richard Earnshaw <rearnsha@arm.com>
6194
6195 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6196 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6197
c97dcfc7
AC
61982002-05-14 Andrew Cagney <ac131313@redhat.com>
6199
6200 * regcache.c (register_valid): Revise comments refering to "Not
6201 available" and "unavailable".
6202 * frame.c (frame_register_read): Ditto.
6203 * findvar.c (value_of_register): Ditto.
6204
93021b7d
AC
62052002-05-15 Andrew Cagney <cagney@redhat.com>
6206
6207 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6208 (remote-sim.o): Update dependencies.
6209 (d10v-tdep.o): Specify dependencies.
6210 (sim_d10v_h): Define.
6211
a86bc61c
JB
62122002-05-14 Jim Blandy <jimb@redhat.com>
6213
6214 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6215 * macrotab.c (macro_lookup_inclusion, find_definition,
6216 new_macro_table): Same.
6217
6218 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6219 not `! strcmp ()'. This is a dubious improvement.
6220 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6221
6222 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6223 although it's not necessary, to avoid a warning.
6224
2fdde8f8
DJ
62252002-05-14 Daniel Jacobowitz <drow@mvista.com>
6226
6227 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6228 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6229 TYPE_INSTANCE_FLAGS.
6230 (struct main_type): New.
6231 (struct type): Move most members to struct main_type. Change
6232 cv_type and as_type to new type_chain member. Add instance_flags.
6233 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6234 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6235 (finish_cv_type): Remove prototype.
6236 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6237 Set TYPE_CHAIN.
6238 (alloc_type_instance): New function.
6239 (smash_type): New function.
6240 (make_pointer_type, make_reference_type, make_function_type)
6241 (smash_to_member_type, smash_to_method_type): Call smash_type.
6242 (make_qualified_type): New function.
6243 (make_type_with_address_space): Call make_qualified_type.
6244 (make_cv_type): Likewise.
6245 (finish_cv_type): Remove unnecessary function.
6246 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6247 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6248 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6249 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6250 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6251 * hpread.c (hpread_read_struct_type): Likewise.
6252 * stabsread.c (read_struct_type): Likewise.
6253
843fedf4
EZ
62542002-05-14 Elena Zannoni <ezannoni@redhat.com>
6255
6256 * configure.tgt: Add a catch all sh* target, for cases like
6257 sh[2,3,4]-elf and sh-hms.
6258
05a6c72c
KS
62592002-05-14 Keith Seitz <keiths@redhat.com>
6260
6261 * event-loop.c (create_file_handler): Don't do anything but
6262 update data when we are given a fd which we are already
6263 monitoring.
6264
5d085aaf
ML
62652002-05-14 Michal Ludvig <mludvig@suse.cz>
6266
6267 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6268 (update_context): Use __func__ in warnings.
6269
9db8d71f
DJ
62702002-05-14 Daniel Jacobowitz <drow@mvista.com>
6271
6272 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6273 and tcp_close to net_open and net_close.
6274 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6275 using UDP if requested. Don't try to disable Nagle on UDP
6276 sockets.
6277 * remote.c (remote_serial_open): New function. Warn about UDP.
6278 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6279
5dbc6baa
EZ
62802002-05-13 Elena Zannoni <ezannoni@redhat.com>
6281
6282 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6283
cc3023f7
EZ
62842002-05-13 Elena Zannoni <ezannoni@redhat.com>
6285
6286 * configure.tgt: Remove sh-hms target.
6287 * MAINTAINERS: Don't list sh-hms as a separate target.
6288
ec2bcbe7
JB
62892002-05-13 Jim Blandy <jimb@redhat.com>
6290
6291 Add first preprocessor macro-expansion files.
6292 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6293 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6294 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6295 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6296 (COMMON_OBS): Add macrotab.o, macroexp.o.
6297 (macroexp.o, macrotab.o): New rules.
6298
6d531722
AC
62992002-05-13 Andrew Cagney <ac131313@redhat.com>
6300
6301 * config/m88k/tm-m88k.h: Update copyright.
6302 (m88k_target_write_pc): Declare
6303 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6304 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6305 (SHIFT_INST_REGS): Update definition.
6306 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6307 using old definition of TARGET_WRITE_PC.
6308 * regcache.c (generic_target_write_pc): Delete code handling
6309 NNPC_REGNUM.
6310 * gdbarch.sh (NNPC_REGNUM): Delete.
6311 * gdbarch.h, gdbarch.c: Regenerate.
6312
3e3f2739
RE
63132002-05-13 Richard Earnshaw <rearnsha@arm.com>
6314
6315 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6316 builtin reg number.
6317
0004e5a2
DJ
63182002-05-13 Daniel Jacobowitz <drow@mvista.com>
6319
6320 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6321 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6322 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6323 access macros.
6324 * c-typeprint.c (cp_type_print_method_args): Likewise.
6325 (c_type_print_args): Likewise.
6326 * d10v-tdep.c (d10v_push_arguments): Likewise.
6327 (d10v_extract_return_value): Likewise.
6328 * expprint.c (print_subexp): Likewise.
6329 * gdbtypes.c (lookup_primitive_typename): Likewise.
6330 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6331 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6332 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6333 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6334 (TYPE_VECTOR): Likewise.
6335 * hpread.c (hpread_read_struct_type)
6336 (fix_static_member_physnames, fixup_class_method_type)
6337 (hpread_type_lookup): Likewise.
6338 * mdebugread.c (parse_symbol, parse_type): Likewise.
6339 * p-lang.c (is_pascal_string_type): Likewise.
6340 * valops.c (hand_function_call): Likewise.
6341 * x86-64-tdep.c (classify_argument): Likewise.
6342
6343 * hpread.c (hpread_read_function_type)
6344 (hpread_read_doc_function_type): Call replace_type.
6345 * dstread.c (create_new_type): Delete.
6346 (decode_dst_structure, process_dst_function): Call alloc_type.
6347 Use type access macros.
6348
dff95cc7
MK
63492002-05-12 Mark Kettenis <kettenis@gnu.org>
6350
6351 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6352 the're not supported by the current architecture.
6353 (i387_fill_fxsave): Likewise.
6354
bbcd32ad
FF
63552002-05-12 Fred Fish <fnf@redhat.com>
6356
6357 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6358 sect_index_xxx members to index the first slot in section_offsets
6359 if all of the section_offsets are zero.
6360
89cf4787
MK
63612002-05-12 Mark Kettenis <kettenis@gnu.org>
6362
6363 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6364 checked in with last change.
6365
1f77ffc5
MK
63662002-05-12 Mark Kettenis <kettenis@gnu.org>
6367
6368 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6369 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6370 config.sub.
6371
89b8b4a9
DJ
63722002-05-12 Daniel Jacobowitz <drow@mvista.com>
6373
6374 * Makefile.in: Update dependencies.
6375
14a5e767
AC
63762002-05-11 Andrew Cagney <ac131313@redhat.com>
6377
6378 * language.c (local_hex_string_custom): Simplify. Do not depend
6379 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6380
6381 * memattr.c (mem_info_command): Replace calls to
6382 longest_local_hex_string and longest_local_hex_string_custom.
6383 * buildsym.c (make_blockvector): Ditto.
6384 * solib.c (info_sharedlibrary_command): Ditto.
6385 * tracepoint.c (tracepoints_info): Ditto.
6386 * symtab.c (print_msymbol_info): Ditto.
6387
6388 * language.c (local_hex_string): Delete.
6389 (local_hex_string_custom): Delete.
6390 (longest_local_hex_string): Rename to local_hex_string.
6391 (longest_local_hex_string_custom): Rename to
6392 local_hex_string_custom.
6393 * language.h (local_hex_string): Change parameter type to LONGEST.
6394 (local_hex_string_custom): Ditto.
6395 (longest_local_hex_string): Delete declaration.
6396 (longest_local_hex_string_custom): Ditto.
6397
6398 * solib.c: Update copyright.
6399 * memattr.c: Update copyright.
6400
13d01224
AC
64012002-05-11 Andrew Cagney <ac131313@redhat.com>
6402
6403 * arch-utils.h (legacy_register_to_value): Declare.
6404 (legacy_value_to_register): Declare.
6405 (legacy_convert_register_p): Declare.
6406 * arch-utils.c (legacy_register_to_value): New function.
6407 (legacy_value_to_register): New function.
6408 (legacy_convert_register_p): New function.
6409
6410 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6411 (VALUE_TO_REGISTER): Define.
6412 (CONVERT_REGISTER_P): Define.
6413 * gdbarch.h, gdbarch.c: Regenerate.
6414
6415 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6416 VALUE_TO_REGISTER.
6417 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6418 CONVERT_REGISTER_P.
6419
4a1970e4
DJ
64202005-05-11 Daniel Jacobowitz <drow@mvista.com>
6421 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6422
6423 * Makefile.in: Update dependencies for valops.c.
6424 * valops.c: Include "gdb_assert.h".
6425 (typecmp): Skip THIS parameter to methods.
6426 (find_method_list): Remove static_memfuncp argument,
6427 update callers. Check for stub methods.
6428 (find_value_oload_method_list): Don't set *static_memfuncp.
6429 (find_overload_match): Don't check for stub methods. Assert
6430 that methods are not stubbed. Handle static methods.
6431 (value_find_oload_method_list): Remove static_memfuncp argument.
6432 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6433 to the argument list for static stub methods.
6434 * value.h (value_find_oload_method_list): Update prototype.
6435
b2e75d78
AC
64362002-05-11 Andrew Cagney <ac131313@redhat.com>
6437
6438 * arch-utils.h (generic_register_size): Declare.
6439 (generic_register_raw_size, generic_register_virtual_size): Delete
6440 declarations.
6441 * arch-utils.c (generic_register_raw_size): Delete.
6442 (generic_register_size): New function.
6443 (generic_register_virtual_size): Delete.
6444
6445 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6446 default generic_register_size.
6447 * gdbarch.h, gdbarch.c: Re-generate.
6448
6449 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6450 register_virtual_size.
6451 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6452 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6453
451fbdda
AC
64542002-05-11 Andrew Cagney <ac131313@redhat.com>
6455
6456 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6457 * gdbarch.h, gdbarch.c: Regenerate.
6458 * gnu-v3-abi.c: Update copyright.
6459 (vtable_address_point_offset): Update.
6460 (gnuv3_rtti_type): Update.
6461 (gnuv3_baseclass_offset): Update.
6462 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6463 (init_fetch_link_map_offsets): Update.
6464 * remote.c (get_remote_state): Update.
6465
6d2f5cea
DJ
64662002-05-11 Daniel Jacobowitz <drow@mvista.com>
6467
6468 * TODO: Remove value_headof/value_from_vtable_info comment.
6469 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6470 * values.c (value_headof, value_from_vtable_info): Delete.
6471 * value.h (value_from_vtable_info): Delete prototype.
6472
d2324da4
AC
64732002-05-11 Andrew Cagney <ac131313@redhat.com>
6474
6475 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6476 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6477 $(gdb_regex_h).
6478 (gdb_assert_h): Define.
6479 (gdb_wait_h): Define.
6480 (gdb_regex_h): Define.
6481
5c717440
DJ
64822002-05-11 Daniel Jacobowitz <drow@mvista.com>
6483
6484 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6485 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6486
6c7861b3
JT
64872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6488
6489 * nbsd-tdep.c: Fix comment.
6490
ea5bc2a6
JT
64912002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6492
6493 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6494 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6495 (nbsd-tdep.o): New dependency list.
6496 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6497 nbsd-tdep.h.
6498 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6499 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6500 * nbsd-tdep.c: New file.
6501 * nbsd-tdep.h: New file.
6502 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6503 nbsd-tdep.h.
6504 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6505 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6506 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6507 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6508
b28da865
JT
65092002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6510
6511 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6512 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6513 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6514 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6515 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6516 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6517
4b8ff1fa
JT
65182002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6519
6520 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6521 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6522 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6523 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6524 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6525 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6526 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6527
dfe6eb1f
JT
65282002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6529
6530 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6531 fetch_elfcore_registers to...
6532 * i386nbsd-tdep.c: ...here.
6533 (i386nbsd_use_struct_convention): Rename to...
6534 (i386nbsd_aout_use_struct_convention): ...this.
6535 (i386nbsd_supply_reg): New function.
6536 (i386nbsd_fill_reg): New function.
6537 (fetch_core_registers): Use i386nbsd_supply_reg.
6538 (fetch_elfcore_registers): Likewise.
6539 (_initialize_i386nbsd_tdep): New function.
6540 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6541 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6542 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6543 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6544 (i386nbsd_aout_use_struct_convention): ...this.
6545
20cb8cda
JT
65462002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6547
6548 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6549 (store_inferior_registers): Use shnbsd_fill_reg.
6550 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6551 sh_nbsd_supply_register): Collapse into...
6552 (shnbsd_supply_reg): ...this.
6553 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6554 (shnbsd_fill_reg): ...this.
6555 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6556 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6557 (fetch_core_registers): Use shnbsd_supply_reg.
6558 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6559 (sh_nbsd_core_fns): Rename to...
6560 (shnbsd_core_fns): ...this.
6561 (sh_nbsd_elfcore_fns): Rename to...
6562 (shnbsd_elfcore_fns): ...this.
6563 (sh_nbsd_init_abi): Rename to...
6564 (shnbsd_init_abi): ...this.
6565 (_initialize_sh_nbsd_tdep): Rename to...
6566 (_initialize_shnbsd_tdep): ...this.
6567 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6568 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6569 sh_nbsd_fill_register): Remove prototypes.
6570 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6571
e750d25e
JT
65722002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6573
6574 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6575 (i387-nat.o): Delete dependency list.
6576 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6577 (x86-64-linux-nat.o): Likewise.
6578 * i387-nat.c: Delete file, moving contents to...
6579 * i387-tdep.c: ...here.
6580 * i387-nat.h: Rename...
6581 * i387-tdep.h: ...to this.
6582 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6583 * i386-linux-nat.c: Likewise.
6584 * i386bsd-nat.c: Likewise.
6585 * i386gnu-nat.c: Likewise.
6586 * i386nbsd-nat.c: Likewise.
6587 * i386v4-nat.c: Likewise.
6588 * x86-64-linux-nat.c: Likewise.
6589 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6590 * config/i386/go32.mh (NATDEPFILES): Likewise.
6591 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6592 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6593 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6594 * config/i386/linux.mh (NATDEPFILES): Likewise.
6595 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6596 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6597 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6598 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6599
1aee598a
JT
66002002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6601
6602 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6603 (alphanbsd-nat.o): Remove dependency list.
6604 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6605 * alphanbsd-nat.c: Delete. Contents moved to...
6606 * alphanbsd-tdep.c: ...here.
6607 (_initialize_alphanbsd_tdep): Register core functions.
6608 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6609
12bcb0fe
JT
66102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6611
6612 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6613 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6614 (alphanbsd-nat.o): Likewise.
6615 (alphabsd-tdep.o): New dependency list.
6616 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6617 (fill_gregset): Use alphabsd_fill_reg.
6618 (supply_fpregset): Use alphabsd_supply_fpreg.
6619 (fill_fpregset): Use alphabsd_fill_fpreg.
6620 (fetch_inferior_registers): Use struct reg and struct fpreg
6621 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6622 and alphabsd_supply_fpreg.
6623 (store_inferior_registers): Use struct reg and struct fpreg
6624 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6625 and alphabsd_fill_fpreg.
6626 * alphabsd-tdep.c: New file.
6627 * alphabsd-tdep.h: New file.
6628 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6629 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6630 alphabsd_supply_fpreg.
6631 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6632 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6633
361d1df0
EC
66342002-05-11 Eric Christopher <echristo@redhat.com>
6635
6636 * mips-tdep.c (mips_double_register_type): Fix thinko.
6637 (mips_single_register_type): Ditto.
6638 * MAINTAINERS: Add self.
6639
92dd7cee
MK
66402002-05-11 Mark Kettenis <kettenis@gnu.org>
6641
6642 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6643 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6644 right thing on architectures with different endianness and/or
6645 integer sizes.
6646
e27da16d
JT
66472002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6648
6649 From Christian Limpach <chris@Pin.LU>
6650 * configure.in: Change sed expression which comments out
6651 NATDEPFILES to also comment out continuation lines.
6652 * configure: Regenerate.
6653
ddde02bd
EZ
66542002-05-10 Elena Zannoni <ezannoni@redhat.com>
6655
6656 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6657 big patch.
6658
1c922164
EZ
66592002-05-10 Elena Zannoni <ezannoni@redhat.com>
6660
6661 * sh-tdep.c: Include correct file.
6662
283150cd
EZ
66632002-05-10 Elena Zannoni <ezannoni@redhat.com>
6664
6665 New support for sh64-elf (sh5) target.
6666
6667 * configure.tgt: For sh64-elf target, default to sh-elf.
6668
6669 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6670 (struct gdbarch_tdep): Add new fields for new registers and ABI
6671 info.
361d1df0 6672
283150cd
EZ
6673 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6674 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6675 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6676 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6677 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6678 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6679 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6680 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6681 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6682 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6683 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6684 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6685 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6686 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6687 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6688 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6689 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6690 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6691 sign_extend, sh64_nofp_frame_init_saved_regs,
6692 sh64_init_extra_frame_info, sh64_get_saved_register,
6693 sh64_extract_struct_value_address, sh64_pop_frame,
6694 sh64_push_arguments, sh64_extract_return_value,
6695 sh64_store_return_value, sh64_show_media_regs,
6696 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6697 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6698 sh_sh64_register_virtual_type,
6699 sh_sh64_register_convert_to_virtual,
6700 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6701 sh64_register_read, sh64_pseudo_register_write,
6702 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6703 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6704 sh64_do_pseudo_register, sh_compact_do_registers_info,
6705 sh64_do_registers_info, sh_gdbarch_init): New functions.
6706
3117ed25
EZ
67072002-05-10 Elena Zannoni <ezannoni@redhat.com>
6708
6709 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6710
2654e6d4
DJ
67112002-05-10 Daniel Jacobowitz <drow@mvista.com>
6712
6713 * linespec.c (decode_line_1): Check for a double quote after
6714 a filename correctly.
6715
9ab3e532
JB
67162002-05-10 Jim Blandy <jimb@redhat.com>
6717
6718 Properly track the size of the current objfile's .debug_line section.
6719 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6720 (DWARF_LINE_SIZE): New macro.
6721 (dwarf2_build_psymtabs_hard): Record the line section's size in
6722 the partial symbol table.
6723 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6724 symbol table.
6725
126fa72d
PS
67262002-05-10 Petr Sorfa <petrs@caldera.com>
6727
6728 * ia64-tdep.c: Handle breakpoints on L instruction type
6729 in MLX instruction bundle by moving the breakpoint to
6730 the third slot (X instruction type) as L holds only data.
6731
1f077a3e
KB
67322002-05-10 Kevin Buettner <kevinb@redhat.com>
6733
6734 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6735 (process_one_symbol): Complain about discarding local symbols
6736 due to a misplaced N_LBRAC entry.
6737
8120c9d5 67382002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6739
6740 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6741 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6742 decrease the depth we are at, in the case of templates.
361d1df0 6743
67b2c998
DJ
67442002-05-09 Daniel Jacobowitz <drow@mvista.com>
6745
6746 * mips-tdep.c (mips_float_register_type): New function.
6747 (mips_double_register_type): New function.
6748 (mips_print_register): Use them.
6749 (do_fp_register_row): Likewise.
6750
fd326606
DJ
67512002-05-09 Daniel Jacobowitz <drow@mvista.com>
6752
6609d9af 6753 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6754 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6755 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6756
bef35864
MS
67572002-05-09 Michael Snyder <msnyder@redhat.com>
6758
6759 * remote-rdp.c (remote_rdp_can_run): Remove.
6760
c55a3f73
TT
67612002-05-09 Tom Tromey <tromey@redhat.com>
6762
6763 * jv-valprint.c (java_val_print): Handle `char' as a special case
6764 of TYPE_CODE_INT.
6765
b8d5e71d
MS
67662002-05-09 Michael Snyder <msnyder@redhat.com>
6767
6768 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6769 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6770 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6771 str r(0123),[sp,#nn].
361d1df0 6772 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6773 order-independent by placing it in a loop.
6774
e2cd42dd
MS
67752002-05-06 Michael Snyder <msnyder@redhat.com>
6776
6777 * stabsread.c (read_type): Add recognition for new attribute:
6778 "@V;" means that an array type is actually a vector.
6779 This is analogous to the vector flag that's been added to dwarf2.
6780
3ce1502b
MK
67812002-05-09 Mark Kettenis <kettenis@gnu.org>
6782
6783 * i386-tdep.h (i386_abi): New enum.
6784 (struct gdbarch_tdep): Replace os_ident member with abi.
6785 (i386_gdbarch_register_os_abi): New prototype.
6786 * i386-tdep.c (i386_abi_names): New array.
6787 (process_note_abi_tag_sections): Removed.
6788 (process_note_sections): New function.
6789 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6790 (struct i386_abi_handler): New struct.
6791 (i386_abi_handler_list): New variable.
6792 (i386_gdbarch_register_os_abi): New function.
6793 (i386_gdbarch_init): Adapt for the changes given above.
6794
084c156a
DJ
67952002-05-08 Daniel Jacobowitz <drow@mvista.com>
6796
6797 * gregset.h: Say "GNU/Linux".
6798
6599f021
EZ
67992002-05-08 Elena Zannoni <ezannoni@redhat.com>
6800
6801 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6802 (build_gdbtypes): Build builtin_type_v2_float.
6803 (_initialize_gdbtypes): Register new builtin type.
6804
40af4b0c
AC
68052002-05-08 Andrew Cagney <ac131313@redhat.com>
6806
6807 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6808 (clear_gdbarch_swap): New function.
6809 (initialize_non_multiarch): Call.
6810 (gdbarch_update_p): Before calling init(), swap out and clear the
6811 existing architecture.
6812 * gdbarch.c: Regenerate.
6813
4fe84f46
JT
68142002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6815
6816 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6817 alphanbsd-tdep.c.
6818
4015edd1
JT
68192002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6820
6821 * sh-nbsd-nat.c: Rename to...
6822 * shnbsd-nat.c: ...this.
6823 * sh-nbsd-tdep.c: Rename to...
6824 * shnbsd-tdep.c: ...this.
6825 * sh-nbsd-tdep.h: Rename to...
6826 * shnbsd-tdep.h: ...this.
6827 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6828 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6829
0e2bd219
RE
68302002-05-08 Richard Earnshaw <rearnsha@arm.com>
6831
6832 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6833 concatenation for command help messages.
6834
13a38d45
JT
68352002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6836
6837 * NEWS: Note new sh*-*-netbsdelf* configuration.
6838 * configure.host: Set gdb_host_cpu to sh for all sh*.
6839 (sh*-*-netbsdelf*): New host.
6840 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6841 (sh*-*-netbsdelf*): New target.
6842 * sh-nbsd-nat.c: New file.
6843 * sh-nbsd-tdep.c: New file.
6844 * sh-nbsd-tdep.h: New file.
6845 * config/sh/nbsd.mh: New file.
6846 * config/sh/nbsd.mt: New file.
6847 * config/sh/nm-nbsd.h: New file.
6848 * config/sh/tm-nbsd.h: New file.
6849
d658f924
JT
68502002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6851
6852 * sh-tdep.c (sh_osabi_names): Declare.
6853 (process_note_abi_tag_sections): New function.
6854 (get_elfosabi): Ditto.
6855 (sh_gdbarch_register_os_abi): Ditto.
6856 (sh_dump_tdep): Ditto.
6857 _initialize_sh_tdep): Use gdbarch_register to register
6858 sh_gdbarch_init and sh_dump_tdep.
6859 * config/sh/tm-sh.h (sh_osabi): Declare.
6860 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6861
848cfffb
AC
68622002-05-07 Andrew Cagney <ac131313@redhat.com>
6863
6864 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6865 (thumb_scan_prologue): Ditto.
6866 (arm_find_callers_reg): Ditto.
6867 (arm_frame_chain): Ditto.
6868 (arm_init_extra_frame_info): Ditto.
6869 (arm_frame_saved_pc): Ditto.
6870 (arm_pop_frame): Ditto.
6871 (arm_push_return_address): New function.
6872 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6873 call_dummy_location, call_dummy_breakpoint_offset_p,
6874 call_dummy_breakpoint_offset, call_dummy_p,
6875 call_dummy_stack_adjust_p, call_dummy_words,
6876 sizeof_call_dummy_words, call_dummy_start_offset,
6877 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6878 call_dummy_address, push_return_address and push_dummy_frame for
6879 generic dummy frames.
6880
e7d717c0
JT
68812002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6882
6883 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6884 size computation for alloca.
6885 (sh_fp_frame_init_saved_regs): Likewise.
6886
7bbcf283
RE
68872002-05-07 Richard Earnshaw <rearnsha@arm.com>
6888
6889 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6890 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6891 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6892 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6893 * remote-rdp.c (remote_rdp_fetch_register): Use
6894 ARM_MAX_REGISTER_RAW_SIZE.
6895 (remote_rdp_store_register): Likewise.
6896
4657573b
ML
68972002-05-07 Michal Ludvig <mludvig@suse.cz>
6898
361d1df0 6899 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6900 added default labels to switch {} statements.
6901 * x86-64-tdep.c: Ditto.
6902 * x86-64-linux-nat.c: Ditto.
6903
010f3b2f
JT
69042002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6905
6906 * solib.h: Protect against multiple inclusion.
6907
debd256d
JB
69082002-05-06 Jim Blandy <jimb@redhat.com>
6909
9ab3e532
JB
6910 Add first preprocessor macro-expansion files.
6911 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6912 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6913 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6914 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6915 (COMMON_OBS): Add macrotab.o, macroexp.o.
6916 (macroexp.o, macrotab.o): New rules.
6917
debd256d
JB
6918 Separate the job of reading the line number info statement program
6919 header (...expialidocious) out into its own function.
6920 * dwarf2read.c (struct line_head, struct filenames, struct
6921 directories): Replace with...
6922 (struct line_header): New structure, containing the full
6923 contents of the statement program header, including the
6924 include directory and file name tables.
6925 (read_file_scope): If we have line number info, instead of just
6926 calling dwarf_decode_lines to do all the work, call
6927 dwarf_decode_line_header first to get a `struct line_header'
6928 containing the data in the statement program header, and then
6929 pass that to dwarf_decode_lines, which will pick up where that
6930 left off. Be sure to clean up the `struct line_header' object.
6931 (dwarf_decode_line_header, free_line_header, add_include_dir,
6932 add_file_name): New functions.
6933 (dwarf_decode_lines): Move all the code to read the statement
6934 program header into dwarf_decode_line_header. Take the line
6935 header it built as the first argument, instead of the offset to
6936 the compilation unit's line number info. Use the new `struct
6937 line_header' type instead of the old structures. No need to do
6938 cleanups here now, since we don't allocate anything.
6939 (dwarf2_statement_list_fits_in_line_number_section,
6940 dwarf2_line_header_too_long): New complaints.
6941
ac3aafc7
EZ
69422002-05-06 Elena Zannoni <ezannoni@redhat.com>
6943
6944 * gdbtypes.c (init_vector_type): New function.
6945 (build_builtin_type_vec128): Simplify the representation of SIMD
6946 registers.
6947 (build_gdbtypes): Initialize new builtin vector types.
6948 (_initialize_gdbtypes): Register new vector types with gdbarch.
6949 (builtin_type_v4_float, builtin_type_v4_int32,
6950 builtin_type_v8_int16, builtin_type_v16_int8,
6951 builtin_type_v2_int32, builtin_type_v4_int16,
6952 builtin_type_v8_int8): New (renamed) SIMD types.
6953
13e49980
MK
69542002-05-06 Mark Kettenis <kettenis@gnu.org>
6955
6956 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6957 (i387_fill_fxsave): Likewise.
6958
997b20b8
AO
69592002-05-05 Alexandre Oliva <aoliva@redhat.com>
6960
6961 * alpha-tdep.c (alpha_extract_return_value): Don't use
6962 non-constant array size in prototype.
6963
535c96ce
AC
69642002-05-04 Andrew Cagney <ac131313@redhat.com>
6965
6966 From Brian Taylor <briant at model dot com>:
6967 * ui-out.c (ui_out_field_core_addr): Use the function
6968 longest_local_hex_string_custom'to format addresses > 32 bits
6969 wide.
6970
6971 * ui-out.c (ui_out_field_core_addr): Update comment.
6972
bedfa57b
AC
69732002-05-04 Andrew Cagney <ac131313@redhat.com>
6974
6975 * stack.c (select_and_print_frame): Make static. Delete the
6976 parameter `level'.
6977 (func_command): Update call.
6978 (select_frame_command): Delete code computing the frame level.
6979 * frame.h (select_and_print_frame): Delete declaration.
6980
f621c63e
AC
69812002-05-04 Andrew Cagney <ac131313@redhat.com>
6982
6983 * sparc-tdep.c (sparc_get_saved_register): Comment why
6984 get_prev_frame call is safe.
6985
0f7d239c
AC
69862002-05-04 Andrew Cagney <ac131313@redhat.com>
6987
6988 * frame.h (select_frame): Delete level parameter.
6989 * stack.c (select_frame): Update. Use frame_relative_level to
6990 obtain the frame's level.
6991 (select_and_print_frame): Update call.
6992 (select_frame_command): Ditto.
6993 (up_silently_base): Ditto.
6994 (down_silently_base): Ditto.
6995 * ocd.c (ocd_start_remote): Ditto.
6996 * remote-rdp.c (remote_rdp_open): Ditto.
6997 * remote-mips.c (mips_initialize): Ditto.
6998 (common_open): Ditto.
6999 * remote-e7000.c (e7000_start_remote): Ditto.
7000 * m3-nat.c (select_thread): Ditto.
7001 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7002 (child_get_current_exception_event): Ditto.
7003 * varobj.c (varobj_create): Ditto.
7004 (varobj_update): Ditto.
7005 (c_value_of_root): Ditto.
7006 * tracepoint.c (finish_tfind_command): Ditto.
7007 * corelow.c (core_open): Ditto.
7008 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7009 * thread.c (info_threads_command): Ditto.
7010 (switch_to_thread): Ditto.
7011 * infrun.c (normal_stop): Ditto.
7012 (restore_selected_frame): Ditto.
7013 (restore_inferior_status): Ditto.
7014 * breakpoint.c (insert_breakpoints): Ditto.
7015 (watchpoint_check): Ditto.
7016 (bpstat_stop_status): Ditto.
7017 (do_enable_breakpoint): Ditto.
7018 * blockframe.c (flush_cached_frames): Ditto.
7019 (reinit_frame_cache): Ditto.
7020
71d6c7b1
AC
70212002-05-04 Andrew Cagney <ac131313@redhat.com>
7022
7023 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7024 maintainer.
7025
cda6c68a
JB
70262002-05-04 Jim Blandy <jimb@redhat.com>
7027
7028 * gdbtypes.c (replace_type): Doc fix.
7029
5c1c87f0
AC
70302002-05-04 Andrew Cagney <ac131313@redhat.com>
7031
7032 * valprint.c (strcat_longest): Delete commented out function.
7033 Update copyright.
7034
cd9bfe15
AC
70352002-05-04 Andrew Cagney <ac131313@redhat.com>
7036
7037 * MAINTAINERS: Mark a29k as deleted.
7038 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7039 Move new configurations to the top.
7040 * configure.tgt: Remove a29k.
7041 * config/a29k/tm-vx29k.h: Delete.
7042 * config/a29k/vx29k.mt: Delete.
7043 * config/a29k/tm-a29k.h: Delete.
7044 * config/a29k/a29k-udi.mt: Delete.
7045 * config/a29k/a29k.mt: Delete.
7046 * a29k-tdep.c: Delete.
7047 * remote-udi.c: Delete.
7048 * remote-mm.c: Delete.
7049 * remote-eb.c: Delete.
7050 * remote-adapt.c: Delete.
7051 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7052 * config/s390/s390x.mt: Ditto.
7053 * config/s390/s390.mt: Ditto.
7054 * config/sparc/sparclynx.mh: Ditto.
7055 * config/sparc/linux.mh: Ditto.
7056 * config/pa/hppaosf.mh: Ditto.
7057 * config/pa/hppabsd.mh: Ditto.
7058 * config/ns32k/nbsd.mt: Ditto.
7059 * config/mips/vr5000.mt: Ditto.
7060 * config/m68k/sun3os4.mh: Ditto.
7061 * config/m68k/nbsd.mt: Ditto.
7062 * config/m68k/m68klynx.mh: Ditto.
7063 * config/m32r/m32r.mt: Ditto.
7064 * config/i386/x86-64linux.mt: Ditto.
7065 * config/i386/nbsdelf.mt: Ditto.
7066 * config/i386/nbsd.mt: Ditto.
7067 * config/i386/i386lynx.mh: Ditto.
7068
bf0c5130
AC
70692002-05-04 Andrew Cagney <ac131313@redhat.com>
7070
7071 * target.c (debug_print_register): New function. Handle oversize
7072 registers.
7073 (debug_to_fetch_registers): Call.
7074 (debug_to_store_registers): Call.
7075
2ae1c2d2
JB
70762002-05-03 Jim Blandy <jimb@redhat.com>
7077
13a393b0
JB
7078 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7079 (read_type): Doc fix.
7080 * gdbtypes.c (replace_type): Doc fix.
7081
2ae1c2d2
JB
7082 * stabsread.c (multiply_defined_struct): New complaint.
7083 (read_struct_type): If the type we were passed isn't empty, or
7084 incomplete, don't read the new struct type into it; complain,
7085 and return the original type unchanged. Take a new `type_code'
7086 argument, which is the type code for the new type.
7087 (read_type): Rather than storing the type's type code here, pass
7088 it as an argument to read_struct_type, and let that take care of
7089 storing it. That way, we don't overwrite the original type code,
7090 so read_struct_type can use it to decide whether we're overwriting
7091 something we shouldn't.
7092 (complain_about_struct_wipeout): New function.
7093
8de9bdc4
AC
70942002-05-03 Andrew Cagney <ac131313@redhat.com>
7095
7096 * gdbarch.sh: Assert that gdbarch is non-NULL.
7097 * gdbarch.c: Regenerate.
7098
f773fdbb
JM
70992002-05-03 Jason Merrill <jason@redhat.com>
7100
7101 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7102 and return NULL.
7103
0e04a514
ML
71042002-05-03 Michal Ludvig <mludvig@suse.cz>
7105
7106 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7107 (x86_64_dwarf2gdb_regno_map_length),
7108 (x86_64_dwarf2_reg_to_regnum): Added.
7109 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7110 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7111 (_initialize_x86_64_tdep): Synced with the change above.
7112 (x86_64_skip_prologue): Reformulated message.
7113
065432a8
PM
71142002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7115
7116 * f-exp.y: Also use new prev_lexptr variable
7117 to improve error reporting. Based on Michael Snyder
7118 2002-04-24 dated patch to c-exp.y.
7119 * jv-exp.y: Likewise.
7120 * m2-exp.y: Likewise.
7121
a3162708
EZ
71222002-05-02 Elena Zannoni <ezannoni@redhat.com>
7123
7124 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7125 we are dealing with vectors.
7126
03620c38
PM
71272002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7128
7129 * config/m68k/tm-nbsd.h: Obvious fix,
7130 correct machine name.
7131
6604db2e
PM
71322002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7133
7134 * p-typeprint.c (pascal_type_print_base): Add support
7135 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7136
0906b739
PM
71372002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7138
7139 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7140 for fondamental pascal 'char' type.
7141
e2625b33
PM
71422002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7143
7144 * p-lang.h (is_pascal_string_type): Declaration changed,
7145 new sixth argument of type char ** added.
361d1df0 7146 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7147 changed. Args length_pos, length_size, string_pos, char_size
7148 can now be NULL. New argument arrayname set to the field
7149 name of the char array. Return value set to char array
7150 field index plus one.
361d1df0 7151 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7152 is_pascal_string_type function.
7153
cf17c188
AC
71542002-05-02 Andrew Cagney <cagney@redhat.com>
7155
7156 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7157 <cagney@redhat.com> change.
7158 * gdbarch.c: Regenerate.
7159
52bca491
AC
71602002-05-02 Andrew Cagney <cagney@redhat.com>
7161
7162 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7163 before probing for a new one. Detect errorenous gdbarch_init
7164 functions.
7165 * gdbarch.c: Regenerate.
7166
d5e72505
AC
71672002-05-01 Andrew Cagney <cagney@redhat.com>
7168
7169 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7170 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7171 * config/v850/tm-v850.h: Ditto. Update copyright.
7172
af566d9f
AC
71732002-04-30 Andrew Cagney <ac131313@redhat.com>
7174
7175 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7176 current_gdbarch.
7177
880d85fa
MS
71782002-04-30 Michael Snyder <msnyder@redhat.com>
7179
94c30b78
MS
7180 * arm-tdep.c: Whitespace clean-ups.
7181 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7182 should have been removed as part of 4/24 change.
7183
6f5987a6
KB
71842002-04-30 Kevin Buettner <kevinb@redhat.com>
7185
7186 * rs6000-tdep.c: Added comment describing how fpscr register
7187 numbers were chosen.
7188
1a113c93
MS
71892002-04-30 Michael Snyder <msnyder@redhat.com>
7190
7191 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7192
9a6f53fe
EZ
71932002-04-29 Elena Zannoni <ezannoni@redhat.com>
7194
7195 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7196 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7197 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7198
11ed25ac
KB
71992002-04-29 Kevin Buettner <kevinb@redhat.com>
7200
7201 From Louis Hamilton <hamilton@redhat.com>:
7202 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7203 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7204 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7205 not bfd-private xcoff data, to determine wordsize.
7206 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7207
ae232405
AC
72082002-04-29 Andrew Cagney <ac131313@redhat.com>
7209
7210 GDB 5.2 released from 5.2 branch.
7211
91fd20f7
ML
72122002-04-29 Michal Ludvig <mludvig@suse.cz>
7213
7214 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7215 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7216 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7217
2dc5091b
EZ
72182002-04-29 Elena Zannoni <ezannoni@redhat.com>
7219
7220 * rs6000-tdep.c (rs6000_extract_return_value,
7221 rs6000_store_return_value): Handle returning vectors.
7222 (rs6000_gdbarch_init): Use
7223 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7224 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7225 New function.
7226 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7227 vectors.
7228 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7229 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7230
2b9848d8
PM
72312002-04-24 Pierre Muller <ics.u-strasbg.fr>
7232
7233 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7234 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7235 with fprintf_unfiltered (gdb_stderr,...).
7236
f8d17dc5
PM
72372002-04-24 Pierre Muller <ics.u-strasbg.fr>
7238
7239 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7240 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7241 Replace fprintf (stderr,...
7242 with fprintf_unfiltered (gdb_stderr,....
7243 * remote-es.c: Likewise.
7244 * remote-os9k.c: Likewise.
7245 * remote-st.c: Likewise.
7246
2f2f1ad1
AS
72472002-04-28 Andreas Schwab <schwab@suse.de>
7248
7249 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7250 linux-proc.o and gcore.o.
7251
b6779aa2
AC
72522002-04-26 Michal Ludvig <mludvig@suse.cz>
7253
7254 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7255 code without frame pointers.
7256
7e57f5f4
AC
72572002-04-26 Andrew Cagney <ac131313@redhat.com>
7258
7259 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7260 ON_STACK is needed.
7261
2ceb85d0
BE
72622002-04-26 Ben Elliston <bje@redhat.com>
7263
7264 * target.c (do_xfer_memory): Correct reference to the new option
7265 "trust-readonly-sections".
7266
f5f8a009
EZ
72672002-04-26 Elena Zannoni <ezannoni@redhat.com>
7268
7269 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7270 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7271 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7272 vectors.
7273 (read_array_type): Record the fact that this array type is really a
7274 vector (i.e. are passed in by value).
7275
5868c862
JT
72762002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7277
7278 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7279 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7280 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7281 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7282 * alpha-linux-tdep.c: Include frame.h.
7283 (alpha_linux_sigcontext_addr): New function.
7284 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7285 alpha_linux_sigcontext_addr.
7286 * alpha-osf1-tdep.c: Include gdbcore.h.
7287 (alpha_osf1_sigcontext_addr): New function.
7288 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7289 alpha_osf1_sigcontext_addr.
7290 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7291 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7292
bfb01f37
AC
72932002-04-26 Andrew Cagney <ac131313@redhat.com>
7294
361d1df0 7295 * stack.c (selected_frame_level):
bfb01f37
AC
7296 (select_frame): Do not set selected_frame_level.
7297 * frame.h (selected_frame_level): Delete declaration.
7298
15813d3f
AC
72992002-04-26 Andrew Cagney <ac131313@redhat.com>
7300
7301 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7302 convert_from_func_ptr-addr when AIX / PowerOpen.
7303
6096c27a
AC
73042002-04-25 Andrew Cagney <ac131313@redhat.com>
7305
7306 * valops.c (hand_function_call): Call
7307 generic_save_call_dummy_addr.
7308 * frame.h (generic_save_call_dummy_addr): Declare.
7309 * blockframe.c (struct dummy_frame): Add fields call_lo and
7310 call_hi.
7311 (generic_find_dummy_frame): Check for PC in range call_lo to
7312 call_hi instead of entry_point_address.
7313 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7314 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7315 (generic_save_call_dummy_addr): New function.
7316
f510d44e
DM
73172002-04-24 David S. Miller <davem@redhat.com>
7318
7319 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7320 sparc_skip_prologue.
7321 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7322 information to find prologue when possible.
7323 (sparc_prologue_frameless_p): Call examine_prologue directly.
7324 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7325 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7326 second argument.
7327 (SKIP_PROLOGUE): Likewise.
7328
15d72a92
JT
73292002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7330
7331 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7332 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7333 indicate that the condition it was testing is always true.
7334 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7335 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7336 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7337
accc6d1f
JT
73382002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7339
7340 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7341 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7342 tdep->jb_pc and tdep->jb_elt_size.
7343 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7344 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7345 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7346 * alpha-nat.c (get_longjmp_target): Remove.
7347 (JB_ELEMENT_SIZE): Ditto.
7348 (JB_PC): Ditto.
7349 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7350 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7351 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7352 to alpha_get_longjmp_target.
7353 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7354 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7355 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7356
1bfdc549
AC
73572002-04-25 Andrew Cagney <ac131313@redhat.com>
7358
7359 * README: Update to GDB 5.2.
7360
1bd316f0
AC
73612002-04-25 Andrew Cagney <ac131313@redhat.com>
7362
7363 * gdbarch.sh (LC_ALL): Set to `c'.
7364
2e5ff58c
TR
73652002-04-25 Theodore A. Roth <troth@verinet.com>
7366
7367 * avr-tdep.c: Ran through gdb_indent.sh.
7368
e33ce519
TR
73692002-04-25 Theodore A. Roth <troth@verinet.com>
7370
7371 * MAINTAINERS: Add myself as AVR maintainer.
7372 * NEWS: Note new target avr.
7373
8818c391
TR
73742002-04-25 Theodore A. Roth <troth@verinet.com>
7375
7376 * Makefile.in: Add support for AVR target.
7377 * configure.tgt: Add support for AVR target.
7378 * avr-tdep.c: New file
7379 * config/avr/avr.mt: New file.
7380
79509c2d
TR
73812002-04-25 Theodore A. Roth <troth@verinet.com>
7382
7383 * MAINTAINERS: Add myself to write-after-approval.
7384
dac8068e
PM
73852002-04-24 Pierre Muller <ics.u-strasbg.fr>
7386
7387 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7388 with fprintf_unfiltered (gdb_stderr,....
7389
25bf3106
PM
73902002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7391
7392 Fix PR gdb/508.
7393 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7394
24467a86
PM
73952002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7396
7397 * p-exp.y: Also use new prev_lexptr variable
7398 to improve error reporting. Based on Michael Snyder
7399 2002-04-24 dated patch to c-exp.y.
7400
95b80706
JT
74012002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7402
7403 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7404 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7405 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7406 to 0.
7407 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7408 and struct value.
7409 (FUNCTION_START_OFFSET): Remove.
7410 (BREAKPOINT): Ditto.
7411
e90cc612
JT
74122002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7413
7414 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7415 * NEWS: Ditto.
7416
6c72f9f9
JT
74172002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7418
7419 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7420 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7421 alpha_linux_pc_in_sigtramp.
7422 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7423 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7424 alpha_osf1_pc_in_sigtramp.
7425 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7426 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7427 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7428 alphafbsd_pc_in_sigtramp.
7429 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7430 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7431 alphanbsd_pc_in_sigtramp.
7432 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7433 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7434
5e4f3379
JT
74352002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7436
7437 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7438
da8ca43d
JT
74392002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7440
7441 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7442 alphanbsd-tdep.c.
7443 (alphanbsd-nat.o): New dependency list.
7444 (alphanbsd-tdep.o): Ditto.
7445 * NEWS: Note new native NetBSD/alpha configuration.
7446 * alphanbsd-nat.c: New file.
7447 * alphanbsd-tdep.c: Ditto.
7448 * configure.host (alpha*-*-netbsd*): New host.
7449 * configure.tgt (alpha*-*-netbsd*): New target.
7450 * config/alpha/nbsd.mh: New file.
7451 * config/alpha/nbsd.mt: Ditto.
7452 * config/alpha/nm-nbsd.h: Ditto.
7453 * config/alpha/tm-nbsd.h: Ditto.
7454
36a6271d
JT
74552002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7456
7457 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7458 (alpha-osf1-tdep.o): New dependency list.
7459 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7460 and skip_sigtramp_frame members.
7461 * alpha-linux-tdep.c: Include gdbcore.h.
7462 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7463 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7464 * alpha-osf1-tdep.c: New file.
7465 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7466 alpha-osf1-dep.c.
7467 (alpha_frame_past_sigtramp_frame): New function.
7468 (alpha_dynamic_sigtramp_offset): Ditto.
7469 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7470 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7471 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7472 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7473 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7474 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7475 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7476 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7477 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7478 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7479 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7480 to find_solib_trampoline_target.
7481 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7482 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7483 (SKIP_TRAMPOLINE_CODE): Remove.
7484 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7485 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7486 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7487 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7488 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7489 (PROC_SIGTRAMP_MAGIC): Ditto.
7490 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7491 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7492 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7493 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7494 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7495
2f4bc57b
JT
74962002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7497
7498 * NEWS: Note that Alpha targets are now multi-arch.
7499
665132f9
MS
75002002-04-24 Michael Snyder <msnyder@redhat.com>
7501
7502 * parser-defs.h (prev_lexptr): New external variable.
7503 * parse.c (parse_exp_1): Set prev_lexptr to null before
7504 calling the language-specific parser.
7505 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7506 (yyerror): Use prev_lexptr in error reporting.
7507
32872fa7
DJ
75082002-04-24 Daniel Jacobowitz <drow@mvista.com>
7509
7510 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7511 * gregset.h: If FILL_FPXREGSET is defined, provide
7512 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7513 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7514 is defined, call fill_fpxregset.
7515
57e76fac
MS
75162002-04-24 Roland McGrath <roland@frob.com>
7517
7518 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7519 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7520 (supply_gregset, supply_fpregset): New functions.
7521
7522 * gnu-nat.c (gnu_find_memory_regions): New function.
7523 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7524 (gnu_xfer_memory): Add a cast.
7525
f43845b3
MS
75262002-04-24 Michael Snyder <msnyder@redhat.com>
7527
361d1df0 7528 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7529 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7530 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7531 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7532 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7533 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7534
a0abec03
AC
7535Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7536
7537 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7538 NUM_PSEUDO_REGS can be used.
7539
d7bd68ca
AC
75402002-04-24 Andrew Cagney <ac131313@redhat.com>
7541
7542 * arch-utils.h: Update copyright.
7543
7544 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7545 * gdbarch.h, gdbarch.c: Re-generate.
7546
7547 * inferior.h (IN_SIGTRAMP): Delete definition.
7548 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7549 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7550
7551 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7552 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7553 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7554 (find_proc_framesize): Ditto.
7555 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7556 (alpha_init_extra_frame_info): Ditto.
7557 * infrun.c (handle_inferior_event): Ditto.
7558 (handle_inferior_event): Ditto.
7559 (check_sigtramp2): Ditto.
7560 * blockframe.c (create_new_frame): Ditto.
7561 (get_prev_frame): Ditto.
7562 * ppc-linux-tdep.c: Update comments.
7563 * i386-linux-tdep.c: Update comments.
7564 * breakpoint.c (bpstat_what): Update comment.
7565
4867e41e
DM
75662002-04-24 David S. Miller <davem@redhat.com>
7567
21d83aa5
DM
7568 * i960-tdep.c (register_in_window_p): New function.
7569 (i960_find_saved_register): Use it instead of
7570 REGISTER_IN_WINDOW_P.
7571 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7572
4867e41e
DM
7573 * symtab.h (find_stab_function_addr): Kill extern.
7574 * minsyms.c (find_stab_function_addr): Remove from here...
7575 * dbxread.c: ... to here, and mark it static.
7576
69cdf6a2
DM
75772002-04-20 David S. Miller <davem@redhat.com>
7578
7579 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7580 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7581
5a595886
DM
75822002-04-21 David S. Miller <davem@redhat.com>
7583
7584 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7585 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7586 (vx_write_register): Likewise.
7587
1da1a192
JB
75882002-04-23 J. Brobecker <brobecker@gnat.com>
7589
7590 * source.c (is_regular_file): New function.
7591 (openp): Check wether file to open is a regular file
7592 to avoid opening directories.
7593
baa6f10b
JT
75942002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7595
7596 * findvar.c (extract_signed_integer): Cast printf argument
7597 to suppress format warning.
7598 (extract_unsigned_integer): Likewise.
7599 * infcmd.c (registers_info): Likewise.
7600 * top.c (get_prompt_1): Likewise.
7601 * valops.c (value_assign): Likewise.
7602 * valprint.c (print_decimal): Likewise.
7603
b2c4da81
L
76042002-04-22 H.J. Lu (hjl@gnu.org)
7605
7606 * c-exp.y (typebase): Support
361d1df0 7607
b2c4da81
L
7608 [long|long long|short] [signed|unsigned] [int|]
7609
7610 and
7611
7612 signed [long|long long|short] int
7613
f267bd6a
JT
76142002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7615
7616 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7617 and vax-tdep.h.
7618 * vax-tdep.h: New file.
7619 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7620 Make several routines static.
7621 (vax_get_saved_register): New function.
7622 (vax_gdbarch_init): New function.
7623 (_initialize_vax_tdep): Register vax_gdbarch_init.
7624 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7625 Remove macros now under the control of gdbarch.
7626
da3c6d4a
MS
76272002-04-22 Michael Snyder <msnyder@redhat.com>
7628
11d3b27d
MS
7629 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7630 Some whitespace and coding standards tweaks.
da3c6d4a 7631
a33f7558
JT
76322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7633
7634 * vax-tdep.c: Include regcache.h.
7635 (vax_call_dummy_words): New.
7636 (sizeof_vax_call_dummy_words): New.
7637 (vax_fix_call_dummy): New function.
7638 (vax_saved_pc_after_call): Ditto.
7639 * config/vax/tm-vax.h: Don't include regcache.h.
7640 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7641 (CALL_DUMMY): Remove.
7642 (CALL_DUMMY_WORDS): Define.
7643 (SIZEOF_CALL_DUMMY_WORDS): Define.
7644 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7645
47a73475
MS
76462002-04-18 Michael Snyder <msnyder@redhat.com>
7647
7648 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7649
52efde73
JT
76502002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7651
7652 * vax-tdep.c (vax_frame_chain): New function.
7653 (vax_push_dummy_frame): Ditto.
7654 (vax_pop_frame): Ditto.
7655 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7656 (FRAMELESS_FUNCTION_INVOCATION): Use
7657 generic_frameless_function_invocation_not.
7658 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7659 (POP_FRAME): Use vax_pop_frame.
7660
ea74468c
JT
76612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7662
7663 * vax-tdep.c (vax_store_struct_return): New function.
7664 (vax_extract_return_value): Ditto.
7665 (vax_store_return_value): Ditto.
7666 (vax_extract_struct_value_address): Ditto.
7667 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7668 vax_store_struct_return.
7669 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7670 (STORE_RETURN_VALUE): Use vax_store_return_value.
7671 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7672
5516aa92
JT
76732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7674
7675 * vax-tdep.c (vax_frame_saved_pc): New function.
7676 (vax_frame_args_address_correct): Ditto.
7677 (vax_frame_args_address): Ditto.
7678 (vax_frame_locals_address): Ditto.
7679 (vax_frame_num_args): Move code to be in proximity to
7680 other frame-related functions.
7681 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7682 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7683 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7684 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7685 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7686
36af0b35
L
76872002-04-22 H.J. Lu (hjl@gnu.org)
7688
7689 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7690 includedir.
7691
ab62c900
JT
76922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7693
7694 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7695 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7696 (FRAME_INIT_SAVED_REGS): New macro.
7697
7232b100
JT
76982002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7699
7700 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7701
b70d2aee
JT
77022002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7703
7704 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7705 where needed.
7706 (fetch_osf_core_registers): Likewise.
7707 (supply_gregset): Likewise.
7708
a0e8a2d1 77092002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7710
a0e8a2d1
JB
7711 * symfile.h (get_section_index): Define.
7712 * symfile.c (get_section_index): New function.
7713 * mdebugread.c (SC_IS_SBSS): New macro.
7714 (SC_IS_BSS): Return true for the scBss storage class only, as
7715 the scSBss storage class refers to the .sbss section.
7716 (parse_partial_symbols): Discard the symbols which associated
7717 section does not exist.
7718 Make sure to use the .sbss section index for symbols which
7719 storage class is scBss, rather than using the .bss section index.
7720
51eb8b08
JT
77212002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7722
7723 * vax-tdep.c: Update copyright years.
7724 (vax_register_name): New function.
7725 (vax_register_byte): Ditto.
7726 (vax_register_raw_size): Ditto.
7727 (vax_register_virtual_size): Ditto.
7728 (vax_register_virtual_type): Ditto.
7729 * config/vax/tm-vax.h: Update copyright years.
7730 (REGISTER_NAMES): Remove.
7731 (REGISTER_NAME): Define.
7732 (REGISTER_BYTE): Use vax_register_byte.
7733 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7734 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7735 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7736
6cc1c0a8
AC
77372002-04-21 Andrew Cagney <ac131313@redhat.com>
7738
7739 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7740 declaration
7741 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7742
9319a2fe
DM
77432002-04-21 David S. Miller <davem@redhat.com>
7744
7745 * arch-utils.c (generic_prologue_frameless_p): Kill
7746 SKIP_PROLOGUE_FRAMELESS_P code.
7747 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7748 references.
7749 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7750 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7751 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7752 references.
7753 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7754 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7755 (sparc_gdbarch_init): Pass it to
7756 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7757
e9ed6d01
JT
77582002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7759
7760 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7761 (alphabsd-nat.o): New dependency list.
7762
36012033
JT
77632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7764
7765 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7766 alphafbsd-tdep.c.
7767 (alpha-linux-tdep.o): New dependency list.
7768 (alphafbsd-tdep.o): Likewise.
7769
3379287a
JT
77702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7771
7772 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7773 to here...
7774 * alpha-tdep.c: ...from here.
7775 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7776
4bcbd6cb
JT
77772002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7778
7779 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7780 prototype from here...
7781 * alpha-tdep.h: ...to here.
7782
b31da25e
AC
77832002-04-21 Andrew Cagney <ac131313@redhat.com>
7784
7785 * frame.h (selected_frame_level): Document as deprecated.
7786 (frame_relative_level): Declare.
7787 * stack.c (frame_relative_level): New function.
7788 (selected_frame_level): Document as deprecated.
7789 (select_frame): Do not set the selected_frame_level.
7790
7791 * stack.c (frame_info, record_selected_frame): Update.
7792 (frame_command, current_frame_command): Update.
7793 (up_silently_base, up_command, down_silently_base): Update.
7794 (down_command): Update.
7795 * inflow.c (kill_command): Update.
7796 * tracepoint.c (finish_tfind_command): Update.
7797 * corelow.c (core_open): Update.
7798 * thread.c (info_threads_command): Update.
7799 (do_captured_thread_select): Update.
7800 * infcmd.c (finish_command): Update.
7801 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7802
9c1d6fe5
JT
78032002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7804
7805 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7806
ab89facf
AC
78072002-04-21 Andrew Cagney <ac131313@redhat.com>
7808
7809 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7810 type const.
7811
82a4efa1
JT
78122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7813
7814 * alphafbsd-tdep.c: Update copyright years. Include
7815 alpha-tdep.h.
7816 (alphafbsd_use_struct_convention): Make static.
7817 (alphafbsd_init_abi): New function.
7818 (_initialize_alphafbsd_tdep): New function.
7819 * config/alpha/tm-fbsd.h: Update copyright years.
7820 (USE_STRUCT_CONVENTION): Remove.
7821
44dffaac
JT
78222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7823
7824 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7825 an Alpha ABI variant.
7826 (alpha_abi_handler_list): Declare.
7827 (alpha_gdbarch_register_os_abi): New function.
7828 (alpha_gdbarch_init): Give registered ABI variant handlers a
7829 chance to tweak the gdbarch once we have set up defaults.
7830 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7831
65585be4
JT
78322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7833
7834 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7835 to standard_coerce_float_to_double.
7836 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7837
d9b023cc
JT
78382002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7839
7840 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7841 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7842 from gdbarch_tdep rather than a constant.
7843 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7844 the default text address for all Alpha Unix ABIs.
7845 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7846 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7847
dc129d82
JT
78482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7849
7850 * alpha-tdep.h: New file. Includes several Alpha target constants
7851 taken from...
7852 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7853 let gdbarch deal with.
7854 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7855 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7856 to dependency list.
7857 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7858 Alpha target register names.
7859 * alphabsd-nat.c: Likewise.
7860 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7861 Alpha target register names. Make serveral routines static.
7862 (alpha_get_saved_register): New function.
7863 (alpha_abi_names): New.
7864 (process_note_abi_tag_sections): New function.
7865 (get_elfosabi): New function.
7866 (alpha_gdbarch_init): New function.
7867 (alpha_dump_tdep): New function.
7868 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7869
d49d1e0a
AC
78702002-04-21 Andrew Cagney <ac131313@redhat.com>
7871
7872 * frame.c (find_saved_register): Delete #ifdef
7873 HAVE_REGISTER_WINDOWS code.
7874 * config/sparc/tm-sparc.h: Update comments.
7875 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7876
92e8c9ed
AC
78772002-04-21 Andrew Cagney <ac131313@redhat.com>
7878
7879 * i960-tdep.c (i960_find_saved_register): New function.
7880 (i960_get_saved_register): New function.
7881 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7882 (i960_get_saved_register): Declare.
7883 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7884
e1925118
DM
78852002-04-20 David S. Miller <davem@redhat.com>
7886
7887 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7888
29673b29
AC
78892002-04-20 Andrew Cagney <ac131313@redhat.com>
7890
7891 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7892 instead of NUM_PSEUDO_REGS.
7893
6c86dcd5
DM
78942002-04-20 David S. Miller <davem@redhat.com>
7895
7896 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7897 GDB_MULTI_ARCH_PARTIAL
7898 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7899 define, let tm-sp64.h do it.
7900
aa40ec90
JT
79012002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7902
7903 * frame.c (find_saved_register): Avoid a NULL pointer
7904 dereference and actually walk the frame list.
7905
0f79675b
AC
79062002-04-20 Andrew Cagney <ac131313@redhat.com>
7907
7908 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7909 sorted in most most-recent-used order. Document.
7910 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7911
f91305dd 79122002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7913
7914 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7915 instead of ->prev.
7916 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7917 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7918 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7919 instead of ->prev.
7920
73d322b1
EZ
79212002-04-19 Elena Zannoni <ezannoni@redhat.com>
7922
7923 Fix PR gdb/471.
7924 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7925 (build_builtin_type_vec128): Ditto.
7926 (append_composite_type_field): Fix calculation of type length in
7927 union case.
7928
ccd9a834
EZ
79292002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7930
7931 * config/djgpp/README: Update.
7932
7933 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7934 compiler warnings.
7935
a57f9e49
JT
79362002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7937
7938 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7939 (alpha_setup_arbitrary_frame): ...to this.
7940 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7941 for alpha_setup_arbitrary_frame.
7942
f4f9705a
AC
79432002-04-18 Andrew Cagney <cagney@redhat.com>
7944
7945 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7946 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7947
f4f9705a
AC
7948 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7949 * target.h (memory_breakpoint_from_pc): Update declaration.
7950 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7951
7952 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7953 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7954 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7955 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7956 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7957 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7958 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7959 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7960 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7961 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7962 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7963 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7964
7965 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7966 const pointer.
7967 * monitor.c (monitor_insert_breakpoint): Ditto.
7968 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7969
7970 * config/mcore/tm-mcore.h: Update copyright.
7971 * mem-break.c: Ditto.
7972 * xstormy16-tdep.c: Ditto.
7973
29f319b8
PM
79742002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7975
7976 * p-exp.y: Add precedence rule for '^' token.
7977 This removes the shift/reduce conflicts.
7978 Remove the comment concerning these shift/reduce conflicts.
7979
ebeac11a
EZ
79802002-04-18 Elena Zannoni <ezannoni@redhat.com>
7981
7982 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7983 (registers_powerpc_nofp): New register set for processors
7984 without floating point unit.
7985
27c31547
DM
79862002-04-18 David S. Miller <davem@redhat.com>
7987
7988 * MAINTAINERS: Add myself to write-after-approval.
7989
47a73475
MS
79902002-04-17 Michael Snyder <msnyder@redhat.com>
7991
7992 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7993
953836b2
AC
79942002-04-17 Andrew Cagney <ac131313@redhat.com>
7995
7996 * rs6000-tdep.c (frame_initial_stack_address): Use
7997 frame_register_read to read the alloca_reg.
7998
8b0d4340
AC
79992002-04-17 Andrew Cagney <ac131313@redhat.com>
8000
8001 * frame.c (find_saved_register): Find saved registers in the next
8002 not prev frame.
8003 Fix PR gdb/365.
8004
d8864532
AC
80052002-04-17 Andrew Cagney <ac131313@redhat.com>
8006
8007 * gdbarch.sh (LANG): Set to ``c''.
8008
36cc83a3 80092002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8010
36cc83a3 8011 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8012
2f4150cc 80132002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8014
8015 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8016 Update copyright.
8017
628703c6 8018 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8019 Also fix PR gdb/391.
361d1df0 8020
56157b4a
AC
80212002-04-14 Andrew Cagney <ac131313@redhat.com>
8022
8023 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8024 * aclocal.m4, configure: Re-generate.
8025 Fix PR gdb/391.
361d1df0 8026
6d1e3329
EZ
80272002-04-14 Elena Zannoni <ezannoni@redhat.com>
8028
8029 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8030 instead of tm_print_insn.
8031
cb06fa07
EZ
80322002-04-14 Elena Zannoni <ezannoni@redhat.com>
8033
8034 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8035
f208ba17
AC
80362002-04-14 Andrew Cagney <ac131313@redhat.com>
8037
8038 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8039 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8040 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8041
20f01a46
DH
80422002-04-12 Don Howard <dhoward@redhat.com>
8043
8044 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8045 max_user_call_depth.
8046 (init_cmd_lists): Initialize the new value;
8047 * cli/cli-script.c (execute_user_command): Limit the call depth of
8048 user defined commands. This avoids a core-dump when user commands
8049 are infinitly recursive.
8050
a88376a3
KB
80512002-04-12 Kevin Buettner <kevinb@redhat.com>
8052
8053 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8054 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8055 from tdep struct instead of DEFAULT_LR_SAVE.
8056 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8057 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8058 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8059
f2172603
MS
80602002-04-12 Michael Snyder <msnyder@redhat.com>
8061
694f61fb 8062 * Remote.c: Spelling fix.
20fe79c8
MS
8063 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8064 If no symbol found for "sbrk", try "_sbrk".
8065 (make_output_phdrs): Use bfd_section_name.
8066 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8067 * eval.c: Indentation fix-ups.
169a7369
MS
8068 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8069 in case it gets applied to an address that is already
8070 in the instruction space.
de74f71f
MS
8071 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8072 * symfile.c: Fix indentation, long lines.
f2172603
MS
8073 * source.c: White space fix-up.
8074
cda5a58a
AC
80752002-04-12 Andrew Cagney <cagney@redhat.com>
8076
8077 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8078 * frame.c (frame_register_read): New function. Return non-zero on
8079 success.
8080 (read_relative_register_raw_bytes_for_frame): Delete.
8081 (read_relative_register_raw_bytes): Delete.
8082 * frame.h (frame_register_read): Declare.
8083 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8084 * sh-tdep.c: Ditto.
8085 * infcmd.c (do_registers_info): Ditto.
8086 * hppa-tdep.c: Ditto.
8087 * rs6000-tdep.c: Ditto.
8088 * h8500-tdep.c: Ditto.
8089 * mips-tdep.c: Ditto.
8090 * h8300-tdep.c: Ditto.
8091 * z8k-tdep.c: Ditto.
8092
2ea5f656
KB
80932002-04-12 Kevin Buettner <kevinb@redhat.com>
8094
8095 From Jimi X <jimix@watson.ibm.com>:
8096 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8097 64-bit SysV ABI.
8098
27b15785
KB
80992002-04-12 Kevin Buettner <kevinb@redhat.com>
8100
8101 From Jimi X <jimix@watson.ibm.com>:
8102 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8103 bfd info.
8104
5d57ee30
KB
81052002-04-12 Kevin Buettner <kevinb@redhat.com>
8106
8107 From Jimi X <jimix@watson.ibm.com>:
8108 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8109 register sets for these processor variants.
8110
bc1e36ca
DJ
81112002-04-11 Daniel Jacobowitz <drow@mvista.com>
8112
bc1e36ca
DJ
8113 * regformats/reg-ppc.dat: Support FPSCR.
8114
e3f36dbd
KB
81152002-04-11 Kevin Buettner <kevinb@redhat.com>
8116
8117 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8118 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8119 Add fpscr as an invalid/unfetchable register.
8120 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8121 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8122 (fill_fpregset): Add support for register fpscr.
8123 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8124 (fill_gregset): Account for the fact that register ``mq'' might
8125 not exist.
8126 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8127 (registers_power): Add fpscr to register set at slot 71.
8128 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8129 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8130
943c9c25
MS
81312002-04-11 Michael Snyder <msnyder@redhat.com>
8132
8133 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8134 * configure: Regenerate.
8135 * config.in: Regenerate.
8136 * acconfig.h: Add define for _SYSCALL32.
8137 * core-sol2.c: Remove #define _SYSCALL32.
8138 * solib-legacy.c: Remove #define _SYSCALL32.
8139
d8c0a2e7
AC
81402002-04-10 Andrew Cagney <ac131313@redhat.com>
8141
8142 * stack.c (select_frame): Cleanup internal error message, do not
8143 use %p.
8144
7cc19214
AC
81452002-04-10 Andrew Cagney <ac131313@redhat.com>
8146
8147 * stack.c (select_frame): Check that selected_frame and the
8148 specified level are as expected.
8149 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8150 Update copyright.
8151 * frame.h (struct frame_info): Add field `level'. Update
8152 copyright.
8153 Work-in-progress PR gdb/464.
8154
67a2b77e
AC
81552002-04-10 Andrew Cagney <ac131313@redhat.com>
8156
8157 * maint.c (maint_print_section_info): Rename print_section_info.
8158 (print_bfd_section_info, print_objfile_section_info): Update.
8159 * inferior.h (struct gdbarch): Add opaque declaration.
8160 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8161 * gdbarch.h: Regenerate.
8162
8cfda98c
ML
81632002-04-10 Michal Ludvig <mludvig@suse.cz>
8164
8165 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8166 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8167 (kernel_u_size): Added.
8168 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8169 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8170
ca439ad2 81712002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8172
ca439ad2
JI
8173 * valarith.c (find_size_for_pointer_math): New function, either returns
8174 the size for a pointer's target, returns 1 for void *, or errors for
8175 incomplete types.
8176 (value_add, value_sub): use find_size_for_pointer_math.
8177
2f2893d9
DJ
81782002-04-09 Daniel Jacobowitz <drow@mvista.com>
8179
8180 * linux-low.c (linux_look_up_symbols): New hook.
8181 (linux_target_ops): Add linux_look_up_symbols.
8182 * remote-utils.c (decode_address): New function.
8183 (look_up_one_symbol): New function.
8184 * server.c (handle_query): Call target look_up_symbols hook.
8185 * server.h (look_up_one_symbol): Add prototype.
8186 * target.h (struct target_ops): Add look_up_symbols hook.
8187
96cb11df
AC
81882002-04-09 Andrew Cagney <ac131313@redhat.com>
8189
8190 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8191 override FP_REGNUM with frame->fp. Update copyright.
8192 * parse.c (num_std_regs, std_regs): Delete.
8193 (target_map_name_to_register): Do not search std_regs. Update
8194 function description.
8195 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8196 declarations. Update copyright.
8197 Fix PR gdb/251.
361d1df0 8198
97658e92
DJ
81992002-04-09 Daniel Jacobowitz <drow@mvista.com>
8200
8201 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8202 after the last symbol in a block.
8203
6044e3eb
PM
82042002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8205
8206 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8207 is non zero as a found symbol.
8208
0406ec40
AC
82092002-04-08 Andrew Cagney <ac131313@redhat.com>
8210
8211 * findvar.c: Include "builtin-regs.h".
8212 (value_of_register): Call value_of_builtin_reg when applicable.
8213 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8214 (target_map_name_to_register): Call
8215 builtin_reg_map_name_to_regnum.
8216 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8217 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8218 (builtin_regs_h): Define.
8219 (builtin-regs.o): New target.
8220 (findvar.o): Add $(builtin_regs_h).
8221 * builtin-regs.c, builtin-regs.h: New files.
8222 * std-regs.c: New file.
8223 Partial fix for PR gdb/251.
8224
56a6dfb9
KB
82252002-04-08 Kevin Buettner <kevinb@redhat.com>
8226
8227 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8228 it's no longer required.
8229
3a808432
AC
82302002-04-08 Andrew Cagney <ac131313@redhat.com>
8231
8232 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8233
7c40d541
KB
82342002-04-08 Kevin Buettner <kevinb@redhat.com>
8235
8236 From Jimi X <jimix@watson.ibm.com>:
8237 * rs6000-tdep.c (rs6000_software_single_step): Use
8238 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8239 and size. Use target_insert_breakpoint() and
8240 target_remove_breakpoint() to insert and remove breakpoints
8241 instead of explicit memory reads and writes.
8242
cc9836a8
KB
82432002-04-08 Kevin Buettner <kevinb@redhat.com>
8244
8245 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8246 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8247 ELF_OBJECT_FORMAT ifdef.
8248
7495d1dc
KB
82492002-04-08 Kevin Buettner <kevinb@redhat.com>
8250
8251 From Jimi X <jimix@watson.ibm.com>:
8252 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8253
4288e836
KB
82542002-04-08 Kevin Buettner <kevinb@redhat.com>
8255
8256 From Jimi X <jimix@watson.ibm.com>:
8257 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8258 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8259
a4e4e501
MK
82602002-04-07 Mark Kettenis <kettenis@gnu.org>
8261
8262 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8263 s/asprintf/xasprintf/.
8264 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8265
006defba
AC
82662002-04-07 Andrew Cagney <ac131313@redhat.com>
8267
8268 I believe Jeff Law denies responsability for this one:
8269 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8270 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8271 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8272 Work-around for PR gdb/366.
8273
7aa83cac
EZ
82742002-04-07 Elena Zannoni <ezannoni@redhat.com>
8275
8276 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8277 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8278 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8279
cf1fcca1
EZ
82802002-04-07 Elena Zannoni <ezannoni@redhat.com>
8281
8282 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8283 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8284 information.
8285
3f289e6f
AC
82862002-04-07 Andrew Cagney <ac131313@redhat.com>
8287
8288 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8289 maintainer.
8290
129188f6
AC
82912002-04-07 Andrew Cagney <ac131313@redhat.com>
8292
8293 * README (Reporting Bugs in GDB): Document the bug web page as the
8294 prefered way of submitting bugs.
8295 Fix PR gdb/402.
8296
1200cd6e
AC
82972002-04-06 Andrew Cagney <ac131313@redhat.com>
8298
8299 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8300 -1. Update comment.
8301 * gdbarch.h, gdbarch.c: Re-generate.
8302
2853c33c
AS
83032002-04-07 Andreas Schwab <schwab@suse.de>
8304
8305 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8306 buffer to regcache_collect.
8307
c2169756
AC
83082002-04-06 Andrew Cagney <ac131313@redhat.com>
8309
8310 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8311 * gdbarch.c, gdbarch.h: Re-generate.
8312
25f1b008
AC
83132002-04-06 Andrew Cagney <ac131313@redhat.com>
8314
8315 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8316 declaration. Fix -Werror.
8317
59263426
DJ
83182002-04-05 Daniel Jacobowitz <drow@mvista.com>
8319
8320 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8321 * gdbarch.c: Regenerate.
8322
f5db4da3
MS
83232002-04-05 Michael Snyder <msnyder@redhat.com>
8324
80f8a6eb
MS
8325 * breakpoint.c (clear_command): Rewrite middle section to
8326 combine two loops with identical control conditions.
8327 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8328 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8329
ad3dcc5c
L
83302002-04-05 H.J. Lu (hjl@gnu.org)
8331
8332 * solib-svr4.c (bkpt_names): Add "__start".
8333
f32e7a74
AC
83342002-04-04 Andrew Cagney <ac131313@redhat.com>
8335
8336 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8337 as test for 64 bit target.
8338
8227c0ff
AC
83392002-04-05 Andrew Cagney <ac131313@redhat.com>
8340
8341 * h8500-tdep.c (h8500_write_fp): Delete function.
8342 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8343 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8344 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8346 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8347 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8348 (s390_write_fp):
8349 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8350 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8351 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8352 (d10v_write_fp): Delete function.
8353 * inferior.h (write_fp, generic_target_write_fp): Delete
8354 declarations.
8355 * regcache.c (generic_target_write_fp): Delete function.
8356 (write_fp): Delete function.
8357 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8358 * gdbarch.h, gdbarch.c: Regenerate.
8359 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8360 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8361 (sparc64_write_fp): Delete declaration.
8362 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8363 (h8500_write_fp): Delete declaration.
8364
2757dd86
AC
83652002-04-04 Andrew Cagney <ac131313@redhat.com>
8366
8367 * sparc-tdep.c (sparc64_write_fp): Delete.
8368 (sparc_push_dummy_frame): Replace write_fp call with code to store
8369 the FP directly.
8370 (sparc_gdbarch_init): Do not initialize write_fp.
8371
c69255e1
KB
83722002-04-05 Kevin Buettner <kevinb@redhat.com>
8373
8374 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8375 clause.
8376
ae767bfb
JB
83772002-03-29 Jim Blandy <jimb@redhat.com>
8378
8379 * stack.c (get_selected_block): Add new argument `addr_in_block',
8380 used to return the exact code address we used to select the block,
8381 not just the block.
8382 * blockframe.c (get_frame_block, get_current_block): Same.
8383 * frame.h (get_frame_block, get_current_block,
8384 get_selected_block): Update declarations.
8385 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8386 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8387
84d2ac95
MS
83882002-04-05 Michael Snyder <msnyder@redhat.com>
8389
8390 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8391 warning message.
8392
596aa3bf
JB
83932002-04-05 J. Brobecker <brobecker@gnat.com>
8394
8395 * utils.c (xfullpath): New function.
8396 * defs.h (xfullpath): Add declaration.
8397 * source.c (openp): Use xfullpath in place of gdb_realpath to
8398 avoid resolving the basename part of filenames when the
8399 associated file is a symbolic link. This fixes a potential
8400 inconsistency between the filenames known to GDB and the
8401 filenames it prints in the annotations.
8402 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8403 to be able to match a filename with either the real filename, or
8404 the name of any symbolic link to this file.
8405 (lookup_partial_symtab): Ditto.
8406
c02f5703
MS
84072002-04-04 Michael Snyder <msnyder@redhat.com>
8408
8409 * breakpoint.c: Add support for hardware breakpoints in overlays.
8410 (overlay_events_enabled): New state variable.
8411 (insert_breakpoints): Use overlay_events_enabled to decide
8412 whether to attempt to set a breakpoint at the overlay load addr.
8413 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8414 (remove_breakpoint): Use overlay_events_enabled to decide
8415 whether breakpoints need to be removed from overlay load addr.
8416 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8417 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8418 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8419 disable_overlay_breakpoints): Update overlay_events_enabled.
8420
5fb290d7
DJ
84212002-04-04 Daniel Jacobowitz <drow@mvista.com>
8422
8423 * dwarf2read.c (struct function_range): New.
8424 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8425 (check_cu_functions): New.
8426 (read_file_scope): Initialize global function lists.
8427 Call dwarf_decode_line after processing children.
8428 (read_func_scope): Add to global function list.
8429 (dwarf_decode_lines): Call check_cu_functions everywhere
8430 record_line is called. Call record_line with a linenumber
8431 of 0 to mark sequence ends.
8432
7b3fabf0
ML
84332002-04-04 Michal Ludvig <mludvig@suse.cz>
8434
361d1df0 8435 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8436 change sync with glibc.
8437
bce58c09
JB
84382002-04-03 Jim Blandy <jimb@redhat.com>
8439
8440 * configure.in: Call AC_C_INLINE.
8441 * configure: Regenerated.
361d1df0 8442
2fccf04a
DJ
84432002-04-01 Daniel Jacobowitz <drow@mvista.com>
8444
8445 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8446 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8447
2d1bfe2e
MK
84482002-03-31 Mark Kettenis <kettenis@gnu.org>
8449
a5941fbf
MK
8450 * NEWS: Mention gcore support on FreeBSD/i386.
8451
a90cd31d
MK
8452 * fbsd-proc.c: New file.
8453 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8454 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8455
2d1bfe2e
MK
8456 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8457 while statement.
8458
9eb6e5a1
JB
84592002-03-29 Jim Blandy <jimb@redhat.com>
8460
8461 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8462 unescaped newlines in string literals, but newer ones don't. So
8463 escape them.
8464
f02df580
MS
84652002-03-26 Michael Snyder <msnyder@redhat.com>
8466 Andrew Cagney <cagney@redhat.com>
8467
361d1df0 8468 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8469 restore file to memory.
8470 * cli/cli-dump.h: New file.
8471 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8472 * NEWS: Mention new commands.
f02df580 8473
109f874e
MS
84742002-03-28 Michael Snyder <msnyder@redhat.com>
8475
8476 * symfile.c (symbol_file_add): Move test for null symbols to later.
8477
520f6ade
AC
84782002-03-27 Andrew Cagney <ac131313@redhat.com>
8479
8480 From veksler at il.ibm.com:
8481 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8482 the xstrduped original path.
8483 Fix PR gdb/417.
8484
d4654627
MS
84852002-03-27 Michael Snyder <msnyder@redhat.com>
8486
8487 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8488 * infcmd.c (_initialize_infcmd): Ditto.
8489 * language.c (_initialize_language): Ditto.
8490 * symfile.c (_initialize_symfile): Ditto.
8491 * top.c (_init_main): Ditto.
8492 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8493
6be8bc0c
EZ
84942002-03-27 Elena Zannoni <ezannoni@redhat.com>
8495
8496 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8497 vector registers handling.
8498 (skip_prologue): Handle new AltiVec instructions. Fill in new
8499 fields of frame data.
8500 (frame_get_saved_regs): Fill in information for AltiVec registers.
8501
12af6855
JB
85022002-03-27 Jim Blandy <jimb@redhat.com>
8503
8504 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8505 a function; leave this macro here to invoke that function.
8506 (symbol_init_mangled_name): Declaration for that function.
8507 * symtab.c (symbol_init_mangled_name): New function.
8508
dc672865
AC
85092002-03-27 Andrew Cagney <ac131313@redhat.com>
8510
8511 * valarith.c: Replace strerror with safe_strerror.
8512 * tracepoint.c: Ditto.
8513 * lin-lwp.c: Ditto.
8514 * go32-nat.c: Ditto.
8515 * inflow.c: Ditto.
8516 * gnu-nat.c: Ditto.
8517
d96429cd
AS
85182002-03-27 Andreas Schwab <schwab@suse.de>
8519
8520 * event-top.c (command_line_handler): Remove useless if.
8521
7e336ba1
AJ
85222002-03-27 Andreas Jaeger <aj@suse.de>
8523
8524 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8525 comment.
8526
de220d0f
ML
85272002-03-27 Michal Ludvig <mludvig@suse.cz>
8528
8529 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8530 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8531 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8532 (x86_64_linux_dr_get_status, supply_gregset),
8533 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8534 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8535 (x86_64_register_info_table): Add.
8536 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8537 (x86_64_register_raw_size, x86_64_register_virtual_type),
8538 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8539 general x86_64_register_info_table.
8540 (i386_gdbarch_init): gdbarch_register_bytes is now set
8541 dynamicaly during initialization.
8542 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8543 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8544
0e98d0a7
DJ
85452002-03-27 Daniel Jacobowitz <drow@mvista.com>
8546
8547 * gdbserver/server.c (main): Call target_signal_to_host_p
8548 and target_signal_to_host on signals received from the remote.
8549 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8550 target_signal_from_host on signals sent to the remote.
8551 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8552 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8553
3130066b
DJ
85542002-03-27 Daniel Jacobowitz <drow@mvista.com>
8555
8556 * signals/signals.c: Include "server.h" in gdbserver build.
8557 (target_signal_from_name): Don't use STREQ.
8558 (_initialize_signals): Likewise. Don't include function in
8559 gdbserver build.
8560
9aedf4f4
DJ
85612002-03-27 Daniel Jacobowitz <drow@mvista.com>
8562
8563 * signals.c: Moved to...
8564 * signals/signals.c: Here.
7e336ba1 8565 * Makefile (signals.o): Update.
9aedf4f4 8566
3fa41cdb
JL
85672002-03-26 Jeff Law (law@redhat.com)
8568
8569 * somread.c (som_symtab_read): Remove some commented out code and
8570 updated related comments. Do not set the minimal symbol table to
8571 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8572 in a dynamic executable.
8573 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8574 where we are unable to find the minimal symbol for the given
8575 PC value.
8576
ee677e8d
MS
85772002-03-25 Jeff Law (law@redhat.com)
8578
8579 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8580
e76e1718
ML
85812002-03-25 Michal Ludvig <mludvig@suse.cz>
8582
8583 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8584
18a642a1
AC
85852002-03-23 Andrew Cagney <ac131313@redhat.com>
8586
8587 * command.h: Update copyright.
8588 (struct cmd_list_element): Replace definition with opaque
8589 declaration.
8590 (enum cmd_types): Document that it will eventually be moved to
8591 cli/cli-decode.h
8592 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8593 (MALLOCED_REPLACEMENT): Delete macro.
8594 * Makefile.in (cli_decode_h): Add $(command_h).
8595 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8596 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8597 * completer.c: Include "cli/cli-decode.h".
8598 * maint.c: Include "cli/cli-decode.h".
8599 * cli/cli-decode.h: Include "command.h".
8600 (enum command_class): Delete.
8601 (enum cmd_types): Comment out.
8602 (enum cmd_auto_boolean): Delete.
8603 (enum var_types): Delete.
8604
b2875cc0
AC
86052002-03-23 Andrew Cagney <ac131313@redhat.com>
8606
8607 * cli/cli-decode.c: Include "gdb_assert.h".
8608 (add_set_or_show_cmd): New static function.
8609 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8610 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8611 all fields, such as func, from the set command.
8612
3b45974e
AC
86132002-03-23 Andrew Cagney <ac131313@redhat.com>
8614
8615 * MAINTAINERS (sh-elf): Change warning flag to -w.
8616
823ca731
AC
86172002-03-23 Andrew Cagney <cagney@redhat.com>
8618
8619 * defs.h (error): Add printf format attribute.
8620 * thread-db.c (thread_from_lwp): Fix error format string.
8621 * stack.c (parse_frame_specification): Ditto.
8622 * cli/cli-decode.c (undef_cmd_error): Ditto.
8623 * scm-lang.c (scm_lookup_name): Ditto.
8624 * tracepoint.c (trace_error): Ditto.
8625 * remote-utils.c (usage): Ditto.
8626 * remote.c (compare_sections_command): Ditto.
8627 Fix PR gdb/328.
8628
0e101458
AC
86292002-03-22 Andrew Cagney <ac131313@redhat.com>
8630
8631 * gdbtypes.c (append_composite_type_field): New function.
8632 (init_composite_type): New function.
8633 * gdbtypes.h (append_composite_type_field): Declare.
8634 (init_composite_type): Ditto.
8635
8e0662df
EZ
86362002-03-22 Elena Zannoni <ezannoni@redhat.com>
8637
8638 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8639 function.
8e0662df
EZ
8640 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8641 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8642 structure returning convention for SYSV ABI case, but not
8643 for GNU/Linux, FreeBSD, or NetBSD.
8644
3121eff0
DJ
86452002-03-22 Daniel Jacobowitz <drow@mvista.com>
8646
8647 * symtab.h (lookup_block_symbol): Add mangled_name argument
8648 to prototype.
8649
8650 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8651 with new mangled_name argument.
8652 * linespec.c (decode_line_1): Likewise.
8653 * valops (value_of_this): Likewise.
8654 * symtab.c (lookup_transparent_type): Likewise.
8655 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8656 (lookup_symbol): If we are given a mangled name, pass it down
8657 to lookup_symbol_aux.
8658 (lookup_block_symbol): If we are given a mangled name to check
8659 against, only return symbols which match it.
8660
349b409f
CF
86612002-03-22 Christopher Faylor <cgf@redhat.com>
8662
8663 * win32-nat.c (child_create_inferior): Check for proper shell to use
8664 here, in case the user changes it on the fly.
8665 (_initialize_inftarg): Remove shell path considerations.
8666
2a873819
EZ
86672002-03-21 Elena Zannoni <ezannoni@redhat.com>
8668
8669 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8670 for gdbarch_max_register_raw_size and max_register_virtual_size.
8671 Adjust copyright year.
8672
a1b9830c
DJ
86732002-03-21 Daniel Jacobowitz <drow@mvista.com>
8674
8675 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8676 in a function to cover the entire beginning of the function
8677 as well if it does not already.
8678
8b5790f2
TR
86792002-03-21 Tom Rix <trix@redhat.com>
8680
8681 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8682 (rs6000_ptrace64): Renamed from ptrace64.
8683
bdbe5747
MH
86842002-03-20 Martin M. Hunt <hunt@redhat.com>
8685
8686 * gdbserver/remote-utils.c (remote_open): Don't call
8687 getprotobyname, we're all using TCP here so just use
8688 IPPROTO_TCP.
7e336ba1 8689 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8690
86912002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8692
bdbe5747
MH
8693 * regcache.c (_initialize_regcache): No need to call
8694 build_regcache() at this time; it gets called whenever
8695 the gdbarch changes.
8696
7781cd62
DB
86972002-03-20 David O'Brien <obrien@FreeBSD.org>
8698
8699 * sparc-nat.c: Include sys/param.h where possible.
8700
f65ca430
DJ
87012002-03-20 Daniel Jacobowitz <drow@mvista.com>
8702
8703 Fix PR gdb/422.
8704 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8705 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8706 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8707 complex types.
8708 * stabsread.c (rs6000_builtin_type): Likewise.
8709 (read_sun_floating_type): Likewise.
8710
0c867556
PS
87112002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8712
8713 * stabsread.c (read_member_functions): Remove skip code for duplicate
8714 constructor/destructor methods. Use standard parsing for these
8715 methods and just do not chain them to the list of methods after
8716 parsing.
8717
12b9c64f
AO
87182002-03-19 Alexandre Oliva <aoliva@redhat.com>
8719
8720 * coffread.c: Remove redundant static declarations. Replace
8721 occurrences of `PTR' with `void *'.
8722 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8723 * top.h (quit_cover): Likewise.
8724 * defs.h (catch_errors): Likewise.
8725
349c5d5f
AC
87262002-03-18 Andrew Cagney <ac131313@redhat.com>
8727
8728 * defs.h (XMALLOC): Define.
8729 * gdb-events.sh (XMALLOC): Delete macro.
8730 * gdb-events.c, gdb-events.h: Regenerate.
8731 * gdbarch.sh (XMALLOC): Delete macro.
8732 * gdbarch.c: Regenerate.
8733 * serial.c (XMALLOC): Delete macro.
8734 * ui-file.c (XMALLOC): Ditto.
8735 * ser-unix.h (XMALLOC): Ditto.
8736 * sh-tdep.c (XMALLOC): Ditto.
8737 * ui-out.c (XMALLOC): Ditto.
8738 * utils.c (XMALLOC): Ditto.
8739 * i386-tdep.c (XMALLOC): Ditto.
8740 * gdb-events.c (XMALLOC): Ditto.
8741 * d10v-tdep.c (XMALLOC): Ditto.
8742 * cli-out.c (XMALLOC): Ditto.
8743
8744 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8745 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8746 * ui-file.c, ui-out.c: Ditto.
8747
7d0766f3
AC
87482002-03-18 Andrew Cagney <ac131313@redhat.com>
8749
8750 * command.h (struct cmd_list_element): Add field context.
8751 (set_cmd_context, get_cmd_context): Declare.
8752 * cli/cli-decode.h: Ditto.
8753 * cli/cli-decode.c (get_cmd_context): New function.
8754 (set_cmd_context): New function.
8755 (add_cmd): Initialize context.
8756 Part of fixing PR gdb/145 and PR gdb/146.
8757
5913bcb0
AC
87582002-03-17 Andrew Cagney <ac131313@redhat.com>
8759
1868c04e
AC
8760 * cli/cli-decode.c (cmd_type): New function.
8761 * command.h (cmd_type): Declare.
8762 * infrun.c (set_schedlock_func): Call function cmd_type.
8763 * kod.c (kod_set_os): Call cmd_type.
8764 * cris-tdep.c (cris_version_update): Use function cmd_type.
8765 (cris_mode_update, cris_abi_update): Ditto.
8766
5913bcb0
AC
8767 * command.h: (execute_cmd_post_hook): Declare.
8768 (execute_cmd_pre_hook): Declare.
8769 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8770 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8771 functions. Execute pre/post hook while ensuring that afterwords
8772 hook_in is cleared.
8773 * top.c (execute_command): Use execute_cmd_post_hook, and
8774 execute_cmd_pre_hook to execute pre/post commands.
8775 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8776 hook_stop_stub.
8777 (hook_stop_stub): Call execute_cmd_pre_hook.
8778
b51450c9
AC
87792002-03-17 Andrew Cagney <ac131313@redhat.com>
8780
8781 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8782 set'' and this leads to a core dump. Move xstrdup of
8783 operating_system to after check that it is not NULL.
8784
f66c9f11
AC
87852002-03-17 Andrew Cagney <ac131313@redhat.com>
8786
8e694ecf
AC
8787 * kod.c (kod_set_os): Remove unnecessary check that
8788 ``command->type'' is set_cmd.
8789
f66c9f11
AC
8790 * valprint.c (set_input_radix): Use input_radix.
8791 (set_output_radix): Use output_radix.
8792 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8793 isn't reverted.
8794
9d01611c
AC
87952002-03-16 Andrew Cagney <ac131313@redhat.com>
8796
8797 * value.h (struct value): Delete field ``substring_addr''. Change
8798 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8799 force_core_addr_align and force_pointer_aligh.
8800
8801 * value.h (struct value): Fix typo in above change.
9d01611c 8802
4156bb53
PS
88032002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8804
8805 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8806 to fix internal_error from ``maintenance print architecture''.
8807
0e5e3ea6
PS
88082002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8809
8810 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8811 for gcc versions after gcc-2.8.1.
8812
9b013045
PS
88132002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8814
8815 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8816 for method resolution. Restore adjustment of ``this'' pointer after
8817 calling value_struct_elt, which was accidentally removed during the
8818 HP merge.
8819
376c9600
AC
88202002-03-15 Andrew Cagney <ac131313@redhat.com>
8821
8822 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8823 value_of_register.
8824 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8825 get_saved_register.
8826 * value.h (value_of_register): Update.
8827
a4db0f07
RH
88282002-03-14 Richard Henderson <rth@redhat.com>
8829
8830 * configure.in: Detect declaration for canonicalize_file_name.
8831 * utils.c (canonicalize_file_name): Declare, if needed.
8832 (gdb_realpath): Prefer realpath if available and usable.
8833 * config.in, configure: Rebuild.
8834
96383835
RH
88352002-03-14 Richard Henderson <rth@redhat.com>
8836
8837 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8838 a constant array bound.
8839
8840 * MAINTAINERS: Add myself to write-after-approval.
8841
75245b24
MS
88422002-03-14 Michael Snyder <msnyder@redhat.com>
8843
8844 * symfile.c (syms_from_objfile): Return immediately if no syms.
8845 (symbol_file_add): Return immediately if no syms.
8846 (find_sym_fns): Return immediately if no syms.
8847
e641a1ca
ML
88482002-03-13 Michal Ludvig <mludvig@suse.cz>
8849
8850 * gdbserver/remote-util.c (remote_open): Print remote-side's
8851 IP address when remote debugging over the network.
7e336ba1 8852
df08bfec
DB
88532002-03-12 David O'Brien <obrien@FreeBSD.org>
8854
8855 * config/sparc/fbsd.mh: Fix copyright.
8856 * config/sparc/fbsd.mt: Likewise.
8857
9a57864f
RE
88582002-03-11 Richard Earnshaw <rearnsha@arm.com>
8859
8860 * MAINTAINERS: Fix typo in name of gdb warnings option.
8861 (x86-64): Fix formating so that this can be parsed by awk.
8862
dd7bf85e
DJ
88632002-03-10 Daniel Jacobowitz <drow@mvista.com>
8864
8865 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8866 * defs.h: Include "gdb/signals.h".
8867 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8868
33a0a2ac
ML
88692002-03-10 Michal Ludvig <mludvig@suse.cz>
8870
8871 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8872 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8873 from x86-64-tdep.h
8874
dd824b04
DJ
88752002-03-10 Daniel Jacobowitz <drow@mvista.com>
8876 Don Howard <dhoward@redhat.com>
8877
8878 * mips-tdep.c (ST0_FR): Define.
8879 (mips2_fp_compat): New function, temporarily disabled.
8880 (mips_read_fp_register_single): New function.
8881 (mips_read_fp_register_double): New function.
8882 (mips_print_register): Use them.
8883 (do_fp_register_row): Likewise.
8884
6a41ff59
AC
88852002-03-09 Andrew Cagney <ac131313@redhat.com>
8886
8887 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8888 approval''.
8889
4ea09c10
PS
88902002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8891
8892 * stabsread.c (read_member_functions): Fix is_stub test for
8893 static member functions, improve comment.
8894
6ccc741d
RE
88952002-03-07 Richard Earnshaw <rearnsha@arm.com>
8896
8897 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8898 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8899 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8900 commands that set boolean values.
8901 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8902 (arm_rdi_resume): Always initialize PC.
8903 (arm_rdi_open): Don't use rslt as a boolean.
8904 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8905 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8906 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8907 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8908
438013df
AO
89092002-03-06 Alexandre Oliva <aoliva@redhat.com>
8910
8911 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8912 * configure: Rebuilt.
8913
70ed8774
SC
89142002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8915
8916 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8917 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8918
5ba2abeb
AC
89192002-03-06 Andrew Cagney <ac131313@redhat.com>
8920
8921 * cli/cli-decode.c (set_cmd_completer): New function.
8922 * command.h (set_cmd_completer): Declare.
8923 * cli/cli-decode.h (set_cmd_completer): Ditto.
8924
8925 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8926 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8927 * win32-nat.c (_initialize_inftarg): Ditto.
8928 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8929 * proc-api.c (_initialize_proc_api): Ditto.
8930 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8931 * source.c (_initialize_source): Ditto.
8932 * exec.c (_initialize_exec): Ditto.
8933 * solib.c (_initialize_solib): Ditto.
8934 * top.c (init_main): Ditto.
8935 * tracepoint.c (_initialize_tracepoint): Ditto.
8936 * symfile.c (_initialize_symfile): Ditto.
8937 * printcmd.c (_initialize_printcmd): Ditto.
8938 * infcmd.c (_initialize_infcmd): Ditto.
8939 * corefile.c (_initialize_core): Ditto.
8940
f779ca99
AC
89412002-03-05 Andrew Cagney <ac131313@redhat.com>
8942
8943 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8944
01a3934b
AC
89452002-03-05 Andrew Cagney <ac131313@redhat.com>
8946
8947 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8948
37057839
AC
89492002-03-05 Andrew Cagney <ac131313@redhat.com>
8950
8951 * NEWS: Update headings, 5.2 has branched.
8952
c6ecbae5
DJ
89532002-03-04 Daniel Jacobowitz <drow@mvista.com>
8954
8955 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8956 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8957 (register_addr, REGISTER_RAW_SIZE): Likewise.
8958 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8959 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8960
e9f30c21
ML
89612002-03-03 Michal Ludvig <mludvig@suse.cz>
8962
8963 * MAINTAINERS (x86-64): Add myself.
8964 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8965 changed value_ptr -> struct value *
8966
54394ac3
DB
89672002-03-01 David O'Brien <obrien@FreeBSD.org>
8968
8969 * configure.host (sparc64-*-freebsd): Add.
8970 * configure.tgt: Likewise.
8971 * config/sparc/fbsd.mh: New file.
8972 * config/sparc/fbsd.mt: Likewise.
8973 * config/sparc/nm-fbsd.h: Likewise.
8974 * config/sparc/tm-fbsd.h: Likewise.
8975
bfe95955
DJ
89762002-03-01 Daniel Jacobowitz <drow@mvista.com>
8977
8978 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8979 regformats/reg-s390x.dat.
8980
f33c6cbf
AC
89812002-03-01 Andrew Cagney <ac131313@redhat.com>
8982
8983 * utils.c: Add FIXME explaining true/false problem.
8984
5ecaa7dd
AC
89852002-02-28 Andrew Cagney <ac131313@redhat.com>
8986
8987 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8988
2a251cc2
MC
89892002-02-28 Michael Chastain <mec@shout.net>
8990
8991 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8992
6a8031a3 89932002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8994
8995 * gdbserver/linux-s390-low.c: New file.
8996 * regformats/reg-s390.dat: New file.
8997 * regformats/reg-s390x.dat: New file.
8998 * gdbserver/configure.srv: Add S/390.
8999 * gdbserver/Makefile.in: Add S/390.
9000 * configure.tgt: Enable gdbserver for S/390.
9001
ac469903
EZ
90022002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9003
9004 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9005 first line of the doc string for "info dos", except at the end of
9006 the sentence, since the short help stops at the first period.
9007
985cb1a3
JM
90082002-02-28 Jason Merrill <jason@redhat.com>
9009
9010 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9011
c570663e
FF
90122002-02-27 Fred Fish <fnf@redhat.com>
9013
9014 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9015 comment (dumy -> dummy).
9016
43630227
PS
90172002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9018
9019 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9020
b84911e8
RB
90212002-02-27 Rodney Brown <rbrown64@csc.com.au>
9022
9023 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9024
58caa3dc
DJ
90252002-02-27 Daniel Jacobowitz <drow@mvista.com>
9026
9027 * gdbserver/acconfig.h: New file.
9028 * gdbserver/i387-fp.c: New file.
9029 * gdbserver/i387-fp.h: New file.
9030 * gdbserver/linux-x86-64.c: New file.
9031 * regformats/reg-x86-64.dat: New file.
9032 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9033 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9034 * gdbserver/configure.in: Add support for regsets.
9035 * gdbserver/config.in: Regenerate.
9036 * gdbserver/configure: Regenerate.
9037 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9038 * gdbserver/linux-low.h: New file.
9039 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9040 for regsets.
9041 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9042 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9043 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9044 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9045 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9046 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9047 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9048 "i387-fp.h". Add PTRACE_GETREGS and friends.
9049 * gdbserver/regcache.c (supply_register): New function.
9050 (supply_register_by_name): New function.
9051 (collect_register): New function.
9052 (collect_register_by_name): New function.
9053
93652174
DJ
90542002-02-27 Daniel Jacobowitz <drow@mvista.com>
9055
9056 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9057 (config.status): Add configure.srv dependency.
9058 (server_h): Add config.h dependency.
9059
a02e4a61
DJ
90602002-02-27 Daniel Jacobowitz <drow@mvista.com>
9061
9062 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9063 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9064 * gdbserver/configure.srv: Change i386-*-linux* to use
9065 reg-i386-linux.o.
9066
ce0eebec
AC
90672002-02-26 Andrew Cagney <ac131313@redhat.com>
9068
9069 * x86-64-tdep.c: Re-indent. Update copyright date.
9070
82dbc5f7
AC
90712002-02-26 Andrew Cagney <ac131313@redhat.com>
9072
9073 From Michal Ludvig <mludvig@suse.cz>:
9074 * x86-64-tdep.c (value.h): Delete.
9075 (gdb_assert.h): Include.
9076 (x86_64_register_convert_to_virtual,
9077 x86_64_register_convert_to_raw ): Add check which lets only
9078 floating-point values to be converted.
9079 (value_push): Delete.
9080 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9081 (i386_gdbarch_init): Number of register_bytes fixed.
9082
e4621584
AC
90832002-02-26 Andrew Cagney <ac131313@redhat.com>
9084
9085 * MAINTAINERS: Add x86-64 target.
9086
81a9a963
AC
90872002-02-26 Andrew Cagney <ac131313@redhat.com>
9088
9089 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9090 * osfsolib.c (solib_map_sections): Ditto.
9091 * irix5-nat.c (solib_map_sections): Ditto.
9092 * corelow.c (gdb_check_format): Ditto.
9093 * symfile.c (symfile_bfd_open): Ditto.
9094 * solib.c (solib_map_sections): Ditto.
9095 Fix PR gdb/354.
7e336ba1 9096
0f017ab9
AC
90972002-02-26 Andrew Cagney <ac131313@redhat.com>
9098
9099 * remote.c (_initialize_remote): By default, disable ``e'' and
9100 ``E'' step out-of-range packets.
9101
75738c29
AS
91022002-02-26 Andreas Schwab <schwab@suse.de>
9103
9104 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9105 m68k_linux_frame_saved_pc.
9106 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9107 in_sigtramp.
9108 (SIGCONTEXT_PC_OFFSET): Remove.
9109 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9110 m68k_linux_sigtramp_saved_pc): New functions.
9111 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9112 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9113 (UCONTEXT_PC_OFFSET): Define.
9114 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9115 non-RT and RT signal trampolines.
9116
7e8ed687
RE
91172002-02-26 Richard Earnshaw <rearnsha@arm.com>
9118
9119 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9120 (TARGET_NBPG, STACK_END_ADDR): Delete
9121 (VARIABLES_INSIDE_BLOCK): Delete.
9122
6972bc8b
AC
91232002-02-25 Andrew Cagney <ac131313@redhat.com>
9124
9125 * utils.c (perror_with_name): Make string parameter constant.
9126 (print_sys_errmsg): Ditto.
9127 (query): Ditto.
9128 * defs.h (perror_with_name): Update.
9129 (print_sys_errmsg): Update.
9130 (query): Update.
9131
aa32f823
DJ
91322002-02-25 Daniel Jacobowitz <drow@mvista.com>
9133
9134 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9135 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9136
19caaa45
PS
91372002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9138
9139 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9140 if it already matches the current architecture from the exec file.
9141 Include arch-utils.h for gdbarch_info_init prototype.
9142 * Makefile.in (rs6000-nat.o): Update dependencies.
9143
d951901f
EZ
91442002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9145
9146 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9147 list of exported variables.
9148
7ea81414
DJ
91492002-02-24 Daniel Jacobowitz <drow@mvista.com>
9150
9151 * gdbserver/configure.srv: New file.
9152 * gdbserver/configure.in: Use configure.srv instead
9153 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9154 from it.
9155 * gdbserver/configure: Regenerated.
9156 * gdbserver/terminal.h: New file.
9157 * gdbserver/Makefile.in: Update for configure changes. Remove
9158 more unneeded include paths.
9159
080fe24b
AC
91602002-02-24 Andrew Cagney <ac131313@redhat.com>
9161
9162 From wiz at danbala:
9163 * config/sparc/tm-sp64.h: Fix grammar and typos.
9164 Fix PR gdb/287.
9165
8605d56e
AC
91662002-02-24 Andrew Cagney <ac131313@redhat.com>
9167
9168 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9169 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9170 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9171 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9172 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9173 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9174 * s390-tdep.c: Ditto.
92362027
AC
9175 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9176 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9177 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9178 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9179 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9180 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9181 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9182 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9183 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9184 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9185 Fix PR gdb/378.
7e336ba1 9186
8ed32cc0
AC
91872002-02-23 Andrew Cagney <ac131313@redhat.com>
9188
a3007b6f
AC
9189 * lin-thread.c: Delete file.
9190 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9191 to gdb_proc_service.h.
9192 * configure: Re-generate.
9193
50a9e2f1
AC
9194 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9195 * serial.c (serial_open): Delete check for "ocd".
9196 Fix PR gdb/349.
9197
8b6e7932
AC
9198 * Makefile.in (linux-thread.o): Delete target.
9199 * linux-thread.c: Delete file.
9200
d155c46b
AC
9201 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9202 renamed SH files to be consistent.
9203
8ed32cc0
AC
9204 * symtab.c (sort_search_symbols): Use xfree.
9205
0e18d038
RE
92062002-02-23 Richard Earnshaw <rearnsha@arm.com>
9207
9208 * arm-linux-tdep.c (arm_linux_init_abi): Register
9209 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9210 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9211 definition with undef, since we don't want the sysvr4 definition.
9212 (SKIP_TRAMPOLINE_CODE): Likewise.
9213
27aac7ff
AC
92142002-02-23 Andrew Cagney <ac131313@redhat.com>
9215
9216 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9217
9218 * configure.in: (AC_CHECK_FUNCS) Added test for
9219 canonicalize_file_name Regenerated.
9220 * config.in, configure: Regenerated.
9221 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9222 defined use canonicalize_file_name.
7e336ba1 9223
65a6e0ee
MC
92242002-02-23 Michael Chastain <mec@shout.net>
9225
9226 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9227
47b95330
AC
92282002-02-23 Andrew Cagney <ac131313@redhat.com>
9229
9230 * README: Remove references to cygnus.com.
9231 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9232 dot com'' form. Remove references to cygnus.com and sourceware.
9233
696f451b
AC
92342002-02-23 Andrew Cagney <ac131313@redhat.com>
9235
9236 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9237 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9238 1003.1-2001 no longer allows "head -1".
9239 * gdb/Makefile.in (version.c): Likewise.
9240 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9241 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9242 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9243
bbaca940
AC
92442002-02-23 Andrew Cagney <ac131313@redhat.com>
9245
9246 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9247 * command.h (cmd_cfunc_eq): Declare.
9248 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9249
9250 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9251 ``struct cmd_list_element *''.
9252 * cli/cli-cmds.c (is_complete_command): Update. Use
9253 cmd_cfunc_eq.
9254 * top.c (execute_command): Pass the command to
9255 is_complete_command.
9256 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9257
b8b8b047
AC
92582002-02-23 Andrew Cagney <ac131313@redhat.com>
9259
9260 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9261 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9262 architecture defines.
9263 * s390-tdep.c (s390_gdbarch_init): Likewise.
9264
19d3fc80
RE
92652002-02-23 Richard Earnshaw <rearnsha@arm.com>
9266
9267 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9268 (arm_linux_push_arguments): Likewise.
9269 (arm_linux_init_abi): Register them. Also register linux-specific
9270 call_dummy_words.
9271 (find_minsym_and_objfile): Use strcmp, not STREQ.
9272 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9273 (arm_linux_call_dummy_words): Delete declaration.
9274 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9275 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9276 declarations.
9277 (LOWEST_PC): Delete.
9278
3ab13650
PS
92792002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9280
9281 * maint.c (print_section_info): Do not prepend `0x' to filepos
9282 output, it will be handled by local_hex_string_custom.
9283
19d3fc80 92842002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9285
9286 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9287 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9288 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9289
d85a5daf
JB
92902002-02-22 Jim Blandy <jimb@redhat.com>
9291
9292 Indicate that the bcache functions don't change the strings
9293 they're passed.
9294 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9295 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9296
eeb25b8a
PM
92972002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9298
9299 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9300
6badb179
CF
93012002-02-21 Christopher Faylor <cgf@redhat.com>
9302
9303 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9304 find the complete path to a loaded DLL.
9305
e8717518
FF
93062002-02-21 Fred Fish <fnf@redhat.com>
9307
9308 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9309 that marks the end of the range of a function, enter a line number
9310 entry that has a line number of zero and a PC offset that matches
9311 the end of the function. This starts a range of PC's for which no
9312 line number information is known.
9313 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9314 PC's for which no line number info is found (line number is zero)
9315 then we didn't find any valid line information.
9316 * symtab.h: Document use of zero line number entry.
9317
9abe5450
EZ
93182002-02-21 Elena Zannoni <ezannoni@redhat.com>
9319
9320 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9321 (have_ptrace_getvrregs): Define for run time checks.
9322 (gdb_vrregset_t): New type for Altivec register handling.
9323 (fetch_register, store_register): Fetch/store altivec register
9324 when needed.
9325 (fetch_altivec_register, store_altivec_register): New functions.
9326 (supply_vrregset, fill_vrregset): New functions.
9327 (fetch_altivec_registers, store_altivec_registers): New functions.
9328 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9329 registers as well.
9330
aaa38bb5
AJ
93312002-02-21 Jiri Smid <smid@suse.cz>
9332
9333 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9334
b34db576
RE
93352002-02-21 Richard Earnshaw <rearnsha@arm.com>
9336
9337 * Makefile.in (armnbsd-nat.o): Update dependencies.
9338 * armnbsd-nat.c (supply_gregset): New function. Common code to
9339 supply the integer register set.
9340 (supply_fparegset): New function. Similar for FPA registers.
9341 (fetch_regs, fetch_fp_regs): Use them.
9342 (fetch_core_registers): Likewise.
9343 (fetch_elfcore_registers): New function.
9344 (arm_netbsd_elfcore_fns): New core-file type specification.
9345 (_initialize_arm_netbsd_nat): Register it.
9346
3e56fc4b
RE
93472002-02-21 Richard Earnshaw <rearnsha@arm.com>
9348
9349 * armnbsd-nat.c: Include gdbcore.h.
9350 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9351 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9352 'void' to declaration, to shut up ARI.
9353 (fetch_core_registers): Make static. Rewrite using supply_register.
9354 (arm_netbsd_core_fns): New core-file type specification.
9355 (_initialize_arm_netbsd_nat): New function.
9356
097f6b0b
CF
93572002-02-21 Christopher Faylor <cgf@redhat.com>
9358
9359 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9360 value.
9361
c914e0cc
CF
93622002-02-20 Christopher Faylor <cgf@redhat.com>
9363
9364 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9365 fails.
9366
385fa495
DJ
93672002-02-20 Daniel Jacobowitz <drow@mvista.com>
9368
9369 * jv-exp.y (parse_number): Change type of implicit longs
9370 to builtin_type_uint64.
9371
e5f1222d
DJ
93722002-02-20 Daniel Jacobowitz <drow@mvista.com>
9373
9374 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9375 to be an integer instead of a `union wait'.
9376
75c9abc6
DJ
93772002-02-20 Daniel Jacobowitz <drow@mvista.com>
9378
9379 * mips-linux-nat.c: Call the operating system GNU/Linux.
9380 * mips-linux-tdep.c: Likewise.
9381 * mips-tdep.c: Likewise.
9382
551792a5
DJ
93832002-02-20 Daniel Jacobowitz <drow@mvista.com>
9384
9385 Fix PR gdb/265.
9386 * jv-exp.y (parse_number): Handle 64-bit integers.
9387
ee6e2b82
DJ
93882002-02-20 Daniel Jacobowitz <drow@mvista.com>
9389
9390 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9391 AC_STDC_HEADERS to AC_HEADER_STDC.
9392 * gdbserver/configure: Regenerated.
9393
a48442a0
RE
93942002-02-20 Richard Earnshaw <rearnsha@arm.com>
9395
9396 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9397 is defined.
9398 * sparc-tdep.c (get_longjmp_target): Likewise.
9399
fe419ffc
RE
94002002-02-20 Richard Earnshaw <rearnsha@arm.com>
9401
9402 * News: Add news about ARM and Multi-arch. Mention the new target
9403 arm*-*-netbsd*.
9404
5832ed7e
JB
94052002-02-19 Jim Blandy <jimb@redhat.com>
9406
9407 * stabsread.c (error_type_complaint): Improve error message.
9408
84563040
DJ
94092002-02-19 Daniel Jacobowitz <drow@mvista.com>
9410
9411 * gdbserver/README: Update documentation.
9412 * gdbserver/configure.in: Update configury to match documentation.
9413 * gdbserver/Makefile.in: Likewise.
9414 * gdbserver/configure: Regenerated.
9415 * gdbserver/aclocal.m4: New file, generated by aclocal.
9416 * gdbserver/config.in: New file, generated by autoheader.
9417
375fd65b
RE
94182002-02-19 Richard Earnshaw <rearnsha@arm.com>
9419
9420 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9421 armnbsd-nat.c.
9422
08216dd7
RE
94232002-02-19 Richard Earnshaw <rearnsha@arm.com>
9424
9425 * arm-tdep.h (enum arm_float_model): New enum.
9426 (struct gdbarch_tdep): Add fp_model.
9427 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9428 up floating-point conversions until we know the floating-point model
9429 in use by the inferior. Don't complain about being unable to
9430 determine the ABI of the inferior when we don't have one.
9431 (arm_extract_return_value): Support different floating-point models.
9432 (arm_store_return_value): Likewise.
aaa38bb5 9433 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9434 ARM_FLOAT_SOFT.
9435 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9436
65d6d66a
PS
94372002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9438
9439 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9440 of ``current_gdbarch''.
9441
47221191
RE
94422002-02-19 Richard Earnshaw <rearnsha@arm.com>
9443
9444 * armnbsd-nat.c : ANSIfy all function declarations.
9445 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9446 (fetch_inferior_registers): Re-implement in terms of above.
9447 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9448 (store_inferior_registers): Re-implement in terms of above.
9449
fdf39c9a
RE
94502002-02-19 Richard Earnshaw <rearnsha@arm.com>
9451
aaa38bb5 9452 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9453 kernel.
9454 * arm-linux-tdep.c: Likewise.
9455 * config/arm/tm-linux.h: Likewise.
9456
93247f88
RE
94572002-02-19 Richard Earnshaw <rearnsha@arm.com>
9458
9459 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9460 * config/arm/nbsd.mt (TM_FILE): Delete.
9461 * config/arm/tm-nbsd.h: Delete.
9462
d7b486e7
RE
94632002-02-19 Richard Earnshaw <rearnsha@arm.com>
9464
9465 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9466 Initialize CALL_DUMMY_LENGTH.
9467
41d39a95
RE
94682002-02-19 Richard Earnshaw <rearnsha@arm.com>
9469
9470 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9471 function.
9472 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9473 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9474 defines one thing and that is incorrect for this port.
9475 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9476
e1195560
PM
94772002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9478
9479 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9480
c1748f97
PM
94812002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9482
9483 * win32-nat.c (display_selector): New function. Displays information
9484 about the information returned by GetThreadSelectorEntry API function.
9485 (display_selectors): New function. Displays the infomation of
9486 the selector given as argument, or of CS, DS ans FS selectors
9487 if no argument is given.
9488 ( _initialize_inftarg): Add "w32" as info prefix command.
9489 Add "info w32 selector" as command calling display_selectors.
9490
e41e6bbf
PM
94912002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9492
9493 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9494 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9495 if not defined.
9496
0d3a9f48
RE
94972002-02-18 Richard Earnshaw <rearnsha@arm.com>
9498
9499 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9500
3fb4b924
RE
95012002-02-18 Richard Earnshaw <rearnsha@arm.com>
9502
9503 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9504 (arm_fix_call_dummy): Call it.
9505 (arm_call_dummy_breakpoint_offset): Delete.
9506 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9507 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9508
7f55af32
AC
95092002-02-18 Andrew Cagney <ac131313@redhat.com>
9510
9511 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9512 Default to func_frame_chain_valid.
9513 * gdbarch.h, gdbarch.c: Re-generate.
9514 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9515
05f13b9c
EZ
95162002-02-18 Elena Zannoni <ezannoni@redhat.com>
9517
9518 * ppc-linux-nat.c: Update copyright.
9519 (fetch_register, store_register): Add tid parameter, don't compute
9520 tid here.
9521 (fetch_ppc_registers, store_ppc_registers): Add tid
9522 parameter. Pass it along to callees.
9523 (fetch_inferior_registers, store_inferior_registers): Compute tid
9524 here, and pass it to calleed functions.
9525 (fill_gregset, supply_fpregset): Clean up formatting.
9526
d7afb4c9
RE
95272002-02-18 Richard Earnshaw <rearnsha@arm.com>
9528
9529 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9530 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9531
9df628e0
RE
95322002-02-18 Richard Earnshaw <rearnsha@arm.com>
9533
9534 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9535 * gdbarch.c gdbarch.h: Regenerate.
9536 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9537 function.
9538 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9539 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9540 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9541
9542 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9543 * arm-tdep.c (arm_get_longjmp_target): New function.
9544 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9545 this to a positive value register arm_get_longjmp_target as the
9546 longjmp handler.
9547 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9548 (arm_linux_init_abi): Set up longjmp description in tdep.
9549 * armnbsd-nat.c (get_longjmp_target): Delete.
9550 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9551 description in tdep.
9552 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9553 (get_longjmp_target): Delete declaration.
9554 (GET_LONGJMP_TARGET): Delete.
9555 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9556 (GET_LONGJMP_TARGET): Delete.
9557
57bc8964
KB
95582002-02-17 Kevin Buettner <kevinb@redhat.com>
9559
9560 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9561 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9562 of ``current_gdbarch''.
9563
83d31a92
TT
95642002-02-17 Tom Tromey <tromey@redhat.com>
9565
9566 * cli/cli-cmds.c (compare_strings): New function.
9567 (complete_command): Only print each unique item once.
9568 * completer.h (complete_line): Declare.
9569 * completer.c (complete_line): New function.
9570 (line_completion_function): Use it.
9571
17ef5d92
AC
95722002-02-16 Andrew Cagney <ac131313@redhat.com>
9573
9574 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9575 * gdbarch.h, gdbarch.c: Re-generate.
9576
491b8946
DJ
95772002-02-16 Daniel Jacobowitz <drow@mvista.com>
9578
9579 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9580
95812002-02-16 Daniel Jacobowitz <drow@mvista.com>
9582
9583 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9584 * valops.c (value_arg_coerce): Don't take the address of a reference
9585 to convert an argument to a reference.
9586
dfe7f3ac
CF
95872002-02-15 Christopher Faylor <cgf@redhat.com>
9588
9589 * win32-nat.c (get_image_name): New function.
9590 (handle_load_dll): Use get_image_name function.
9591 (get_child_debug_event): Avoid registering debug events until possibly
9592 execed process is started.
9593 (child_create_inferior): Allow invocation via shell so that command
9594 line redirection, etc. works ok.
9595 (_initialize_inftarg): Add new command: "set shell" to control whether
9596 a shell is used to start a process.
9597
1d33e73a
DJ
95982002-02-15 Daniel Jacobowitz <drow@mvista.com>
9599
9600 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9601 instead of find_register_by_number.
9602 (cannot_store_register): Likewise.
9603
48cd0caa
PM
96042002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9605
aaa38bb5 9606 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9607 fprintf_unfiltered (gdb_stderr, ...).
9608
8656e7d8
DJ
96092002-02-15 Daniel Jacobowitz <drow@mvista.com>
9610
9611 * gdbserver/gdbserver.1: Document --attach.
9612
66e810cd
RE
96132002-02-15 Richard Earnshaw <rearnsha@arm.com>
9614
9615 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9616 descriptions.
9617 * arm-tdep.c (arm_default_arm_le_breakpoint)
9618 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9619 (arm_default_thumb_be_breakpoint): New. Initialize them from
9620 traditional breakpoint defines.
9621 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9622 (arm_gdbarch_init): Initialize new breakpoint variables.
9623 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9624 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9625 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9626 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9627 code out to ...
9628 (arm_netbsd_init_abi_common): ... here; new function.
9629 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9630 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9631 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9632 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9633
97e03143
RE
96342002-02-15 Richard Earnshaw <rearnsha@arm.com>
9635
9636 * arm-tdep.h (enum arm_abi): New enum.
9637 (struct gdbarch_tdep): New structure.
9638 (LOWEST_PC): Provide a default.
9639 (arm_gdbarch_register_os_abi): Declare new function.
9640 * arm-tdep.c (arm_abi_names): New array.
9641 (process_note_abi_tag_sections): New function.
9642 (get_elfosabi): New function.
9643 (arm_gdbarch_register_os_abi): New function.
9644 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9645 support for that ABI has been built in, then call the appropriate
9646 configuration routine. Use gdbarch_num_regs() to get the number
9647 of registers.
9648 (arm_dump_tdep): New function.
9649 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9650 place-holder functions.
9651 (_initialize_arm_tdep): Register them.
9652 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9653
9654 * armnbsd-tdep.c: New file.
9655 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9656 * config/arm/nbsd.mt (TDEPFILES): Add it.
9657 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9658
9659 * armnbsd-nat.c: Include regcache.h.
9660 * Makefile.in (armnbsd-nat.o): Update dependency list.
9661
9662 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9663
ad68be46
DJ
96642002-02-14 Daniel Jacobowitz <drow@mvista.com>
9665
9666 * gdbserver/Makefile.in: Fix typos in target rules.
9667
003d6d1d
DJ
96682002-02-14 Daniel Jacobowitz <drow@mvista.com>
9669
aaa38bb5 9670 Fix part of PR gdb/267.
003d6d1d
DJ
9671 * linespec.c (find_methods): Handle constructors specially for now.
9672
6b230f1b
CV
96732002-02-14 Corinna Vinschen <vinschen@redhat.com>
9674
9675 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9676 handling.
9677 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9678 standard_coerce_float_to_double().
9679
1ea98d12
CF
96802002-02-14 Christopher Faylor <cgf@redhat.com>
9681
9682 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9683 GDBINIT_FILENAME.
9684
dd47e6fd
EZ
96852002-02-14 Elena Zannoni <ezannoni@redhat.com>
9686
9687 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9688 find_variant_by_name, because it confuses the multiarch
9689 framework. Return NULL if there isn't an architecture with the
9690 user supplied name, instead of forcing a different one without
9691 recording the change with the multiarch machinery.
9692 (find_variant_by_name): Delete.
9693
d7e39b9e
PS
96942002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9695
9696 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9697 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9698
76e42a4f
MH
96992002-02-13 Martin M. Hunt <hunt@redhat.com>
9700
aaa38bb5 9701 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9702 print_frame_info_listing_hook, set current_source_symtab.
9703
0a30fbc4
DJ
97042002-02-14 Daniel Jacobowitz <drow@mvista.com>
9705
9706 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9707 and remove unused $(INCLUDE_DIR).
9708 Add regcache.c to OBS.
9709 Add generated register protocol files to clean target.
9710 Update dependencies for new objects, obsolete old target code.
9711
9712 * gdbserver/linux-low.c: Remove all platform-specific code to
9713 new files. Remove various dead code. Update to use regcache
9714 functionality.
9715 * gdbserver/remote-utils.c (fromhex): Add return statement
9716 to quiet warning.
9717 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9718 constant.
9719 (input_interrupt): Add integer parameter to match prototype
9720 of a signal handler.
9721 (outreg): Use register_data ().
9722 (prepare_resume_reply): Use gdbserver_expedite_regs.
9723 * gdbserver/server.c (main): Dynamically allocate own_buf because
9724 PBUFSIZ is no longer constant. Use registers_to_string () and
9725 registers_from_string ().
9726 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9727 for error (), fatal (), and warning (). Update definition of
9728 PBUFSIZ to use regcache functionality. Add include guard.
9729 * gdbserver/utils.c (fatal): Add missing ``const''.
9730 (warning): New function.
9731
9732 * regformats/regdat.sh: Include "regcache.h" in generated files.
9733 Provide init_registers () function.
9734 * regformats/regdef.h: Add prototype for set_register_cache ().
9735 Add include guard.
9736
9737 * gdbserver/linux-arm-low.c: New file.
9738 * gdbserver/linux-i386-low.c: New file.
9739 * gdbserver/linux-ia64-low.c: New file.
9740 * gdbserver/linux-m68k-low.c: New file.
9741 * gdbserver/linux-mips-low.c: New file.
9742 * gdbserver/linux-ppc-low.c: New file.
9743 * gdbserver/linux-sh-low.c: New file.
9744
9745 * gdbserver/regcache.c: New file.
9746 * gdbserver/regcache.h: New file.
9747
9748 * gdbserver/low-linux.c: Removed obsolete file.
9749
4cc841d0
DJ
97502002-02-14 Daniel Jacobowitz <drow@mvista.com>
9751
9752 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9753 * config/i386/linux.mt: Likewise.
9754 * config/ia64/linux.mt: Likewise.
9755 * config/m68k/linux.mh: Likewise.
9756 * config/powerpc/linux.mh: Likewise.
9757 * config/mips/linux.mt: Likewise.
9758
9759 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9760
9761 * config/i386/i386lynx.mh: Mark gdbserver variables
9762 as (currently) obsolete for this target.
9763 * config/i386/nbsd.mt: Likewise.
9764 * config/i386/nbsdelf.mt: Likewise.
9765 * config/m32r/m32r.mt: Likewise.
9766 * config/m68k/m68klynx.mh: Likewise.
9767 * config/m68k/nbsd.mt: Likewise.
9768 * config/m68k/sun3os4.mh: Likewise.
9769 * config/mips/vr5000.mt: Likewise.
9770 * config/ns32k/nbsd.mt: Likewise.
9771 * config/pa/hppabsd.mh: Likewise.
9772 * config/pa/hppaosf.mh: Likewise.
9773 * config/powerpc/nbsd.mt: Likewise.
9774 * config/rs6000/rs6000lynx.mh: Likewise.
9775 * config/s390/s390.mt: Likewise.
9776 * config/s390/s390x.mt: Likewise.
9777 * config/sparc/sparclynx.mh: Likewise.
9778 * config/sparc/sun4os4.mh: Likewise.
9779 * config/i386/x86-64linux.mt: Likewise.
9780 * config/sparc/linux.mh: Likewise.
9781
a85f51e7
DJ
97822002-02-14 Daniel Jacobowitz <drow@mvista.com>
9783
9784 * configure.tgt: Configure gdbserver only for known working
9785 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9786 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9787 SUBDIRS if it is configured. Update comment for ${nativefile}.
9788 * configure: Regenerated.
9789
65554fef
MS
97902002-02-13 Michael Snyder <msnyder@redhat.com>
9791
670a52db
MS
9792 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9793
6dbdc4a3
MS
9794 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9795 (default_gcore_mach): Just return 0, work around a problem in bfd.
9796 (default_gcore_target): OK to return NULL if exec_bfd is null.
9797 (make_mem_sec): Use a cast, avoid a warning.
9798
9799 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9800 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9801 sizeof (host pointer) != sizeof (target pointer)).
9802 (procfs_make_note_section): Avoid overflow in psargs string.
9803
aaa38bb5 9804 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9805 implementation return an error.
9806
98072002-02-13 Rodney Brown <rbrown64@csc.com.au>
9808
9809 * procfs.c (procfs_make_note_section): Provide a default definition
9810 (for alpha-dec-osf4.0f). Fix typos.
9811
1e4d76e7
EZ
98122002-02-13 Elena Zannoni <ezannoni@redhat.com>
9813
9814 * linux-proc.c: Add include of regcache.h.
9815 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9816
b6d1a1d5
AC
98172002-02-13 Andrew Cagney <ac131313@redhat.com>
9818
9819 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9820 * memattr.c (create_mem_region): Disallow useless empty region.
9821 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9822 non-overlapping.
b6d1a1d5 9823
6c6ea35e
MC
98242002-02-13 Michael Chastain <mec@shout.net>
9825
9826 * defs.h: Kill CONST_PTR.
9827 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9828 * c-lang.c (c_builtin_types): Likewise.
9829 * ch-lang.c (ch_builtin_types): Likewise.
9830 * f-lang.c (f_builtin_types): Likewise.
9831 * language.c (unknown_builtin_types): Likewise.
9832 * m2-lang.c (m2_builtin_types): Likewise.
9833 * p-lang.c (pascal_builtin_types): Likewise.
9834 * scm-lang.c (c_builtin_types): Likewise.
9835
3e0b0f48
KS
98362002-02-13 Keith Seitz <keiths@redhat.com>
9837
9838 * arm-tdep.h (arm_get_next_pc): Add declaration.
9839
67255d04
RE
98402002-02-13 Richard Earnshaw <rearnsha@arm.com>
9841
9842 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9843 with other related struct-returning functions.
9844 (arm_extract_struct_value_address): New function.
9845 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9846 initialize float_format, double_format and long_double_format as
9847 appropriate to the endianness of the target.
9848 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9849 (arm_use_struct_convention): Delete declaration.
9850 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9851
079777f6
KS
98522002-02-13 Keith Seitz <keiths@redhat.com>
9853
9854 * defs.h (core_addr_to_string_nz): New function.
9855
34588f23
MK
98562002-02-13 Mark Kettenis <kettenis@gnu.org>
9857
9858 Apply missing bits of 2002-01-15 patch.
9859 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9860 (fill_fpregset): Use i387_fill_fsave.
9861
49b563f9
KS
98622002-02-12 Keith Seitz <keiths@redhat.com>
9863
49b563f9
KS
9864 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9865 (core_addr_to_string_nz): New function.
9866
aeb98c60
RE
98672002-02-11 Richard Earnshaw <rearnsha@arm.com>
9868
9869 * arm-linux-nat.c: Really include arm-tdep.h.
9870 * config/arm/tm-linux.h (struct type, struct value): Declare.
9871
65554fef
MS
98722002-02-11 Michael Snyder <msnyder@redhat.com>
9873
9874 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9875 (gcore section): Ifdef for Solaris and Unixware only.
9876 (procfs_do_thread_registers): Unixware needs one lwpstatus
9877 per thread (not one prstatus or pstatus).
9878 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9879 not over all gdb threads. For unixware, call elfcore_write_pstatus
9880 once before iterating over threads.
9881
34e8f22d
RE
98822002-02-11 Richard Earnshaw <rearnsha@arm.com>
9883
9884 * arm-tdep.h: New file.
9885 * arm-tdep.c: Include arm-tdep.h.
9886 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9887 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9888 (arm_print_float_info, arm_register_type, convert_to_extended)
9889 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9890 (arm_extract_return_value, arm_register_name): Make static.
9891 (arm_software_single_step): Similarly. Fix types in declaration.
9892 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9893 (arm_store_return_value, arm_store_struct_return): New functions.
9894 (arm_gdbarch_init): Register the above functions. Also register
9895 call_dummy_start_offset, sizeof_call_dummy_words,
9896 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9897 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9898 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9899 prologue_cache.saved_regs here, rather than ...
9900 (_initialize_arm_tdep): ... here.
9901 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9902 declarations.
9903 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9904 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9905 (arm_print_float_info, arm_register_type, convert_to_extended)
9906 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9907 (arm_extract_return_value, arm_register_name): Delete declarations.
9908 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9909 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9910 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9911 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9912 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9913 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9914 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9915 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9916 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9917 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9918 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9919 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9920 interface.
9921 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9922 * remote-rdi.c remote-rdp.c: Likewise.
9923 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9924 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9925 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9926 definition.
9927
9928 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9929 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9930 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9931 from non-ARM_ prefixed definitions.
9932 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9933 all uses of above.
9934 * remote-rdi.c remote-rdp.c: Likewise.
9935 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9936
148754e5
RE
99372002-02-11 Richard Earnshaw <rearnsha@arm.com>
9938
9939 * arm-tdep.c (arm_frameless_function_invocation)
9940 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9941 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9942 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9943 (arm_pop_frame, arm_get_next_pc): Make static.
9944 (arm_gdbarch_init): Register above in gdbarch structure.
9945 (arm_read_fp): Renamed from arm_target_read_fp.
9946 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9947 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9948 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9949 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9950 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9951 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9952 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9953 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9954 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9955 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9956 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9957
434d2d4f
DJ
99582002-02-10 Daniel Jacobowitz <drow@mvista.com>
9959
9960 * symtab.c (compare_search_syms): New function.
9961 (sort_search_symbols): New function.
9962 (search_symbols): Sort symbols after searching rather than
9963 before.
9964
55241689
AC
99652002-02-10 Andrew Cagney <ac131313@redhat.com>
9966
9967 * NEWS: Linux -> GNU/Linux.
9968
028c194b
AC
99692002-02-10 Andrew Cagney <ac131313@redhat.com>
9970
9971 * gdbarch.sh: For for level one methods, disallow a definition
9972 when partially multi-arched. Add comments explaining rationale.
9973 * gdbarch.h: Re-generate.
9974
6acf50cd
AC
99752002-02-10 Andrew Cagney <ac131313@redhat.com>
9976
9977 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9978 multi-arch partial.
aaa38bb5 9979
50248794
AC
99802002-02-10 Andrew Cagney <ac131313@redhat.com>
9981
9982 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9983 field. Use diff -u.
9984 * gdbarch.c: Re-generate.
9985
c30e0066
AC
99862002-02-10 Andrew Cagney <ac131313@redhat.com>
9987
9b56c5f3 9988 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9989 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9990 partial.
9991
6e6d6484
AC
99922002-02-10 Andrew Cagney <ac131313@redhat.com>
9993
9994 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9995 multi-arch partial.
9996 (PUSH_ARGUMENTS): Switch to using predefault.
9997 * gdbarch.c: Regenerate.
9998
c203844d
AC
99992002-02-10 Andrew Cagney <ac131313@redhat.com>
10000
10001 * valops.c (PUSH_ARGUMENTS): Delete definition.
10002 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10003 partial. Default to default_push_arguments.
10004 * gdbarch.h, gdbarch.c: Regenerate.
10005
b5a2688f
AC
100062002-02-09 Andrew Cagney <ac131313@redhat.com>
10007
10008 * defs.h (throw_exception): Rename return_to_top_level. Update
10009 comments.
10010 * utils.c (error_stream, internal_verror, quit): Ditto.
10011 * top.c (throw_exception, catcher): Ditto.
10012 * sparclet-rom.c (sparclet_load): Ditto.
10013 * remote.c (interrupt_query, minitelnet): Ditto.
10014 * remote-sds.c (interrupt_query): Ditto.
10015 * remote-mips.c (mips_error, mips_kill): Ditto.
10016 * ocd.c (interrupt_query): Ditto.
10017 * monitor.c (monitor_interrupt_query): Ditto.
10018 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10019 * target.h: Update comment.
aaa38bb5 10020
b5a2688f 10021 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10022
2fa5c1e0
AC
100232002-02-09 Andrew Cagney <ac131313@redhat.com>
10024
10025 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10026 default_double_format.
10027 * gdbarch.h, gdbarch.c: Re-generate.
10028 * findvar.c (floatformat_unknown): Delete variable definition.
10029 * doublest.h (floatformat_unknown): Delete variable declaration.
10030
da966255
JB
100312002-02-09 Jim Blandy <jimb@redhat.com>
10032
10033 * stabsread.c (read_type): Add code to parse Sun's syntax for
10034 prototyped function types.
10035
123a4891
AC
100362002-02-09 Andrew Cagney <ac131313@redhat.com>
10037
10038 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10039 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10040
fb39c8f3
PS
100412002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10042
10043 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10044 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10045 now _initialize_xcoffsolib gets called again and overrides the
10046 commands from solib.c in a native configuration.
10047
0b87a11d
MK
100482002-02-09 Mark Kettenis <kettenis@gnu.org>
10049
10050 * doublest.c (store_typed_floating): Don't try to return a value.
10051 Fixes PR gdb/290.
10052
bdc2fc72
JB
100532002-02-08 Jim Blandy <jimb@redhat.com>
10054
10055 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10056 is prototyped and has no arguments, print its argument list as
10057 `(void)'.
10058
da69bbcf
CD
100592002-02-08 Chris Demetriou <cgd@broadcom.com>
10060
10061 * MAINTAINERS (write-after-approval): Add myself.
10062 (paper-trail): I've escaped!
aaa38bb5 10063
b69571f5
CF
100642002-02-08 Christopher Faylor <cgf@redhat.com>
10065
10066 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10067 changes.
10068 (_initialize_check_for_gdb_ini): Ditto.
10069
f6871398
MH
100702002-02-08 Martin M. Hunt <hunt@redhat.com>
10071
10072 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10073 xaprintf -> xasprintf.
10074
4e52d31c
PM
100752002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10076
10077 * win32-nat.c: Remove use of printf and sprintf functions.
10078
39bbf761
RE
100792002-02-08 Richard Earnshaw <rearnsha@arm.com>
10080
10081 * arm-tdep.c (arm_frame_chain_valid): Make static.
10082 (arm_push_arguments): Likewise.
10083 (arm_gdbarch_init): New function.
10084 (_initialize_arm_tdep): Call it.
10085 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10086 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10087 (FRAME_CHAIN_VALID): Delete.
10088 (arm_frame_chain_valid): Delete declaration.
10089 (PUSH_ARGUMENTS): Delete.
10090 (arm_push_arguments): Delete declaration.
10091 (CALL_DUMMY_P): Delete.
10092
9c9532c9
CV
100932002-02-08 Andrew Cagney <ac131313@redhat.com>
10094 Corinna Vinschen <vinschen@redhat.com>
10095
10096 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10097 on builtin float types.
10098
4e8f7a8b
DJ
100992002-02-08 Daniel Jacobowitz <drow@mvista.com>
10100
10101 * utils.c: Include <curses.h> before "bfd.h".
10102 * tui/tui-hooks.c: Likewise.
10103 * tui/tui.c: Likewise.
10104 * tui/tuiCommand.c: Likewise.
10105 * tui/tuiData.c: Likewise.
10106 * tui/tuiDataWin.c: Likewise.
10107 * tui/tuiDisassem.c: Likewise.
10108 * tui/tuiGeneralWin.c: Likewise.
10109 * tui/tuiIO.c: Likewise.
10110 * tui/tuiLayout.c: Likewise.
10111 * tui/tuiRegs.c: Likewise.
10112 * tui/tuiSource.c: Likewise.
10113 * tui/tuiSourceWin.c: Likewise.
10114 * tui/tuiStack.c: Likewise.
10115 * tui/tuiWin.c: Likewise.
10116
cd4bffcf
EZ
101172002-02-07 Elena Zannoni <ezannoni@redhat.com>
10118
10119 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10120 to include space for pseudoregs as well. Update loops accordingly.
10121 (sh_fp_frame_init_saved_regs): Ditto.
10122 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10123
26806ce2
AC
101242002-02-07 Andrew Cagney <ac131313@redhat.com>
10125
10126 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10127 Add Richard Earnshaw to Arm maintainers.
10128
97fdab62
AC
101292002-02-07 Andrew Cagney <ac131313@redhat.com>
10130
a6b98203
AC
10131 * defs.h (warning_begin): Delete declaration.
10132
97fdab62
AC
10133 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10134 Delete macro.
10135
78b29b40
MS
101362002-02-07 Michael Snyder <msnyder@redhat.com>
10137
aaa38bb5 10138 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10139 Logic bug, remove misplaced else.
10140
d8849953
KD
101412002-02-07 Klee Dienes <klee@apple.com>
10142
10143 * fork-inferior.c (fork_inferior): Add '!' to the list of
10144 characters that need to be quoted when building a string for the
10145 shell. Quote '!' specifically with a backslash, since CSH chokes
10146 when trying to evaluate "str!str".
aaa38bb5 10147
095778a0
NC
101482002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10149
10150 * rdi-share/host.h: Only provide a typedef for bool if it is not
10151 defined.
10152
1900040c
MS
101532002-02-04 Michael Snyder <msnyder@redhat.com>
10154
10155 * breakpoint.h (enum bptype): Add new overlay event bp type.
10156 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10157
1900040c
MS
10158 * breakpoint.c (create_internal_breakpoint): New function.
10159 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10160 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10161 (create_thread_event_breakpoint): Ditto.
10162 (create_solib_event_breakpoint): Ditto.
10163 (create_overlay_event_breakpoint): New function.
10164 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10165 (update_breakpoints_after_exec): Delete and re-initialize
10166 overlay event breakpoints after an exec. Add FIXME comment
10167 about longjmp breakpoint.
10168 (print_it_typical): Ignore overlay event breakpoints.
10169 (print_one_breakpoint): Ditto.
10170 (mention): Ditto.
10171 (bpstat_what): Do not stop for overlay event breakpoints.
10172 (delete_breakpoint): Don't delete overlay event breakpoints.
10173 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10174 (breakpoint_re_set): Re-create overlay event breakpoint.
10175
10176 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10177 (overlay_manual_command): Disable overlay breakpoints.
10178 (overlay_off_command): Disable overlay breakpoints.
10179
082fc60d
RE
101802002-02-06 Richard Earnshaw <rearnsha@arm.com>
10181
10182 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10183 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10184 to here from config/tm-arm.h.
10185 (coff_sym_is_thumb): Make static.
10186 (arm_elf_make_msymbol_special): New function.
10187 (arm_coff_make_msymbol_special): New function.
10188 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10189 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10190 (coff_sym_is_thumb): Delete declaration.
10191 (arm_elf_make_msymbol_special): Declare.
10192 (arm_coff_make_msymbol_special): Declare.
10193 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10194 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10195
039c5766
RE
101962002-02-06 Richard Earnshaw <rearnsha@arm.com>
10197
10198 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10199
102002002-02-06 Richard Earnshaw <rearnsha@arm.com>
10201
10202 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10203 * gdbarch.c gdbarch.h: Regenerate.
10204 * arch-utils.c (default_print_float_info): New function.
10205 * arch-utils.h (default_print_float_info): Prototype it.
10206 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10207 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10208 (PRINT_FLOAT_INFO): Document it.
10209
10210 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10211 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10212 (PRINT_FLOAT_INFO): Define.
10213
58fa08f0
PM
102142002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10215
aaa38bb5 10216 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10217 Add typecast to sprintf argument to suppress a warning.
10218
7393af7c
PM
102192002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10220
58fa08f0 10221 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10222 to allow easier handling of pass state.
10223 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10224 that gives exception name and address.
10225 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10226 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10227 exceptions added.
aaa38bb5
AJ
10228 (child_continue): Correctly report continue_status.
10229 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10230 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10231 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10232 the exception should be passed to debuggee or not.
10233
6af4589c
MS
102342002-02-05 Michael Snyder <msnyder@redhat.com>
10235
10236 * regcache.c (fetch_register): Call target_fetch_register
10237 only if we don't call FETCH_PSEUDO_REGISTER.
10238 (store_register): Call target_store_register only if we
10239 don't call STORE_PSEUDO_REGISTER.
10240
a2cf933a
EZ
102412002-02-05 Elena Zannoni <ezannoni@redhat.com>
10242
10243 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10244 ELF_MAKE_MSYMBOL_SPECIAL.
10245 * gdbarch.c, gdbarch.h: Regenerate.
10246 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10247 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10248 * elfread.c (elf_symtab_read): Compile use of
10249 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10250 multiarched.
10251 * coffread.c (coff_symtab_read): Ditto, for
10252 COFF_MAKE_MSYMBOL_SPECIAL.
10253
6bb7be43
JB
102542002-02-05 Jim Blandy <jimb@redhat.com>
10255
10256 * solib-svr4.c (svr4_truncate_ptr): New function.
10257 (svr4_relocate_section_addresses): Do the address arithmetic with
10258 the appropriate truncation for target addresses, even when
10259 CORE_ADDR is larger than a target address.
10260
e18651ec
DJ
102612002-02-05 Daniel Jacobowitz <drow@mvista.com>
10262
10263 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10264 to (int *).
10265
6b2725be
DJ
102662002-02-05 Daniel Jacobowitz <drow@mvista.com>
10267
10268 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10269 code.
10270
fca9e603
DJ
102712002-02-05 Daniel Jacobowitz <drow@mvista.com>
10272
10273 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10274
6c537a52
DJ
102752002-02-05 Daniel Jacobowitz <drow@mvista.com>
10276
10277 * gdbserver/linux-low.c: Remove unused include files.
10278
d844cde6
DJ
102792002-02-05 Daniel Jacobowitz <drow@mvista.com>
10280
10281 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10282 (read_inferior_memory): Use it.
10283 (write_inferior_memory): Likewise.
10284
d07c63e7
DJ
102852002-02-05 Daniel Jacobowitz <drow@mvista.com>
10286
10287 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10288 grubbing through sys_errlist.
10289
da6d8c04
DJ
102902002-02-05 Daniel Jacobowitz <drow@mvista.com>
10291
10292 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10293
5b421780
PM
102942002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10295 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10296
9f60d481
AC
102972002-02-04 Andrew Cagney <ac131313@redhat.com>
10298
10299 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10300 (do_sfunc, set_cmd_sfunc): New functions.
10301
10302 * command.h (struct cmd_list_element): Add field func.
10303 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10304 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10305 * cli/cli-decode.h: Ditto.
10306
10307 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10308 (help_all, help_cmd_list): Ditto.
10309 (find_cmd, complete_on_cmdlist): Ditto.
10310 * top.c (execute_command): Ditto.
10311
10312 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10313 function.sfunc.
10314
10315 * infcmd.c (notice_args_read): Fix function signature.
10316
10317 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10318 * cli/cli-decode.c (add_set_cmd): Ditto.
10319 * utils.c (initialize_utils): Ditto.
10320 * maint.c (_initialize_maint_cmds): Ditto.
10321 * infrun.c (_initialize_infrun): Ditto.
10322 * demangle.c (_initialize_demangler): Ditto.
10323 * remote.c (add_packet_config_cmd): Ditto.
10324 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10325 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10326 * proc-api.c (_initialize_proc_api): Ditto.
10327 * kod.c (_initialize_kod): Ditto.
10328 * valprint.c (_initialize_valprint): Ditto.
10329 * top.c (init_main): Ditto.
10330 * infcmd.c (_initialize_infcmd): Ditto.
10331 * corefile.c (_initialize_core): Ditto.
10332 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10333 * arch-utils.c (initialize_current_architecture): Ditto.
10334 (_initialize_gdbarch_utils): Ditto.
10335 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10336
10337 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10338 * wince.c (_initialize_inftarg): Ditto.
10339 * symfile.c (_initialize_symfile): Ditto.
10340 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10341 * language.c (_initialize_language): Ditto.
10342 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10343
f9ba0717
MS
103442002-02-04 Michael Snyder <msnyder@redhat.com>
10345
10346 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10347
0c74b2a7
DJ
103482002-02-04 Daniel Jacobowitz <drow@mvista.com>
10349
10350 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10351 Add rules for building the register data files.
10352
c638789f
DJ
103532002-02-04 Daniel Jacobowitz <drow@mvista.com>
10354
10355 * regformats/regdat.sh: Add braces to the definition of
10356 expedite_regs_${arch}.
10357
db253027
DJ
103582002-02-04 Daniel Jacobowitz <drow@mvista.com>
10359
10360 * regformats/regdef.h (struct reg): Add comment describing the
10361 requirements for offset and size fields.
10362
206be19c
AS
103632002-02-04 Andreas Schwab <schwab@suse.de>
10364
10365 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10366 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10367
181c1381
RE
103682002-02-04 Richard Earnshaw <rearnsha@arm.com>
10369
10370 * gdbarch.sh (copyright): Update years in generated header.
10371 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10372 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10373 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10374 * dbxread.c: Likewise.
10375 * dwarfread.c: Likewise.
10376 * elfread.c: Likewise.
10377 * somread.c: Likewise.
10378
10379 * arm-tdep.c (arm_smash_text_address): New function.
10380 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10381
fa4ba8da
PM
103822002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10383
10384 Add support for hardware watchpoints on win32 native.
aaa38bb5 10385 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10386 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10387 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10388 of debug registers.
10389 (debug_registers_changed): New variable. Reflects when debug registers
10390 are changed and need to be written to inferior.
aaa38bb5 10391 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10392 was set, used when new threads are created.
10393 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10394 i386-nat code.
10395 (thread_rec): Set dr array if id is the thread of current_event .
10396 (child_continue, child_resume): Change the debug registers for all
10397 threads if debug_registers_changed.
10398 (child_add_thread): Change the debug registers if debug_registers_used.
10399 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10400 Link nm.h to new nm-cygwin.h file.
10401 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10402 of hardware registers.
10403
a73c86fb
AC
104042002-02-03 Andrew Cagney <ac131313@redhat.com>
10405
10406 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10407 Restore behavour broken by 2002-01-20 Andrew Cagney
10408 <ac131313@redhat.com> IEEE_FLOAT removal.
10409
acf5ed49
DJ
104102002-02-03 Daniel Jacobowitz <drow@mvista.com>
10411
10412 * c-valprint.c (c_val_print): Pass a proper valaddr to
10413 cp_print_class_method.
10414 * valops.c (search_struct_method): If there is only one method
10415 and args is NULL, return that method.
10416
493d28d5
DJ
104172002-02-03 Daniel Jacobowitz <drow@mvista.com>
10418
10419 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10420 accessing tag_name directly.
10421
7495dfdb
DJ
104222002-02-03 Daniel Jacobowitz <drow@mvista.com>
10423
10424 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10425 of accessing tag_name directly.
10426
dd6bda65
DJ
104272002-02-03 Daniel Jacobowitz <drow@mvista.com>
10428
10429 PR gdb/280
10430 * gdbtypes.c (replace_type): New function.
10431 * gdbtypes.h (replace_type): Add prototype.
10432 * stabsread.c (read_type): Use replace_type.
10433
88fe217c
RE
104342002-02-03 Richard Earnshaw <rearnsha@arm.com>
10435
10436 * Makefile.in (memattr.o): Add missing dependencies rule.
10437
e5d66720
PS
104382002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10439
10440 * breakpoint.c (break_at_finish_command): Really export.
10441 (break_at_finish_at_depth_command): Ditto.
10442 (tbreak_at_finish_command): Ditto.
10443 * hppa-tdep.c: Include completer.h.
10444 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10445 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10446
fffee0be
AC
104472002-02-01 Andrew Cagney <ac131313@redhat.com>
10448
10449 * utils.c (do_write): New function.
10450 (error_stream): Rewrite combining the code from error_begin and
10451 verror.
10452 (verror): Rewrite using error_stream.
10453 (error_begin): Delete function.
10454
255e7dbf
AC
104552002-02-01 Andrew Cagney <ac131313@redhat.com>
10456
10457 * utils.c (error_begin): Make static.
10458 * defs.h (error_begin): Delete declaration.
10459
10460 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10461 (decode_line_1): Use cplusplus_error instead of error_begin,
10462 cplusplus_hint and return_to_top_level.
10463 * coffread.c (coff_symfile_read): Use error instead of error_begin
10464 and return_to_top_level.
10465 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10466
ddfe3c15
AC
104672002-02-01 Andrew Cagney <ac131313@redhat.com>
10468
10469 * language.h (type_error, range_error): Make string parameter
10470 constant.
10471 * language.c (warning_pre_print): Delete extern declaration.
10472 * dwarfread.c (warning_pre_print): Ditto.
10473 * language.c (type_error, range_error): Rewrite to use verror and
10474 vwarning instead of warning_begin.
10475
03ac34d5
MS
104762002-02-01 Michael Snyder <msnyder@redhat.com>
10477
261c4ca2
MS
10478 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10479 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10480
e00d1dc8
AC
104812002-02-01 Andrew Cagney <ac131313@redhat.com>
10482
10483 * command.h (NO_FUNCTION): Delete macro.
10484 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10485 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10486 * tracepoint.c (_initialize_tracepoint): Ditto.
10487 * cli/cli-decode.c (add_set_cmd): Ditto.
10488 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10489
76b79d6e
DJ
104902002-02-01 Daniel Jacobowitz <drow@mvista.com>
10491
10492 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10493 Update ``this'' pointer when calling virtual functions.
10494
799f9e91
MS
104952002-02-01 Michael Snyder <msnyder@redhat.com>
10496
c7bd442c 10497 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10498 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10499
3cf384d4
DJ
105002002-02-01 Daniel Jacobowitz <drow@mvista.com>
10501
10502 * regformats/reg-arm.dat: New file.
10503 * regformats/reg-i386.dat: New file.
10504 * regformats/reg-ia64.dat: New file.
10505 * regformats/reg-m68k.dat: New file.
10506 * regformats/reg-mips.dat: New file.
10507 * regformats/reg-ppc.dat: New file.
10508 * regformats/reg-sh.dat: New file.
10509 * regformats/regdef.h: New file.
10510 * regformats/regdat.sh: New file.
10511
0defa245
RE
105122002-02-01 Richard Earnshaw <reanrsha@arm.com>
10513
10514 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10515 (arm_frame_args_address, arm_frame_locals_address): New functions.
10516 (arm_frame_num_args): New function.
10517 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10518 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10519 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10520
405f26e6
MS
105212002-01-31 Michael Snyder <msnyder@redhat.com>
10522
502fd408
MS
10523 * breakpoint.c (break_at_finish_command): Export.
10524 (break_at_finish_at_depth_command): Export.
10525 (tbreak_at_finish_command): Export.
d6020d45 10526 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10527 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10528 "txbreak" commands, which are HPPA specific.
502fd408 10529
7d35e135
MS
10530 * printcmd.c (disassemble_command): Remove an ancient
10531 artifact of an old merge.
10532
aaa38bb5 10533 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10534 Define enum constant values for overlay mode.
10535 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10536 (overlay_is_mapped, overlay_auto_command,
10537 overlay_manual_command): Ditto.
d874f1e2 10538
aaa38bb5
AJ
10539 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10540 breakpoint_here_p, breakpoint_inserted_here_p,
10541 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10542 describe_other_breakpoints, check_duplicates, clear_command):
10543 Coding standard fixes.
10544
8add0441 10545 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10546 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10547 code: check bfd SEC_READONLY flag for section.
10548
e351066e
AC
105492002-01-31 Andrew Cagney <ac131313@redhat.com>
10550
7d35e135 10551 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10552
8a48e967
DJ
105532002-01-30 Daniel Jacobowitz <drow@mvista.com>
10554
10555 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10556 data symbols, since we search based on textlow and texthigh.
10557 (find_pc_sect_symtab): Likewise.
10558
f5a96129
AC
105592002-01-30 Andrew Cagney <ac131313@redhat.com>
10560
10561 * defs.h (vwarning): Declare.
f5a96129
AC
10562 * utils.c (vwarning): New function.
10563 (warning): Call vwarning.
10564 (warning_begin): Delete function.
10565
10566 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10567 the warning message.
10568 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10569 warning_begin.
10570
cefd4ef5
MS
105712002-01-30 Michael Snyder <msnyder@redhat.com>
10572
1a703748
MS
10573 * NEWS: Mention "set trust-readonly-sections" command.
10574 Mention generate-core-file command.
cefd4ef5 10575
3a11626d
MS
105762002-01-15 Michael Snyder <msnyder@redhat.com>
10577
10578 * target.c: New command, "set trust-readonly-sections on".
10579 (do_xfer_memory): Honor the suggestion to trust readonly sections
10580 by reading them from the object file instead of from the target.
10581 (initialize_targets): Register command "set trust-readonly-sections".
10582
d1c7e53b
AC
105832002-01-29 Andrew Cagney <ac131313@redhat.com>
10584
10585 * parse.c (target_map_name_to_register): Simplify, search regs and
10586 pseudo-regs using a single loop.
10587
e2c9a72c
AC
105882002-01-30 Andrew Cagney <ac131313@redhat.com>
10589
10590 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10591
69824b4e
MK
105922002-01-15 Rodney Brown <rbrown64@csc.com.au>
10593
10594 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10595 * config/i386/i386v42mp.mh: Add i387-nat.o .
10596 * i386v4-nat.c: Include i387-nat.h.
10597 (supply_fpregset): Use i387_supply_fsave.
10598 (fill_fpregset): Use i387_fill_fsave.
10599
6eb69eab
RE
106002002-01-30 Richard Earnshaw <rearnsha@arm.com>
10601
10602 * arm-tdep.c (arm_call_dummy_words): Define.
10603 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10604 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10605 (CALL_DUMMY_WORDS): Define.
10606 (arm_call_dummy_words): Declare.
10607 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10608 (arm_linux_call_dummy_words): Declare.
10609
9852326a
AS
106102002-01-30 Andreas Schwab <schwab@suse.de>
10611
10612 * m68klinux-nat.c: Fix last change to use regcache_collect
10613 instead of referencing registers[] directly.
10614
977a3030
AC
106152002-01-29 Andrew Cagney <ac131313@redhat.com>
10616
10617 * parse.c (target_map_name_to_register): Delete code wrapped in
10618 #ifdef REGISTER_NAME_ALIAS_HOOK.
10619
2076c72b
MS
106202002-01-28 Michael Snyder <msnyder@redhat.com>
10621
10622 * regcache.c (legacy_read_register_gen): Need to be able to
10623 read pseudo-register as well as real register.
10624 (legacy_write_register_gen): Ditto.
10625
8fcc723b
AC
106262002-01-28 Andrew Cagney <ac131313@redhat.com>
10627
10628 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10629 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10630 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10631 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10632 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10633 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10634 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10635 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10636 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10637 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10638 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10639 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10640 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10641 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10642 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10643 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10644 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10645 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10646 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10647 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10648
afe64c1a
AC
106492002-01-28 Andrew Cagney <ac131313@redhat.com>
10650
10651 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10652 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10653 (initialize_current_architecture): Update target_byte_order using
10654 information from BFD.
aaa38bb5 10655 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10656 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10657
75bc7ddf
AC
106582002-01-28 Andrew Cagney <ac131313@redhat.com>
10659
10660 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10661 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10662
10663 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10664 #ifdef INVALID_FLOAT.
10665 * infcmd.c (do_registers_info): Ditto.
10666 * values.c (unpack_double): Ditto. Add comment.
10667
10668 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10669 already commented out.
10670
0280a90a
AS
106712002-01-26 Andreas Schwab <schwab@suse.de>
10672
10673 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10674 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10675 registers and add support for PTRACE_GETREGS.
10676
7072a954
AC
106772002-01-24 Andrew Cagney <ac131313@redhat.com>
10678
10679 GDB 5.1.1 released from 5.1 branch.
10680 * NEWS: Add 5.1.1 news.
10681 * README: Sync with 5.1 branch.
10682
86f902e0
FF
106832002-01-23 Fred Fish <fnf@redhat.com>
10684
10685 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10686 stabstring on initial malloc. Reallocing will copy it for us,
10687 if necessary.
10688
8af51c36
EZ
106892002-01-23 Elena Zannoni <ezannoni@redhat.com>
10690
aaa38bb5 10691 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10692 (HFILES_NO_SRCDIR): Remove hpread.h.
10693 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10694 (hpread.o): Update dependencies.
10695 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10696
10697 * hp-psymtab-read.c: Remove file.
10698 * hp-symtab-read.c: Remove file.
10699 * hpread.h: Remove file.
10700
10701 * hpread.c: Merge all contents of hp-psymtab-read.c,
10702 hp-symtab-read.c and hpread.h into this file, as it was prior to
10703 January 1999.
10704
10705 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10706 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10707 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10708 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10709
dc5cfeb6
EZ
107102002-01-23 Elena Zannoni <ezannoni@redhat.com>
10711
10712 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10713 fill_gregset): Call gdbarch_tdep() just once, assign result to
10714 variable and use that, instead of calling the function several
10715 times.
10716
ea87b71b
AO
107172002-01-24 Alexandre Oliva <aoliva@redhat.com>
10718
10719 * configure.host: Accept sparcv9 as alias for sparc64.
10720 * configure.tgt: Likewise.
10721
13fc0c2f
KB
107222002-01-22 Kevin Buettner <kevinb@redhat.com>
10723
10724 * solib-aix5.c (build_so_list_from_mapfile)
10725 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10726 arguments is not reversed.
10727 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10728 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10729
7bd872fe
EZ
107302002-01-22 Elena Zannoni <ezannoni@redhat.com>
10731
10732 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10733 modified version of obsolete sh_fetch_pseudo_register.
10734 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10735 (sh4_register_read): New function.
10736 (sh_pseudo_register_write): New function. Renamed and modified
10737 version of obsolete sh_store_pseudo_register.
10738 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10739 (sh4_register_write): New function.
10740 (sh_gdbarch_init): Remove setting of gdbarch function
10741 fetch_pseudo_register and store_pseudo_register. Remove setting of
10742 register_convert_to_raw, register_convert_to_virtual,
10743 register_convertible.
10744 (sh_sh4_register_convertible): Delete. No longer needed. All is
10745 taken care by architecture specific functions
10746 register_read/register_write.
10747 (sh_sh4_register_convert_to_virtual): Make static.
10748 (sh_sh4_register_convert_to_raw): Ditto.
10749
069e84fd
AC
107502002-01-22 Andrew Cagney <ac131313@redhat.com>
10751
10752 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10753 (floatformat_is_nan, floatformat_mantissa): Ditto.
10754
10755 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10756 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10757 builtin_type_ieee_double_little,
10758 builtin_type_ieee_double_littlebyte_bigword,
10759 builtin_type_m68881_ext, builtin_type_i960_ext,
10760 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10761 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10762 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10763 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10764
211a4f69
CV
107652002-01-22 Corinna Vinschen <vinschen@redhat.com>
10766
10767 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10768 parameter. Set frameless flag if it exists and depended of
10769 whether the scanned function is frameless or not.
10770 (xstormy16_skip_prologue): If function is frameless, return
10771 result of xstormy16_scan_prologue().
10772 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10773 call.
10774
f81353e4
EZ
107752002-01-21 Elena Zannoni <ezannoni@redhat.com>
10776
10777 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10778 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10779 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10780 sh_sh4_register_byte, sh_sh4_register_raw_size,
10781 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10782 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10783 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10784 sh_store_pseudo_register, sh_do_pseudo_register): Call
10785 gdbarch_tdep() just once, assign result to variable and use that,
10786 instead of calling the function several times.
10787
63c73a17
MK
107882002-01-20 Mark Kettenis <kettenis@gnu.org>
10789
10790 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10791 macros instead of LAST_FPU_CTRL_REGNUM.
10792 (store_register): Likewise.
10793
39ad761d
JB
107942002-01-21 Jim Blandy <jimb@redhat.com>
10795
10796 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10797 is up-to-date before running the program, not just when a program
10798 exits.
10799
3d74b771
FF
108002002-01-21 Fred Fish <fnf@redhat.com>
10801
10802 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10803 when we have found all instructions we are looking for.
10804
966fbf70
RE
108052002-01-21 Richard Earnshaw <rearnsha@arm.com>
10806
10807 * arm-tdep.c (arm_register_name): New function.
10808 (arm_registers_names): Make static.
10809 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10810 (arm_register_name): Declare.
10811 (REGISTER_NAME): Use it.
10812
c3b4394c
RE
108132002-01-21 Richard Earnshaw <rearnsha@arm.com>
10814 Kevin Buettner <kevinb@redhat.com>
10815
10816 Convert arm targets to new FRAME interface.
10817 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10818 (arm_frame_find_save_regs): Delete.
10819 (arm_frame_init_saved_regs): New.
10820 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10821 Allocate extra_info as required. Convert all uses of fsr.regs
10822 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10823 to use extra_info.
10824 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10825 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10826 (check_prologue_cache, save_prologue_cache): Likewise.
10827 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10828 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10829 (FRAME_FIND_SAVED_REGS): Delete.
10830 (arm_frame_find_saved_regs): Delete prototype.
10831 (arm_frame_init_saved_regs): New prototype.
10832 (FRAME_INIT_SAVED_REGS): Define.
10833
61d99182
AC
108342002-01-20 Andrew Cagney <ac131313@redhat.com>
10835
10836 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10837
6aaea291
AC
108382002-01-20 Andrew Cagney <ac131313@redhat.com>
10839
10840 From Jeff Law <law@redhat.com>:
10841 * infttrace.c: Include <sys/pstat.h>.
10842 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10843 exec file if the ttrace equivalent fails.
10844
15f698d2
AC
108452002-01-20 Andrew Cagney <ac131313@redhat.com>
10846
10847 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10848 (closeLogFile): Ditto.
10849
f86ddd7c
MC
108502002-01-20 Michael Chastain <mec@shout.net>
10851
10852 * top.c (print_gdb_version): Bump copyright year to 2002.
10853
904507ce
AC
108542002-01-20 Andrew Cagney <ac131313@redhat.com>
10855
10856 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10857 Zannoni and Eli Zaretskii.
10858
d7f0b9ce
DJ
108592002-01-20 Daniel Jacobowitz <drow@mvista.com>
10860
10861 * buildsym.c: Update copyright years.
10862 * c-typeprint.c: Likewise.
10863 * dwarf2read.c: Likewise.
10864 * f-typeprint.c: Likewise.
10865 * gdbtypes.c: Likewise.
10866 * gdbtypes.h: Likewise.
10867 * hp-symtab-read.c: Likewise.
10868 * hpread.c: Likewise.
10869 * mdebugread.c: Likewise.
10870 * p-typeprint.c: Likewise.
10871
3fd3d7d2
AC
108722002-01-20 Andrew Cagney <ac131313@redhat.com>
10873
10874 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10875 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10876 byte-order selectable.
10877 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10878 * arch-utils.c: Ditto.
10879 (set_endian): Ditto.
10880 (set_endian_from_file): Ditto.
10881 * gdbserver/low-sim.c (create_inferior): Ditto.
10882 * gdbarch.sh: Ditto.
10883 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10884 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10885 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10886 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10887 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10888 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10889 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10890 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10891 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10892 macro definition.
10893 * config/mips/tm-wince.h: Remove #undef of macro
10894 TARGET_BYTE_ORDER_SELECTABLE.
10895 * config/sh/tm-wince.h: Ditto.
10896
b02dede2
DJ
108972002-01-20 Daniel Jacobowitz <drow@mvista.com>
10898
10899 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10900 member function fields. Add accessor macro
10901 TYPE_FN_FIELD_ARTIFICIAL.
10902 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10903 * c-typeprint.c (c_type_print_base): Skip artificial member
10904 functions.
10905
c3643761
DJ
109062002-01-20 Daniel Jacobowitz <drow@mvista.com>
10907
10908 * f-typeprint.c: Delete unused function f_type_print_args.
10909 * p-typeprint.c: Delete unused function pascal_type_print_args.
10910
8176bb6d
DJ
109112002-01-20 Daniel Jacobowitz <drow@mvista.com>
10912
10913 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10914 comment. Add ``artificial'' to ``union field_location''.
10915
10916 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10917
10918 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10919 * mdebugread.c (parse_symbol): Likewise.
10920 * stabsread.c (define_symbol): Likewise.
10921 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10922 initializing TYPE_FIELD_BITPOS to n (obsolete).
10923 (hpread_doc_function_type): Likewise.
10924 * hpread.c (hpread_function_type): Likewise.
10925
7fd60527
AC
109262002-01-20 Andrew Cagney <ac131313@redhat.com>
10927
10928 * configure.in (host_makefile_frag): Only require a host makefile
10929 fragment when a native build.
10930 * configure: Re-generate.
10931
c2f05ac9
AC
109322002-01-20 Andrew Cagney <ac131313@redhat.com>
10933
10934 * doublest.h (floatformat_from_type): Declare.
10935 * doublest.c (floatformat_from_type): New function.
10936 (convert_typed_floating): Use.
10937
10938 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10939 call to function floatformat_from_type.
10940
10941 * gdbarch.sh (IEEE_FLOAT): Delete.
10942 * gdbarch.h, gdbarch.c: Re-generate.
10943 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10944 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10945 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10946 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10947 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10948 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10949 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10950 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10951 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10952 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10953 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10954 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10955
10956 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10957 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10958 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10959 * sh-tdep.c (sh_gdbarch_init): Ditto.
10960 * mips-tdep.c (mips_gdbarch_init): Ditto.
10961 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10962 * cris-tdep.c (cris_gdbarch_init): Ditto.
10963
abf22e64
AJ
109642002-01-20 Jiri Smid <smid@suse.cz>
10965
10966 * configure.host, configure.tgt: Support x86-64.
10967 * NEWS: Note new target x86-64.
10968
b7c4cbf8
AJ
10969 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10970 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10971 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10972 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10973 x86-64-linux-nat.o): Fix dependencies.
10974
82600034
AC
109752002-01-19 Andrew Cagney <ac131313@redhat.com>
10976
10977 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10978 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10979 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10980 * config/sparc/xm-sun4os4.h: Delete file.
10981 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10982
bbe5c628
AC
109832002-01-19 Andrew Cagney <ac131313@redhat.com>
10984
10985 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10986 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10987 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10988 * config/i386/i386lynx.mh (XM_FILE): Delete.
10989 * config/rs6000/xm-rs6000ly.h: Delete file.
10990 * config/sparc/xm-sparclynx.h: Delete file.
10991 * config/m68k/xm-m68klynx.h: Delete file.
10992 * config/i386/xm-i386lynx.h: Delete file.
10993 * config/xm-lynx.h: Delete file.
10994 * config/djgpp/fnchange.lst: Update.
10995
f8453e34
JT
109962002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10997
10998 * alpha-tdep.c (alpha_register_byte): New function.
10999 (alpha_register_raw_size): Ditto.
11000 (alpha_register_virtual_size): Ditto.
11001 (alpha_skip_prologue_internal): Renamed from
11002 alpha_skip_prologue.
11003 (alpha_skip_prologue): New version that calls
11004 alpha_skip_prologue_internal.
11005 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11006 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11007 second argument from alpha_skip_prologue.
11008 (REGISTER_BYTE): Use alpha_register_byte.
11009 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11010 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11011 (FRAMELESS_FUNCTION_INVOCATION): Use
11012 generic_frameless_function_invocation_not.
11013 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11014 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11015
52d9e613
AC
110162002-01-19 Andrew Cagney <ac131313@redhat.com>
11017
11018 * config/mips/xm-news-mips.h: Delete file.
11019 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11020
11021 * config/m88k/xm-m88k.h: Delete file.
11022 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11023 * config/m88k/xm-delta88v4.h: Ditto.
11024 * config/m88k/xm-delta88.h: Ditto.
11025
11026 * config/alpha/xm-fbsd.h: Delete file.
11027 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11028
11029 * config/sparc/xm-sparc.h: Delete file.
11030 * Makefile.in (xm-sun4os4.h): Delete dependency.
11031 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11032 * config/sparc/xm-sun4os4.h: Ditto.
11033 * config/sparc/xm-linux.h: Ditto.
11034
11035 * config/i386/xm-windows.h: Delete file.
11036
2d1b2124
AC
110372002-01-19 Andrew Cagney <ac131313@redhat.com>
11038
11039 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11040 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11041
ee1f65f0
JT
110422002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11043
11044 * alpha-tdep.c (alpha_call_dummy_words): New.
11045 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11046 (CALL_DUMMY_P): Define.
11047 (CALL_DUMMY_WORDS): Define.
11048 (SIZEOF_CALL_DUMMY_WORDS): Define.
11049
98081e55
PB
110502002-01-19 Per Bothner <per@bothner.com>
11051
11052 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11053 isn't NULL, which can happen with some gcj-3.x-produced code.
11054
0d056799
JT
110552002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11056
11057 * alpha-tdep.c (alpha_register_virtual_type): New function.
11058 (alpha_init_frame_pc_first): Ditto.
11059 (alpha_fix_call_dummy): Ditto.
11060 (alpha_store_struct_return): Ditto.
11061 (alpha_extract_struct_value_address): Ditto.
11062 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11063 alpha_register_virtual_type.
11064 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11065 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11066 alpha_extract_struct_value_address.
11067 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11068 (INIT_FRAME_PC): Use init_frame_pc_noop.
11069 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11070
4604bcad
MK
110712002-01-19 Mark Kettenis <kettenis@gnu.org>
11072
11073 * i386gnu-nat.c: Include "i386-tdep.h".
11074 (fetch_fpregs): Simplify code dealing with uninitialized floating
11075 point states such that it doesn't require FP7_REGNUM.
11076
140f9984
JT
110772002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11078
abf22e64
AJ
11079 * alpha-tdep.c (frame_extra_info): New.
11080 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11081 frame->extra_info.
11082 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11083 (alpha_frame_saved_pc): Use frame->extra_info.
11084 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11085 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11086 (init_extra_frame_info): Rename to...
11087 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11088 (alpha_print_extra_frame_info): New function.
140f9984
JT
11089 (alpha_frame_locals_address): Ditto.
11090 (alpha_frame_args_address): Ditto.
abf22e64 11091 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11092 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11093 alpha_frame_args_address.
abf22e64 11094 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11095 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11096 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11097 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11098 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11099 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11100
d734c450
JT
111012002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11102
11103 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11104 (alpha_cannot_fetch_register): Ditto.
11105 (alpha_cannot_store_register): Ditto.
11106 (alpha_register_convertible): Ditto.
11107 (alpha_use_struct_convention): Ditto.
11108 * config/alpha/tm-alpha.h: Update copyright years.
11109 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11110 (INNER_THAN): Use core_addr_lessthan.
11111 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11112 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11113 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11114 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11115 (FRAME_CHAIN): Remove unnecessary cast.
11116
b4ceaee6
AC
111172002-01-18 Andrew Cagney <ac131313@redhat.com>
11118
11119 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11120 obsolete.
11121
0a65a603
AC
111222002-01-18 Andrew Cagney <ac131313@redhat.com>
11123
11124 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11125 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11126 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11127 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11128 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11129 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11130 * x86-64-linux-nat.c: Ditto.
11131
636a6dfc
JT
111322002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11133
abf22e64 11134 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11135 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11136 (REGISTER_NAME): Define.
11137
acceddb6
JT
111382002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11139
11140 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11141
ec32e4be
JT
111422002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11143
11144 * alpha-tdep.c: Update copyright years.
11145 (alpha_next_pc): New function.
11146 (alpha_software_single_step): Ditto.
11147 * config/alpha/tm-alpha.h: Add prototype for
11148 alpha_software_single_step.
11149
e771a871
JT
111502002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11151
11152 * alphabsd-nat.c: Update copyright years.
11153 (fill_gregset): Use regcache_collect.
11154 (fill_fpregset): Likewise.
11155 (fetch_inferior_registers): Only fetch integer registers
11156 if requested to do so.
11157 (store_inferior_registers): Only store integer registers
11158 if requested to do so.
11159
7708fa01
AC
111602002-01-17 Andrew Cagney <ac131313@redhat.com>
11161
11162 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11163 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11164 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11165 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11166 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11167 * config/arm/linux.mh (XDEPFILES): Delete.
11168 * config/arm/nbsd.mh (XDEPFILES): Delete.
11169 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11170 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11171 * config/i386/i386m3.mh (XDEPFILES): Delete.
11172 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11173 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11174 * config/i386/fbsd.mh (XDEPFILES): Delete.
11175 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11176 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11177 * config/i386/i386v4.mh (XDEPFILES): Delete.
11178 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11179 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11180 * config/i386/i386aix.mh (XDEPFILES): Delete.
11181 * config/i386/go32.mh (XDEPFILES): Delete.
11182 * config/i386/cygwin.mh (XDEPFILES): Delete.
11183 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11184 * config/i386/i386mach.mh (XDEPFILES): Delete.
11185 * config/i386/i386v32.mh (XDEPFILES): Delete.
11186 * config/i386/linux.mh (XDEPFILES): Delete.
11187 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11188 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11189 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11190 * config/i386/i386sco.mh (XDEPFILES): Delete.
11191 * config/i386/i386v.mh (XDEPFILES): Delete.
11192 * config/i386/nbsd.mh (XDEPFILES): Delete.
11193 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11194 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11195 * config/i386/symmetry.mh (XDEPFILES): Delete.
11196 * config/i386/obsd.mh (XDEPFILES): Delete.
11197 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11198 * config/ia64/linux.mh (XDEPFILES): Delete.
11199 * config/ia64/aix.mh (XDEPFILES): Delete.
11200 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11201 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11202 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11203 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11204 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11205 * config/m68k/linux.mh (XDEPFILES): Delete.
11206 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11207 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11208 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11209 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11210 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11211 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11212 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11213 * config/m88k/delta88.mh (XDEPFILES): Delete.
11214 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11215 * config/m88k/m88k.mh (XDEPFILES): Delete.
11216 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11217 * config/mips/linux.mh (XDEPFILES): Delete.
11218 * config/mips/irix6.mh (XDEPFILES): Delete.
11219 * config/mips/irix5.mh (XDEPFILES): Delete.
11220 * config/mips/irix4.mh (XDEPFILES): Delete.
11221 * config/mips/irix3.mh (XDEPFILES): Delete.
11222 * config/mips/decstation.mh (XDEPFILES): Delete.
11223 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11224 (NATDEPFILES): Move core-aout.o to here.
11225 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11226 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11227 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11228 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11229 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11230 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11231 * config/pa/hpux11.mh (XDEPFILES): Delete.
11232 * config/powerpc/aix.mh (XDEPFILES): Delete.
11233 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11234 * config/powerpc/linux.mh (XDEPFILES): Delete.
11235 * config/romp/rtbsd.mh: Rename XDEPFILES.
11236 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11237 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11238 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11239 * config/s390/s390.mh (XDEPFILES): Delete.
11240 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11241 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11242 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11243 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11244 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11245 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11246 * config/sparc/linux.mh (XDEPFILES): Delete.
11247 * config/vax/vaxult.mh (XDEPFILES): Delete.
11248 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11249 * Makefile.in (DEPFILES): Remove XDEPFILES.
11250
375fc983
AC
112512002-01-17 Andrew Cagney <ac131313@redhat.com>
11252
11253 * utils.c (internal_verror): Fix comments, default is yes not no.
11254 Update queries to match. Default to quit and dump core.
11255
8926118c
AC
112562002-01-17 Andrew Cagney <ac131313@redhat.com>
11257
11258 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11259 copyright.
11260 * defs.h, event-top.c, gdbcmd.h: Ditto.
11261 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11262 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11263 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11264 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11265 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11266 * mi/mi-main.c:Ditto.
11267
11268 * stack.c, symfile.c: Update copyright.
11269
45b7b345
DJ
112702002-01-17 Daniel Jacobowitz <drow@mvista.com>
11271
db728ff7
DJ
11272 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11273 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11274 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11275 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11276
db728ff7
DJ
112772002-01-17 Daniel Jacobowitz <drow@mvista.com>
11278
11279 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11280 * gdbserver/low-lynx.c (myattach): Likewise.
11281 * gdbserver/low-nbsd.c (myattach): Likewise.
11282 * gdbserver/low-sim.c (myattach): Likewise.
11283 * gdbserver/low-sparc.c (myattach): Likewise.
11284 * gdbserver/low-sun3.c (myattach): Likewise.
11285
11286 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11287
db728ff7 11288 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11289 (main): Handle "--attach".
11290
8de3c354
AC
112912002-01-16 Andrew Cagney <ac131313@redhat.com>
11292
11293 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11294 maintainer.
11295
b0129042
DJ
112962002-01-15 Daniel Jacobowitz <drow@mvista.com>
11297
11298 * c-typeprint.c (is_type_conversion_operator): Add additional
11299 check for non-conversion operators.
11300
ba8679fb 113012002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11302
11303 * linux-proc.c: Add "info proc" command, a la procfs.c.
11304 (read_mapping): New function, abstract and re-use code.
11305 (linux_find_memory_regions): Use new func read_mapping.
11306 (linux_info_proc_cmd): New function, implement "info proc".
11307 (_initialize_linux_proc): Add new command "info proc".
11308
e4f9b4d5
MS
113092002-01-15 Michael Snyder <msnyder@redhat.com>
11310
11311 * symfile.c (generic_load): Use bfd_map_over_sections method
11312 instead of manipulating bfd structure members directly.
11313 (add_section_size_callback): New function, bfd sections callback
11314 used by generic_load.
11315 (load_sections_callback): New function, bfd sections callback
11316 used by generic_load.
11317
08cf96df
EZ
113182002-01-15 Elena Zannoni <ezannoni@redhat.com>
11319
abf22e64 11320 [Based on work by Jim Blandy]
08cf96df
EZ
11321 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11322 (builtin_type_vec128): Export.
11323 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11324 types.
11325 (builtin_type_vec128): New builtin type for 128 bit vector
11326 registers.
11327 (build_gdbtypes): Initialize builtin_type_v16qi and
11328 builtin_type_v8hi. Create the vec128 register builtin type
11329 structure.
11330 (build_builtin_type_vec128): New function.
abf22e64 11331 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11332 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11333 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11334 AltiVec register to new builtin type.
11335
d7242108
DJ
113362001-01-15 Daniel Jacobowitz <drow@mvista.com>
11337
11338 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11339 to make_cv_type.
11340
4ee3352d
AC
113412002-01-14 Andrew Cagney <ac131313@redhat.com>
11342
11343 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11344 CLEAN_UP_REGISTER_VALUE.
11345 * regcache.c (supply_register): Update only call.
11346
f015b2e7
AC
113472002-01-14 Andrew Cagney <ac131313@redhat.com>
11348
11349 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11350 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11351 a29k-*-vxworks* targets as obsolete.
11352
356ae49d
MS
113532002-01-14 Michael Snyder <msnyder@redhat.com>
11354
11355 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11356 until we can resolve portability issues.
11357 * gregset.h: Remove references to fpxregs.
11358 * gcore.c (gcore_command): Initialize note_sec to NULL.
11359
ade8f45e
AC
113602002-01-13 Andrew Cagney <ac131313@redhat.com>
11361
11362 * signals.c (target_signal_to_name): Rewrite. Only use
11363 signals[].name when in bounds and non-NULL.
abf22e64 11364
89c49e7a
AC
113652002-01-13 Andrew Cagney <ac131313@redhat.com>
11366
11367 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11368 * signals.c (target_signal_to_name): Verify that SIG is within the
11369 bounds of the signals array.
11370
4daa9f9f
AC
113712002-01-13 Andrew Cagney <ac131313@redhat.com>
11372
11373 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11374
ba4bbdcb
KS
113752002-01-13 Keith Seitz <keiths@redhat.com>
11376
11377 * stack.c (print_frame_info_base): Print the frame's pc
11378 only if when print_frame_info_listing_hook is not defined.
11379
575bbeb6
KS
113802002-01-13 Keith Seitz <keiths@redhat.com>
11381
11382 * varobj.c (varobj_set_value): Make sure that there were no
11383 errors evaluating the object before attempting to set its
11384 value.
11385 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11386 so this offset adjustment is no longer necessary.
11387 (create_child): Don't set the error flag if the child is
11388 a CPLUS_FAKE_CHILD.
11389 (value_of_child): If value_fetch_lazy fails, return NULL
11390 so that callers will be notified that an error occurred.
11391 (c_value_of_variable): Delay check of variable's validity
11392 until later. We actually want all structs and unions to have
11393 the value "{...}".
11394 Do not return "???" for variables which could not be evaluated.
11395 This error condition must be returned to the caller so that it
11396 can get the error condition from gdb.
11397 (cplus_name_of_child): Adjust index for vptr before figuring
11398 out the name of the child.
11399 (cplus_value_of_child): If a child's (real) parent is not valid,
11400 don't even bother trying to give a value for it. Just return
11401 an error. Change all instances in this function.
11402 (cplus_type_of_child): If our parent is one of the "fake"
11403 parents, we need to get at the type of the real parent, and
11404 derive the child's true type using this information.
11405
b76898ab
AC
114062002-01-13 Andrew Cagney <ac131313@redhat.com>
11407
11408 From 2002-01-09 John Marshall <johnm@falch.net>:
11409 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11410 sources.redhat.com, and tweak some related URLs which had
11411 suffered from linkrot.
11412
b6649e88
AC
114132002-01-13 Andrew Cagney <ac131313@redhat.com>
11414
11415 From Jeff law:
11416 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11417 structures passed in registers.
11418
82cc5033
EZ
114192002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11420
11421 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11422 white space which prevented compilation. Reported by DSK
11423 <dsk@student.unsw.edu.au>.
11424
ba5f2f8a
MS
114252002-01-11 Michael Snyder <msnyder@redhat.com>
11426
fbd35540
MS
11427 * symfile.c (build_section_addr_info_from_section_tab):
11428 Use bfd access method instead of manipulating bfd directly.
11429 (syms_from_objfile): Ditto.
11430 (simple_overlay_update_1): Ditto.
11431 (simple_overlay_update): Ditto.
11432 (generic_load): Ditto.
11433 (overlay_unmapped_address): FIXME comment, bfd access methods.
11434 (sections_overlap): FIXME comment, bfd access methods.
11435 (pc_in_mapped_range): FIXME comment, bfd access methods.
11436 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11437 (section_is_mapped): FIXME comment, bfd access methods.
11438 (section_is_overlay): FIXME comment, bfd access methods.
11439
ba5f2f8a
MS
11440 * symfile.c (generic_load): Whitespace and long line cleanups.
11441 Remove duplicate variable, change several local variables to
11442 more appropriate data types.
11443 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11444
17df2af6
AC
114452002-01-12 Andrew Cagney <ac131313@redhat.com>
11446
11447 From Peter Schauer:
11448 * language.c (longest_local_hex_string_custom): Use phex_nz to
11449 convert NUM to a hex string.
11450
ec920329
EZ
114512002-01-12 Elena Zannoni <ezannoni@redhat.com>
11452
11453 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11454 the function.
538a76d6 11455 Update Copyright year.
ec920329 11456
3abd2e01
AC
114572002-01-12 Andrew Cagney <ac131313@redhat.com>
11458
11459 * language.c (longest_raw_hex_string): Delete unused function.
11460
b21b22e0
PS
114612002-01-11 Petr Sorfa <petrs@caldera.com>
11462
11463 * MAINTAINERS (write-after-approval): Add myself.
11464 * dwarf2read.c (read_tag_string_type): Handling of
11465 DW_AT_byte_size.
11466 (read_tag_string_type): FORTRAN fix to prevent propagation of
11467 first string size.
11468 (set_cu_language): Handling of DW_LANG_Fortran95
11469
747fe712
RE
114702002-01-11 Richard Earnshaw <rearnsha@arm.com>
11471
11472 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11473 GETPID(inferior_ptid).
11474 (store_inferior_registers): Likewise.
11475
f1bea926
JM
114762002-01-10 Jason Merrill <jason@redhat.com>
11477
11478 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11479 Fix DW_OP_minus.
11480
ae940673
AC
114812002-01-10 Andrew Cagney <ac131313@redhat.com>
11482
11483 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11484 and bfd/elf32-sh-nbsd.c.
11485
00546b04
MS
114862002-01-10 Michael Snyder <msnyder@redhat.com>
11487
352ed7b4
MS
11488 * NEWS: Mention --pid and corefile/proc-id behavior change.
11489
c18be923
MS
11490 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11491 * gcore.c: Include cli/cli-decode.h instead of command.h.
11492
00546b04
MS
11493 * main.c (captured_main): Add new command line option "--pid".
11494 If the second command line argument (following the symbol-file)
11495 begins with a digit, try to attach to it before trying to open
11496 it as a corefile.
11497 (print_gdb_help): Document the "--pid" argument.
11498
db60ec62
EZ
114992002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11500
11501 * completer.c (command_completer): New function.
11502
11503 * completer.h <command_completer>: Add prototype.
11504
11505 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11506 completer for the "help" command.
11507
39c22d1a
JM
115082002-01-09 Jason Merrill <jason@redhat.com>
11509
11510 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11511
c564377f
MS
115122002-01-09 Michael Snyder <msnyder@redhat.com>
11513
975aec09
MS
11514 * i386-linux-nat.c (fill_fpxregset): Make global.
11515 (store_fpxregset): Ditto.
11516
db4a10fa
MS
11517 * gregset.h (gdb_fpxregset_t): Define.
11518 (supply_fpxregset): Prototype.
11519 (fill_fpxregset): Prototype.
11520
c564377f
MS
11521 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11522
c3d45d70
RE
115232002-01-09 Richard Earnshaw <rearnsha@arm.com>
11524
11525 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11526 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11527 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11528
fcc87af1
AC
115292002-01-09 Andrew Cagney <ac131313@redhat.com>
11530
11531 * MAINTAINERS: Update target maintainer rules so that any
11532 Maintainer can approve a tested patch for a maintenance-only
11533 target.
11534
dd96c05b
RE
115352002-01-09 Richard Earnshaw <rearnsha@arm.com>
11536
d4297db9 11537 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11538
d4297db9 11539 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11540 IN_SIGTRAMP.
11541
145fdc6e
MS
115422002-01-08 Michael Snyder <msnyder@redhat.com>
11543
11544 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11545 real name of the executable, rather than the /proc name.
11546
be4d1333
MS
115472002-01-03 Michael Snyder <msnyder@redhat.com>
11548
11549 Implement a "generate-core-file" command in gdb, save target state.
11550 * gcore.c: New file. Implement new command 'generate-core-file'.
11551 Save a corefile image of the current state of the inferior.
11552 * linux-proc.c: Add linux-specific code for saving corefiles.
11553 * target.h (struct target_ops): Add new target vectors for saving
11554 corefiles; to_find_memory_regions and to_make_corefile_notes.
11555 (target_find_memory_regions): New macro.
11556 (target_make_corefile_notes): New macro.
11557 * target.c (update_current_target): Inherit new target methods.
11558 (dummy_find_memory_regions): New place-holder method.
11559 (dummy_make_corefile_notes): New place-holder method.
11560 (init_dummy_target): Initialize new dummy target vectors.
11561 * exec.c (exec_set_find_memory_regions): New function.
11562 Allow the exec_ops vector for memory regions to be taken over.
11563 (exec_make_note_section): New function, target vector method.
11564 * defs.h (exec_set_find_memory_regions): Export prototype.
11565 * procfs.c (proc_find_memory_regions): New function, corefile method.
11566 (procfs_make_note_section): New function, corefile method.
11567 (init_procfs_ops): Set new target vector pointers.
11568 (find_memory_regions_callback): New function.
11569 (procfs_do_thread_registers): New function.
11570 (procfs_corefile_thread_callback): New function.
11571 * sol-thread.c (sol_find_memory_regions): New function.
11572 (sol_make_note_section): New function.
11573 (init_sol_thread_ops): Initialize new target vectors.
11574 * inftarg.c (inftarg_set_find_memory_regions): New function.
11575 Allow to_find_memory_regions vector to be taken over.
11576 (inftarg_set_make_corefile_notes): New function.
11577 Allow to_make_corefile_notes vector to be taken over.
11578 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11579 interface layer if not target_has_execution (may be a corefile).
11580 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11581 * config/sparc/sun4sol2.mh: Ditto.
11582 * config/alpha/alpha-linux.mh: Ditto.
11583 * config/arm/linux.mh: Ditto.
11584 * config/i386/x86-64linux.mh: Ditto.
11585 * config/ia64/linux.mh: Ditto.
11586 * config/m68k/linux.mh: Ditto.
11587 * config/mips/linux.mh: Ditto.
11588 * config/powerpc/linux.mh: Ditto.
11589 * config/sparc/linux.mh: Ditto.
11590
c6b92abd
MS
115912002-01-07 Michael Snyder <msnyder@redhat.com>
11592
11593 * arm-linux-nat.c: Remove references to regcache.c internal data
11594 (registers[] and register_valid[]).
11595
4b09dc8c
MS
115962002-01-07 Michael Snyder <msnyder@redhat.com>
11597
abf22e64
AJ
11598 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11599 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11600 symbol file and shlibs.
11601 * Makefile.in: Add rule for linux-proc.o.
11602 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11603 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11604 * config/arm/linux.mh: Ditto.
11605 * config/i386/linux.mh: Ditto.
11606 * config/i386/x86-64linux.mh: Ditto.
11607 * config/ia64/linux.mh: Ditto.
11608 * config/m68k/linux.mh: Ditto.
11609 * config/mips/linux.mh: Ditto.
11610 * config/powerpc/linux.mh: Ditto.
11611 * config/sparc/linux.mh: Ditto.
11612
c25b74ac
PM
116132002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11614
11615 * win32-nat.c: Add i386-tdep.h dependency.
11616
94cd915f
MS
116172002-01-07 Michael Snyder <msnyder@redhat.com>
11618
c7cccb76
MS
11619 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11620 instead of bfd_get_arch_size. Don't bail out just because
11621 there's no exec_bfd.
abf22e64 11622
34c0bd93
MS
11623 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11624 * p-valprint.c (pascal_object_print_value): Ditto.
11625 * somread.c (som_symtab_read): Ditto.
11626 * symfile.c (simple_free_overlay_region_table): Ditto.
11627 * valops.c (value_assign): Ditto.
11628
21c1c920
MS
11629 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11630 use tilde_expand and strerror for opening save-tracepoints file.
11631
5bbd998e
MS
11632 * thread-db.c (thread_db_new_objfile): Indendation fix.
11633
94cd915f
MS
11634 * infptrace.c (GDB_MAX_ALLOCA): New define.
11635 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11636 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11637 can be overridden with whatever value is appropriate to the host).
11638 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11639 alloca to allocate potentially large buffer.
11640 * rs6000-nat.c (child_xfer_memory): Ditto.
11641 * symm-nat.c (child_xfer_memory): Ditto.
11642 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11643
494e8a93
JSC
116442002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11645
11646 From Nick Clifton <nickc@redhat.com>
11647 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11648
d0e1d48e
MS
116492002-01-07 Michael Snyder <msnyder@redhat.com>
11650
abf22e64 11651 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11652 Don't use exec_bfd if it's NULL.
11653
290b2c7a
MK
116542002-01-06 Mark Kettenis <kettenis@gnu.org>
11655
abf22e64 11656 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11657
aef21287
AC
116582002-01-06 Andrew Cagney <ac131313@redhat.com>
11659
11660 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11661 * gnu-nat.c: Ditto.
11662
30efa627
AC
116632002-01-06 Andrew Cagney <ac131313@redhat.com>
11664
11665 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11666 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11667 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11668 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11669 z8k-coff have not been multi-arched. Update z8k-coff build
11670 status.
11671
9b4ff276
AC
116722002-01-06 Andrew Cagney <ac131313@redhat.com>
11673
11674 * MAINTAINERS: Mark a29k target as obsolete.
11675 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11676 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11677 comments.
11678 * NEWS: Note that a29k targets are obsolete.
11679 * a29k-tdep.c: Mark as obsolete.
11680 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11681 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11682 a29k-*-vxworks* targets as obsolete.
11683 * remote-adapt.c: Obsolete.
11684 * remote-eb.c: Obsolete.
11685 * remote-mm.c: Obsolete.
11686 * remote-udi.c: Obsolete.
11687 * config/a29k/a29k-udi.mt: Obsolete.
11688 * config/a29k/a29k.mt: Obsolete.
11689 * config/a29k/tm-a29k.h: Obsolete.
11690 * config/a29k/tm-vx29k.h: Obsolete.
11691 * config/a29k/vx29k.mt: Obsolete.
11692
a9011d31
AC
116932002-01-05 Andrew Cagney <ac131313@redhat.com>
11694
11695 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11696 with BFD_ENDIAN_BIG.
11697
9299404e
AC
116982002-01-05 Andrew Cagney <ac131313@redhat.com>
11699
11700 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11701 * configure, config.in: Re-generate.
11702 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11703 * defs.h: Do not include <endian.h>.
11704
7e89e357
JT
117052002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11706
11707 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11708 * config.in: Regenerate.
11709 * configure.in: Update copyright years.
11710 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11711 * configure: Regenerate.
11712 * i386bsd-nat.c: Update copyright years.
11713 (fill_gregset): Use regcache_collect.
11714 (fetch_inferior_registers): Only fetch integer registers
11715 if requested to do so. Add support for XMM registers
11716 using PT_GETXMMREGS.
11717 (store_inferior_registers): Only store integer registers
11718 if requested to do so. Add support for XMM registers
11719 using PT_SETXMMREGS.
11720 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11721 (store_inferior_registers): Remove.
11722 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11723 (fetch_elfcore_registers): New function.
11724 (i386nbsd_elfcore_fns): New.
11725 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11726 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11727 i386bsd-nat.o.
11728 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11729 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11730 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11731 * config/i386/tm-nbsd.h: Update copyright years.
11732 (HAVE_SSE_REGS): Define.
11733 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11734 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11735 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11736 (SIGCONTEXT_PC_OFFSET): Remove.
11737 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11738
a752853e
AC
117392002-01-05 Andrew Cagney <ac131313@redhat.com>
11740
11741 * configure.tgt: Remove powerpc-*-macos* target.
11742 * config/m68k/xm-mpw.h: Delete file.
11743 * config/xm-mpw.h: Delete file.
11744 * ser-mac.c: Delete file.
11745 * mpw-make.sed: Delete file.
11746 * mpw-config.in: Delete file.
11747 * mac-xdep.c: Delete file.
11748 * mac-gdb.r: Delete file.
11749 * mac-defs.h: Delete file.
11750 * mac-nat.c: Delete file.
11751 * config/powerpc/macos.mh: Delete file.
11752 * config/powerpc/macos.mt: Delete file.
11753 * config/powerpc/nm-macos.h: Delete file.
11754 * config/powerpc/tm-macos.h: Delete file.
11755 * source.c (openp, open_source_file): Remove obsolete code.
11756 * top.c (gdb_readline): Ditto.
11757 * utils.c (query): Ditto.
11758 * event-top.c (display_gdb_prompt): Ditto.
11759 * Makefile.in (ser-mac.o): Delete obsolete target.
11760 * NEWS: Update.
11761
d7449b42
AC
117622002-01-04 Andrew Cagney <ac131313@redhat.com>
11763
11764 * defs.h (BIG_ENDIAN): Delete macro definition.
11765 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11766 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11767 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11768 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11769 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11770 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11771 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11772 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11773 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11774 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11775 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11776 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11777 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11778 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11779 * gdbarch.c: Re-generate.
11780
356374e8
DJ
117812002-01-04 Daniel Jacobowitz <drow@mvista.com>
11782
11783 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11784 for core files.
11785
a2b8f8f8
JT
117862002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11787
11788 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11789
12466af9
AC
117902002-01-04 Andrew Cagney <ac131313@redhat.com>
11791
11792 * value.h (value_ptr): Delete typedef.
11793
3549ab40
JT
117942002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11795
11796 * i386nbsd-nat.c: Update copyright years.
11797 Include i386-tdep.h.
11798
fedbd091
EZ
117992002-01-04 Elena Zannoni <ezannoni@redhat.com>
11800
11801 * stabsread.c: Update copyright years.
11802
11803 From Debashis Mahata <debashis.mahata@wipro.com>:
11804 (read_struct_fields): Deal with Sun C compiler erroneous stab
11805 output for structs and unions.
fec8b34f 11806 Fix PR gdb/269.
fedbd091 11807
eb43544b
DJ
118082002-01-04 Daniel Jacobowitz <drow@mvista.com>
11809
11810 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11811 prototype.
11812
1514d34e
DJ
118132002-01-04 Daniel Jacobowitz <drow@mvista.com>
11814
11815 * cp-abi.c: Fix whitespace.
11816 (baseclass_offset): New wrapper function.
11817 * cp-abi.h (baseclass_offset): Add prototype.
11818 (struct cp_abi_ops): Add baseclass_offset pointer.
11819
11820 * valops.c (vb_match): Move to...
11821 * gnu-v2-abi.c (vb_match): here.
11822 * valops.c (baseclass_offset): Move to...
11823 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11824
11825 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11826
11827 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11828 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11829 * hpacc-abi.c (init_hpacc_ops): Likewise.
11830
7f8c9282
DJ
118312002-01-04 Daniel Jacobowitz <drow@mvista.com>
11832
11833 * valops.c (find_overload_match): Accept obj as a
11834 reference parameter. Update it before returning.
11835 * value.h (find_overload_match): Update prototype.
11836 * eval.c (evaluate_subexp_standard): Pass object to
11837 find_overload_match by reference.
11838
f23631e4
AC
118392002-01-03 Andrew Cagney <ac131313@redhat.com>
11840
11841 * valarith.c: Replace value_ptr with struct value pointer. Remove
11842 register attribute from value declarations.
11843 * valops.c: Ditto.
11844 * value.h: Ditto.
11845 * scm-lang.c (scm_lookup_name): Ditto.
11846
79e10fab 118472002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11848
79e10fab
AC
11849 Abstract the functionality of iterating over mapped memory
11850 regions into a general purpose iterator function.
abf22e64 11851 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11852 iterator for memory sections.
11853 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11854 (solib_mappings_callback): New function, callback for above.
11855 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11856 (info_mappings_callback): New function, callback for above.
11857
11858 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11859
c5ad026a
MK
118602002-01-01 Mark Kettenis <kettenis@gnu.org>
11861
d2a7c97a
MK
11862 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11863 * i386-tdep.c: Include "elf-bfd.h".
11864 (process_note_abi_tag_sections): New function.
11865 (i386_gdbarch_init): Add code to recognize various OS/ABI
11866 combinations.
11867
c5ad026a
MK
11868 * maint.c (_initialize_maint_cmds): Add missing \ in
11869 string-literal.
11870
a1a5b71e 11871For older changes see ChangeLog-2001
c906108c
SS
11872\f
11873Local Variables:
11874mode: change-log
11875left-margin: 8
11876fill-column: 74
11877version-control: never
11878End:
This page took 0.841249 seconds and 4 git commands to generate.