* config.bfd (s390-*-linux*): Add targ64_selvecs.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
74451869
KD
12002-10-16 Klee Dienes <kdienes@apple.com>
2
3 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
4 to get the last character of a char[] buffer, not
5 name[sizeof(vptr_name)-1].
6
ff4cb3e8
AF
72002-10-14 Adam Fedor <fedor@gnu.org>
8
9 * symtab.h: New objc_specific struct.
10 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
11 (SYMBOL_DEMANGLED_NAME): Likewise.
12
da2cf7e0
AF
132002-10-14 Adam Fedor <fedor@gnu.org>
14
15 * symfile.c (init_filename_language_table): Add ObjC file extension.
16
4a351cef
AF
172002-10-14 Adam Fedor <fedor@gnu.org>
18
19 * utils.c (puts_filtered_tabular): New function.
20 (fprintf_symbol_filtered): Get ObjC demangled name.
21 * defs.h (puts_filtered_tabular): Declared.
22
9750e763
KB
232002-10-14 Kevin Buettner <kevinb@redhat.com>
24
25 * c-lang.h (c_type_print_varspec_prefix): Delete.
26 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
27 ``need_post_space'' parameter. Adjust all callers.
28
eee771c1
DJ
292002-10-14 Daniel Jacobowitz <drow@mvista.com>
30
31 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
32 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
33 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
34 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
35
46c82446
AF
362002-10-13 Adam Fedor <fedor@gnu.org>
37
38 * source.c (print_source_lines): Update comments.
39
d069f99d
AF
402002-10-13 Adam Fedor <fedor@gnu.org>
41
42 * valops.c (value_of_local): New function.
43 (value_of_this): Use it.
44 * value.h (value_of_local): Declared.
45
53c551b7
AF
462002-10-13 Adam Fedor <fedor@gnu.org>
47
48 * parse.c: (length_of_subexp, prefixify_subexp): Handle
49 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
50
eb392fbf
AF
512002-10-12 Adam Fedor <fedor@gnu.org>
52
53 * language.c (binop_result_type): Add language_objc to case.
54 (integral_type): Likewise.
55 (character_type): Likewise.
56 (string_type): Likewise.
57 (boolean_type): Likewise.
58 (structured_type): Likewise.
59 (binop_type_check): Likewise.
60
e2b23ee9
AF
612002-10-11 Adam Fedor <fedor@gnu.org>
62
63 * printcmd.c (address_info): Print 'self' for ObjC.
64
b01ab485
AF
652002-10-11 Adam Fedor <fedor@gnu.org>
66
67 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
68 OP_SELF.
69
806e6073
AF
702002-10-11 Adam Fedor <fedor@gnu.org>
71
72 * language.h (CAST_IS_CONVERSION): Add language_objc.
73
50f85cdf
AF
742002-10-11 Adam Fedor <fedor@gnu.org>
75
76 * defs.h (enum language): Add language_objc.
77
0d540cdf
KD
782002-10-11 Klee Dienes <kdienes@apple.com>
79
80 * findvar.c (read_memory_typed_address): New function.
81 * gdbcore.h (read_memory_typed_address): Add prototype.
82 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
83 to read a value destined for a CORE_ADDR, not read_memory_integer.
84 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
85 (f77_get_dynamic_lowerbound): Ditto.
86
d5dc7960
MH
872002-10-11 Martin M. Hunt <hunt@redhat.com>
88
89 * utils.c (string_to_core_addr): After turning string into
90 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
91 which will do necessary sign-extension, etc.
92
8343f86c
DJ
932002-10-11 Daniel Jacobowitz <drow@mvista.com>
94
95 * c-exp.y (THIS): Delete token and grammar rule.
96 (yylex): Don't return THIS.
97 * cp-valprint.c (vtbl_ptr_name_old): Delete.
98 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
99 * demangle.c (cplus_markers): Update comment. Put '$'
100 first. Remove CPLUS_MARKER.
101 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
102 * jv-exp.y (THIS): Delete token and grammar rule.
103 (yylex): Don't return THIS.
104 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
105 * objc-exp.y (THIS): Delete token and grammar rule.
106 (yylex): Don't return THIS.
107 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
108 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
109 (read_member_functions): Likewise for opname.
110 (read_tilde_fields): Use is_cplus_marker.
111
112 * defs.h (CPLUS_MARKER): Don't define.
113 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
114 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
115 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
116 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
117 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
118
119 * config/i386/tm-i386v4.h: Delete file.
120 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
121 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
122 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
123 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
124 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
125 * config/i386/i386sco5.mt (TM_FILE): Likewise.
126 * config/i386/i386v4.mt (TM_FILE): Likewise.
127 * config/i386/ncr3000.mt (TM_FILE): Likewise.
128
967c0d83
MM
1292002-10-10 Marko Mlinar <markom@opencores.org>
130
131 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
132 accidentially not commited 2002-10-09
133 * gdbarch.h, gdbarch.c: Re-generate.
134
f74fa174
MM
1352002-10-09 Marko Mlinar <markom@opencores.org>
136
137 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
138 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
139 * gdbarch.h, gdbarch.c: Re-generate.
140
57349743
JB
1412002-10-08 Petr Sorfa <petrs@caldera.com>
142
143 Revised and re-submitted by John Wolfe <jlw@caldera.com>
144
145 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
146 so we can work on more than one compilation unit at a time. This
147 helps prepare GDB to handle inter-CU die references.
148 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
149 the code to be defined before struct comp_unit_head.
150 (comp_unit_head): Added new members - offset, cu_head,
151 begin_die, next and dwarf2_abbrevs.
152 (dwarf2_abbrevs): Removed single static var; now member of
153 struct comp_unit_head.
154 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
155 members.
156 (psymtab_to_symtab_1): Changed to work with the new
157 struct comp_unit_head.
158 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
159 constructs the dwarf2_abbrevs[] inside the cu_header.
160 (dwarf2_empty_abbrev_table): Now expects a ptr to a
161 dwarf2_abbrev table to clean up.
162 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
163 handling of dwarf2_abbrevs inside the cu_header.
164 (read_partial_die): Now supports the call to the new
165 dwarf2_lookup_abbrev.
166 (read_full_die): Now supports the call to the new
167 dwarf2_lookup_abbrev.
168
4092aadb
CF
1692002-10-06 Christopher Faylor <cgf@redhat.com>
170
171 * Makefile.in (install-gdbtk): Add missing continuation backslash to
172 insure that shell variables, such as "transformed_name" are propagated
173 to later shell statements in rule.
174
af0b2512
MK
1752002-10-06 Mark Kettenis <kettenis@gnu.org>
176
177 * config/i386/nm-i386sco.h: Add protection against
178 multiple-inclusion. Include "i386/nm-i386v.h".
179 (REGISTER_U_ADDR): Remove define.
180 (i386_register_u_addr): Remove prototype.
181
d6020d45
MS
1822002-10-04 Michael Snyder <msnyder@redhat.com>
183
184 * m32r-stub.c (handle_exception): Make sure exception is "trap"
185 before treating it as a single-step event.
186
7248f48e
AF
1872002-10-03 Adam Fedor <fedor@gnu.org>
188
189 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
190 (objc_demangle): Remove assignment in if statements, Replace
191 free with xfree.
192 (add_msglist): Likewise.
193 (end_msglist): Likewise.
194 (complare_selectors): Likewise.
195 (selectors_info): Likewise.
196 (compare_classes): Likewise.
197 (classes_info): Likewise.
198 (print_object_command): Likewise.
199 (find_objc_msgcall_submethod): Replace PTR with void *.
200 * objc-lang.h: Remove check for __STDC__.
201
52c6a6ac
JJ
2022002-10-03 Jeff Johnston <jjohnstn@redhat.com>
203
204 * ui-out.h (ui_out_field_fmt_int): New prototype.
205 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
206 of field width and alignment.
207 * stack.c (print_frame_info_base): When printing frame level, use
208 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
209 PR gdb/192
210
7e3cec17
JJ
2112002-10-03 Jeff Johnston <jjohnstn@redhat.com>
212
213 * MAINTAINERS: Add self to Write After Approval list.
214
a58dd373
EZ
2152002-10-02 Elena Zannoni <ezannoni@redhat.com>
216
217 * infcmd.c (interrupt_target_command_wrapper): Delete.
218 (interrupt_target_command): Make non static.
219 (nofp_registers_info): Make static.
220 * stack.c (return_command_wrapper): Delete.
221 (return_command): Make non static.
222
cee6ddeb
EZ
2232002-10-02 Elena Zannoni <ezannoni@redhat.com>
224
225 * event-top.c (gdb_setup_readline): New function. Code moved from
226 _initialize_event_loop().
227 (_initialize_event_loop): Call gdb_setup_readline().
228
c4ed33b9
AC
2292002-10-02 Andrew Cagney <ac131313@redhat.com>
230
231 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
232 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
233 * gdbarch.h, gdbarch.c: Re-generate.
234
cef4f5dd
DJ
2352002-10-02 Daniel Jacobowitz <drow@mvista.com>
236
237 Fix PR gdb/778
238 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
239 before recursing.
240 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
241 of fill_in_vptr_fieldno.
242
36dc181b 2432002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 244
36dc181b
EZ
245 * inferior.h (registers_info, stepi_command, nexti_command,
246 continue_command, interrupt_target_command): Export from infcmd.c.
247 * frame.h (args_info, selected_frame_level_changed_hook,
248 return_command): Export from stack.c.
249 * v850ice.c (stepi_command, nexti_command, continue_command): use
250 prototypes from inferior.h.
251 * tracepoint.c (registers_info, args_info, locals_info): Use
252 prototypes from frame.h and inferior.h.
253 * Makefile.in (mi-main.o): Add dependency on frame.h.
254
6f99cb26
AC
2552002-10-02 Andrew Cagney <ac131313@redhat.com>
256
da3eff49
AC
257 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
258 value in register 3 adjusted by ppc_gp0_regnum.
259
6f99cb26
AC
260 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
261
da615bee
MM
2622002-10-02 Marko Mlinar <markom@opencores.org>
263
264 * MAINTAINERS: Add myself to the Write After Approval list.
265
d154bee2
AO
2662002-10-01 Alexandre Oliva <aoliva@redhat.com>
267
62a49b2c
AO
268 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
269 of the section for the N64 ABI, fixed.
270
d154bee2
AO
271 * config/mips/tm-irix6.h: Include solib.h.
272
ed348acc
EZ
2732002-10-01 Elena Zannoni <ezannoni@redhat.com>
274
275 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
276 GNU operators.
277
da0f9dcd
AC
2782002-10-01 Andrew Cagney <ac131313@redhat.com>
279
280 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
281 and that "mi0" syntax has been removed.
282
bdf64bac
DC
2832002-09-30 David Carlton <carlton@math.stanford.edu>
284
285 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
286 * ppc-sysv-tdep.c: #include "gdb_string.h".
287 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
288 pacify GCC.
289
54c2a1e6
AC
2902002-10-01 Andrew Cagney <ac131313@redhat.com>
291
292 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
293 "vrsave"'s register number.
294
cedea778
AC
2952002-09-30 Andrew Cagney <ac131313@redhat.com>
296
297 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
298 use frame_unwind_signed_register to obtain the PC.
299 (mips_frame_chain): Handle a generic dummy frame.
300 (mips_init_extra_frame_info): When a generic dummy frame, don't
301 re-compute the frame base.
302 (mips_pop_frame): Handle generic dummy frames.
303 (mips_gdbarch_init): When generic dummy frames, set
304 use_generic_dummy_frames, push_dummy_frame to
305 generic_push_dummy_frame, pc_in_call_dummy to
306 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
307 generic_save_dummy_frame_tos.
308
68315eb8
AC
3092002-09-30 Andrew Cagney <ac131313@redhat.com>
310
311 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
312 against TOP when TOP was explictly set.
313 (generic_push_dummy_frame): Set TOP to zero.
314
3b8630c3
EZ
3152002-09-30 Elena Zannoni <ezannoni@redhat.com>
316
317 * event-loop.c (start_event_loop): Rename variable 'result' to
318 'gdb_result', to avoid conflicts with upcoming intepreters changes.
319
28ee05e9
KS
3202002-09-30 Keith Seitz <keiths@redhat.com>
321
322 * gdb-events.sh (selected_thread_changed): New event.
323 * gdb-events.c: Regenerated.
324 * gdb-events.h: Regenerated.
325
6eecb1c8
HPN
3262002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
327
328 * MAINTAINERS: Add self to Write After Approval list.
329
92df71f0
FN
3302002-09-30 Fernando Nasser <fnasser@redhat.com>
331
3b8630c3
EZ
332 * disasm.c: New file.
333 * disasm.h: New file.
92df71f0
FN
334 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
335 (compare_lines): Ditto.
336 (dump_insns): Ditto.
3b8630c3
EZ
337 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
338 argument.
92df71f0 339 (do_assembly_only): Ditto.
3b8630c3
EZ
340 (do_disassembly): Renamed to gdb_disassembly and moved to
341 disasm.c. Sdded uiout argument.
342 * Makefile.in: Add new files. Reorder SFILES list. Update
343 dependencies. Include libgdb.a later in the insight executable.
92df71f0 344
0c22854d
AC
3452002-09-29 Andrew Cagney <ac131313@redhat.com>
346
347 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
348 bfd/elf64-alpha-fbsd.c.
349
e67f2023
AC
3502002-09-29 Andrew Cagney <ac131313@redhat.com>
351
352 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
353 i386gnu-tdep.c.
354
89396210
AC
3552002-09-29 Andrew Cagney <ac131313@redhat.com>
356
357 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
358 __FUNCTION__.
359 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
360 function name.
361 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
362 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
363 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
364 (S_msg_sig_post_reply): Ditto.
365
7079c36c
CV
3662002-09-28 Corinna Vinschen <vinschen@redhat.com>
367
89396210
AC
368 * sh-tdep.c (sh_use_struct_convention): Use definition according
369 to ABI.
7079c36c
CV
370 (sh_push_arguments): Store in register with correct endianess.
371 (sh_default_store_return_value): Ditto.
372 (sh_gdbarch_init): Set sizeof long double to 8.
373
975ac915
MK
3742002-09-27 Mark Kettenis <kettenis@gnu.org>
375
376 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
377 Fix some whitespace problems.
378
9bbe19fb
DC
3792002-09-27 David Carlton <carlton@math.stanford.edu>
380
381 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
382 (mcore-tdep.o): Ditto.
383 (ns32k-tdep.o): Ditto.
384 (ns32knbsd-tdep.o): Ditto.
385 (sh3-rom.o): Ditto.
386 (vax-tdep.o): Ditto.
387 * cris-tdep.c: #include "gdb_string.h"
388 * mcore-tdep.c: Ditto.
389 * ns32k-tdep.c: Ditto.
390 * ns32knbsd-tdep.c: Ditto.
391 * sh3-rom.c: Ditto.
392 * vax-tdep.c: Ditto.
393
43b2fdc7
DC
3942002-09-27 David Carlton <carlton@math.stanford.edu>
395
396 * config/djgpp/fnchange.lst: Add entries for
397 gdb/testsuite/gdb.c++/m-static files.
398
e8cfbbd9
JW
3992002-09-27 Jim Wilson <wilson@redhat.com>
400
401 * MAINTAINERS: Add myself to the Write After Approval list.
402
43b2fdc7 4032002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
404
405 * mips-tdep.c (find_proc_desc): Initialize startaddr.
406
407
9f3b7f07
AC
4082002-09-26 Andrew Cagney <ac131313@redhat.com>
409
410 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
411 frame.
412
11269d7e
AC
4132002-09-26 Andrew Cagney <ac131313@redhat.com>
414
415 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
416 (rs6000_struct_return_address): Delete variable.
417 (rs6000_store_struct_return): Update.
418 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
419 deprecated_extract_struct_value_address.
420 (rs6000_frame_align): New function.
421 (rs6000_gdbarch_init): Set frame_align.
422
f15ab4a7
AC
4232002-09-26 Andrew Cagney <ac131313@redhat.com>
424
425 From Grace Sainsbury <graces@redhat.com>:
426 * Makefile.in (gdbtk-main.o): New target.
427 (gdb.o): New target.
428 (main_h): Define.
429 (main.o): Update dependencies.
430 (gdb$(EXEEXT)): Add gdb.o.
431 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
432 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
433 (SUBDIR_GDBTK_CLEAN): Set.
434 (install-gdbtk): Install the insight binary.
435 (uninstall-gdbtk): New target.
436 (all-gdbtk, clean-gdbtk): New rule.
437 * top.c (use_windows): Default to zero.
438 * main.c: Include "main.h".
439 (main): Delete.
440 (struct captured_main_args): Delete.
441 (gdb_main): New function.
442 * main.h: New file.
443 * gdb.c: New File.
444
e36180d7
AC
4452002-09-25 Andrew Cagney <cagney@redhat.com>
446
447 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
448 (frame_map_regnum_to_name): New function.
449 (frame_map_name_to_regnum): New function.
450 * frame.h (frame_map_name_to_regnum): Declare.
451 (frame_map_regnum_to_name): Declare.
452 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
453 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
454 * parse.c: Do not include "builtin-regs.h".
455 (target_map_name_to_register): Delete function.
456 (write_dollar_variable): Use frame_map_name_to_regnum.
457 * parser-defs.h (target_map_name_to_register): Delete declaration.
458 * expprint.c: Include "frame.h".
459 (print_subexp): Use frame_map_regnum_to_name.
460 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
461 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
462
8b69000d
AC
4632002-09-25 Andrew Cagney <ac131313@redhat.com>
464
465 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
466 wasn't saved, and the next innermost frame is a dummy, return the
467 dummy frame's link register.
468
046ca86a
JB
4692002-09-24 Jim Blandy <jimb@redhat.com>
470
471 Fix from Paul Breed:
472 * main.c (captured_main): Add a `break' after the case for 'b'.
473
94b66fa7
KS
4742002-09-24 Keith Seitz <keiths@redhat.com>
475
476 * varobj.c (c_type_of_child): Use get_target_type instead
477 of TYPE_TARGET_TYPE.
478
c214a6fd
FN
4792002-09-22 Fernando Nasser <fnasser@redhat.com>
480
53cb0458
FN
481 * source.c (get_current_or_default_source_symtab_and_line): Remove
482 function.
483 (set_default_source_symtab_and_line): New function. Attempts to
484 determine a source file to list lines from if one is not currently
485 defined.
486 (get_current_source_symtab_and_line): Initialize sal.pc and
487 sal.end fields.
488 (set_current_source_symtab_and_line): Mark argument as const.
489 * source.h: Update declarations and comments.
490 * linespec.c (decode_line_1): Replace call to removed routine above.
491 * stack.c (print_frame_info_base): Ditto.
492 * cli/cli-cmds.c (edit_command): Ditto.
493 (list_command): Ditto.
494
4952002-09-22 Fernando Nasser <fnasser@redhat.com>
496
d6020d45 497 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 498 sal.pc and sal.end fields.
c214a6fd
FN
499 (get_current_or_default_source_symtab_and_line): Ditto.
500 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
501 so we do not cause a new source symtab to be searched for (reverting an
502 unintentional change from the 2002-09-20 patch).
503 * scm-lang.c (scm_unpac): Ditto.
504
cc3b68a5
AC
5052002-09-21 Andrew Cagney <cagney@redhat.com>
506
507 * complaints.c (symfile_explanations): Remove new-line from
508 ``isolated_message''.
509 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
510 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
511
5835abe7
NC
5122002-09-20 Nick Clifton <nickc@redhat.com>
513
514 * NEWS: Announce that V850EA ISA is no longer supported.
515 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
516
a15ef5f5
DC
5172002-09-20 David Carlton <carlton@math.stanford.edu>
518
06ba1b39
DC
519 * Makefile.in (c-lang.o): Correct dependencies.
520 (utils.o): Gather dependencies.
521 (charset.o): Move.
a15ef5f5
DC
522 * c-lang.c: #include "gdb_string.h"
523
87885426
FN
5242002-09-20 Fernando Nasser <fnasser@redhat.com>
525
526 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
527 * cli/cli-cmds.c (list_command): New function. Implements the new
528 cli edit command.
529 (_init_cli_cmds): Add new command definition.
530 * gdb.1: Document edit command.
531 * doc/gdb.texinfo: Document edit command.
532
5332002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
534
535 * source.c: Make global variables current_source_symtab and
536 current_source_line static.
537 (list_command): Moved to cli/cli-cmds.c.
538 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
539 (get_first_line_listed): New accessor function.
540 (get_lines_to_list): New accessor function.
541 (get_current_source_symtab_and_line): New function. Retrieves the
542 position in the source code that we consider current.
543 (get_current_or_default_source_symtab_and_line): New function.
544 Like the above but attempts to determine a default position if one
545 is not currently defined.
546 (set_current_source_symtab_and_line): New function. Sets the source
547 code position considered current and returns the previously set one.
548 (clear_current_source_symtab_and_line): Reset stored information about
549 a current source line.
550 (_initialize_source): Remove registration for the "list" command and
551 its alias.
552 * source.h: Add declarations for the new functions above.
553 * symtab.h: Remove declarations for the global variables mentioned
554 above.
555 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
556 obtain current source line.
557 * linespec.c (decode_line_1): Ditto.
558 * macroscope.c (default_macro_scope): Ditto.
559 * scm-lang.c (scm_unpac): Ditto.
560 * stack.c (print_frame_info_base): Ditto.
561 * symfile.c (clear_symtab_users): Ditto.
562 * symtab.c (decode_line_spec): Ditto.
563 * cli/cli-cmds.c (list_command): Moved here from source.c.
564 (ambiguous_line_spec): Moved here from source.c.
565 (_init_cli_cmds): Add definition for "list" and its alias.
566 * Makefile.in: Update dependencies.
567
ddd216ea
CV
5682002-09-20 Corinna Vinschen <vinschen@redhat.com>
569
570 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
571 with what gcc thinks is correct.
572
6d305052
CV
5732002-09-20 Corinna Vinschen <vinschen@redhat.com>
574
575 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
576 multiple register push instruction.
577
234b45d4
KB
5782002-09-19 Jim Blandy <jimb@redhat.com>
579
580 Add support for distinct host and target character sets.
581 * charset.c, charset.h: New files.
582 * c-exp.y: #include "charset.h".
583 (yylex): Convert character and string literals to the target
584 character set, before returning them as the semantic value of the
585 token.
586 * c-lang.c: #include "charset.h".
587 (c_emit_char): Use charset-specific methods to recognize
588 characters with backslash escape forms, to decide which characters
589 to print literally and which to print using numeric escape
590 sequences, and to convert target characters to host characters
591 before printing.
592 * utils.c: #include "charset.h".
593 (no_control_char_error): New function.
594 (parse_escape): Use charset-specific methods to recognize
595 backslash escapes, parse `control character' notation, and convert
596 characters from the host character set to the target character set.
597 * configure.in: Set the default host character set.
598 Check where to find iconv, and what its argument types might be.
599 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
600 * Makefile.in (SFILES): List charset.c.
601 (COMMON_OBS): List charset.o.
602 (charset.o): New rule.
603 (charset_h): New header dependency variable.
604 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
605 (LIBICONV): New variable, set by configure.
606 (CLIBS): Include $(LIBICONV) here.
607 * aclocal.m4, config.in, configure: Regenerated.
608
525d6a61
JB
6092002-09-19 Joel Brobecker <brobecker@gnat.com>
610
611 * ada-exp.y: Add missing semicolons to end rules. Fixes a
612 bison 1.35 warning.
613
3ed93867
RE
6142002-09-19 Richard Earnshaw <rearnsha@arm.com>
615
616 * gdb_mbuild.sh: New file.
617
437666f8
AC
6182002-09-19 Andrew Cagney <ac131313@redhat.com>
619
620 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
621
389e51db
AC
6222002-09-18 Andrew Cagney <ac131313@redhat.com>
623
624 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
625 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
626 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
627 valops.c, value.h: Revert previous change.
628
3b4efeaa
MS
6292002-09-18 Michael Snyder <msnyder@redhat.com>
630
631 Preliminary support for Objective-C:
632 * defs.h (language_objc): New enum value.
633 (puts_filtered_tabular): Declaration only, exported from utils.c.
634 (skip_quoted): Delete, declared in completer.h.
635 * c-exp.y: Include completer.h.
636 * p-exp.y: Ditto.
637 * jv-exp.y: Ditto.
638 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
639 New operator enum values.
640 * language.h (CAST_IS_CONVERSION): Test for language_objc.
641 * language.c (binop_result_type): Handle language_objc case.
642 (integral_type, character_type, string_type, boolean_type,
643 structured_type, binop_type_check): Ditto.
644 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
645 (struct objc_specific): Add to general_symbol_info.
646 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
647 (SYMBOL_DEMANGLED_NAME): Handle objc case.
648 * parser-defs.h (struct objc_class_str): New struct type.
649 (start_msglist, end_msglist, add_msglist): Declaration only,
650 exported from objc-lang.c.
651 * value.h (value_of_local, value_nsstring,
652 call_function_by_hand_expecting_type): Exported from valops.c.
653 * valops.c (find_function_addr): Export.
654 (call_function_by_hand_expecting_type): New function.
655 (value_of_local): New function.
656 * symfile.c (init_filename_language_table): Add ".m" extension
657 for Objective-C.
658 * utils.c (puts_filtered_tabular): New function.
659 (fprintf_symbol_filtered): Add objc demangling support (disabled).
660 (set/show demangle): Extend help-string to refer to ObjC.
661 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
662 * stabsread.c (symbol_reference_defined): Objective-C symbols
663 may contain colons: make allowances when scanning stabs strings
664 for colons.
665 (objc_find_colon): New function.
666 * printcmd.c (address_info): If language == objc then print
667 "self" instead of "this".
668 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
669 OP_NSSTRING, and OP_SELF.
670 (prefixify_subexp): Ditto.
671 * source.c (print_source_lines): Mention objc in comment.
672 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
673 method names.
674
b9caf505
AC
6752002-09-18 Andrew Cagney <ac131313@redhat.com>
676
677 * complaints.h: Update copyright.
678 (struct complaints): Declare.
679 (struct complaint): Make `message' constant.
680 (internal_complaint): Declare.
681 (complaint): Declare.
682 (complaint_root): Delete declaration.
683 (symfile_complaints): Delete declaration.
684 (struct complaints): Add opaque declaration.
685 (clear_complaints): Add a complaints parameter.
686 * complaints.c: Update copyright.
687 (enum complaint_series): Define.
688 (complaint_root): Delete.
689 (struct complaints): Define.
690 (complaint_sentinel, symfile_complaint_book): New variables.
691 (symfile_explanations, symfile_complaints): New variables.
692 New variables.
693 (get_complaints): New function.
694 (vcomplaint): New function.
695 (complaint): New function.
696 (internal_complaint): New function.
697 (complain): Call vcomplain with symfile_complaint.
698 (clear_complaints): Rewrite.
699 (_initialize_complaints): Use add_setshow_command.
700 * Makefile.in (complaints.o): Update dependencies.
701 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
702 to call to clear_complaints.
703 (new_symfile_objfile, reread_symbols): Ditto.
704 (oldsyms_complaint): Delete.
705 (empty_symtab_complaint, unknown_option_complaint): Delete.
706 (free_named_symtabs): Use complaint instead of complain.
707
d2e6263c
MS
7082002-09-18 Michael Snyder <msnyder@redhat.com>
709
5fb2031a
AC
710 Contributed by Apple Computer, Inc. Merged with current sources
711 by Adam Fedor <fedor@doc.com> [cagney].
712
d2e6263c
MS
713 * objc-lang.c: First clean-up round: comments, indentation.
714 * objc-lang.h: Ditto.
715 * objc-lang.y: Ditto.
716
dec43320
AC
7172002-09-18 Andrew Cagney <ac131313@redhat.com>
718
719 * maint.c (maintenance_internal_error): Print the parameter as the
720 error message.
721 (maintenance_internal_warning): New function.
722 (_initialize_maint_cmds): Add command `maint internal-warning'.
723
724 * defs.h (internal_warning, internal_vwarning): Declare.
725 * utils.c (struct internal_problem): Define.
726 (internal_vproblem): New function.
727 (internal_warning): New function.
728 (internal_vwarning): New function.
729 (internal_warning_problem, internal_error_problem): New variables.
730 (internal_verror): Just call internal_vproblem.
731
b81654f1
MS
7322002-09-18 Michael Snyder <msnyder@redhat.com>
733
734 * objc-lang.c: New file, support for Objective-C.
735 Preliminary check-in, not yet integrated into gdb.
736 * objc-lang.h: New file.
737 * objc-exp.y: New file.
738
0542c381
AC
7392002-09-18 Andrew Cagney <ac131313@redhat.com>
740
7bda5e4a
AC
741 * infrun.c (signal_stop_update): Convert definition to ISO C.
742 (signal_print_update): Ditto.
743 (signal_pass_update): Ditto.
744 * inflow.c (terminal_save_ours): Ditto.
745
5247b418
AC
746 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
747 comments.
748
fc60962c
AC
749 * config/djgpp/fnchange.lst: Handle name clashes between
750 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
751 bfd/coff-tic80.c.
752
0542c381
AC
753 * i386-linux-tdep.h: Fix tipo.
754
5b924b9b
AF
7552002-09-18 Adam Fedor <fedor@gnu.org>
756
757 * MAINTAINERS: Add myself to the Write After Approval list.
758
5afc051b
JB
7592002-09-18 Jim Blandy <jimb@redhat.com>
760
761 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
762 texthigh and textlow to reader-specific structs caused
763 objfile_relocate to miss them. This is fixable, but the work that
764 the change was supposed to prepare GDB for never got done anyway.
765
eb944380
DC
7662002-09-18 David Carlton <carlton@math.stanford.edu>
767
768 * MAINTAINERS: Alphabetize Write After Approval list.
769
948e66d9
DJ
7702002-09-18 Daniel Jacobowitz <drow@mvista.com>
771
772 Fix PR gdb/709
773 * values.c (value_static_field): Call read_var_value.
774
dc604539
AC
7752002-09-18 Andrew Cagney <ac131313@redhat.com>
776
777 * valops.c (hand_function_call): Align the initial stack pointer
778 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
779 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
780 return value.
781 * mips-tdep.c (mips_frame_align): New function.
782 (mips_gdbarch_init): Set frame_align.
783 * gdbarch.sh (FRAME_ALIGN): New method.
784 * gdbarch.h, gdbarch.c: Re-generate.
785
cb7e422f
ML
7862002-09-18 Michal Ludvig <mludvig@suse.cz>
787
788 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
789 registers.
790
a094c6fb
AC
7912002-09-17 Andrew Cagney <ac131313@redhat.com>
792
793 * NEWS: Mention that MIPS $fp behavior changed.
794 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
795 reference to FP_REGNUM.
796 (mipsnbsd_cannot_store_register): Ditto.
797 * mips-linux-nat.c: Update copyright.
798 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
799 (mips_linux_cannot_store_register): Ditto.
800 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
801 * config/mips/tm-mips.h: Update copyright.
802 (FP_REGNUM): Delete macro.
803 (MIPS_REGISTER_NAMES): Replace "fp" with "".
804 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
805 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
806 (mips_r3041_reg_names, mips_r3051_reg_names)
807 (mips_r3081_reg_names): Replace "fp" with "".
808 Fix PR gdb/480.
809
45cf40d1
TR
8102002-09-17 Theodore A. Roth <troth@verinet.com>
811
812 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
813 generic_read_register_dummy() (PR gdb/703).
814 (avr_push_return_address): #if 0 out unused vars.
815 (avr_gdbarch_init): Enable use of avr_push_return_address().
816
c7e701b5
MS
8172002-09-17 Michael Snyder <msnyder@redhat.com>
818
d76ba2a5 819 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
820 RTE will take care of it.
821
20bcf01c
AC
8222002-09-17 Andrew Cagney <ac131313@redhat.com>
823
824 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
825 invalid, return SP_REGNUM.
826
009a9971 8272002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
828
829 * mips-tdep.c (mips_pop_frame): Read saved values of floating
830 point registers without sign extension.
831
135c175f
AC
8322002-09-17 Andrew Cagney <cagney@redhat.com>
833
834 * blockframe.c (deprecated_read_register_dummy): Rename
835 generic_read_register_dummy.
836 * frame.c (frame_unwind_signed_register): New function.
837 (frame_unwind_unsigned_register): New function.
838 * frame.h (frame_unwind_signed_register): Declare.
839 (frame_unwind_unsigned_register): Declare.
840 (deprecated_read_register_dummy): Rename
841 generic_read_register_dummy.
842
843 * h8300-tdep.c (h8300_frame_chain): Update.
844 (h8300_frame_saved_pc): Update.
845 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
846 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
847 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
848 (s390_frame_chain): Update.
849 * v850-tdep.c (v850_find_callers_reg): Update.
850 (v850_frame_saved_pc): Update.
851 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
852 (m32r_find_callers_reg): Update.
853 (m32r_frame_saved_pc): Update.
854 * sh-tdep.c (sh_find_callers_reg): Update.
855 (sh64_get_saved_pr): Update.
856 (sh_init_extra_frame_info): Update.
857 (sh_init_extra_frame_info): Update.
858 (sh64_init_extra_frame_info): Update.
859 (sh64_init_extra_frame_info): Update.
860 * mcore-tdep.c (mcore_find_callers_reg): Update.
861 (mcore_frame_saved_pc): Update.
862 (mcore_init_extra_frame_info): Update.
863 * i386-tdep.c (i386_frame_saved_pc): Update.
864 * ia64-tdep.c (ia64_frame_saved_pc): Update.
865 (ia64_init_extra_frame_info): Update.
866 (ia64_init_extra_frame_info): Update.
867 * d10v-tdep.c (d10v_frame_saved_pc): Update.
868 * cris-tdep.c (cris_init_extra_frame_info): Update.
869 * avr-tdep.c (avr_frame_chain): Update.
870 (avr_init_extra_frame_info): Update.
871 (avr_frame_saved_pc): Update.
872 * arm-tdep.c (arm_find_callers_reg): Update.
873 (arm_init_extra_frame_info): Update.
874 (arm_frame_saved_pc): Update.
875
a741e514
TT
8762002-09-17 Tom Tromey <tromey@redhat.com>
877
878 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
879 is "'".
880
d1a8e808
CV
8812002-09-17 Corinna Vinschen <vinschen@redhat.com>
882
883 * MAINTAINERS: Remove "non multi-arched" text from h8300.
884 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
885 NEXT_PROLOGUE_INSN.
886 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
887 NEXT_PROLOGUE_INSN.
888
d9025a18
JB
8892002-09-16 Joel Brobecker <brobecker@gnat.com>
890
891 * osfsolib.c: Remove file, replaced by solib-osf.c.
892 * Makefile.in: Remove compilation rules for osfsolib.c.
893
1b2ef1b6
DC
8942002-09-16 David Carlton <carlton@math.stanford.edu>
895
896 * cp-valprint.c (cp_print_class_method): Correct args to
897 check_stub_method_group.
898
928e48af
CV
8992002-09-16 Corinna Vinschen <vinschen@redhat.com>
900
901 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
902 `set architecture'. Unify naming convention of functions.
903 (h8300_skip_prologue): Improve prologue analysis.
904 (h8300_push_arguments): Rewritten to more closely match GCC's
905 bizarre argument-passing behavior, along with the comment describing
906 said behavior.
907 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
908 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
909 sim, remote-e7000.c, remote-hms.c and remote.c
910
5e3397bb
MK
9112002-09-15 Mark Kettenis <kettenis@gnu.org>
912
913 * i386-tdep.c (gdb_print_insn_i386): Removed.
914 (i386_print_insn): New function.
915 (i386_gdbarch_init): Set print_insn to i386_print_insns.
916 (_initialize_i386_tdep): Don't initialize tm_print_insn and
917 tm_print_insn_info.
918
f710f4fc
MK
9192002-09-14 Mark Kettenis <kettenis@gnu.org>
920
921 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
922 zero.
923
db54fef4
CV
9242002-09-14 Corinna Vinschen <vinschen@redhat.com>
925
926 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
927 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
928 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
929
2becadee
CF
9302002-09-13 Christopher Faylor <cgf@redhat.com>
931
932 * win32-nat.c (child_create_inferior): Honor 'tty' command.
933
de17c821
DJ
9342002-09-13 Daniel Jacobowitz <drow@mvista.com>
935
936 * gdbtypes.c (check_stub_method): Make static.
937 (check_stub_method_group): New function.
938 * gdbtypes.h: Update prototypes.
939 * cp-support.c: New file.
940 * cp-support.h: New file.
941
942 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
943 (update_method_name_from_physname): New function.
944 (read_member_functions): Correct method names for operators
945 and v3 constructors/destructors. Separate v2 constructors and
946 destructors.
947 * Makefile.in (stabsread.o): Update dependencies.
948 (SFILES): Add cp-support.c.
949 (COMMON_OBS): Add cp-support.o.
950 (cp_support_h, cp-support.o): Add.
951
952 * cp-valprint.c (cp_print_class_method): Call
953 check_stub_method_group instead of check_stub_method. Remove
954 extraneous QUITs.
955 * p-valprint.c (pascal_object_print_class_method): Likewise.
956 * valops.c (search_struct_method): Likewise.
957 (find_method_list, value_struct_elt_for_reference): Likewise.
958
e76cff22
AC
9592002-09-13 Andrew Cagney <cagney@redhat.com>
960
961 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
962 * gdbarch.h, gdbarch.c: Regenerate.
963
905abb3f
AC
9642002-09-13 Andrew Cagney <ac131313@redhat.com>
965
966 * frame.c (find_saved_register): Delete function.
967 * frame.h (find_saved_register): Delete declaration.
968 Fix PR gdb/631.
969
64159455
AC
970Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
971
972 * mips-tdep.c (read_next_frame_reg): Re-hack using
973 frame_register_unwind.
974
795e1e11
AC
975Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
976
977 * mips-tdep.c (mips_get_saved_register): Re-hack using
978 frame_register_unwind.
979
5720643c
JB
9802002-09-12 Joel Brobecker <brobecker@gnat.com>
981
982 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
983 vector. Will be useful for Interix.
984 * gdbarch.h, gdbarch.c: Regenerate.
985
986 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
987 name of the malloc function by NAME_OF_MALLOC.
988
3bada2a2
JB
9892002-09-12 Joel Brobecker <brobecker@gnat.com>
990
991 * value.h (find_function_in_inferior): Add const keyword to
992 one of the parameters. Allows us to invoke this function with
993 a const char *.
994 * valops.c (find_function_in_inferior): Likewise.
995
3db26b01
JB
9962002-09-12 Joel Brobecker <brobecker@gnat.com>
997
998 * exec.c (xfer_memory): Fix compilation warning with old versions
999 of GCC.
1000 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1001
17c5ed2c
DC
10022002-09-12 David Carlton <carlton@math.stanford.edu>
1003
1004 * symtab.h: Run through gdb_indent.h.
1005 Add 2002 to Copyright year list.
1006
ecd1107e
AM
10072002-09-12 Alan Modra <amodra@bigpond.net.au>
1008
1009 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1010 mach constants.
1011 * MAINTAINERS: Add myself to write after approval list.
1012
e64f66d1
JB
10132002-09-11 J. Brobecker <brobecker@gnat.com>
1014
1015 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1016
f9395794
JB
10172002-09-11 J. Brobecker <brobecker@gnat.com>
1018
1019 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1020 Interix.
1021
1a303dec
MS
10222002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1023
1024 * procfs.c (do_detach): Clear current signal, not just fault.
1025 Corrects problem with breakpoint trap signal leaking to detached
1026 process on Tru64.
1027
c0219d42
MS
10282002-09-10 Michael Snyder <msnyder@redhat.com>
1029
1030 * buildsym.c (finish_block): Protect against null pointer.
1031
9d84ac84
AC
10322002-09-10 Andrew Cagney <cagney@redhat.com>
1033
1034 * infcmd.c (default_print_registers_info): Send all output to
1035 ``file'' instead of ``gdb_stdout''.
1036
77d8f2b4
MS
10372002-09-10 Michael Snyder <msnyder@redhat.com>
1038
1039 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1040 LONGEST, and use signed register read (addresses are sign-
1041 extended for mips).
1042
99656a61
SC
10432002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1044
1045 * event-loop.c (gdb_do_one_event): Make public.
1046 * event-loop.h (gdb_do_one_event): Declare.
1047
da12f4d8
JL
10482002-09-10 Jeff Law <law@redhat.com>
1049
1050 * infttrace.c (child_resume): Simplify and rework to avoid
1051 TT_PROC_CONTINUE.
1052
d0aee0c4
FF
10532002-09-09 Fred Fish <fnf@intrinsity.com>
1054
1055 * printcmd.c (print_scalar_formatted): "len" is the number of
1056 target bytes, NOT the number of target bits.
1057
7cb3ec5e
EZ
10582002-09-09 Elena Zannoni <ezannoni@redhat.com>
1059
1060 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1061 * top.c (init_main): Set rl_terminal_name.
1062
4dc81987
AS
10632002-09-08 Aidan Skinner <aidan@velvet.net>
1064
1065 * ada-lang.c (ada_array_bound, ada_type_match,
1066 _initialize_ada_language): Fix K&R definitions.
1067 * ada-tasks.c (get_current_task): Fix K&R definitions.
1068 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1069
842330b4
CF
10702002-09-07 Christopher Faylor <cgf@redhat.com>
1071
1072 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1073 Add XP.
1074
43156d82
MK
10752002-09-06 Mark Kettenis <kettenis@gnu.org>
1076
66da5fd8
MK
1077 * i386-tdep.c (i386_register_virtual_type,
1078 i386_register_convertible, i386_register_convert_to_virtual,
1079 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1080 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1081 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1082 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1083 Don't set push_arguments twice.
1084
4b218c18
MK
1085 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1086 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1087 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1088 sigtramp_end to NULL.
1089 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1090 defines.
1091 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1092
4cc314d5
MK
1093 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1094 whitespace.
1095
43156d82
MK
1096 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1097 * gdbarch.h, gdbarch.c: Re-generate.
1098 * blockframe.c (find_pc_sect_partial_function): Convert to use
1099 SIGTRAMP_START_P predicate.
1100
6672060b
MS
11012002-09-05 Michael Snyder <msnyder@redhat.com>
1102
a90c3637
MS
1103 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1104 generic_dummy_frame method and old method. Also distinguish
1105 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1106 (arm_extract_return_value): Use new regcache method.
a90c3637 1107
6672060b
MS
1108 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1109 adjustment that doesn't conform to the ABI.
1110 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1111 saved regcache, not from current regcache.
1112
299ffc64
AC
11132002-09-05 Andrew Cagney <ac131313@redhat.com>
1114
1115 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1116 * README: Update.
1117
a3a2ee65
JT
11182002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1119
1120 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1121 if arm_apcs_32 is false.
1122
2bc7eea9
AC
11232002-09-04 Andrew Cagney <ac131313@redhat.com>
1124
1125 GDB 5.3 branch created.
1126
8a55a7c5
TR
11272002-09-03 Theodore A. Roth <troth@verinet.com>
1128
1129 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1130 generic_unwind_get_saved_register.
1131
e26fb1d7
DC
11322002-09-03 David Carlton <carlton@math.stanford.edu>
1133
1134 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1135 argument (PR gdb/653). Update call to smash_to_method_type.
1136 (read_structure_scope): Update call to dwarf2_add_member_fn.
1137
30d52491
ML
11382002-09-03 Michal Ludvig <mludvig@suse.cz>
1139
1140 * x86-64-linux-tdep.c: Include gdb_string.h
1141 * x86-64-linux-nat.c: Ditto.
1142
06891d83
JT
11432002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1144
1145 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1146 when YYDEBUG is set to 1.
1147 * c-exp.y: Likewise.
1148 * f-exp.y: Likewise.
1149 * jv-exp.y: Likewise.
1150 * m2-exp.y: Likewise.
1151 * p-exp.y: Likewise.
1152
7d400e77
JT
11532002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1154
1155 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1156 dependency list.
1157 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1158 solib_svr4_fetch_link_map_offsets to
1159 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1160 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1161 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1162 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1163 solib-svr4.o, and solib-legacy.o.
1164 * config/i386/tm-nbsd.h: Include solib.h.
1165
704a27c4
JT
11662002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1167
1168 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1169 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1170 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1171 comment noting that this needs its own target configuration.
1172 * config/i386/nbsd.mt: New file.
1173 * config/i386/nbsdaout.mt: Remove.
1174 * config/i386/nbsdelf.mt: Ditto.
1175 * config/i386/tm-nbsdaout.h: Ditto.
1176
d66198e1
JT
11772002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1178
1179 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1180 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1181 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1182 tdep->sigtramp_end.
1183 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1184 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1185 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1186
3cac699e
JT
11872002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1188
1189 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1190 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1191 * i386-tdep.h (i386bsd_init_abi): New prototype.
1192 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1193 function declaration.
1194 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1195 for NetBSD-a.out or NetBSD-ELF.
1196 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1197 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1198 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1199 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1200 and nbsd-tdep.h.
1201 (i386nbsd_pc_in_sigtramp): New function.
1202 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1203 i386nbsd_pc_in_sigtramp.
1204 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1205 and i386nbsdelf_init_abi OS ABI handlers.
1206 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1207 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1208
7010ca0a
MK
12092002-09-02 Mark Kettenis <kettenis@gnu.org>
1210
1211 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1212 registers if the target really has them.
1213
6dd93b72
JT
12142002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1215
1216 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1217 than nbsd-tdep.h.
1218
2ca8ae21
JT
12192002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1220
1221 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1222 list.
1223 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1224 (alphanbsd_skip_sigtramp_frame): New functions.
1225 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1226 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1227 to alphanbsd_sigcontext_addr.
1228
3d9b49b0
JT
12292002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1230
1231 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1232 list.
1233 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1234 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1235 nbsd_pc_in_sigtramp.
1236 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1237 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1238 * nbsd-tdep.c: Include gdb_string.h.
1239 (nbsd_pc_in_sigtramp): New function.
1240 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1241 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1242 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1243 ppcnbsd_pc_in_sigtramp.
1244 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1245 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1246 shnbsd_pc_in_sigtramp.
1247 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1248 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1249 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1250
c860120c
PM
12512002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1252
1253 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1254 watchpoints to NULL.
1255 (insert_breakpoints): set val field of watchpoints if NULL.
1256
1257
c7612d53
JB
12582002-08-29 Jim Blandy <jimb@redhat.com>
1259
1260 * symtab.c (lookup_symbol_aux): In the cases where we find a
1261 minimal symbol of an appropriate name and use its address to
1262 select a symtab to read and search, use `name' (as passed to us)
1263 as the demangled name when searching the symtab's global and
1264 static blocks, not the minsym's name.
1265
66609862
KS
12662002-08-29 Keith Seitz <keiths@redhat.com>
1267
1268 * stack.c (print_frame_info_base): Always set current_source_symtab
1269 and current_source_line.
1270
151fefe2
JB
12712002-08-29 Donn Terry <donnte@microsoft.com>
1272
1273 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1274
bfb3754e
KS
12752002-08-28 Keith Seitz <keiths@redhat.com>
1276
1277 * stack.c (select_frame): Add FIXME concerning selected-frame
1278 events.
1279 (select_frame_command): Send selected-frame-level-changed
1280 event notification, but only if the level actually changed.
1281 (up_silently_base): Add selected-frame-level-changed event
1282 notification.
1283 (down_silently_base): Likewise.
1284
e822a2a0
AC
12852002-08-28 Andrew Cagney <ac131313@redhat.com>
1286
1287 * Makefile.in: Update dependencies for all gdb/*.c files.
1288
309367d4
TT
12892002-08-27 Tom Tromey <tromey@redhat.com>
1290
1291 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1292 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1293 Update dependencies.
1294 * i387-tdep.c: Include gdb_string.h.
1295 * osabi.c: Likewise.
1296 * i386-linux-nat.c: Likewise.
1297 * lin-lwp.c: Likewise.
1298 * ax-gdb.c: Likewise.
1299 * signals/signals.c: Likewise.
1300 * jv-valprint.c: Likewise.
1301 * p-lang.c: Likewise.
1302 * c-valprint.c: Likewise.
1303 * cp-abi.c: Likewise.
1304
e1507482
EZ
13052002-08-27 Elena Zannoni <ezannoni@redhat.com>
1306
1307 * cli/cli-script.h (copy_command_lines): Export.
1308 * breakpoint.c: Include cli/cli-script.h.
1309 * Makefile.in (breakpoint.o): Update dependencies.
1310
c6510018
MS
13112002-08-26 Michael Snyder <msnyder@redhat.com>
1312
1313 * breakpoint.c (insert_breakpoints): Protect all references
1314 to 'process_warning'. Shorten long lines.
1315
c2b8ed2c
MS
13162002-08-26 Joel Brobecker <brobecker@gnat.com>
1317
1318 * cli/cli-script.c (copy_command_lines): New function.
1319 * defs.h (copy_command_lines): Export.
1320 * testsuite/gdb.base/commands.exp: New tests for commands
1321 attached to a temporary breakpoint, and for commands that
1322 delete the breakpoint they are attached to.
1323
13242002-08-26 Michael Snyder <msnyder@redhat.com>
1325
1326 * breakpoint.c (bpstat_stop_status): Instead of copying the
1327 pointer to the breakpoint commands struct, make a new copy
1328 of the struct and point to that.
1329 (bpstat_clear): Free the commands struct.
1330 (bpstat_clear_actions): Free the commands struct.
1331 (bpstat_do_actions): Free the command actions. Also execute
1332 the local cleanups, instead of deleting them.
1333 (delete_breakpoint): Leave the commands field of the bpstat
1334 chain alone -- it will be freed later.
1335
64b84175
KB
13362002-08-26 Kevin Buettner <kevinb@redhat.com>
1337
1338 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1339 deleted in 2002-08-20 commit. This function is still used by
1340 ppc-linux-nat.c.
1341
55970da6
KS
13422002-08-26 Keith Seitz <keiths@redhat.com>
1343
1344 * gdb-events.sh: Add selected-frame-level-changed event.
1345 * gdb-events.c: Regenerated.
1346 * gdb-events.h: Regenerated.
1347
a790ad35
SC
13482002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1349
1350 Fix PR gdb/393:
1351 * inflow.c (terminal_save_ours): New function to save terminal
1352 settings.
1353 * inferior.h (terminal_save_ours): Declare.
1354 * target.c (debug_to_terminal_save_ours): New function.
1355 (cleanup_target): Defaults to_terminal_save_ours.
1356 (update_current_target): Inherit to_terminal_save_ours.
1357 (setup_target_debug): Set to_terminal_save_ours.
1358 * target.h (target_terminal_save_ours): New to save terminal settings.
1359 (target_ops): New member to_terminal_save_ours.
1360 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1361 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1362 * inftarg.c (init_child_ops): Likewise.
1363 * m3-nat.c (init_m3_ops): Likewise.
1364 * procfs.c (init_procfs_ops): Likewise.
1365 * wince.c (init_child_ops): Likewise.
1366 * win32-nat.c (init_child_ops): Likewise.
1367 * sol-thread.c (init_sol_thread_ops): Likewise.
1368
c00dcbe9
MK
13692002-08-26 Mark Kettenis <kettenis@gnu.org>
1370
3d7f4f49
MK
1371 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1372 use regcache_* functions.
1373 (i386_gdbarch_init): Set store_return_value instead of
1374 deprecated_store_return_value.
1375
c00dcbe9
MK
1376 * regcache.c (regcache_raw_write_signed,
1377 regcache_raw_write_unsigned): New functions.
1378 * regcache.h (regcache_raw_write_signed,
1379 regcache_raw_write_unsigned): New prototypes.
1380
0e0d15ca
AC
13812002-08-25 Andrew Cagney <ac131313@redhat.com>
1382
1383 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1384 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1385 source file dependencies. Cleanup corresponding generator rules.
1386
d3b22ed5
AC
13872002-08-25 Andrew Cagney <ac131313@redhat.com>
1388
1389 * regcache.h (register_offset_hack): Declare.
1390 (regcache_cooked_read_using_offset_hack): Declare.
1391 (regcache_cooked_write_using_offset_hack): Declare.
1392
1393 * regcache.c (register_offset_hack): New function.
1394 (regcache_cooked_read_using_offset_hack): New function.
1395 (regcache_cooked_write_using_offset_hack): New function.
1396 (regcache_dump): Check that the registers, according to their
1397 offset, are packed hard against each other.
1398 (cooked_xfer_using_offset_hack): New function.
1399
bb425013
AC
14002002-08-25 Andrew Cagney <ac131313@redhat.com>
1401
1402 * regcache.c (struct regcache_descr): Add field register_type.
1403 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1404 in as a parameter
1405 (init_regcache_descr): Initialize register_type. Pass the descr
1406 to init_legacy_regcache_descr. Use register_type instead of
1407 REGISTER_VIRTUAL_TYPE.
1408 (register_type): New function.
1409 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1410 * regcache.h (register_type): Declare.
1411
d0403e00
AC
14122002-08-25 Andrew Cagney <ac131313@redhat.com>
1413
1414 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1415 instead of deprecated_store_return_value. Fix fallout from
1416 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1417
0ed04cce
AC
14182002-08-25 Andrew Cagney <ac131313@redhat.com>
1419
1420 * regcache.c (max_register_size): New function.
1421 (init_legacy_regcache_descr): Ensure that max_register_size is
1422 large enough for REGISTER_VIRTUAL_SIZE.
1423 * regcache.h (max_register_size): Declare.
1424
46d79c04
AC
14252002-08-24 Andrew Cagney <ac131313@redhat.com>
1426
1427 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1428 store_return_value.
1429 (e500_extract_return_value): Change type of valbuf pointer to
1430 void.
1431
853c7bd0
MK
14322002-08-24 Mark Kettenis <kettenis@gnu.org>
1433
cd87e769
MK
1434 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1435 workaround.
1436
853c7bd0
MK
1437 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1438 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1439 long long) to prevent compiler warning on 64-bit systems.
1440
ebba8386
AC
14412002-08-23 Andrew Cagney <cagney@redhat.com>
1442
1443 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1444 (DEPRECATED_STORE_RETURN_VALUE): New method.
1445 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1446 * gdbarch.h, gdbarch.c: Re-generate.
1447
1448 * values.c (set_return_value): Pass current_regcache to
1449 STORE_RETURN_VALUE.
1450 * arch-utils.h (legacy_store_return_value): Declare.
1451 * arch-utils.c (legacy_store_return_value): New function.
1452 (legacy_extract_return_value): Update parameters.
1453
1454 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1455 STORE_RETURN_VALUE.
1456 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1457 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1458 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1459 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1460 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1461 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1462 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1463 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1464 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1465 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1466
1467 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1468 * i386-tdep.c (i386_extract_return_value): Update.
1469 * arch-utils.c (legacy_extract_return_value): Update.
1470 * frv-tdep.c (frv_gdbarch_init): Update.
1471 * cris-tdep.c (cris_gdbarch_init): Update.
1472 * d10v-tdep.c (d10v_gdbarch_init): Update.
1473 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1474 * m68k-tdep.c (m68k_gdbarch_init): Update.
1475 * mcore-tdep.c (mcore_gdbarch_init): Update.
1476 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1477 * s390-tdep.c (s390_gdbarch_init): Update.
1478 * sparc-tdep.c (sparc_gdbarch_init): Update.
1479 * sh-tdep.c (sh_gdbarch_init): Update.
1480 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1481 * v850-tdep.c (v850_gdbarch_init): Update.
1482 * avr-tdep.c (avr_gdbarch_init): Update.
1483 * ia64-tdep.c (ia64_gdbarch_init): Update.
1484 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1485 * vax-tdep.c (vax_gdbarch_init): Update.
1486 * alpha-tdep.c (alpha_gdbarch_init): Update.
1487 * arm-tdep.c (arm_gdbarch_init): Update.
1488 * mips-tdep.c (mips_gdbarch_init): Update.
1489 * i386-tdep.c (i386_gdbarch_init): Update.
1490
5bd8c6d0
AC
14912002-08-23 Andrew Cagney <ac131313@redhat.com>
1492
1493 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1494 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1495
e73e1724
MK
14962002-08-24 Mark Kettenis <kettenis@gnu.org>
1497
1498 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1499 problems.
1500
3e6564e1
JB
15012002-08-23 Joel Brobecker <brobecker@gnat.com>
1502
1503 * infrun.c (handle_inferior_event): Move a comment outside of a
1504 function call, in order to avoid indent reformatting this part
1505 of the code in an unreadable way.
1506
81d0cc19
GS
15072002-08-23 Grace Sainsbury <graces@redhat.com>
1508
1509 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1510 when breakpoints fail. Move general breakpoint error messages to
1511 insert_breakpoints.
1512 * breakpoint.c (insert_breakpoints): Change warnings when
1513 breakpoints are nto inserted to specify the type. Remove call to
1514 memory_error when hardware breakpoints can't be inserted. Remove
1515 multiple calls to warning so all messages are sent to the user at
1516 once.
1517 (delete_breakpoints): Make insert error messsages more explicit.
1518
17574093
DJ
15192002-08-23 Daniel Jacobowitz <drow@mvista.com>
1520
1521 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1522 gdbserver/ChangeLog.
1523
8acc2935
MK
15242002-08-23 Mark Kettenis <kettenis@gnu.org>
1525
dfe01d39
MK
1526 * i386-tdep.c: Include "objfiles.h".
1527 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1528 skip_trampoline_code.
1529 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1530 (CPLUS_MARKER): Define to '.'.
1531
8acc2935
MK
1532 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1533 member.
1534 (linux_corefile_thread_callback): Increase args->num_notes.
1535 (linux_make_note_section): Initialize thread_args.num_notes, and
1536 use it to determine whether notes for any threads were created.
1537
151fefe2 15382002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1539
1540 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1541 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1542 and PCUNKILL.
1543 (write_with_trace): Conditionalize out the switch branch handling
1544 PCSHOLD if the corresponding macro is not defined. Likewise for
1545 PRSABORT and PRSTOP.
1546 This change will be needed by the Interix port.
1547
e1507482
EZ
15482002-08-22 Elena Zannoni <ezannoni@redhat.com>
1549
1550 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1551 write_register wherever possible instead of manipulating the
1552 register bytes directly.
1553 Assign VALUE_CONTENTS to a variable and use that.
1554 The GPR numbers are now dependent on the architecture.
1555
96ff0de4
EZ
15562002-08-22 Elena Zannoni <ezannoni@redhat.com>
1557
1558 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1559 ev_offset fields.
1560 (skip_prologue): Add support for BookE/e500 instructions.
1561 (e500_extract_return_value): New function.
1562 (frame_get_saved_regs): Add support for saving ev registers and
1563 pseudo gpr's.
1564 (e500_store_return_value): New function.
1565 (rs6000_gdbarch_init): Move up default intializations of
1566 deprecated_extract_return_value and store_return_value. Overwrite
1567 init of store_return_value with e500 specific version.
1568 Set extract_return_value for e500.
1569
fbefca5b
EZ
15702002-08-22 Elena Zannoni <ezannoni@redhat.com>
1571
1572 * blockframe.c (generic_call_dummy_register_unwind): Use
1573 regcache_cooked_read to catch cases in which the variable is
1574 stored in a pseudo register.
1575
4d210288
AC
15762002-08-22 Andrew Cagney <cagney@redhat.com>
1577
1578 * NEWS: Mention that the i960 has been made obsolete.
1579 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1580 i960-tdep.c
1581 (remote-nrom.o): Obsolete target.
1582 (remote-nindy.o, i960-tdep.o): Ditto.
1583 * remote-nrom.c: Make file obsolete.
1584 * remote-nindy.c, remote-vx960.c: Ditto.
1585 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1586 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1587 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1588 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1589 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1590 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1591 i960-*-vxworks* obsolete.
1592 * MAINTAINERS: Note that the i960 is obsolete.
1593
6c0c456d
CV
15942002-08-21 Corinna Vinschen <vinschen@redhat.com
1595
1596 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1597 detach to allow reinitialization.
1598
9f9d12b3
AC
15992002-08-22 Andrew Cagney <ac131313@redhat.com>
1600
1601 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1602 attempt).
1603
ebeb39fe
JB
16042002-08-22 Jim Blandy <jimb@redhat.com>
1605
1606 * coffread.c (coff_symfile_read): Don't try to read the line
1607 number table from disk if the image file doesn't have a symbol
1608 table; we'll never actually look at the info anyway, and Windows
1609 ships DLL's with bogus file offsets for the line number data.
1610
5bf1c677
EZ
16112002-08-21 Elena Zannoni <ezannoni@redhat.com>
1612
1613 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1614 an e500 executable.
1615
71b8ef93
MS
16162002-08-21 Michael Snyder <msnyder@redhat.com>
1617
1618 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1619 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1620 (DEFAULT_MIPS_TYPE): Delete unused macro.
1621 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1622 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1623
d174216d
JB
16242002-08-21 Jim Blandy <jimb@redhat.com>
1625
1626 * valops.c (value_cast): Simplify and correct logic for doing a
1627 static cast from a pointer to a base class to a pointer to a
1628 derived class.
1629
0ab7a791
AC
16302002-08-21 Andrew Cagney <ac131313@redhat.com>
1631
1632 * infcmd.c (default_print_registers_info): Replace
1633 do_registers_info.
1634 (registers_info): Use gdbarch_print_registers_info instead of
1635 DO_REGISTERS_INFO.
1636 * inferior.h (default_print_registers_info): Replace
1637 do_registers_info.
1638 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1639 (DO_REGISTERS_INFO): Change to a predicate function.
1640 * gdbarch.h, gdbarch.c: Regenerate.
1641
e23792cc
KS
16422002-08-21 Keith Seitz <keiths@redhat.com>
1643
1644 * gdb-events.sh: Add target-changed event.
1645 * gdb-events.c: Regenerated.
1646 * gdb-events.c: Regenerated.
1647 * valops.c (value_assign): Add target-changed event notification
1648 to inlval_register, lval_memory, and lval_reg_frame_relative.
1649
9fb14e79
JB
16502002-08-21 Joel Brobecker <brobecker@gnat.com>
1651
1652 * NEWS: Add an entry regarding the improvement of the next/step
1653 operation on Alpha Tru64 multi-processor machines.
1654
6d39a69f
AC
16552002-08-21 Andrew Cagney <ac131313@redhat.com>
1656
72acd513
AC
1657 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1658 directores.
342af04b 1659 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1660 * Makefile.in (install-gdbtk): Move to install section.
1661 (rdi-share/libangsd.a): Move to end of file.
1662
fa5f27c7
AC
16632002-08-19 Andrew Cagney <ac131313@redhat.com>
1664
1665 * frame.c (frame_register_unwind): When a register, set addrp to
1666 the register's byte.
1667
5a89d8aa
MS
16682002-08-20 Michael Snyder <msnyder@redhat.com>
1669
1670 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1671 used locally, so move them from the target machine header to here.
1672 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1673 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1674 Make static.
1675 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1676
822e978b
AC
16772002-08-20 Andrew Cagney <cagney@redhat.com>
1678
1679 * NEWS: Mention that the Apollo line was made obsolete.
1680 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1681 m68*-hp-hpux* obsolete.
1682 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1683 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1684 * buildsym.c (make_blockvector): Make static.
1685 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1686 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1687 (ALLDEPFILES): Remove dstread.c.
1688 (dstread.o): Obsolete make rule.
1689 * dstread.c: Makefile obsolete.
1690 * dst.h: Ditto.
1691 * config/m68k/hp300hpux.mt: Ditto.
1692 * config/m68k/hp300hpux.mh: Ditto.
1693 * config/m68k/hp300bsd.mt: Ditto.
1694 * config/m68k/hp300bsd.mh: Ditto.
1695 * config/m68k/apollo68b.mt: Ditto.
1696 * config/m68k/apollo68v.mh: Ditto.
1697 * config/m68k/apollo68b.mh: Ditto.
1698
e41b17f0
MS
16992002-08-20 Michael Snyder <msnyder@redhat.com>
1700
1701 * mips-tdep.c (mips_in_return_stub): Make static.
1702 (mips_gdbarch_init): Set in_solib_return_trampoline.
1703 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1704
d50355b6
MS
17052002-08-20 Michael Snyder <msnyder@redhat.com>
1706
1707 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1708 * gdbarch.c, gdbarch.h: Regenerate.
1709 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1710 Add.
1711 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1712
757a7cc6
MS
17132002-08-20 Michael Snyder <msnyder@redhat.com>
1714
1715 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1716 (mips_gdbarch_init): Set skip_trampoline_code,
1717 in_solib_call_trampoline.
1718 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1719 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1720
c8001721
EZ
17212002-08-20 Elena Zannoni <ezannoni@redhat.com>
1722
1723 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1724
1725 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1726 vector type for ev registers.
1727 (e500_pseudo_register_read): New function.
1728 (e500_pseudo_register_write): New function.
1729 (e500_dwarf2_reg_to_regnum): New function.
1730 (PPC_UISA_NOFP_SPRS): New macro.
1731 (PPC_EV_REGS): New macro.
1732 (PPC_GPRS_PSEUDO_REGS): New macro.
1733 (registers_e500): New register set for e500.
1734 (variants): Add e500 variant.
1735 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1736 before setting architectural dependent variations. Initialize ev
1737 registers numbers. Add case for e500 architecture. Set the
1738 number of pseudo registers.
1739
64366f1c
EZ
17402002-08-20 Elena Zannoni <ezannoni@redhat.com>
1741
1742 * rs6000-tdep.c: Clean up comments.
1743
7e78f0ca
AC
17442002-08-20 Andrew Cagney <cagney@redhat.com>
1745
1746 * h8300-tdep.c: Re-indent file.
1747
697f7479
JB
17482002-08-20 Jim Blandy <jimb@redhat.com>
1749
1750 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1751 default for this.
697f7479 1752
e86ae29f
KS
17532002-08-20 Keith Seitz <keiths@redhat.com>
1754
1755 * breakpoints.c (watch_command_1): Use internal breakpoint
1756 when setting a watchpoint_scope breakpoint.
1757
216b504f
EZ
17582002-08-20 Elena Zannoni <ezannoni@redhat.com>
1759
1760 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1761 (build_builtin_type_vec64i): Ditto.
1762 (build_builtin_type_vec128): Ditto.
1763 (build_builtin_type_vec128i): Ditto.
1764
f7ab6ec6
MS
17652002-08-19 Michael Snyder <msnyder@redhat.com>
1766
1767 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1768 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1769 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1770 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1771 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1772 CALL_DUMMY_ADDRESS): Delete.
1773 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1774 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1775 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1776 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1777 push_return_address.
1778 (mips_register_raw_size, mips_eabi_use_struct_convention,
1779 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1780 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1781 mips_init_extra_frame_info, mips_eabi_push_arguments,
1782 mips_n32n64_push_arguments, mips_push_return_address,
1783 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1784 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1785
b5d1566e
MS
17862002-08-19 Michael Snyder <msnyder@redhat.com>
1787
1788 * mips-tdep.c (mips_frame_num_args): New function.
1789 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1790 frame_saved_pc, frame_args_address, frame_locals_address,
1791 frame_num_args, and frame_args_skip.
1792 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1793 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1794 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1795 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1796
2f1488ce
MS
17972002-08-20 Michael Snyder <msnyder@redhat.com>
1798
1799 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1800 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1801 * mips-tdep.c (mips_store_struct_return): New function.
1802 (mips_extract_struct_value_address): New function.
1803 (mips_gdbarch_init): Set store_struct_return and
1804 extract_struct_value_address.
1805
41ff2da1
DC
18062002-08-20 David Carlton <carlton@math.stanford.edu>
1807
1808 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1809 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1810 (read_file_scope): Check that line_header is nonzero before
1811 decoding macro information.
1812
e5451d58
MK
18132002-08-20 Mark Kettenis <kettenis@gnu.org>
1814
1815 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1816 flag the general-purpose registers as floating-point on targets
1817 that don't support the floating-point registers.
1818
4a6daafa
EZ
18192002-08-20 Elena Zannoni <ezannoni@redhat.com>
1820
1821 * rs6000-tdep.c (altivec_register_p): Delete.
1822 (rs6000_do_altivec_registers): Delete.
1823 (rs6000_altivec_registers_info): Delete.
1824 (rs6000_do_registers_info): Delete.
1825 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1826 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1827
ab4327e0
EZ
18282002-08-20 Elena Zannoni <ezannoni@redhat.com>
1829
1830 * infcmd.c (do_registers_info): Print vector registers in hex
1831 format only.
1832 (print_vector_info): Check that printing registers
1833 makes sense.
1834 (print_float_info): Ditto.
1835
cb1d2653
AC
18362002-08-20 Andrew Cagney <ac131313@redhat.com>
1837
1838 * mips-tdep.c (mips_gdbarch_init): Update.
1839 (mips_o32_extract_return_value): Rewrite.
1840 (mips_o32_store_return_value): Rewrite.
1841 (mips_o32_xfer_return_value): New function.
1842 (mips_xfer_register): Tweak debug print message. Allow for
1843 buf_offset when dumping the value transfered.
1844
dfc3d9b2
AC
18452002-08-20 Andrew Cagney <ac131313@redhat.com>
1846
1847 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1848 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1849 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1850 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1851 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1852
7807aa61
MS
18532002-08-14 Michael Snyder <msnyder@redhat.com>
1854
1855 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1856
489461e2
EZ
18572002-08-19 Elena Zannoni <ezannoni@redhat.com>
1858
1859 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1860 register.
1861 (P): New macro to define a register as a pseudo register.
1862 (R, R4, R8, R16, FR32, R64, R0): Updated.
1863 (struct variant): Add new fields for number of pseudo registers
1864 and number of total registers.
1865 (tot_num_registers): New macro replacing....
1866 (num_registers): ...deleted macro.
1867 (num_registers): New function.
1868 (num_pseudo_registers): New function.
1869 (variants): Update all variants to intialize new fields correctly.
1870 Postpone initialization of number of pseudo regs and real regs.
1871 (init_variants): New function.
1872 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1873 registers offsets.
1874
fcaffe4c
DC
18752002-08-19 David Carlton <carlton@math.stanford.edu>
1876
2c2738a0
DC
1877 * valops.c (search_struct_field): Change error message to treat
1878 return value of 0 from value_static_field as meaning that field is
1879 optimized out.
1880 (value_struct_elt_for_reference): Ditto.
1881 * values.c (value_static_field): Treat an unresolved location the
1882 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1883 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1884 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1885 * MAINTAINERS: Add self to Write After Approval list.
1886
88658117
AC
18872002-08-19 Andrew Cagney <ac131313@redhat.com>
1888
1889 * mips-tdep.c (mips_xfer_register): New function.
1890 (mips_n32n64_extract_return_value): Rewrite.
1891 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1892 instead of deprecated_extract_return_value.
1893
21283beb
EZ
18942002-08-19 Elena Zannoni <ezannoni@redhat.com>
1895
1896 * rs6000-tdep.c (TDEP): Delete macro.
1897 (branch_dest): Replace use of TDEP macro with its body.
1898 (rs6000_pop_frame): Ditto.
1899 (rs6000_push_arguments): Ditto.
1900 (rs6000_skip_trampoline_code): Ditto.
1901 (rs6000_frame_saved_pc): Ditto.
1902 (rs6000_frame_chain): Ditto.
1903 (rs6000_register_name): Ditto.
1904 (rs6000_register_byte): Ditto.
1905 (rs6000_register_raw_size): Ditto.
1906 (rs6000_register_virtual_type): Ditto.
1907 (rs6000_register_convertible): Ditto.
1908 (rs6000_convert_from_func_ptr_addr): Ditto.
1909
bf072999
DJ
19102002-08-19 Daniel Jacobowitz <drow@mvista.com>
1911
1912 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1913 conditionally.
1914 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1915 MIPS_LINUX_JB_ELEMENT_SIZE.
1916 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1917 for MAX_REGISTER_RAW_SIZE arrays.
1918 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1919 MIPS_LINUX_JB_ELEMENT_SIZE.
1920
9b949a49
PM
19212002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1922
1923 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1924
6d3e79c6
AS
19252002-08-19 Aidan Skinner <aidan@velvet.net>
1926
1927 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1928 ada-valprint.c ada-tasks.c.
1929 (YYFILES): Add ada-exp.y.
1930 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1931 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1932 (ada-exp.tab.o): New target.
1933
06c0b04e
AC
19342002-08-18 Andrew Cagney <ac131313@redhat.com>
1935
1936 * regcache.c (regcache_xfer_part): New function.
1937 (regcache_raw_read_part): New function.
1938 (regcache_raw_write_part): New function.
1939 (regcache_cooked_read_part): New function.
1940 (regcache_cooked_write_part): New function.
1941 * regcache.h (regcache_raw_read_part): Declare.
1942 (regcache_raw_write_part): Declare.
1943 (regcache_cooked_read_part): Declare.
1944 (regcache_cooked_write_part): Declare.
1945
92d1e331
DJ
19462002-08-18 Daniel Jacobowitz <drow@mvista.com>
1947
1948 * remote.c (remote_open_1): Add async_p.
1949 (remote_async_open_1): Delete.
1950 (open_remote_target): Delete.
1951 (remote_open, extended_remote_open): Update calls to remote_open_1.
1952 (remote_async_open, extended_remote_async_open): Call
1953 remote_open_1 instead of remote_async_open_1.
1954
247055de
MK
19552002-08-19 Mark Kettenis <kettenis@gnu.org>
1956
1957 * blockframe.c: Fix a few coding standard violations.
1958
641eda39
MK
19592002-08-19 Mark Kettenis <kettenis@gnu.org>
1960
0b717710
MK
1961 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1962 here from ...
1963 * config/i386/tm-i386sco5.h: ... here. File removed.
1964 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1965
26d28e12 1966 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1967 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1968 (TM_FILE): Set to tm-i386.h.
1969 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1970 * config/i386/tm-i386v.h: Remove file.
1971 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1972 instead of "i386/tm-i386v.h".
1973 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1974 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1975 "i386/tm-i386v.h".
1976 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1977 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1978 "i386/tm-i386.h".
1979
d4e0bab4
MK
19802002-08-18 Mark Kettenis <kettenis@gnu.org>
1981
1982 * config/i386/nm-i386v.h: Add protection against
1983 multiple-inclusion.
1984 (i386_register_u_addr): Remove prototype.
1985 (register_u_addr): New prototype.
1986 (REGISTER_U_ADDR): Redefine accordingly.
1987 * i386v-nat.c: Improve several comments.
1988 (i386_register_u_addr): Change signature and rename to
1989 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1990 ubase variable.
1991
46cac009
AC
19922002-08-18 Andrew Cagney <ac131313@redhat.com>
1993
1994 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1995 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1996 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1997 deprecated_extract_return_value.
1998 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1999 rename mips_o32o64_push_arguments.
2000 (mips_gdbarch_init): Update.
2001 (mips_extract_return_value): Delete.
2002 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2003 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2004 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2005 (mips_n32n64_extract_return_value): Clone
2006 mips_extract_return_value.
2007 (mips_store_return_value): Delete.
2008 (mips_o32_store_return_value): Clone mips_store_return_value.
2009 (mips_o64_store_return_value): Clone mips_store_return_value.
2010 (mips_eabi_store_return_value): Clone mips_store_return_value.
2011 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2012
d2e4a39e
AS
20132002-08-18 Aidan Skinner <aidan@velvet.net>
2014
0c30c098
AS
2015 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2016 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2017
20182002-08-18 Aidan Skinner <aidan@velvet.net>
2019
2020 * ada-lang.c: Run through gdb_indent.sh.
2021 * ada-lang.h: Run through gdb_indent.sh.
2022 * ada-tasks.c: Run through gdb_indent.sh.
2023 * ada-typeprint.c: Run through gdb_indent.sh.
2024 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2025
01fc4e33
AC
20262002-08-18 Andrew Cagney <ac131313@redhat.com>
2027
2028 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2029 ABI.
2030
d8ee244c
MK
20312002-08-18 Mark Kettenis <kettenis@gnu.org>
2032
c38d8261
MK
2033 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2034
222db64c
MK
2035 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2036 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2037
c2848c82
MK
2038 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2039 write_register_gen instead of write_register_bytes.
2040
d8ee244c
MK
2041 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2042 i[3456]-*-osf1mk* configurations have been made obsolete.
2043 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2044 i[3456]86-*-osf1mk* hosts obsolete.
2045 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2046 targets obsolete.
2047 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2048 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2049 config/i386/i386m3.mt, config/i386/nm-m3.h,
2050 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2051 config/i386/i386mk.mh, config/i386/i386mk.mt,
2052 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2053 obsolete.
2054 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2055 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2056 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2057
61d8d407
AC
20582002-08-18 Andrew Cagney <ac131313@redhat.com>
2059
2060 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2061 (hppa_value_returned_from_stack): Declare.
2062 (hppa_extract_return_value): Declare.
2063 * config/pa/hppa.mt: New file.
2064 * configure.tgt: Recognize hppa*-*-*.
2065 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2066
0c52bd59
MK
20672002-08-18 Mark Kettenis <kettenis@gnu.org>
2068
2069 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2070 comment.
2071
b5686e99
MK
20722002-08-17 Mark Kettenis <kettenis@gnu.org>
2073
2074 * top.c (gdb_rl_operate_and_get_next): Make sure
2075 operate-and-get-next functions correctly even when the history
2076 list is completely filled.
2077
c1bab85b
AC
20782002-08-18 Andrew Cagney <ac131313@redhat.com>
2079
2080 * MAINTAINERS (Target Instruction Set Architectures): Rename
2081 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2082 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2083 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2084 already listed under Host/Native.
2085
2086 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2087 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2088 mips*-*-*.
2089
32089c7c
AC
20902002-08-17 Andrew Cagney <ac131313@redhat.com>
2091
2092 * config/ia64/ia64.mt: New file.
2093 * config/alpha/alpha.mt: New file.
2094 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2095 ia64-linux-gnu. Mention that ia64-elf is broken.
2096 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2097
b4671f85
MK
20982002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2099
2100 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2101 generic_func_frame_valid instead of func_frame_valid.
2102
c8edd8b4
JB
21032002-08-16 Joel Brobecker <brobecker@gnat.com>
2104
2105 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2106 procfs appears to be broken when debugging on multi-processor
2107 machines. So enable software single stepping in order to avoid
2108 using the procfs interface to do next/step operations, using
2109 internal breakpoints instead.
2110
2111 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2112 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2113 make this pc address equal to the value it would have if the
2114 system stepping capability was used. Also set a new flag used
2115 to ensure that we don't readjust the PC one more time later.
2116
2117 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2118 address by DECR_PC_AFTER_BREAK when software single step is
2119 in use for this architecture, as this has already been taken
2120 care of in handle_inferior_event().
2121
238617f6
JB
21222002-08-16 Joel Brobecker <brobecker@gnat.com>
2123
2124 * infrun.c (handle_inferior_event): Minor reformatting, to make
2125 a rather long condition expression easier to read.
2126
541a7aac
AC
21272002-08-16 Andrew Cagney <ac131313@redhat.com>
2128
2129 * Makefile.in (gdbtk.o): Move to end of file.
2130 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2131 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2132 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2133 (gdbtk-wrapper.o, gdbres.o): Ditto.
2134
f92d4a7b
AC
21352002-08-16 Andrew Cagney <ac131313@redhat.com>
2136
2137 * Makefile.in (copying.o): Separate out compile rule.
2138 (hpux-thread.o, procfs.o, signals.o): Ditto.
2139 (v850ice.o, z8k-tdep.o): Ditto.
2140 (tui-file.o): Move to TUI section.
2141 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2142 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2143
1cce71eb
JB
21442002-08-16 Joel Brobecker <brobecker@gnat.com>
2145
2146 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2147 skip_trampoline_code, for better namespace-proofing.
2148
2149 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2150
0851f23d
JB
21512002-08-16 Joel Brobecker <brobecker@gnat.com>
2152
2153 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2154
f8d40ec8
JB
21552002-08-16 Joel Brobecker <brobecker@gnat.com>
2156
2157 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2158 signal, check whether we hit a breakpoint before checking for a
2159 single step breakpoint. Otherwise, GDB fails to notice that a
2160 breakpoint has been hit when stepping onto a breakpoint.
2161
63d022e0
KS
21622002-08-16 Keith Seitz <keiths@redhat.com>
2163
2164 * gdb-events.sh (clear_gdb_event_hooks): New function.
2165 * gdb-events.c: Regenerate.
2166 * gdb-events.h: Regenerate.
2167
6e31adb3
AC
21682002-08-16 Andrew Cagney <ac131313@redhat.com>
2169
2170 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2171 not_a_sw_breakpoint.
2172 * breakpoint.h (bpstat_stop_status): Add parameter names.
2173
c8189ed1
GS
21742002-08-16 Grace Sainsbury <graces@redhat.com>
2175
2176 * remote.c (remote_insert_hw_breakpoint)
2177 (remote_remove_hw_breakpoint): Fix calculation of length field
2178 for Z-packet.
2179
d05285fa
MS
21802002-08-15 Michael Snyder <msnyder@redhat.com>
2181
466d7106
MS
2182 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2183 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2184 (supply_fpregset): Ditto.
2185
d05285fa
MS
2186 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2187 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2188 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2189 (TARGET_READ_SP): Delete.
bf1f5b4c 2190 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2191 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2192 Delete.
2193 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2194 from macros to functions.
bf1f5b4c 2195
d05285fa
MS
2196 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2197 (mips_register_convertible, mips_register_convert_to_virtual,
2198 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2199 (mips_read_sp): New function.
2200 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2201 (mips_do_registers_info): Make static.
2202 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2203 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2204 (mips_register_convert_from_type, mips_register_convert_to_type):
2205 New functions.
2206 (mips_gdbarch_init): Set up function_start_offset,
2207 register_virtual_size, pc_in_sigtramp.
d05285fa 2208
e76f1f2e
AC
22092002-08-15 Andrew Cagney <ac131313@redhat.com>
2210
2211 * infcmd.c (vector_info): New function.
2212 (_initialize_infcmd): Add command "info vector".
2213 (print_vector_info): New function.
2214
2215 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2216 * gdbarch.h, gdbarch.c: Regenerate.
2217
4782dc19
AC
22182002-08-15 Andrew Cagney <ac131313@redhat.com>
2219
2220 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2221 ``print_all''. Only print vector registers when ``print_all''.
2222
23e3a7ac
AC
22232002-08-15 Andrew Cagney <ac131313@redhat.com>
2224
8e186fd6
AC
2225 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2226 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2227
23e3a7ac
AC
2228 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2229 Add `args' parameter.
2230 * gdbarch.h, gdbarch.c: Regenerate.
2231
2232 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2233
2234 * infcmd.c (float_info): Call print_float_info.
2235 (print_float_info): New function. By default, print the
2236 floating-point registers.
2237
2238 * arch-utils.h (default_print_float_info): Delete declaration.
2239 * arch-utils.c (default_print_float_info): Delete function.
2240
e0ca2bb9
MK
22412002-08-16 Mark Kettenis <kettenis@gnu.org>
2242
3f733acc
MK
2243 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2244 out define.
2245
7d8d2918
MK
2246 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2247 FRAME.
2248
1c7cc583
MK
2249 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2250 * configure.host: Make i[3456]86-*-aix host obsolete.
2251 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2252 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2253 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2254 config/i386/xm-i386aix.h: Make files obsolete.
2255 * i386aix-nat.c: Make file obsolete.
2256 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2257 (i386aix-nat.o): Make target obsolete.
2258
e0ca2bb9
MK
2259 * config/i386/nm-gnu.h: Removed.
2260 * config/i386/nm-i386gnu.h: New file.
2261 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2262 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2263 Moved here from ...
2264 * config/i386/tm-i386gnu.h: ... here. Removed.
2265 * config/i386/xm-i386gnu.h: Removed.
2266 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2267 (NAT_FILE): Set to nm-i386gnu.h.
2268 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2269 * i386-tdep.c: New file.
2270 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2271 (i386gnu-tdep.o): Specify dependencies.
2272
16057ec7 22732002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2274
6b99ee2e
MK
2275 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2276 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2277 Adjust a few comments to reflect reality a bit closer.
2278 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2279 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2280 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2281 target_insert_watchpoint, target_remove_watchpoint):
2282 Move defines to ...
2283 * config/i386/nm-i386sco5.h: ... here.
2284 (kernel_u_size): Add prototype. Improve a few comments and add
2285 protection against multiple inclusion.
2286
d9a6f65c
MK
2287 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2288 out define.
2289
047eff6a
MK
2290 * uw-thread.c (SP_ARG0): Define if not already defined.
2291 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2292
dcdb1290
MK
2293 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2294
5d2d0b2a
MK
2295 * config/i386/tm-i386.h: Don't include "regcache.h".
2296
61113f8b
MK
2297 * i387-tdep.h (i387_print_float_info): New prototype.
2298 * i387-tdep.c (print_i387_value, print_i387_ext,
2299 print_i387_status_word, print_i387_control_word): Add `struct
2300 ui_file *' argument and use it for output.
2301 (i387_print_float_info): Renamed from i387_float_info. Add
2302 `struct gdbarch *' and `struct ui_file *' arguments and use the
2303 latter for output.
2304 * i386-tdep.c: Include "i387-tdep.h".
2305 (i386_gdbarch_init): Set print_float_info.
2306 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2307 (FLOAT_INFO): Remove define.
2308
46e0f506
MS
23092002-08-13 Michael Snyder <msnyder@redhat.com>
2310
2311 * mips-tdep.c (mips_push_arguments): Rename to
2312 mips_eabi_push_arguments, and tune for EABI.
2313 (MIPS_REGS_HAVE_HOME_P): Delete.
2314 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2315 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2316 Delete references to mips_regs_have_home_p.
2317
409268de
KS
23182002-08-14 Keith Seitz <keiths@redhat.com>
2319
2320 * Makefile.in (install-gdbtk): Create insight plugin directory.
2321 Install plugins.tcl file.
2322
ffc6a242
KS
23232002-08-14 Keith Seitz <keiths@redhat.com>
2324
2325 * configure.in: Move SUBDIRS to near top of the file so that
2326 --enable options may add things to it.
2327 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2328 * configure: Regenerate.
2329
ebafbe83
MS
23302002-08-13 Michael Snyder <msnyder@redhat.com>
2331
2332 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2333 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2334 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2335
32f6f25d
AC
23362002-08-13 Andrew Cagney <ac131313@redhat.com>
2337
2338 * vax-tdep.c (vax_get_saved_register): Delete function.
2339 (vax_gdbarch_init): Update.
2340 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2341 (ns32k_gdbarch_init): Update.
2342 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2343 (alpha_gdbarch_init): Update.
2344
53826de9
AC
23452002-08-13 Andrew Cagney <cagney@redhat.com>
2346
2347 * regcache.c (init_regcache_descr): Overallocate the
2348 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2349 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2350 nr_raw_registers.
2351 (set_register_cached): Add range checking assertions. Use
2352 current_regcache.
2353
16057ec7 23542002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2355
2356 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2357 numbers for MMX registers.
2358
7b4c2dce
AC
23592002-08-13 Andrew Cagney <cagney@redhat.com>
2360
2361 * i386-tdep.c (i386_gdbarch_init): Use
2362 generic_unwind_get_saved_register.
2363
1e03ad20
KB
23642002-08-13 Kevin Buettner <kevinb@redhat.com>
2365
2366 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2367 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2368 target vector.
2369 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2370 Delete. Add comment regarding this now-deleted target method.
2371
548bcbec
SC
23722002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2373
2374 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2375 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2376 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2377 real PC and the page number (if it's within the memory bank window).
2378 (m68hc11_pseudo_register_write): Likewise when saving.
2379 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2380 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2381 (m68hc11_register_raw_size): And use 32-bit for it.
2382 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2383 16K memory bank is used by the prog; also use the virtual pc.
2384
7df11f59
SC
23852002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2386
2387 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2388 (m68hc11_gdbarch_init): Install it in gdbarch.
2389 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2390 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2391 (MSYMBOL_SIZE): New for documentation.
2392 (insn_return_kind): Enum to specify how a function returns.
2393 (frame_extra_info): Cleanup and record the return mode.
2394 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2395 register in address computation.
2396 (m68hc11_get_return_insn): New to obtain the return instruction used
2397 by the function.
2398 (m68hc11_frame_init_saved_regs): Take into account the return
2399 instruction used by the function for far and interrupt functions.
2400 (m68hc11_init_extra_frame_info): Take into account page register.
2401 (m68hc11_frame_args_address): Adjust according to the return mode.
2402 (show_regs): Print page register only when it's used.
2403
5706502a
SC
24042002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2405
2406 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2407 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2408 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2409 registers.
2410 (m68hc11_register_raw_size): Likewise.
2411
28fc6740
AC
24122002-08-13 Andrew Cagney <cagney@redhat.com>
2413
2414 * i386-tdep.c (i386_register_name): Handle mmx registers.
2415 (mmx_regnum_p): New function.
2416 (i386_mmx_names): New array.
2417 (mmx_num_regs): New variable.
2418 (i386_pseudo_register_read): New function.
2419 (i386_pseudo_register_write): New function.
2420 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2421
2422 * regcache.c (regcache_raw_read_unsigned): New function.
2423 (regcache_raw_read_signed): New function.
2424 * regcache.h (regcache_raw_read_unsigned): Declare.
2425 (regcache_raw_read_signed): Declare.
2426
a378f419
AC
24272002-08-13 Andrew Cagney <cagney@redhat.com>
2428
2429 * regcache.c (regcache_raw_read_as_address): Delete function.
2430 (regcache_cooked_read_signed): New function.
2431 (regcache_cooked_read_unsigned): New function.
2432 * regcache.h (regcache_cooked_read_signed): Declare.
2433 (regcache_cooked_read_unsigned): Declare.
2434 (regcache_raw_read_as_address): Delete declaration.
2435
2436 * blockframe.c (generic_read_register_dummy): Use
2437 regcache_cooked_read_unsigned.
2438 * i386-tdep.c (i386_extract_struct_value_address): Use
2439 regcache_cooked_read_unsigned.
2440
81967506
SC
24412002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2442
2443 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2444 double sizes according to ELF ABI flags.
2445 (gdbarch_tdep): Record elf_flags.
2446
ffe1f3ee
SC
24472002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2448
2449 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2450 (m6812_prolog): They can appear in 68HC12 function prologue.
2451 (m68hc11_frame_chain): Cleanup.
2452
98216c5d
AC
24532002-08-12 Andrew Cagney <cagney@redhat.com>
2454
2455 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2456 declarations.
2457 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2458 (i386_linux_register_raw_size): Delete function.
2459 (i386_linux_init_abi): Update.
2460 * i386-tdep.c (i386_register_raw_size): Delete function.
2461 (i386_register_byte): Delete function.
2462 (i386_gdbarch_init): Update.
2463 (i386_register_size): Delete array.
2464 (i386_register_offset): Delete array.
2465
2466 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2467 (REGISTER_RAW_SIZE): Delete macro.
2468 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2469 (REGISTER_BYTE): Delete macro.
2470
3b19021e
AS
24712002-08-11 Aidan Skinner <aidan@velvet.net>
2472
2473 * ada-lang.c (ada_lookup_partial_symbol)
2474 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2475 prototype names so that grep ^func works properly.
2476
2477 * ada-lang.c (ada_array_element_type)
2478 (ada_lookup_partial_symbol): Fix typos in parameter list.
2479
2480 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2481 Fix prototype names so that grep ^func works properly.
2482
b063e7a2
AC
24832002-08-10 Andrew Cagney <cagney@redhat.com>
2484 Elena Zannoni <ezannoni@redhat.com>
2485 Martin M. Hunt <hunt@redhat.com>
2486
2487 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2488 (build_builtin_type_vec128i): Set the vector bit.
2489 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2490 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2491 (build_builtin_type_vec64): New function.
2492 (build_builtin_type_vec64i): New function.
2493 (build_gdbtypes): Initialize builtin_type_vec64 and
2494 builtin_type_vec64i.
2495
a7e3c2ad
AC
24962002-08-09 Andrew Cagney <cagney@redhat.com>
2497
2498 * regcache.c (regcache_dump): Compare the register offset
2499 with REGISTER_BYTE.
2500 * arch-utils.c (generic_register_byte): New function.
2501 * arch-utils.h (generic_register_byte): Declare.
2502 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2503 * gdbarch.h, gdbarch.c: Regenerate.
2504
af030b9a
AC
25052002-08-09 Andrew Cagney <cagney@redhat.com>
2506
2507 * regcache.c: Include "gdbcmd.h"
2508 (_initialize_regcache): Add commands "maintenance print
2509 registers", "maintenance print raw-registers" and "maintenance
2510 print cooked-registers".
2511 (enum regcache_dump_what): Define.
2512 (dump_endian_bytes): New function.
2513 (regcache_dump): New function.
2514 (regcache_print): New function.
2515 (maintenance_print_registers): New function.
2516 (maintenance_print_raw_registers): New function.
2517 (maintenance_print_cooked_registers): New function.
2518 * Makefile.in (regcache.o): Update dependencies.
2519
cb3d25d1
MS
25202002-08-09 Michael Snyder <msnyder@redhat.com>
2521
2522 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2523 (mips_push_arguments): Correct some comments. Use paddr_nz
2524 for printing addresses in debug output. Replace static
2525 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2526 (mips_n32n64_push_arguments): New function, cloned from
2527 mips_push_arguments and tuned for the n32/n64 ABI.
2528 (mips_push_register): Buffer needs dynamic allocation.
2529 (mips_print_register): Ditto.
2530 (do_gp_register_row): Ditto.
2531 (mips_store_return_value): Ditto.
2532 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2533
2163ab9d
DH
25342002-08-09 Don Howard <dhoward@redhat.com>
2535
2536 * memattr.c (mem_info_command): Print special case of upper bound
2537 as max CORE_ADDR + 1.
2538
b78bcb18
MS
25392002-08-08 Michael Snyder <msnyder@redhat.com>
2540
2541 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2542 returns structs by ref if they're too big to fit in two registers.
2543
ffabd70d
KB
25442002-08-09 Kevin Buettner <kevinb@redhat.com>
2545
2546 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2547 saved regs value.
2548 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2549 mips_find_saved_regs().
2550 (mips_pop_frame): Likewise.
2551
fbcdb4a3
KB
25522002-08-09 Kevin Buettner <kevinb@redhat.com>
2553
2554 * blockframe.c (frame_saved_regs_register_unwind): Revise
2555 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2556 frames are in use.
2557
3c3bea1c
GS
25582002-08-09 Grace Sainsbury <graces@redhat.com>
2559
2560 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2561 T-packets; the 'a' is not taken as a register number.
2562 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2563 (remote_stopped_data_address): New functions; add to target
2564 vector.
2565 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2566 prototypes to match other implementations of this
2567 function. replace integer argument with pointer -- the length
2568 field in the Z-packet is the length of what is pointed to or 1 if
2569 pointer is null. Add to target vector.
2570 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2571 target vector.
2572
2573 From Mark Salter:
2574 * remote.c (remote_wait): Add support to extract optional
2575 watchpoint information from T-packet. Ignore unrecognized
2576 optional info in T-packet.
2577 (remote_async_wait): Ditto.
2578
5d1d95de
CV
25792002-08-09 Corinna Vinschen <vinschen@redhat.com>
2580
2581 * cli/cli-dump.c: Change fopen modes to use binary open modes
2582 as defined in include/fopen-bin.h throughout.
2583
c86b5b38
MS
25842002-08-08 Michael Snyder <msnyder@redhat.com>
2585
2586 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2587
b30590dc
KB
25882002-08-08 Kevin Buettner <kevinb@redhat.com>
2589
2590 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2591 assertion failure by returning early after a warning.
2592
498868ed
KB
25932002-08-08 Kevin Buettner <kevinb@redhat.com>
2594
2595 * mips-tdep.c (mips_find_saved_regs): Make static.
2596 (mips_frame_init_saved_regs): New function.
2597 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2598 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2599 (mips_find_saved_regs): Delete declaration.
2600
b2dd6311
GS
26012002-08-08 Grace Sainsbury <graces@redhat.com>
2602
3c3bea1c
GS
2603 * remote.c (remote_wait, remote_async_wait): Change
2604 thread_num from int to ULONGEST.
2605 (unpack_varlen_hex): Change result parameter from
2606 int * to ULONGEST *.
b2dd6311 2607
ea47855f
AC
26082002-08-08 Andrew Cagney <ac131313@redhat.com>
2609
2610 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2611 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2612 powerpc*-*-*.
2613 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2614
69db8bae
AC
26152002-08-08 Andrew Cagney <cagney@redhat.com>
2616
2617 * gcore.c (override_derive_stack_segment): Delete variable.
2618 (preempt_derive_stack_segment): Delete function.
2619 (derive_stack_segment): Delete function.
2620 (default_derive_stack_segment): Renamed to derive_stack_segment.
2621 (override_derive_heap_segment): Delete variable.
2622 (preempt_derive_heap_segment): Delete function.
2623 (derive_heap_segment): Delete function.
2624 (default_derive_heap_segment): Rename to derive_heap_segment.
2625
cb811fe7
MS
26262002-08-06 Michael Snyder <msnyder@redhat.com>
2627
2628 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2629 * mips-tdep.c (mips_EABI_use_struct_convention,
2630 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2631 New functions. (mips_use_struct_convention): Delete.
2632 (mips_gdbarch_init): set use_gdbarch_convention.
2633
8b389c40
MS
26342002-08-06 Michael Snyder <msnyder@redhat.com>
2635
2636 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2637 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2638 mips_o32_reg_struct_has_addr): New functions.
2639 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2640
5c27f28a
AC
26412002-08-07 Andrew Cagney <ac131313@redhat.com>
2642
2643 * regcache.c (pseudo_register): Delete function.
2644 (fetch_register): Delete function.
2645 (store_register): Delete function.
2646 (regcache_raw_read, legacy_read_register_gen): Use
2647 target_fetch_registers instead of fetch_register.
2648 (legacy_write_register_gen, regcache_raw_write): Use
2649 target_store_register instead of store_register.
2650 (write_register_bytes): Ditto.
2651
2652 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2653 (STORE_PSEUDO_REGISTER): Delete.
2654 * gdbarch.h, gdbarch.c: Regenerate.
2655
5b331675
CV
26562002-08-06 Corinna Vinschen <vinschen@redhat.com>
2657
2658 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2659 write dump file binary.
2660
6acdf5c7
MS
26612002-08-05 Michael Snyder <msnyder@redhat.com>
2662
2663 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2664 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2665 (mips_gdbarch_init): Set N32 target to be mips64.
2666
b2f01c35
KB
26672002-08-06 Kevin Buettner <kevinb@redhat.com>
2668
2669 * frame.c (find_saved_register): Break out of loop once saved
2670 register address is found. Don't mention sparc in loop comment
2671 anymore.
2672
63db5580
KB
26732002-08-06 Kevin Buettner <kevinb@redhat.com>
2674
2675 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2676 mips_default_saved_regsize to 8.
2677
5e34e75e
AC
26782002-08-06 Andrew Cagney <ac131313@redhat.com>
2679
2680 * gcore.c: Do not include <sys/procfs.h>.
2681 * Makefile.in (gcore.o): Update dependencies.
2682
eb4c54a2
AC
26832002-08-06 Andrew Cagney <cagney@redhat.com>
2684
2685 * configure.tgt: Make arc-*-* obsolete.
2686 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2687 * MAINTAINERS: Make arc-elf obsolete.
2688 * arc-tdep.c: Make file obsolete.
2689 * config/arc/arc.mt: Ditto.
2690 * config/arc/tm-arc.h: Ditto.
2691
ced15480
TR
26922002-08-05 Theodore A. Roth <troth@verinet.com>
2693
c1bab85b 2694 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2695
b4743822
AC
26962002-08-05 Andrew Cagney <ac131313@redhat.com>
2697
2698 * mcore-tdep.c (mcore_gdbarch_init): Use
2699 generic_unwind_get_saved_register instead of
2700 generic_get_saved_register.
2701 * v850-tdep.c (v850_gdbarch_init): Ditto.
2702 * frv-tdep.c (frv_gdbarch_init): Ditto.
2703 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2704 * s390-tdep.c (s390_gdbarch_init): Ditto.
2705 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2706 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2707 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2708
3956d554
JB
27092002-08-05 Joel Brobecker <brobecker@gnat.com>
2710
2711 * objfiles.h: Add missing #include "symfile.h"
2712
2713 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2714
8249c0d6
AC
27152002-08-04 Andrew Cagney <ac131313@redhat.com>
2716
2717 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2718 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2719 of FIELD_BITSIZE.
2720
b9d14705
DJ
27212002-08-04 Daniel Jacobowitz <drow@mvista.com>
2722
2723 * NEWS: Cleanup and nitpick.
2724
dd73b9bb
AC
27252002-08-03 Andrew Cagney <ac131313@redhat.com>
2726
2727 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2728
043a27f8
AC
27292002-08-03 Andrew Cagney <ac131313@redhat.com>
2730
2731 * Makefile.in (gdbtk-bp.o): Update dependencies.
2732 (gdbtk-register.o): Ditto.
2733 (gdbtk-varobj.o): Ditto.
2734
46ce284d
AC
27352002-08-03 Andrew Cagney <cagney@redhat.com>
2736
2737 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2738 m68hc11_fetch_pseudo_register.
2739 (m68hc11_pseudo_register_write): Replace
2740 m68hc11_store_pseudo_register.
2741 (m68hc11_gdbarch_init): Update.
2742
b66d6d2e
AC
2743Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2744
2745 * gdbarch.sh: Include "gdb_string.h".
2746 * gdbarch.c: Regenerate.
2747
2748 * regcache.c: Include "gdb_string.h".
2749 * ax-general.c: Ditto.
2750 * varobj.c: Ditto.
2751 * std-regs.c: Ditto.
2752 * fbsd-proc.c: Ditto.
2753 * thread.c: Ditto.
2754
2755 * Makefile.in (regcache.o): Update dependencies.
2756 (thread.o, gdbarch.o): Ditto.
2757 (ax-general.o, gdbarch.o): Ditto.
2758 (varobj.o, std-regs.o): Ditto.
2759 (fbsd-proc.o): Specify dependencies.
2760
29e1842b
AC
27612002-08-02 Andrew Cagney <cagney@redhat.com>
2762
2763 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2764 regnum.
2765 (regcache_cooked_write): Ditto.
2766
68365089
AC
27672002-08-02 Andrew Cagney <ac131313@redhat.com>
2768
2769 * regcache.c (regcache_cooked_read): New function.
2770 (regcache_cooked_write): New function.
2771 (read_register_gen): Rewrite using regcache_cooked_read.
2772 (write_register_gen): Rewrite using regcache_cooked_write.
2773
2774 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2775 Declare.
2776
d8124050
AC
27772002-08-02 Andrew Cagney <cagney@redhat.com>
2778
2779 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2780 Replace the architecture methods register_read and register_write.
2781 * gdbarch.h, gdbarch.c: Regenerate.
2782 * regcache.c (init_regcache_descr): Update.
2783 (read_register_gen): Update.
2784 (write_register_gen): Update.
2785 (supply_register): Update comment.
2786
2787 * sh-tdep.c (sh_gdbarch_init): Update.
2788 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2789 `regcache' and `gdbarch' parameters. Make `buffer' a void
2790 pointer. Update code.
2791 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2792 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2793 void pointer. Update code.
2794 (sh64_register_write): Delete.
2795 (sh4_register_read): Delete.
2796 (sh64_register_read): Delete.
2797 (sh4_register_write): Delete.
2798 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2799 void pointer, `to' parameter a void pointer.
2800 (sh_sh64_register_convert_to_raw): Ditto.
2801
a6425924
KB
28022002-08-01 Kevin Buettner <kevinb@redhat.com>
2803
2804 * mips-tdep.c (mips_register_virtual_type): Use architecture
2805 invariant return values.
2806
ff5922b5
AC
28072002-08-01 Andrew Cagney <cagney@redhat.com>
2808
2809 * linux-proc.c: Include "gdb_string.h".
2810 * Makefile.in (linux-proc.o): Update dependency list.
2811
32a6503c
KB
28122002-08-01 Kevin Buettner <kevinb@redhat.com>
2813
2814 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2815 comment.
2816
ccaa32c7
GS
28172002-08-01 Grace Sainsbury <graces@redhat.com>
2818
2819 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2820 to_insert_watchpoint, to_remove_watchpoint,
2821 to_stopped_by_watchpoint, to_stopped_data_address,
2822 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2823 target vecctor. Define their corresponding macros so they call
2824 them.
2825
2826 * target.c: Add default and debug versions of for
2827 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2828 to_insert_watchpoint, to_remove_watchpoint,
2829 to_stopped_by_watchpoint, to_stopped_data_address,
2830 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2831
78fde5f8
KB
28322002-08-01 Kevin Buettner <kevinb@redhat.com>
2833
2834 * mips-tdep.c (mips_register_virtual_type): New function.
2835 (mips_gdbarch_init): Register mips_register_virtual_type()
2836 with gdbarch machinery.
2837 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2838 this file instead of tm-bigmips.h.
2839 (MIPS_REGSIZE): Delete this macro.
2840 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2841 multiarch version in mips-tdep.c will be found.
2842
db034ac5
AC
28432002-08-01 Andrew Cagney <cagney@redhat.com>
2844
2845 * NEWS: Menion that CHILL has been made obsolete.
2846
2847 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2848 * stabsread.c (read_range_type): Ditto.
2849 * gdbtypes.h: Ditto.
2850 * language.c (binop_type_check): Ditto.
2851 (binop_result_type): Ditto.
2852 (integral_type): Ditto.
2853 (character_type): Ditto.
2854 (string_type): Ditto.
2855 (boolean_type): Ditto.
2856 (structured_type): Ditto.
2857 (lang_bool_type): Ditto.
2858 (binop_type_check): Ditto.
2859 * language.h (_LANG_chill): Ditto.
2860 * dwarfread.c (set_cu_language): Ditto.
2861 * dwarfread.c (CHILL_PRODUCER): Ditto.
2862 * dwarfread.c (handle_producer): Ditto.
2863 * expression.h (enum exp_opcode): Ditto.
2864 * eval.c: Ditto for comments.
2865 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2866 * expprint.c (print_subexp): Ditto.
2867 (print_subexp): Ditto.
2868 * valops.c (value_cast): Ditto.
2869 (search_struct_field): Ditto.
2870 * value.h (COERCE_VARYING_ARRAY): Ditto.
2871 * symfile.c (init_filename_language_table): Ditto.
2872 (add_psymbol_with_dem_name_to_list): Ditto.
2873 * valarith.c (value_binop): Ditto.
2874 (value_neg): Ditto.
2875 * valops.c (value_slice): Ditto.
2876 * symtab.h (union language_specific): Ditto.
2877 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2878 (SYMBOL_DEMANGLED_NAME): Ditto.
2879 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2880 * defs.h (enum language): Ditto.
2881 * symtab.c (got_symtab): Ditto.
2882 * utils.c (fprintf_symbol_filtered): Ditto.
2883
2884 * ch-typeprint.c: Make file obsolete.
2885 * ch-valprint.c: Make file obsolete.
2886 * ch-lang.h: Make file obsolete.
2887 * ch-exp.c: Make file obsolete.
2888 * ch-lang.c: Make file obsolete.
2889
2890 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2891 CHILL_LIB.
2892 (TARGET_FLAGS_TO_PASS): Ditto.
2893 (CHILLFLAGS): Obsolete.
2894 (CHILL): Obsolete.
2895 (CHILL_FOR_TARGET): Obsolete.
2896 (CHILL_LIB): Obsolete.
2897 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2898 ch-valprint.c.
2899 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2900 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2901 ch-lang.o.
2902 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2903 targets.
2904
8aaf0b47
JB
29052002-07-31 Joel Brobecker <brobecker@gnat.com>
2906
2907 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2908 This does not change anything at the moment, but will be helpful
2909 later when full Ada support is integrated.
2910
f3a7b3a5
KB
29112002-07-31 Kevin Buettner <kevinb@redhat.com>
2912
2913 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2914 help message.
2915
fb850278
KB
29162002-07-31 Kevin Buettner <kevinb@redhat.com>
2917
2918 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2919 and save it in a local variable. Use variable in later test.
2920
e3bddbfa
KB
29212002-07-31 Kevin Buettner <kevinb@redhat.com>
2922
2923 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2924 test. (Thanks to Daniel Jacobowitz.)
2925
28d169de
KB
29262002-07-31 Kevin Buettner <kevinb@redhat.com>
2927
2928 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2929 (mips_abi_strings): Add "n64".
2930 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2931
7fe7e44e
KB
29322002-07-31 Kevin Buettner <kevinb@redhat.com>
2933
2934 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2935 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2936
c6caf090
KB
29372002-07-31 Kevin Buettner <kevinb@redhat.com>
2938
2939 * utils.c (host_pointer_to_address, address_to_host_pointer):
2940 Use gdb_assert() instead of explicit call to internal_error().
2941
c41669e0
KB
29422002-07-30 Kevin Buettner <kevinb@redhat.com>
2943
2944 * Makefile.in (rs6000-nat.o): Update dependencies.
2945
2946 From Nicholas Duffek:
2947 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2948 (aix-thread.o): New rule.
2949 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2950 * config/powerpc/aix432.mh: New file.
2951
2fda4977
DJ
29522002-07-30 Daniel Jacobowitz <drow@mvista.com>
2953
2954 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2955 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2956 (fetch_core_registers, ppc_linux_supply_gregset)
2957 (ppc_linux_supply_fpregset): New functions.
2958 (ppc_linux_regset_core_fns): New.
2959 (_initialize_ppc_linux_tdep): Call add_core_fns.
2960 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2961 and ppc_linux_supply_gregset.
2962 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2963 (supply_fpregset): Call ppc_linux_supply_fpregset.
2964 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2965 corelow.o.
2966 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2967
729051e6
DJ
29682002-07-30 Daniel Jacobowitz <drow@mvista.com>
2969
2970 * symtab.c (lookup_symbol): Demangle before lowercasing.
2971
5f8a3188
AC
29722002-07-30 Andrew Cagney <ac131313@redhat.com>
2973
2974 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2975 declaration.
2976 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2977 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2978 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2979 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2980 "gdb_string.h".
2981 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2982 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2983 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2984 (avr-tdep.o, mon960-rom.o): Ditto.
2985 (aout_stabs_gnu_h): Define.
2986 (symtab_h): Remove $(gdb_obstack_h).
2987
67f07146
JB
29882002-07-30 Jim Blandy <jimb@redhat.com>
2989
2990 Patch from David Carlton <carlton@math.stanford.edu>:
2991 * gdbinit.in: Move the `dir' commands that add GDB's own source
2992 directory to the search path to the end, so that the `gdb' source
2993 directory will be searched first.
2994
04ea0df1
AC
29952002-07-29 Andrew Cagney <ac131313@redhat.com>
2996
2997 * gdb_obstack.h: New file.
2998 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2999 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3000 * objfiles.h: Include "gdb_obstack.h".
3001 * Makefile.in (gdb_obstack_h): Define.
3002 (symtab_h): Add $(gdb_obstack_h).
3003 (objfiles_h): Add $(gdb_obstack_h).
3004
3005 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3006 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3007 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3008 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3009 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3010 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3011 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3012 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3013
3014 * Makefile.in (bcache.o): Update dependencies.
3015 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3016 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3017 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3018 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3019 (stabsread.o, symfile.o, symmisc.o): Ditto.
3020 (symtab.o, typeprint.o, macroexp.o): Ditto.
3021 (macrotab.o, mdebugread.o): Ditto.
3022 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3023 (coff_ecoff_h, aout_aout64_h): Define.
3024 (aout_stabs_gnu_h, libaout_h): Define.
3025
d138e37a
AC
30262002-07-29 Andrew Cagney <cagney@redhat.com>
3027
3028 * regcache.c (struct regcache_descr): Rename nr_registers to
3029 nr_cooked_registers. Revise comments describing the structure
3030 member fields.
3031 (init_regcache_descr): Update.
3032 (init_legacy_regcache_descr): Update.
3033 (read_register_gen, write_register_gen): When a cooked register in
3034 the raw register range, directly access the value from the raw
3035 register cache.
3036
460e6ec3
AC
30372002-07-29 Andrew Cagney <ac131313@redhat.com>
3038
3039 * z8k-tdep.c: Do not include "obstack.h".
3040 * h8300-tdep.c, h8500-tdep.c: Ditto.
3041 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3042 * valprint.c, v850-tdep.c: Ditto.
3043 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3044 * mn10200-tdep.c: Ditto.
3045
3046 * Makefile.in (z8k-tdep.o): Update dependencies.
3047 (m68hc11-tdep.o, valprint.o): Ditto.
3048 (v850-tdep.o, d10v-tdep.o): Ditto.
3049 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3050 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3051 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3052 (sh_opc_h, gdb_sim_sh_h): Define.
3053 (elf_sh_h, elf_bfd_h): Define.
3054 (opcode_m68hc11_h): Define.
3055 (OPCODES_SRC, OPCODES_DIR): define.
3056 (OPCODES): Use $(OPCODES_DIR).
3057 (gdb_sim_d10v_h): Rename sim_d10v_h.
3058 (gdb_sim_arm_h): Rename sim_arm_h.
3059
790c9cf0
KB
30602002-07-26 Kevin Buettner <kevinb@redhat.com>
3061
3062 * utils.c (host_pointer_to_address, address_to_host_pointer):
3063 Change internal_error() message to indicate function responsible
3064 for the error.
3065
9647fa49
KB
30662002-07-26 Kevin Buettner <kevinb@redhat.com>
3067
3068 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3069 calls to local_hex_string_custom().
3070
dabbe2c0
KB
30712002-07-26 Kevin Buettner <kevinb@redhat.com>
3072
3073 * irix5-nat.c: Move IRIX shared library support from here...
3074 * solib-irix.c: ...to here. Revised substantially to work with
3075 generic solib framework.
3076
b96d0a4e
KB
3077 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3078 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3079 * mips-irix-tdep.c: New file.
3080
313fb2f6
KB
3081 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3082 (mips-irix-tdep.o, solib-irix.o): New rules.
3083 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3084 solib-irix.o.
3085 * config/mips/irix6.mt (TDEPFILES): Likewise.
3086 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3087
ab2eaf26
KB
30882002-07-26 Kevin Buettner <kevinb@redhat.com>
3089
177e4768 3090 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3091 disabled (via ``#if 0'') includes.
3092
7244546a
KB
30932002-07-26 Kevin Buettner <kevinb@redhat.com>
3094
3095 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3096 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3097 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3098 Add support for the fpscr register.
3099 * rs6000-nat.c (regmap, fetch_inferior_registers)
3100 (store_inferior_registers, fetch_core_registers): Likewise.
3101
dd7be90a
KB
31022002-07-26 Kevin Buettner <kevinb@redhat.com>
3103
3104 * rs6000-nat.c (language.h): Include.
3105 (special_regs): Delete this array.
3106 (regmap): New function.
3107 (fetch_register, store_register): Use regmap() to map gdb
3108 register numbers to ptrace register numbers. Also, use
3109 outputs from regmap() to make decisions regarding type of
3110 ptrace() call to make. In particular, don't compare against
3111 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3112 (fetch_inferior_registers, store_inferior_registers): Where
3113 possible, obtain register numbers from tdep struct. Don't
3114 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3115 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3116 (LAST_UISA_SP_REGNUM): Delete.
3117
11bf77db
KB
31182002-07-25 Kevin Buettner <kevinb@redhat.com>
3119
3120 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3121 (fetch_registers, store_register, fetch_core_registers): Don't
3122 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3123 regcache_collect() as appropriate.
3124 (find_toc_address): Format hex address with local_hex_string().
3125
06afebeb
AC
31262002-07-25 Andrew Cagney <ac131313@redhat.com>
3127
3128 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3129 bfd/elf32-frv.c.
3130
8c554d79
TT
31312002-07-24 Tom Tromey <tromey@redhat.com>
3132
3133 * jv-exp.y: Marked all strings with _().
3134 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3135 internal_error.
3136 (MethodInvocation, CastExpression, parse_number, yyerror,
3137 java_type_from_name, push_expression_name, yylex): Typo fixes.
3138
e4c242d9
DJ
31392002-07-24 Daniel Jacobowitz <drow@mvista.com>
3140
3141 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3142 (tee_file_flush, tee_file_write, tee_file_fputs)
3143 (tee_file_isatty): New.
3144 * ui-file.h (tee_file_new): Add prototype.
3145
ebf56fd3
AS
31462002-07-24 Aidan Skinner <aidan@velvet.net>
3147
3148 * ada-lang.c: Change k&r style function definitions to prototyped
3149 form.
3150 * ada-typeprint.c: Change k&r style function definitions to prototyped
3151 form.
3152 * ada-valprint.c: Change k&r style function definitions to prototyped
3153 form.
3154
7fb623f7
AC
31552002-07-24 Andrew Cagney <cagney@redhat.com>
3156
3157 * README: Remove reference to remote-bug.
3158 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3159 remote-bug.c.
3160 (m88k-nat.o): Delete rule.
3161 (m88k-tdep.o): Delete rule.
3162 (remote-bug.o): Delete rule.
3163 * MAINTAINERS: Mark as obsolete.
3164 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3165 * m88k-tdep.c: Make file obsolete.
3166 * config/m88k/m88k.mh: Ditto.
3167 * config/m88k/delta88v4.mh: Ditto.
3168 * config/m88k/delta88v4.mt: Ditto.
3169 * config/m88k/delta88.mt: Ditto.
3170 * config/m88k/delta88.mh: Ditto.
3171 * remote-bug.c: Ditto.
3172 * config/m88k/tm-delta88.h: Ditto.
3173 * config/m88k/nm-delta88v4.h: Ditto.
3174 * config/m88k/xm-delta88.h: Ditto.
3175 * config/m88k/xm-dgux.h: Ditto.
3176 * config/m88k/tm-m88k.h: Ditto.
3177 * config/m88k/nm-m88k.h: Ditto.
3178 * config/m88k/tm-delta88v4.h: Ditto.
3179 * m88k-nat.c: Ditto.
3180 * cxux-nat.c: Ditto.
3181 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3182 and m88*-*-* obsolete.
3183 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3184 m88*-*-* obsolete.
3185
37611a2b
AC
31862002-07-24 Andrew Cagney <cagney@redhat.com>
3187
3188 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3189 constant. Same for local pointer variables.
3190 (extract_signed_integer): Ditto.
3191 * defs.h (extract_unsigned_integer): Update.
3192 (extract_signed_integer): Update.
3193
1aaa5f99
AC
31942002-07-24 Andrew Cagney <cagney@redhat.com>
3195
3196 * regcache.c (regcache_raw_write): Change buf parameter to a
3197 constant void pointer.
3198 (regcache_raw_read): Change buf parameter to a void pointer.
3199 (legacy_write_register_gen): Change myaddr parameter a constant
3200 void pointer.
3201 (supply_register): Change val parameter to a const void pointer.
3202 * regcache.h (regcache_raw_write): Update declaration.
3203 (regcache_raw_read): Update declaration.
3204 (supply_register): Update declaration.
3205
b4f5539f
TT
32062002-07-24 Tom Tromey <tromey@redhat.com>
3207
3208 * defs.h (gdb_readline_wrapper): Declare.
3209 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3210 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3211 * top.c (gdb_readline_wrapper): New function.
3212 (command_line_input): Use it.
3213
0818c12a
AC
32142002-07-24 Andrew Cagney <cagney@redhat.com>
3215
3216 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3217 regcache_read and regcache_write.
3218 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3219 * regcache.c: Update.
3220 * sh-tdep.c (sh64_push_arguments): Update comment.
3221 (sh_pseudo_register_read): Update.
3222 (sh_pseudo_register_write): Update.
3223 (sh4_register_read): Update.
3224 (sh4_register_write): Update.
3225 (sh64_pseudo_register_read): Update.
3226 (sh64_pseudo_register_write): Update.
3227 (sh64_register_read): Update.
3228 (sh64_register_write): Update.
3229 * i386-tdep.c (i386_extract_return_value): Update.
3230 (i386_extract_struct_value_address): Update.
3231 (i386_extract_return_value): Update.
3232 * blockframe.c (generic_read_register_dummy): Update.
3233 (generic_call_dummy_register_unwind): Update
3234 * infrun.c (write_inferior_status_register): Update.
3235
f7321c06
JB
32362002-07-23 Jim Blandy <jimb@redhat.com>
3237
3238 * parser-defs.h (expression_context_pc): Make this extern.
3239 (Thanks to Michael Snyder.)
3240
2037aebb
AC
32412002-07-23 Andrew Cagney <ac131313@redhat.com>
3242
3243 GDB 5.2.1 released from 5.2 branch.
3244 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3245 * README: Update to mention 5.2.1.
3246
66504d44
MS
32472002-07-23 Mark Salter <msalter@redhat.com>
3248
3249 * remote.c (remote_read_bytes): Fix check for error.
3250
27bae383
KB
32512002-07-22 Kevin Buettner <kevinb@redhat.com>
3252
3253 * aix-thread.c (language.h): Include.
3254 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3255 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3256 Print newlines at end of debug messages.
3257 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3258 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3259
32602002-07-22 Kevin Buettner <kevinb@redhat.com>
3261
3262 * aix-thread.c (ppc-tdep.h): Include.
3263 (special_register_p): New function.
3264 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3265 (store_regs_user_thread): Use register number information from
3266 gdbarch_tdep struct instead of hardcoded offsets relative to
3267 FIRST_UISA_SP_REGNUM.
3268 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3269 special_register_p() instead of using FPLAST_REGNUM and
3270 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3271 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3272 will be MQ's register number.
3273
32742002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3275
3276 * aix-thread.c (ops): Rename to aix_thread_ops.
3277 (base_ops): Rename to base_target.
3278 (ops_attach): Rename to aix_thread_attach.
3279 (ops_detach): Rename to aix_thread_detach.
3280 (ops_resume): Rename to aix_thread_detach.
3281 (ops_wait): Rename to aix_thread_wait.
3282 (ops_kill): Rename to aix_thread_kill.
3283 (init_ops): Rename to init_aix_thread_ops.
3284 (ops_fetch_register): Rename to aix_thread_fetch_register.
3285 (ops_store_register): Rename to aix_thread_store_register.
3286 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3287 (ops_thread_alive): Rename to aix_thread_thread_alive.
3288 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3289 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3290 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3291 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3292 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3293 (store_regs_lib): Rename to store_regs_user_thread.
3294 (store_regs_kern): Rename to store_regs_kernel_thread.
3295
27bae383 32962002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3297
3298 * aix-thread.c (ops_prepare_to_store): Eliminate.
3299 (init_ops): Don't initialize ops.prepare_to_store.
3300 (store_regs_kern): Pre-fetch register buffers from child,
3301 because some registers may not be in the cache. Copy
3302 regs from register cache only if they are cached.
3303 (store_regs_lib): Copy regs from register cache only
3304 if they are cached.
3305 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3306 fill_gprs64): Ditto.
3307
61c5da0b
KB
33082002-07-22 Kevin Buettner <kevinb@redhat.com>
3309
3310 * aix-thread.c (gdb_assert.h): Include.
3311 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3312 register sizes (from register cache) match size of buffer holding
3313 register data.
3314 (fill_sprs32): Change parameter types to match those in the ptrace()
3315 buffer.
3316 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3317 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3318
33192002-07-22 Michael Snyder <msnyder@redhat.com>
3320
3321 * aix-thread.c (supply_sprs64): Cosmetic change.
3322 (supply_sprs32): Cosmetic change.
3323 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3324 (fill_sprs64): Use regcache_collect instead of read_register.
3325 (store_regs_lib): Use regcache_collect instead of
3326 read_register. Use fill_sprs32 instead of fill_sprs64,
3327 if debugging a 32-bit architecture.
3328 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3329 out of the register cache, instead of passing a pointer into
3330 the register cache directly to ptrace. Use regcache_collect
3331 insteaad of read_register.
3332 (ops_prepare_to_store): Use target_read_registers instead
3333 of read_register_bytes.
3334
36479eb1
AS
33352002-07-20 Aidan Skinner <aidan@velvet.net>
3336
3337 * MAINTAINERS: Add self under write after approval.
3338
80ae6ee2
AS
33392002-07-20 Aidan Skinner <aidan@velvet.net>
3340
3341 * ada-tasks.c: Change k&r style function definitions to prototyped
3342 form.
3343
8a8ab2b9
AC
33442002-07-19 Andrew Cagney <ac131313@redhat.com>
3345
3346 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3347 * x86-64-tdep.c: Include "objfiles.h".
3348 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3349 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3350
fb16b900
ML
33512002-07-17 Michal Ludvig <michal@suse.cz>
3352
3353 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3354 (update_context): Initialise cfa variable.
3355
0fe7bf7b
MS
33562002-07-17 Michael Snyder <msnyder@redhat.com>
3357
3358 * aix-thread.c: Shorten some long lines.
3359 Bring comments into line with code spec.
3360
488f131b
JB
33612002-07-18 Joel Brobecker <brobecker@gnat.com>
3362
3363 * infrun.c: Re-indent using gdb_indent.sh.
3364
46c415d2
JB
33652002-07-18 Joel Brobecker <brobecker@gnat.com>
3366
3367 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3368 Leave the indentation temporarily untouched, to minimize the diffs.
3369
cdecafbe
EZ
33702002-07-18 Elena Zannoni <ezannoni@redhat.com>
3371
3372 * stabsread.c: Make os9k sections of the code obsolete,
3373 for real this time.
3374 * stabsread.h: Make os9k sections of the code obsolete.
3375
7b6aa020
ML
33762002-07-18 Michal Ludvig <mludvig@suse.cz>
3377
09ec9b38
ML
3378 * linux-low.c (regsets_store_inferior_registers): Add free()
3379 at the end of a loop to prevent memory leak.
3380 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3381 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3382 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3383 line a comment.
4894ac5d 3384 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3385
233282cd
JB
33862002-07-17 Jim Blandy <jimb@redhat.com>
3387
3388 * macrocmd.c (info_macro_command): Remove newline from error
3389 message.
3390
7b6aa020 33912002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3392
3393 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3394 (sh_gdbarch_init): Use it for sh-dsp.
3395
f7ef9339
KB
33962002-07-16 Kevin Buettner <kevinb@redhat.com>
3397
3398 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3399 64-bit DWARF2 format.
3400
8dd72958
JB
34012002-07-16 Joel Brobecker <brobecker@gnat.com>
3402
3403 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3404 <sys/proc.h> when not available.
3405
a99a9e1b
AC
34062002-07-16 Andrew Cagney <ac131313@redhat.com>
3407
3408 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3409 * stabsread.c: Make os9k sections of the code obsolete.
3410 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3411 * config/i386/i386os9k.mt: Make file obsolete.
3412 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3413 (COMMON_OBS): Remove os9kread.o
3414 (SFILES): Remove os9kread.c.
3415 (os9kread.o, remote-os9k.o): Make target obsolete.
3416 * remote-os9k.c: Make file obsolete.
3417 * os9kread.c: Make file obsolete.
3418 * Makefile.in
3419
7a3085c1
AC
34202002-07-16 Andrew Cagney <ac131313@redhat.com>
3421
3422 * NEWS: Mention that the FR30 has been made obsolete.
3423 * fr30-tdep.c: Make file obsolete.
3424 * config/fr30/tm-fr30.h: Ditto.
3425 * config/fr30/fr30.mt: Ditto.
3426 * configure.tgt: Make fr30-*-elf obsolete.
3427 * MAINTAINERS: Make fr30-elf obsolete.
3428
28a93f5a
PM
34292002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3430
3431 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3432 found is not inside a section.
3433
be006b8b
KB
34342002-07-15 Kevin Buettner <kevinb@redhat.com>
3435
3436 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3437 strerror().
3438 (pdc_realloc): Use xrealloc() instead of realloc().
3439
14fa3751
KB
34402002-07-15 Kevin Buettner <kevinb@redhat.com>
3441
3442 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3443 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3444 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3445 macros.
3446
42cc437f
KB
34472002-07-15 Kevin Buettner <kevinb@redhat.com>
3448
3449 * aix-thread.c (ptrace_check): Eliminate goto.
3450 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3451 problem.
3452
8e2c28d4
KB
34532002-07-15 Kevin Buettner <kevinb@redhat.com>
3454
3455 * aix-thread.c (gdbcmd.h): Include.
3456 (DEBUG, DBG, DBG2, dbg): Eliminate.
3457 (debug_aix_thread): New static global.
3458 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3459 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3460 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3461 invocations to DBG and DBG2 macros to test against
3462 ``debug_aix_thread'' and call fprintf_unfiltered().
3463 (_initialize_aix_thread): Add new command "set debug aix-thread".
3464
30413464
AC
34652002-07-15 Andrew Cagney <ac131313@redhat.com>
3466
3467 From Gerhard Tonn <TON@de.ibm.com>:
3468 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3469 instead of supply_register.
3470
7c43edc1
AC
34712002-07-15 Andrew Cagney <ac131313@redhat.com>
3472
3473 * dwarf2cfi.c: Include "gdb_assert.h".
3474 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3475 non-NULL.
3476 (update_context): Do not use __func__. Add missing ``break''.
3477 (update_context): Do not use __func__.
3478
9364a0ef
EZ
34792002-07-15 Elena Zannoni <ezannoni@redhat.com>
3480
3481 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3482 and its setting. Set gdbarch instruction printing functions
3483 directly. For non-rs6000 case use new function
3484 gdb_print_insn_powerpc.
3485 (gdb_print_insn_powerpc): New function.
3486
3fbeef0b
AC
34872002-07-13 Andrew Cagney <ac131313@redhat.com>
3488
92eb23c5 3489 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3490 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3491 * configure.tgt: Mark d30v-*-* as obsolete.
3492 * d30v-tdep.c: Mark file as obsolete.
3493 * config/d30v/d30v.mt: Ditto.
3494 * config/d30v/tm-d30v.h: Ditto.
3495
aacb1f0a
AS
34962002-07-13 Aidan Skinner <aidan@velvet.net>
3497
3498 * ada-tasks.c (add_task_entry): replace calls to
3499 malloc() with xmalloc
3500 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3501
3502 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3503 ada_finish_decode_line_1, all_sals_for_line
3504 ada_breakpoint_rewrite): replace calls to free() with xfree()
3505
c11d79f2
KB
35062002-07-12 Kevin Buettner <kevinb@redhat.com>
3507
3508 From Nicholas Duffek (with minor changes by Martin Hunt,
3509 Louis Hamilton, and Kevin Buettner):
3510 * aix-thread.c: New file.
3511
8e19ed76
PS
35122002-07-12 Petr Sorfa <petrs@caldera.com>
3513
3514 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3515 complaint for invalid attribute class or form.
3516 (read_func_scope): DW_AT_frame_base
3517 better handling of DW_AT_block*.
3518 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3519 better handling of DW_AT_block*.
3520 (read_common_block): DW_AT_location
3521 better handling of DW_AT_block*.
3522 (read_partial_die): DW_AT_location better handling
3523 of DW_AT_block*.
3524 (new_symbol): DW_AT_external better handling of
3525 DW_AT_block*. Proper initialization of variable
3526 "addr".
3527 (attr_form_is_block): New function that returns true
3528 if the attribute's form is of DW_FORM_block*.
3529
295401f7
DJ
35302002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3531
3532 * valops.c (find_method_list): Remove comment about
3533 removed STATIC_MEMFUNCP argument.
3534 (value_find_oload_method_list): Likewise.
3535
e42dc924
KB
35362002-07-12 Kevin Buettner <kevinb@redhat.com>
3537
3538 From Nicholas Duffek:
3539 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3540 target_new_objfile_hook.
3541
6904b546
KB
35422002-07-12 Kevin Buettner <kevinb@redhat.com>
3543
3544 From Nicholas Duffek:
3545 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3546 csect.
3547
53fe9346
AC
35482002-07-12 Andrew Cagney <cagney@redhat.com>
3549
3550 * MAINTAINERS: Mention --enable-sim-build-warnings.
3551 (m68hc11-elf): Disable sim build warnings.
3552 (m32r-elf): Mark as broken obsolete candidate.
3553 (x86_64-linux-gnu): Mark as buildable with -Werror.
3554 (arm-elf): Change -w to ``,'' which enables warnings but not
3555 -Werror.
3556
af5f3db6
AC
35572002-07-12 Andrew Cagney <ac131313@redhat.com>
3558
3559 * bcache.h: Update copyright.
3560 (struct bstring, struct bcache): Move definition to "bcache.c".
3561 Replaced by opaque declaration.
3562 (bcache_xfree): Replace free_bcache.
3563 (bcache_xmalloc, bcache_memory_used): Declare.
3564
3565 * bcache.c: Update copyright.
3566 (struct bstring, struct bcache): Moved to here from "bcache.h".
3567 Update comments.
3568 (bcache_xmalloc, bcache_memory_used): New functions.
3569 (bcache_xfree): Replace function free_bcache.
3570
3571 * Makefile.in (objfiles.o): Add $(bcache_h).
3572 (objfiles_h): Remove $(bcache_h).
3573 (symfile.o): Add $(bcache_h).
3574
3575 * symmisc.c: Update copyright.
3576 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3577 (print_objfile_statistics): Use bcache_memory_used.
3578
3579 * symfile.c: Include "bcache.h".
3580 (reread_symbols): Use bcache_xfree.
3581 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3582 (add_psymbol_to_list): Pass psymbol_cache by value.
3583 (add_psymbol_with_dem_name_to_list): Ditto.
3584
3585 * objfiles.h: Update copyright.
3586 (struct bcache): Declare opaque. Do not include "bcache.h".
3587 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3588 bcache'' pointers.
3589 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3590
3591 * objfiles.c: Include "bcache.h". Update copyright.
3592 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3593 macro_cache.
3594 (free_objfile): Use bcache_xfree.
3595
444199e7
GS
35962002-07-11 Grace Sainsbury <graces@redhat.com>
3597
3598 * monitor.c (monitor_fetch_register): Make name a constant.
3599 (monitor_store_register): Same.
3600
261397f8
DJ
36012002-07-11 Daniel Jacobowitz <drow@mvista.com>
3602
3603 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3604 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3605 (finish_block) For non-function blocks, hash the symbol table. For
3606 function blocks, mark the symbol table as unhashed.
3607 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3608 (msymbol_hash_iw): Likewise.
3609 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3610 value.
3611 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3612 (lookup_minimal_symbol): Likewise for both.
3613 * symtab.h (struct block): Add `hashtable' flag. Comment the
3614 hashtable.
3615 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3616 (ALL_BLOCK_SYMBOLS): Update.
3617 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3618 (struct symbol): Add `hash_next' pointer.
3619 * symtab.c (lookup_block_symbol): Search using the hash table when
3620 possible.
3621 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3622 (search_symbols, find_addr_symbol): Likewise.
3623
3624 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3625 (read_dst_symtab): Likewise.
3626 * jv-lang.c (get_java_class_symtab): Likewise.
3627 * mdebugread.c: Include "gdb_assert.h".
3628 (shrink_block): Assert that the block being modified is not hashed.
3629 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3630 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3631 symbols.
3632 (dump_symtab): Recognize hashed blocks.
3633 * printcmd.c (print_frame_args): Assert that function blocks do not
3634 have hashed symbol tables.
3635 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3636 (fill_in_ada_prototype, debug_print_block): Likewise.
3637 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3638
6f0eaa01
CV
36392002-07-11 Corinna Vinschen <vinschen@redhat.com>
3640
3641 * stack.c (print_frame): Use result of frame_address_in_block()
3642 instead of fi->pc when evaluating symbols.
3643 (backtrace_command_1): Ditto.
3644
a208b0cb
AC
36452002-07-11 Andrew Cagney <cagney@redhat.com>
3646
3647 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3648 Make static.
3649
3650 * arm-tdep.c (arm_register_name): Make return type constant.
3651
a6b6b089
AC
36522002-07-10 Andrew Cagney <ac131313@redhat.com>
3653
5ae5f592
AC
3654 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3655 prototype.
3656 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3657 * s390-tdep.c (s390_fp_regnum): Ditto.
3658 (s390_read_fp): Ditto.
3659 (s390_pop_frame): Ditto.
3660 (_initialize_s390_tdep): Ditto.
3661 * remote.c (get_remote_state): Ditto.
3662 * procfs.c (mappingflags): Ditto.
3663 * memattr.c (_initialize_mem): Ditto.
3664 * mcore-tdep.c (mcore_pop_frame): Ditto.
3665 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3666 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3667 * language.c (set_case_str): Ditto.
3668 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3669 * frv-tdep.c (new_variant): Ditto.
3670 (frv_stopped_data_address): Ditto.
3671 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3672 (context_alloc): Ditto.
3673 (frame_state_alloc): Ditto.
3674 (unwind_tmp_obstack_init): Ditto.
3675 (unwind_tmp_obstack_free): Ditto.
3676 (cfi_read_fp): Ditto.
3677 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3678 (cris_pop_frame): Ditto.
3679 * c-lang.c (scanning_macro_expansion): Ditto.
3680 (finished_macro_expansion): Ditto.
3681 (c_preprocess_and_parse): Ditto.
3682 * gdbarch.sh: Ditto.
3683 * gdbarch.h, gdbarch.c: Regenerate.
3684 * config/mn10200/tm-mn10200.h: Adjust indentation.
3685 * target.c: Adjust indentation.
3686 * symtab.h: Adjust indentation.
3687 * stabsread.h: Adjust indentation.
3688 * remote-es.c: Adjust indentation.
3689 * os9kread.c: Adjust indentation.
3690
36912002-07-10 Andrew Cagney <ac131313@redhat.com>
3692
a6b6b089
AC
3693 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3694 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3695
a1789893
GS
36962002-07-10 Grace Sainsbury <graces@redhat.com>
3697
3698 * NEWS: Mention m68k, mcore multi-arching.
3699 * MAINTAINERS: Change status of m68k, mcore to reflect
3700 multi-arching.
3701
02f0d45d
DJ
37022002-07-10 Daniel Jacobowitz <drow@mvista.com>
3703
3704 * valops.c (find_overload_match): Free oload_syms.
3705
f15f768e
JB
37062002-07-09 Joel Brobecker <brobecker@gnat.com>
3707
3708 Define HAVE_SYS_PROC_H if sys/proc.h exists
3709 * configure.in: Add check for sys/proc.h
3710 * config.in: Regenerate.
3711 * configure: Regenerate.
3712
902a7139
GS
37132002-07-09 Grace Sainsbury <graces@redhat.com>
3714
3715 * config/m68k/tm-m68k.h: Remove macros wrapped in
3716 #if !GDB_MULTI_ARCH.
3717
a534e424
AC
37182002-07-08 Andrew Cagney <ac131313@redhat.com>
3719
3720 * config.in, configure: Regenerate.
3721
9b94f7bf
MK
37222002-07-08 Mark Kettenis <kettenis@gnu.org>
3723
3724 * dwarf2cfi.c: Include "gcore.h".
3725 (execute_stack_op): Fix implementation of the
3726 DW_OP_deref and DW_OP_deref_size operators by letting do their
3727 lookup in the target.
3728
1d34db41
MK
37292002-07-07 Mark Kettenis <kettenis@gnu.org>
3730
3731 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3732 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3733 tdep->sc_sp_offset.
3734
79d5b63a
DJ
37352002-07-05 Daniel Jacobowitz <drow@mvista.com>
3736
3737 Fix PR gdb/595, gdb/602
3738 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3739 Don't call value_cast, just read the vtable pointer; update comments
3740 to match.
3741
3bb912e8
GS
37422002-07-05 Grace Sainsbury <graces@redhat.com>
3743
3744 * config/mcore/tm-mcore.h: Remove file.
3745 * config/mcore/mcore.mt: Remove definition of TM_FILE
3746 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3747
ca39387d
MK
37482002-07-05 Mark Kettenis <kettenis@gnu.org>
3749
3750 * i386bsd-tdep.c: Include "gdb_string.h".
3751
efdc1108
GS
37522002-07-04 Grace Sainsbury <graces@redhat.com>
3753
3754 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3755 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3756 mcore-tdep.
3757 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3758 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3759 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3760 (RETVAL_REGNUM): Move macros from tm-mcore.h
3761 (mcore_reg_struct_has_addr): New function.
3762 (mcore_gdbarch_init): Added initializations for the macros removed
3763 from tm-mcore.h.
3764
bb21884d
MK
37652002-07-04 Mark Kettenis <kettenis@gnu.org>
3766
3767 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3768 traditonal string branding within the ELF header.
3769
228c6d41
DJ
37702002-07-04 Daniel Jacobowitz <drow@mvista.com>
3771
3772 * symtab.c (remove_params): New function.
3773 (make_symbol_overload_list): Use it instead of cplus_demangle.
3774 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3775
2404952e
MK
37762002-07-04 Mark Kettenis <kettenis@gnu.org>
3777
e5e4acad
MK
3778 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3779
baadce09
MK
3780 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3781 New variables.
3782 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3783 and tdep->sigtramp_end.
3784 * i386obsd-nat.c: New file.
3785 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3786
2404952e
MK
3787 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3788 Don't call get_current_frame().
3789
9b4f1ba7
PM
37902002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3791
3792 * i386-nat.c (child_post_startup_inferior): New function
3793 calling i386_cleanup_dregs if
3794 I386_USE_GENERIC_WATCHPOINTS is defined.
3795 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3796 conditional to acknowledge that i386-nat.c has its
3797 own child_post_startup_inferior function.
3798
c0d1d883
MK
37992002-07-04 Mark Kettenis <kettenis@gnu.org>
3800
00f8375e
MK
3801 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3802 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3803 instead of MAX_REGISTER_RAW_SIZE.
3804 (i386_extract_return_value, i386_extract_struct_value_address):
3805 Convert to use regcache.
3806 (i386_gdbarch_init): Set max_register_raw_size and
3807 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3808 Set extract_return_value and extract_struct_value_address instead
3809 of their deprecated variants.
3810
c0d1d883
MK
3811 Convert i386 target to generic dummy frames.
3812 * i386-tdep.c: Include "symfile.h".
3813 (i386_frameless_signal_p): Consider a function to be frameless if
3814 the pc points at the first instruction of the function.
3815 (i386_frame_chain): Handle (generic) call dummies.
3816 (i386_frame_saved_pc): Likewise.
3817 (i386_frame_init_saved_regs): Remove code dealing with call
3818 dummies on the stack.
3819 (i386_push_dummy_frame): Removed.
3820 (i386_call_dummy_words): Removed.
3821 (i386_fix_call_dummy): Removed.
3822 (i386_push_return_address): New function.
3823 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3824 parameter, and don't call get_current_frame.
3825 (i386_pop_frame): New function.
3826 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3827 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3828 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3829 call_dummy_length to 0, set call_dummy_words to NULL, set
3830 sizeof_call_dummy_words to 0, set fix_call_dummy to
3831 generic_fix_call_dummy, set pc_in_call_dummy to
3832 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3833 generic_push_dummy_frame, set push_return_address to
3834 i386_push_return_address and set frame_chain_valid to
3835 generic_file_frame_chain_valid.
3836
049ee0e4
AC
38372002-07-03 Andrew Cagney <ac131313@redhat.com>
3838
3839 * gdbarch.sh (struct regcache): Add opaque declaration.
3840 (EXTRACT_RETURN_VALUE): New architecture method.
3841 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3842 * gdbarch.h, gdbarch.c: Regenerate.
3843 * arch-utils.c (legacy_extract_return_value): New function.
3844 * arch-utils.h (legacy_extract_return_value): Declare.
3845 * values.c (value_being_returned): Re-enable code handling
3846 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3847 deprecated_grub_regcache_for_registers call to block handling
3848 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3849 (EXTRACT_RETURN_VALUE): Do not define.
3850
4e0d9804
GS
38512002-07-03 Grace Sainsbury <graces@redhat.com>
3852
3853 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3854 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3855 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3856 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3857 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3858 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3859 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3860 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3861 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3862 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3863 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3864 argument so the function fits the prototype in the architecture
3865 vector.
3866 (mcore_pop_frame): Remove argument so the function fits the
3867 prototype. Use get_current_frame instead of the argument.
3868 (mcore_push_arguments): Change type of struct_return so the
3869 function can be used in the architecture vector.
3870 (mcore_store_struct_return): Add.
3871 (mcore_frame_init_saved_regs): Add.
3872 (mcore_gdbarch_init): Add function calls to replace the macros
3873 removed from tm-mcore.h
3874
36160dc4
AC
38752002-07-03 Andrew Cagney <ac131313@redhat.com>
3876
3877 * infcmd.c (print_return_value): Remove compatibility code calling
3878 deprecated_grub_regcache_for_registers.
3879
3880 * values.c: Include "regcache.h".
3881 (value_being_returned): Update. Use
3882 deprecated_grub_regcache_for_registers to extract the register
3883 buffer address.
3884 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3885 ``struct regcache''.
3886 * Makefile.in (values.o): Add dependency on $(regcache_h).
3887
3888 * inferior.h (run_stack_dummy): Change type of second parameter to
3889 a ``struct regcache''.
3890 * valops.c (hand_function_call): Change type of retbuf to ``struct
3891 regcache''. Allocate using regcache_xmalloc, clean using
3892 make_cleanup_regcache_xfree.
3893 * infcmd.c (run_stack_dummy): Update. Use
3894 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3895
3896 * regcache.c (do_regcache_xfree): New function.
3897 (make_cleanup_regcache_xfree): New function.
3898 * regcache.h (make_cleanup_regcache_xfree): Declare.
3899
e64d9b3d
MH
39002002-07-03 Martin M. Hunt <hunt@redhat.com>
3901
4dd79c29
MH
3902 * event-top.c (command_line_handler): Don't read past
3903 beginning of buffer.
e64d9b3d 3904
4dd79c29
MH
39052002-07-03 Martin M. Hunt <hunt@redhat.com>
3906
e64d9b3d
MH
3907 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3908 struct frame_id.
3909 (varobj_create): Store frame_id for root.
3910 (varobj_gen_name): Use xasprintf.
3911 (varobj_update): Save and restore frame using get_frame_id() and
3912 frame_find_by_id().
3913 (create_child): Use xasprintf.
3914 (new_root_variable): Initialize frame_id.
3915 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3916 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3917 to prevent memory leak.
3918
26e6c56a
AC
39192002-07-03 Andrew Cagney <ac131313@redhat.com>
3920
3921 * valops.c (hand_function_call): Move declaration of retbuf to
3922 start of function, allocate using malloc, add a cleanup but before
3923 the inf_status cleanup, cleanup the buffer. Rename local variable
3924 old_chain to inf_status_cleanup.
3925
f436dd25
MH
39262002-07-03 Martin M. Hunt <hunt@redhat.com>
3927
3928 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3929
3930 * cli/cli-decode.c (cmd_func_p): New function.
3931 (cmd_func): New function.
3932
3933 * command.h: Add cmd_func() and cmd_func_p().
3934
4cfe2084
GS
39352002-07-03 Grace Sainsbury <graces@redhat.com>
3936
3937 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3938 (REGISTER_SIZE): Remove.
3939 (MAX_REGISTER_RAW_SIZE): Remove.
3940 (REGISTER_VIRTUAL_TYPE): Remove.
3941 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3942 (REGISTER_NAME): Remove.
3943 (USE_GENERIC_DUMMY_FRAMES): Remove.
3944 (CALL_DUMMY): Remove.
3945 (CALL_DUMMY_START_OFFSET): Remove.
3946 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3947 (CALL_DUMMY_LOCATION): Remove.
3948 (FIX_CALL_DUMMY): Remove.
3949 (CALL_DUMMY_ADDRESS): Remove.
3950 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3951 (SAVE_DUMMY_FRAME_TOS): Remove.
3952 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3953 (mcore_register_virtual_type): New function.
3954 (mcore_register_byte): New function.
3955 (mcore_register_size): New function.
3956 (mcore_register_name): New function.
3957 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3958 macros removed from tm-mcore.h.
3959 (mcore_dump_tdep): Add.
3960 (_initialize_mcore_tdep): Add gdbarch_register call.
3961
4fd667e9
MK
39622002-07-03 Mark Kettenis <kettenis@gnu.org>
3963
3964 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3965 frameless_look_for_prologue, such that we actually call this
3966 function.
3967
42f99ac2
JB
39682002-07-02 Joel Brobecker <brobecker@gnat.com>
3969
3970 * frame.h (frame_address_in_block): New function.
3971
3972 * blockframe.c (frame_address_in_block): New function extracted
3973 from get_frame_block().
3974 (get_frame_block): Use frame_address_in_block().
3975 (block_innermost_frame): Use frame_address_in_block() to match
3976 the frame pc address against the block boundaries rather than
3977 the frame pc directly. This prevents a failure when a frame pc
3978 is actually a return-address pointing immediately after the end
3979 of the given block.
3980
103a1597 39812002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3982
3983 * MAINTAINERS: Add self under write after approval.
3984
39852002-07-02 Grace Sainsbury <graces@redhat.com>
3986
103a1597
GS
3987 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3988 used in architecture vector. The default is
3989 m68k_local_breakpoint_from_pc.
3990 (m68k_local_breakpoint_from_pc): Add.
3991 (enum): Add register numbers from tm-m68k.h.
3992 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3993 vector.
3994 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3995 GDB_MULTI_ARCH_PARTIAL.
3996 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3997 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3998 m68k-tdep.c.
3999 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4000 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4001 to enum in m68k-tdep.c
4002
7a5a0534
JB
40032002-07-02 Joel Brobecker <brobecker@gnat.com>
4004
4005 * solib-osf.c (open_map): Compute the list of shared libraries
4006 loaded by the inferior, rather than the list of libraries loaded
4007 by GDB itself. Otherwise, GDB ends up reading the symbols from
4008 the wrong shared libraries...
4009
6f558d74
MK
40102002-07-02 Mark Kettenis <kettenis@gnu.org>
4011
b7d15bf7
MK
4012 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4013 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4014 macros.
4015 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4016 Remove functions.
4017 (FRAMELESS_SIGNAL): Remove function.
4018 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4019 i386_linux_saved_pc_after_call): Removed.
4020 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4021 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4022 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4023
6bff26de
MK
4024 * i386-tdep.c (i386_frameless_signal_p): New function.
4025 (i386_frame_chain): Deal with frameless signals.
4026 (i386_sigtramp_saved_sp): New function.
4027 (i386_frame_saved_pc): Deal with frameless signals.
4028 (i386_saved_pc_after_call): Make sure the correct value is
4029 returned just after entry into a sigtramp.
4030 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4031 i386fbsd4_sc_sp_offset): New variables.
4032 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4033 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4034 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4035 similiar to what we already did for sc_pc_offset.
4036 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4037 tdep->sc_sp_offset.
4038
6f558d74
MK
4039 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4040
145564b7
ML
40412002-07-02 Michal Ludvig <mludvig@suse.cz>
4042
4043 * config/i386/tm-x86-64linux.h: New.
4044 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4045 definitions.
4046 * config/i386/nm-x86-64.h: Rename to ...
4047 * config/i386/nm-x86-64linux.h: ... this one.
4048 * config/i386/x86-64linux.mh: Reflect the above change.
4049
3a1e71e3
MK
40502002-07-01 Mark Kettenis <kettenis@gnu.org>
4051
21d0e8a4
MK
4052 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4053 with sigcontext_addr. Add sc_sp_offset.
4054 (i386bsd_sigtramp_saved_pc): Remove prototype.
4055 (i386bsd_sicontext_addr): Add prototype.
4056 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4057 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4058 (i386_svr4_sigtramp_saved_pc): Removed.
4059 (i386_svr4_sigcontext_addr): New function.
4060 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4061 Initialize tdep->sigcontext_addr instead. Initialize
4062 tdep->sc_pc_offset and tdep->sc_sp_offset.
4063 (i386_gdbarch_init): Likewise.
4064 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4065 any more.
4066 (i386bsd_sigtramp_saved_pc): Remove function.
4067 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4068 Initialize tdep->sigcontext_addr instead. Initialize
4069 tdep->sc_pc_offset.
4070 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4071 of tdep->sigtramp_saved_pc.
4072 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4073 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4074 instead.
4075
3a1e71e3
MK
4076 * i386-tdep.c (i386_frameless_function_invocation,
4077 i386_frame_num_args, i386_frame_init_saved_regs,
4078 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4079 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4080 i386_extract_return_value, i386_store_return_value,
4081 i386_extract_struct_value_address, i386_register_virtual_type,
4082 i386_register_convertible, i386_register_convert_to_virtual,
4083 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4084 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4085 static.
4086
52e9098c
MK
40872002-07-01 Mark Kettenis <kettenis@gnu.org>
4088
77b13a25
MK
4089 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4090
52e9098c
MK
4091 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4092 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4093 this macro. Include "value.h".
4094
1b372fff
AS
40952002-06-30 Aidan Skinner <aidan@velvet.net>
4096
4097 * ada-exp.tab.c: remove as it's a generated file
4098 * ada-lex.c: remove as it's a generated file
4099
9c5045b5
MK
41002002-06-30 Mark Kettenis <kettenis@gnu.org>
4101
4a93c5bb
MK
4102 * config/i386/tm-i386.h (struct frame_info, struct
4103 frame_saved_regs, struct value, struct type): Remove forward
4104 declarations.
4105
322d4fe0
MK
4106 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4107 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4108 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4109 (FILL_FPXREGSET): Define.
4110
fdd8263d
MK
4111 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4112
482e577b
MK
4113 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4114 i[3456]86-*-netbsd* case.
4115 * config/i386/tm-obsd.h: Removed.
4116 * config/i386/obsd.mt: Removed.
4117 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4118 core-aout.o.
4119 (MH_CFLAGS): Add -DYYDEBUG=0.
4120
6916549a
MK
4121 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4122 i386nbsd_sc_pc_offset on OpenBSD too.
4123
9c5045b5
MK
4124 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4125 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4126 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4127 define.
4128 * i386bsd-tdep.c: Include "arch-utils.h".
4129 (i386bsd_aout_in_solib_call_trampoline): New function.
4130 (i386bsd_init_abi): Set in_solib_call_trampoline to
4131 i386bsd_aout_in_solib_call_trampoline.
4132 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4133 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4134
aa84d1bb
AC
41352002-06-28 Andrew Cagney <ac131313@redhat.com>
4136
4137 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4138 (struct obstack, struct bcache): Add opaque declarations.
4139 * Makefile.in (macrotab_h): Update
4140
b4d83933
AC
41412002-06-28 Andrew Cagney <ac131313@redhat.com>
4142
4143 * blockframe.c (generic_find_dummy_frame): Change return type to
4144 ``struct regcache''.
4145 (struct dummy_frame): Replace field ``registers'' with regcache, a
4146 struct regcache object.
4147 (generic_find_dummy_frame): Update.
4148 (generic_push_dummy_frame): Update. Use regcache_xfree,
4149 regcache_xmalloc and regcache_cpy.
4150 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4151 regcache_xfree.
4152 (deprecated_generic_find_dummy_frame): Update.
4153 (generic_read_register_dummy): Update. Use
4154 regcache_read_as_address.
4155 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4156 (generic_get_saved_register): Update. Use regcache_read.
4157
08c0b5bc
AC
41582002-06-28 Andrew Cagney <ac131313@redhat.com>
4159
4160 * Makefile.in (objfiles_h): Add $(bcache_h).
4161 * objfiles.h: Include "bcache.h".
4162
4163 * Makefile.in (symtab_h): Remove $(bcache_h).
4164 * symtab.h: Do not include "bcache.h".
4165
1f89801a
AC
41662002-06-28 Andrew Cagney <ac131313@redhat.com>
4167
4168 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4169 generic_func_frame_chain_valid.
4170
b9644b58
DB
41712002-06-28 David O'Brien <obrien@FreeBSD.org>
4172
4173 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4174 * config/i386/tm-fbsd.h: Likewise.
4175
dd486634
AC
41762002-06-28 Andrew Cagney <ac131313@redhat.com>
4177
4178 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4179 generic_unwind_get_saved_register.
4180
0b434a00
AC
41812002-06-27 Andrew Cagney <ac131313@redhat.com>
4182
4183 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4184 * regcache.c (supply_register): Add missing argument to
4185 register_buffer call.
4186
f30e5a77
AC
41872002-06-27 Andrew Cagney <ac131313@redhat.com>
4188
4189 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4190 Solaris /bin/grep does not not like it. From Peter Schauer.
4191
9f064c95
TT
41922002-06-26 Tom Tromey <tromey@redhat.com>
4193
4194 * command.h (add_setshow_cmd): Declare.
4195 (add_setshow_cmd_full): Declare.
4196 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4197 returns void. Use add_setshow_cmd_full.
4198 (add_setshow_cmd_full): New function.
4199 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4200 (add_setshow_boolean_cmd): Likewise.
4201
099c7589
JT
42022002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4203
4204 * config/vax/tm-vax.h: Protect from multiple inclusion.
4205 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4206 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4207 * config/vax/tm-vaxbsd.h: ...here. New file.
4208 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4209
1d049c5e
JT
42102002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4211
4212 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4213 (BELIEVE_PCC_PROMOTION): Remove.
4214 (AP_REGNUM): Move to...
4215 * config/vax/nm-vax.h: ...here.
4216 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4217 (vax_breakpoint_from_pc): New function.
4218 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4219 and gdbarch_believe_pcc_promotion.
4220
4791e091
JT
42212002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4222
4223 * Makefile.in (vax_tdep_h): Define.
4224 (vax-tdep.o): Use $(vax_tdep_h).
4225 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4226 (vax_dump_tdep): New function.
4227 (_initialize_vax_tdep): Register vax_dump_tdep.
4228 * vax-tdep.h: Include osabi.h.
4229 (struct gdbarch_tdep): New.
4230
da130f98
AC
42312002-06-26 Andrew Cagney <cagney@redhat.com>
4232
4233 * frame.h (deprecated_generic_find_dummy_frame): Rename
4234 generic_find_dummy_frame.
4235 * blockframe.c (generic_find_dummy_frame): Make static.
4236 (deprecated_generic_find_dummy_frame): New function.
4237 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4238 generic_find_dummy_frame with deprecated_find_dummy_frame.
4239 (sh64_nofp_frame_init_saved_regs): Ditto.
4240 (sh_fp_frame_init_saved_regs): Ditto.
4241 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4242 (s390_frame_chain): Ditto.
4243 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4244
6300c360
GS
42452002-06-26 Grace Sainsbury <graces@redhat.com>
4246
4247 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4248 gdbarch vector are at the top.
4249 (NUM_REGS): Remove.
4250 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4251 (FRAME_ARGS_ADDRESS): Remove.
4252 (FRAME_LOCALS_ADDRESS): Remove.
4253 (FRAME_NUM_ARGS): Remove.
4254 (FRAME_ARGS_SKIP): Remove.
4255 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4256 (m68k_gdbarch_init): Add gdbarch initializations for macros
4257 undefined in tm-m68k.h
4258
1c617db8
GS
42592002-06-26 Grace Sainsbury <graces@redhat.com>
4260
4261 * monitor.h: Add the function regname to monitor_ops
4262 structure. This way NUM_REGS does not have to be a constant.
4263 * monitor.c (monitor_fetch_register): Added support for regname
4264 function. The function is called if the array regnames is NULL.
4265 (monitor_store_register): Same.
da130f98
AC
4266 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4267 regnames array.
1c617db8
GS
4268 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4269 cpu32bug_cmds.regname to point to new function.
4270 * abug-rom.c (abug_regname): Same as above.
4271 (init_abug_cmds): Same.
4272 * dbug-rom.c (dbug_regname): Same as above.
4273 (init_dbug_cmds): Same.
4274 * remote-est.c (est_regname): Same.
4275 (init_est_cmds): Same.
4276 * rom68k-rom.c (rom68k_regname): Same.
4277 (init_rom68k_cmds): Same.
4278
ea9365bb
TT
42792002-06-25 Tom Tromey <tromey@redhat.com>
4280
4281 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4282
72cec141
AC
42832002-06-25 Andrew Cagney <cagney@redhat.com>
4284
4285 * infrun.c (stop_registers): Change variable's type to ``struct
4286 regcache'''.
4287 (xmalloc_inferior_status): Delete function.
4288 (free_inferior_status): Delete function.
4289 (normal_stop): Use regcache_cpy.
4290 (struct inferior_status): Change type of fields ``stop_registers''
4291 and ``registers'' to ``struct regcache''.
4292 (write_inferior_status_register): Use regcache_write.
4293 (save_inferior_status): Instead of calling
4294 xmalloc_inferior_status, allocate the inf_status buffer directly.
4295 Use regcache_dup_no_passthrough and regcache_dup to save the
4296 buffers.
4297 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4298 Replace the stop_registers regcache instead of overriding it. Use
4299 regcache_xfree. Instead of calling free_inferior_status, xfree
4300 the buffer directly.
4301 (discard_inferior_status): Use regcache_xfree. Instead of calling
4302 free_inferior_status, xfree the buffer directly.
4303 (build_infrun): Use regcache_xmalloc.
4304 (_initialize_infrun): Delete redundant call to build_infrun.
4305
4306 * Makefile.in (infcmd.o): Add $(regcache_h).
4307
4308 * infcmd.c: Include "regcache.h".
4309 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4310 obtain the address of `stop_registers' register buffer.
4311 (print_return_value): Ditto.
4312
4313 * inferior.h (struct regcache): Add opaque declaration.
4314 (stop_registers): Change variable's declared type to ``struct
4315 regcache''.
4316
defc6f8c
TT
43172002-06-24 Tom Tromey <tromey@redhat.com>
4318
c0e624e7
TT
4319 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4320 * target.c (initialize_targets): Fixed typo in
4321 trust-readonly-sections `show' documentation.
4322
defc6f8c
TT
4323 * main.c: Marked all strings with _().
4324
2b236d82
DH
43252002-06-24 Don Howard <dhoward@redhat.com>
4326
4327 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4328 that means max CORE_ADDR+1.
4329 (lookup_mem_region): Ditto.
4330 (mem_info_command): Ditto.
4331
942dc0e9
GS
43322002-06-24 Grace Sainsbury <graces@redhat.com>
4333
4334 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4335 (REGISTER_BYTES_OK): Remove.
4336 (REGISTER_BYTES): Remove.
4337 (STORE_STRUCT_RETURN): Remove.
4338 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4339 (STORE_RETURN_VALUE): Remove.
4340 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4341 (FRAME_CHAIN): Remove.
4342 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4343 (FRAME_SAVED_PC): Remove.
4344 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4345 (m68k_store_struct_return): Add.
4346 (m68k_deprecated_extract_return_value): Add.
4347 (m68k_deprecated_extract_struct_value_address): Add.
4348 (m68k_store_return_value): Add.
4349 (m68k_frame_chain): Add.
4350 (m68k_frameless_function_invocation): Add.
4351 (m68k_frame_saved_pc): Add.
4352 (m68k_gdbarch_init): added set_gdbarch calls for new
4353 functions and deleted macros.
4354
03c30d4d
TT
43552002-06-23 Tom Tromey <tromey@redhat.com>
4356
4357 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4358 (ALLDEPFILES): Likewise.
4359 (udiheaders): Removed.
4360 (udip2soc.o): Likewise.
4361 (udi2go32.o): Likewise.
4362 (udr.o): Likewise.
4363 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4364
37e71372
AC
43652002-06-22 Andrew Cagney <ac131313@redhat.com>
4366
06a6ac57
AC
4367 * infrun.c (_initialize_infrun): Delete unnecessary call to
4368 build_infrun.
4369
37e71372
AC
4370 * regcache.h: Update comments describing the regcache_cpy family
4371 of functions.
4372 (regcache_save, regcache_restore): Delete declaration.
4373 (regcache_save_no_passthrough): Delete declaration.
4374 (regcache_restore_no_passthrough): Delete declaration.
4375 * regcache.c (regcache_save): Delete function.
4376 (regcache_save_no_passthrough): Delete function.
4377 (regcache_restore): Delete function.
4378 (regcache_restore_no_passthrough): Delete function.
4379
78f6d055
AC
43802002-06-21 Andrew Cagney <ac131313@redhat.com>
4381
4382 * config/m68k/tm-m68k.h: Fix typo.
4383 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4384 (m68k_frame_init_saved_regs): Declare.
4385
78b119cb
JB
43862002-06-21 Jim Blandy <jimb@redhat.com>
4387
4388 Remove some vestiges of Harris 88k support.
4389 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4390 register numbering quirk.
4391 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4392 odd symbols occurring in Harris 88k ELF targets.
4393
0fbb3da7
TT
43942002-06-21 Tom Tromey <tromey@redhat.com>
4395
4396 * gdb_locale.h: New file.
4397 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4398 (defs_h): Added gdb_locale.h.
4399 * configure, config.in: Rebuilt.
4400 * configure.in (PACKAGE): Define.
4401 * defs.h: Include gdb_locale.h.
4402 * main.c (captured_main): Call setlocale, bindtextdomain,
4403 textdomain.
4404
456f8b9d
DB
44052002-06-21 Dave Brolley <brolley@redhat.com>
4406
4407 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4408 * config/frv/frv.mt: New file.
4409 * config/frv/tm-frv.h: New file.
4410 * configure.tgt: Support frv-*-*.
4411 * Makefile.in (frv-tdep.o): New target.
4412 * frv-tdep.c: New file.
4413 * NEWS: Mention frv.
4414
cdd463f9
DB
44152002-06-21 Dave Brolley <brolley@redhat.com>
4416
4417 * MAINTAINERS: Add self to "Write After Approval" list.
4418
5d3ed2e3
GS
44192002-06-21 Grace Sainsbury <graces@redhat.com>
4420
4421 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4422 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4423 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4424 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4425 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4426
4427 * m68k-tdep.c: Include arch-utils.h
4428 (m68k_register_raw_size): Add.
4429 (m68k_register_virtual_size): Add.
4430 (m68k_register_virtual_type): Add.
4431 (m68k_register_name): Add.
4432 (m68k_stack_align): Add.
4433 (m68k_register_byte): Add.
4434 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4435 tm-m68k.h.
4436
7f8e7424
GS
44372002-06-21 Grace Sainsbury <graces@redhat.com>
4438
a2c6a6d5 4439 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4440 m68k_find_saved_regs.
4441 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4442 references to it with frame->saved_regs.
7f8e7424
GS
4443 (m68k_gdbarch_init): Added function calls to initialize the
4444 gdbarch structure.
a2c6a6d5
GS
4445 (m68k_fix_call_dummy): Add.
4446 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4447 (CALL_DUMMY): Remove.
4448 (CALL_DUMMY_LENGTH): Remove.
4449 (CALL_DUMMY_START_OFFSET): Remove.
4450 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4451 (FIX_CALL_DUMMY): Remove.
4452 (PUSH_DUMMY_FRAME): Remove.
4453 (POP_FRAME): Remove.
7f8e7424 4454
f461f5cf
PM
44552002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4456
4457 * parse.c (parse_fprintf): New function used to avoid calls to
4458 fprintf in bison parser generated debug code.
4459 * parser-defs.h: Declaration of new parse_fprintf function.
4460 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4461 Set YYDEBUG to 1 by default.
4462 Set YYFPRINTF as parse_fprintf.
4463
7f0c12ed
ML
44642002-06-21 Michal Ludvig <mludvig@suse.cz>
4465
4466 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4467 encoding anymore.
4468 (pointer_encoding, enum ptr_encoding): New.
4469 (execute_cfa_program): Take care about pointer encoding.
4470 (dwarf2_build_frame_info): Only call parse_frame_info for
4471 .debug_frame and .eh_frame.
4472 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4473 fixed augmentation handling, added relative addressing,
4474 ignore duplicate FDEs. Added comments.
19d833a2 4475 * dwarf2cfi.c: Reindented.
7f0c12ed 4476
87c4a039
EZ
44772002-06-20 Elena Zannoni <ezannoni@redhat.com>
4478
4479 * event-top.c (command_handler): Don't use space_at_cmd_start
4480 unless there is sbrk() on the host. Assign time and space data
4481 to union fields of the appropriate length.
4482
1cf877ad
ML
44832002-06-20 Michal Ludvig <mludvig@suse.cz>
4484
4485 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4486 x86_64_register_name. Return type changed to 'const char *'.
4487 (x86_64_register_name2nr): Rename to x86_64_register_number.
4488 (x86_64_gdbarch_init): Update to reflect the change.
4489 * x86-64-tdep.h: Ditto.
4490 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4491 (supply_fpregset): Ditto.
4492
3fadccb3
AC
44932002-06-19 Andrew Cagney <cagney@redhat.com>
4494
4495 * regcache.h: Update copyright.
4496 (struct regcache, struct gdbarch): Add opaque declarations.
4497 (current_regcache): Declare global variable.
4498 (regcache_read, regcache_write): Add gdbarch parameter.
4499 (regcache_save, regcache_save_no_passthrough)
4500 (regcache_restore, regcache_restore_no_passthrough)
4501 (regcache_dup, regcache_dup_no_passthrough)
4502 (regcache_cpy, regcache_cpy_no_passthrough)
4503 (deprecated_grub_regcache_for_registers)
4504 (deprecated_grub_regcache_for_register_valid)
4505 (regcache_valid_p): Add function declarations.
4506
4507 * regcache.c: Update copyright.
4508 (regcache_descr_handle): New global variable.
4509 (struct regcache_descr): Define.
4510 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4511 (regcache_descr, xfree_regcache_descr): New functions.
4512 (struct regcache): Define.
4513 (regcache_xmalloc, regcache_xfree): New functions.
4514 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4515 (regcache_dup, regcache_dup_no_passthrough): New functions.
4516 (regcache_valid_p, regcache_read_as_address): New functions.
4517 (deprecated_grub_regcache_for_registers): New function.
4518 (deprecated_grub_regcache_for_register_valid): New function.
4519 (current_regcache): New global variable.
4520 (register_buffer): Add regcache parameter. Update calls.
4521 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4522 (read_register_gen, write_register_gen): Update register_buffer
4523 call. Test for legacy_p instead of gdbarch_register_read_p or
4524 gdbarch_register_write_p.
4525 (regcache_collect): Update register_buffer call.
4526 (build_regcache): Rewrite. Use deprecated grub functions.
4527 (regcache_save, regcache_save_no_passthrough): New functions.
4528 (regcache_restore, regcache_restore_no_passthrough): New
4529 functions.
4530 (_initialize_regcache): Create the regcache_data_handle. Swap
4531 current_regcache global variable.
4532
4533 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4534 parameter to regcache_read and regcache_write calls.
4535 (sh4_register_read): Ditto.
4536 (sh64_pseudo_register_read): Ditto.
4537 (sh64_register_read): Ditto.
4538 (sh_pseudo_register_write): Ditto.
4539 (sh4_register_write): Ditto.
4540 (sh64_pseudo_register_write): Ditto.
4541 (sh64_register_write): Ditto.
4542
4543 * defs.h (XCALLOC): Define.
4544
152d9db6
GS
45452002-06-19 Grace Sainsbury <graces@redhat.com>
4546
4547 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4548 * m68k-tdep.c (m68k_gdbarch_init): Added.
4549 (m68k_dump_tdep): Added.
4550
170911c7
DJ
45512002-06-19 Daniel Jacobowitz <drow@mvista.com>
4552
4553 * ada-lang.c (fill_in_ada_prototype): Update comment.
4554
2e4ebe70
DJ
45552002-06-19 Daniel Jacobowitz <drow@mvista.com>
4556
4557 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4558 MIPS_ABI_LAST.
4559 (mips_abi_string, mips_abi_strings): New.
4560 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4561 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4562 tdep->mips_abi_string. Honor mips_abi_string. Default to
4563 O32 if no ABI is found.
4564 (mips_dump_tdep): Use mips_abi_strings.
4565 (mips_abi_update): New function.
4566 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4567 ``set mips abi'' and ``show mips abi''. Check the size of
4568 mips_abi_strings.
4569
16775908
AC
45702002-06-19 Andrew Cagney <cagney@redhat.com>
4571
4572 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4573 constant.
4574
5051bfa4 45752002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4576
5051bfa4
JB
4577 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4578 current frame using only the first stack size adjustment. All
4579 subsequent size adjustments are not considered to be part of
4580 the "static" part of the current frame.
4581 Compute the address of the saved registers relative to the
4582 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4583 in use in this frame.
4584
56468235
DH
45852002-06-18 Don Howard <dhoward@redhat.com>
4586
4587 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4588 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4589 suggesting this solution.
4590
0b624158
AC
45912002-06-18 Andrew Cagney <ac131313@redhat.com>
4592
4593 * config/romp/xm-rtbsd.h: Delete file.
4594 * config/romp/rtbsd.mh: Delete file.
4595
221ea385
KS
45962002-06-18 Keith Seitz <keiths@redhat.com>
4597
4598 * breakpoint.c (condition_command): Post breakpoint_modify
4599 when a condition is added to an existing breakpoint.
4600 (commands_command): Likewise for commands.
4601 (set_ignore_count): Likewise for ignore counts.
4602 If no tty, do not simply return, still need to send event
4603 notification.
4604 (ignore_command): Only print a newline if the command came
4605 from a tty.
4606 Don't call breakpoints_changed, since this is now properly
4607 handled by set_ignore_count.
4608
5402eed1
AC
46092002-06-18 Andrew Cagney <cagney@redhat.com>
4610
4611 * MAINTAINERS: Note that cris-elf target can be compiled with
4612 -Werror.
4613 * cris-tdep.c (cris_register_name): Make return type constant.
4614 (cris_breakpoint_from_pc): Ditto.
4615
cc22880b
ML
46162002-06-18 Michal Ludvig <mludvig@suse.cz>
4617
4618 * frame.h (struct frame_info): Change type of context to
4619 'struct context'.
4620
fa88f677
AC
46212002-06-17 Andrew Cagney <cagney@redhat.com>
4622
4623 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4624 pointer.
4625 * gdbarch.h, gdbarch.c: Regenerate.
4626 * config/mips/tm-mips.h (mips_register_name): Update.
4627 * i386-tdep.h (i386_register_name): Update.
4628 * mips-tdep.c (mips_register_name): Update
4629 * alpha-tdep.c (alpha_register_name): Update.
4630 * arch-utils.c (legacy_register_name): Update.
4631 * arch-utils.h (legacy_register_name): Update.
4632 * avr-tdep.c (avr_register_name): Update.
4633 * ia64-tdep.c (ia64_register_name): Update.
4634 * i386-tdep.c (i386_register_name): Update.
4635 * sparc-tdep.c (sparc32_register_name): Update.
4636 (sparc64_register_name): Update.
4637 (sparclite_register_name): Update.
4638 (sparclet_register_name): Update.
4639 * sh-tdep.c (sh_generic_register_name): Update.
4640 (sh_sh_register_name): Update.
4641 (sh_sh3_register_name): Update.
4642 (sh_sh3e_register_name): Update.
4643 (sh_sh_dsp_register_name): Update.
4644 (sh_sh3_dsp_register_name): Update.
4645 (sh_sh4_register_name): Update.
4646 (sh_sh64_register_name): Update.
4647 * s390-tdep.c (s390_register_name): Update.
4648 * rs6000-tdep.c (rs6000_register_name): Update.
4649 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4650 (ns32k_register_name_32382): Update.
4651 * d10v-tdep.c (d10v_ts2_register_name): Update.
4652 (d10v_ts3_register_name): Update.
4653 * xstormy16-tdep.c (xstormy16_register_name): Update.
4654 * vax-tdep.c (vax_register_name): Update.
4655 * v850-tdep.c (v850_register_name): Update.
4656 * m68hc11-tdep.c (m68hc11_register_name): Update.
4657 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4658 (am33_register_name): Update.
4659
ea1e7ef6
GS
46602002-06-17 Grace Sainsbury <graces@redhat.com>
4661
4662 * m68k-tdep.c: Reindented.
4663
9b02dd1b
AC
46642002-06-17 Andrew Cagney <ac131313@redhat.com>
4665
4666 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4667 list of predefined types.
4668
8758dec1
MK
46692002-06-16 Mark Kettenis <kettenis@gnu.org>
4670
b6197528
MK
4671 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4672 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4673 REGISTER_CONVERT_TO_RAW): Remove defines.
4674 (i386_register_virtual_type, i386_register_convertible,
4675 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4676 Remove prototypes.
4677 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4678 macros mentioned above.
4679
82b47e62
MK
4680 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4681 (i386lynx_saved_pc_after_call): Remove prototype.
4682 * i386ly-tdep.c: Include "i386-tdep.h".
4683 (i386lynx_saved_pc_after_call): Make static. Use
4684 read_memory_nobpt instead of read_memory. Use
4685 read_memory_unsigned_integer instead of read_memory_integer.
4686 (i386lynx_init_abi): New function.
4687 (i386lynx_coff_osabi_sniffer): New function.
4688 (_initialize_i386bsd_tdep): New function.
4689
8758dec1
MK
4690 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4691 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4692 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4693 (i386_fix_call_dummy): Remove prototype.
4694 * i386-tdep.c (i386_call_dummy_words): New variable.
4695 (i386_gdbarch_init): Adjust for removal of the
4696 macros mentioned above.
4697
e9e68a56
AC
46982002-06-15 Andrew Cagney <ac131313@redhat.com>
4699
4700 * command.h (add_setshow_auto_boolean_cmd): Replace
4701 add_set_auto_boolean_cmd.
4702 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4703 add_set_auto_boolean_cmd.
4704 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4705 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4706 mask-address'' command.
4707 (show_mask_address): Add cmd parameter.
4708 * remote.c (add_packet_config_cmd): Update. Change type of
4709 set_func and show_func to cmd_sfunc_ftype.
4710 (_initialize_remote): Update `set remote Z-packet'
4711 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4712 (show_remote_protocol_e_packet_cmd): Ditto.
4713 (show_remote_protocol_E_packet_cmd): Ditto.
4714 (show_remote_protocol_P_packet_cmd): Ditto.
4715 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4716 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4717 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4718 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4719 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4720 (show_remote_protocol_Z_packet_cmd): Ditto.
4721 (show_remote_protocol_binary_download_cmd): Ditto.
4722 (show_remote_cmd): Pass NULL to all of above.
4723
fc08ec52
MK
47242002-06-15 Mark Kettenis <kettenis@gnu.org>
4725
4726 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4727 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4728 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4729 POP_FRAME): Remove defines.
4730 (i386_push_arguments, i386_store_struct_return,
4731 i386_extract_return_value, i386_store_return_value,
4732 i386_extract_struct_value_address, i386_push_dummy_frame,
4733 i386_pop_frame): Renove prototypes.
4734 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4735 macros mentioned above.
4736
e707bbc2
AC
47372002-06-15 Andrew Cagney <ac131313@redhat.com>
4738
4739 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4740 add_set_boolean_cmd.
4741 (add_setshow_cmd): New function.
4742 * command.h (add_setshow_boolean_cmd): Replace
4743 add_set_boolean_cmd.
4744 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4745 and ``set rdiromatzero''.
4746 * maint.c (_initialize_maint_cmds): Update commented out code.
4747 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4748 * target.c (initialize_targets): Update `set
4749 trust-readonly-sections'.
4750 * remote.c (_initialize_remote): Update `set remotebreak'.
4751
42fdc8df
MK
47522002-06-15 Mark Kettenis <kettenis@gnu.org>
4753
93924b6b
MK
4754 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4755 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4756 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4757 fit into multi-arch framework.
4758 (i386_breakpoint_from_pc): New function.
4759 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4760 above.
4761
42fdc8df
MK
4762 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4763 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4764 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4765 (i386_frameless_function_invocation, i386_frame_num_args,
4766 i386_frame_init_saved_regs): Remove prototypes.
4767 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4768 macros mentioned above.
4769
9773a94b
AC
47702002-06-15 Andrew Cagney <ac131313@redhat.com>
4771
4772 * cli/cli-decode.c (set_cmd_cfunc): Update.
4773 (set_cmd_sfunc): Update.
4774 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4775 (set_cmd_sfunc, set_cmd_cfunc): Update.
4776 * cli/cli-decode.h: Update.
4777
6e157172
MK
47782002-06-15 Mark Kettenis <kettenis@gnu.org>
4779
4780 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4781 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4782
7f19b9a2
AC
47832002-06-15 Andrew Cagney <ac131313@redhat.com>
4784
4785 * defs.h (auto_boolean): Declare enum.
4786 * command.h (cmd_auto_boolean): Delete enum.
4787 * mips-tdep.c (mask_address_var): Update.
4788 (mips_mask_address_p): Update.
4789 (show_mask_address): Update.
4790 * remote.c (struct packet_config): Update.
4791 (update_packet_config): Update.
4792 (show_packet_config_cmd): Update.
4793 (packet_ok): Update.
4794 (add_packet_config_cmd): Update.
4795 (_initialize_remote):
4796 * command.h: Update.
4797 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4798 (do_setshow_command): Update.
4799 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4800 * cli/cli-decode.h: Update.
4801
1cf88de5
MK
48022002-06-15 Mark Kettenis <kettenis@gnu.org>
4803
22ba8cf2
MK
4804 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4805 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4806 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4807 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4808 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4809 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4810
762c5349
MK
4811 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4812 list of DJGPP COFF targets.
4813
091198bb
MK
4814 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4815 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4816 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4817 (FP0_REGNUM): Remove define.
4818 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4819 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4820 (i386_register_virtual_size): Remove protoype.
4821 * i386-tdep.c (i386_register_virtual_size): Removed.
4822 (i386_extract_return_value, i386_store_return_value): Use
4823 FP0_REGNUM instead of NUM_FREGS to determine whether the
4824 floating-point registers are available.
4825 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4826 Adjust for removal of macros mentioned above.
4827
48282002-06-15 Mark Kettenis <kettenis@gnu.org>
4829
fcc9bf01
MK
4830 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4831 comments.
4832 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4833 Remove prototypes.
4834 (supply_gregset, fill_gregset): Remove use of register keyword and
4835 remove declaration for regmap. Use I386_NUM_GREGS instead of
4836 NUM_REGS and NUM_FREGS.
4837 (FPREGSET_FSAVE_OFFSET): Remove.
4838 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4839 NUM_FREGS to determine whether the floating-point registers are
4840 available.
4841
65e78234
MK
4842 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4843 gnu_store_registers): Replace usage of NUM_GREGS with
4844 I386_NUM_GREGS.
4845
98df6387
MK
4846 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4847 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4848 usage of NUM_GREGS with I386_NUM_GREGS.
4849
099a9414
MK
4850 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4851
57976e88
MK
4852 * i386bsd-nat.c: Include "i386-tdep.h".
4853 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4854 I386_NUM_GREGS.
4855
b335f4a6
MK
4856 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4857 and associated comment. They no longer make any sense, since we
4858 don't use this file anymore on Linux.
4859
1cf88de5
MK
4860 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4861 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4862 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4863 elements in these arrays.
4864 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4865 MAX_NUM_REGS.
4866
daa66587
MK
48672002-06-15 Mark Kettenis <kettenis@gnu.org>
4868
4869 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4870 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4871
26e9b323
AC
48722002-06-14 Andrew Cagney <cagney@redhat.com>
4873
4874 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4875 EXTRACT_RETURN_VALUE.
4876 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4877 EXTRACT_STRUCT_VALUE_ADDRESS.
4878 * gdbarch.h, gdbarch.c: Regenerate.
4879
4880 * values.c (value_being_returned): Handle
4881 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4882 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4883
4884 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4885 * arm-tdep.c (arm_gdbarch_init): Update.
4886 * avr-tdep.c (avr_gdbarch_init): Update.
4887 * cris-tdep.c (cris_gdbarch_init): Update.
4888 * d10v-tdep.c (d10v_gdbarch_init): Update.
4889 * ia64-tdep.c (ia64_gdbarch_init): Update.
4890 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4891 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4892 * s390-tdep.c (s390_gdbarch_init): Update.
4893 * sh-tdep.c (sh_gdbarch_init): Update.
4894 * s390-tdep.c (s390_gdbarch_init): Update.
4895 * sparc-tdep.c (sparc_gdbarch_init): Update.
4896 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4897 * v850-tdep.c (v850_gdbarch_init): Update.
4898 * vax-tdep.c (vax_gdbarch_init): Update.
4899 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4901
4902 * config/arc/tm-arc.h: Update.
4903 * config/d30v/tm-d30v.h: Update.
4904 * config/fr30/tm-fr30.h: Update.
4905 * config/h8300/tm-h8300.h: Update.
4906 * config/h8500/tm-h8500.h: Update.
4907 * config/i386/tm-i386.h: Update.
4908 * config/i386/tm-ptx.h: Update.
4909 * config/i386/tm-symmetry.h: Update.
4910 * config/i960/tm-i960.h: Update.
4911 * config/m32r/tm-m32r.h: Update.
4912 * config/m68k/tm-delta68.h: Update.
4913 * config/m68k/tm-linux.h: Update.
4914 * config/m68k/tm-m68k.h: Update.
4915 * config/m88k/tm-m88k.h: Update.
4916 * config/mcore/tm-mcore.h: Update.
4917 * config/mips/tm-mips.h: Update.
4918 * config/mn10200/tm-mn10200.h: Update.
4919 * config/pa/tm-hppa.h: Update.
4920 * config/pa/tm-hppa64.h: Update.
4921 * config/sparc/tm-sp64.h: Update.
4922 * config/sparc/tm-sparc.h: Update.
4923 * config/sparc/tm-sparclet.h: Update.
4924 * config/z8k/tm-z8k.h: Update.
4925
5179e78f
AC
49262002-06-14 Andrew Cagney <cagney@redhat.com>
4927
4928 * Makefile.in (i386_linux_tdep_h): Define.
4929 (i386_tdep_h, i387_tdep_h): Define.
4930 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4931 $(i386_tdep_h) and $(i387_tdep_h).
4932 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4933
8201327c
MK
49342002-06-14 Mark Kettenis <kettenis@gnu.org>
4935
edf393ac
MK
4936 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4937 Already covered by the default.
4938
896fb97d
MK
4939 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4940 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4941 (i386_gdbarch_init): Initialize long_double_format and long_double
4942 bit.
4943
8201327c
MK
4944 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4945 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4946 Move these to ...
4947 * config/i386/i386sol2.mh: ... here.
4948 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4949 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4950 (SIGCONTEXT_PC_OFFSET): Remove define.
4951 (IN_SIGTRAMP): Remove define.
4952 * i386-sol2-tdep.c: New file.
4953
4954 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4955 * config/i386/tm-i386nw.h: Removed.
4956
4957 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4958 USE_STRUCT_CONVENTION): Remove defines.
4959 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4960 (get_longjmp_target): Remove prototype.
4961 (IN_SIGTRAMP): Remove define.
4962 (i386bsd_in_sigtramp): Remove prototype.
4963 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4964 function. Update comment accordingly
4965 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4966 (FRAME_SAVED_PC): Remove define.
4967 (i386bsd_frame_saved_pc): Remove prototype.
4968 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4969 GET_LONGJMP_TARGET): Remove defines.
4970 (get_longjmp_target): Remove prototype.
4971 (IN_SIGTRAMP): Remove define.
4972 (i386bsd_in_sigtramp): Remove prototype.
4973 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4974 function. Update comment accordingly
4975 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4976 (FRAME_SAVED_PC): Remove define.
4977 (i386bsd_frame_saved_pc): Remove prototype.
4978 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4979 Remove prototype.
4980 (USE_STRUCT_CONVENTION): Remove prototype.
4981 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4982 declaration.
4983 (_initialize_i386bsd_nat): Revise logic to determine some
4984 constants at compile time when compiling a native GDB. Warn if
4985 things don't match up with what we expect.
4986 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4987 Remove variables.
4988 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4989 to use date stored in `struct gdbarch_tdep'.
4990 (i386bsd_sigcontext_offset): Remove varaible.
4991 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4992 stored in `struct gdbarch_tdep'.
4993 (i386bsd_frame_saved_pc): Make static.
4994 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4995 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4996 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4997 i386fbsd4_sc_pc_offset): New variables.
4998 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4999 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5000 functions.
5001 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5002 functions.
5003 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5004 Modify the value of i386fbsd_sigtramp_start and
5005 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5006 i386fbsd_sigtramp_end.
5007 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5008 function.
5009
5010 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5011 define to i386-linux-tdep.h.
5012 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5013 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5014 defines.
5015 (i386_linux_register_name, i386_linux_register_byte,
5016 i386_linux_register_raw_size): Remove prototypes.
5017 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5018 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5019 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5020 TARGET_WRITE_PC): Remove defines.
5021 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5022 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5023 i386_linux_write_pc): Remove prototypes.
5024 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5025 (get_longjmp_target): Remove prototype.
5026 * i386-linux-tdep.h: New file.
5027 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5028 * i386-linux-tdep.c: Include "i386-tdep.h" and
5029 "i386-linux-tdep.h".
5030 (i386_linux_register_name, i386_linux_register_byte,
5031 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5032 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5033 Make static.
5034 (i386_linux_init_abi): New function.
5035 (_initialize_i386_linux_tdep): New function.
5036
5037 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5038 (i386_saved_pc_after_call): Remove prototype.
5039 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5040 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5041 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5042 (i386_register_name, i386_stab_reg_to_regnum,
5043 i386_dwarf_reg_to_regnum): Remove prototypes.
5044 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5045 SIZEOF_SSE_REGS): Remove defines.
5046 (REGISTER_BYTES): Remove define.
5047 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5048 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5049 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5050 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5051 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5052 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5053 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5054 (get_longjmp_target): Remove prototype.
5055 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5056 (sigtramp_saved_pc): Remove define.
5057 (i386v4_sigtramp_saved_pc): Remove prototype.
5058 * config/i386/tm-go32.h (FRAME_CHAIN,
5059 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5060 (i386go32_frame_saved_pc): Remove prototype.
5061 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5062 (get_longjmp_target): Remove prototype.
5063 * i386-tdep.h: Include "osabi.h".
5064 (enum i386_abi): Removed.
5065 (enum struct_return): New enum.
5066 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5067 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5068 sc_pc_offset members.
5069 (i386_gdbarch_register_os_abi): Remove prototype.
5070 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5071 I386_SSE_NUM_REGS): New defines.
5072 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5073 I386_SSE_SIZEOF_REGS): New defines.
5074 (i386_register_name, i386_register_byte, i386_register_raw_size):
5075 New prototypes.
5076 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5077 (i386bsd_sigtramp_saved_pc): New prototype.
5078 * i386-tdep.c: Don't include "elf-bfd.h".
5079 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5080 i386_frame_chain, i386_saved_pc_after_call): Make static.
5081 (i386_frame_saved_pc): Rewrite to call architecture dependent
5082 function to deal with signal handlers. Make static.
5083 (i386go32_frame_saved_pc): Removed.
5084 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5085 Removed.
5086 (i386_get_longjmp_target): New function.
5087 (default_struct_convention, pcc_struct_convention,
5088 reg_struct_convention, valid_conventions, struct_convention): New
5089 variables.
5090 (i386_use_struct_convention): New function.
5091 (i386v4_sigtramp_saved_pc): Renamed to
5092 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5093 (i386_pc_in_sigtramp): New function.
5094 (i386_abi_names): Removed.
5095 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5096 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5097 Removed.
5098 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5099 i386_gdbarch_register_os_abi): Removed.
5100 (struct i386_abi_handler): Removed.
5101 (i386_abi_handler_list): Removed.
5102 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5103 functions.
5104 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5105 i386_nw_init_abi): New functions.
5106 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5107 Use set_gdbarch_xxx() calls instead of relying on macros for a
5108 number of calls.
5109 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5110 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5111 Register the various architecture variants defined in this file.
5112
ad2f7632
DJ
51132002-06-14 Daniel Jacobowitz <drow@mvista.com>
5114
5115 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5116 (struct main_type): Remove arg_types member. Update comments for
5117 struct field.
5118 (TYPE_ARG_TYPES): Remove.
5119 (TYPE_FN_FIELD_ARGS): Update.
5120 (smash_to_method_type): Update prototype.
5121
5122 * c-typeprint.c (cp_type_print_method_args): Take method type
5123 instead of argument list. Use new argument layout. Simplify.
5124 (c_type_print_args): Use new argument layout. Simplify.
5125 (c_type_print_base): Update call to cp_type_print_method_args.
5126 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5127 argument; use die->type instead. Update call to
5128 smash_to_method_type.
5129 (read_structure_scope): Update call to dwarf2_add_member_fn.
5130 * gdbtypes.c (allocate_stub_method): Update comment.
5131 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5132 Use new argument layout.
5133 (check_stub_method): Use new argument layout. Don't count
5134 void as an argument.
5135 (print_arg_types): Update comments. Use new argument layout.
5136 (recursive_dump_type): Don't print arg_types member.
5137 * hpread.c (hpread_read_struct_type): Use new argument layout.
5138 (fixup_class_method_type): Likewise.
5139 (hpread_type_lookup): Likewise.
5140 * stabsread.c (read_type): Update calls to read_args and
5141 smash_to_method_type.
5142 (read_args): Use new argument layout. Simplify.
5143 * valops.c (typecmp): Use new argument layout. Update parameters
5144 and comments. Simplify.
5145 (hand_function_call): Use new argument layout.
5146 (search_struct_method): Update call to typecmp.
5147 (find_overload_match): Use new argument layout.
5148
6da02953
DJ
51492002-06-13 Daniel Jacobowitz <drow@mvista.com>
5150
5151 * NEWS: Mention multithreaded debug support for gdbserver.
5152
519b2366
DJ
51532002-06-13 Daniel Jacobowitz <drow@mvista.com>
5154
5155 * MAINTAINERS: Mention NEWS.
5156
6c0d6680
DJ
51572002-06-13 Daniel Jacobowitz <drow@mvista.com>
5158
5159 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5160 (struct mips_objfile_private, compare_pdr_entries): New.
5161 (non_heuristic_proc_desc): Read the ".pdr" section if it
5162 is present.
5163
6529d2dd
AC
51642002-06-12 Andrew Cagney <ac131313@redhat.com>
5165
5166 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5167 (arm_debug): New static variable.
5168 (_initialize_arm_tdep): Add ``set debug arm'' command.
5169
26216b98
AC
51702002-06-12 Andrew Cagney <ac131313@redhat.com>
5171
5172 * Makefile.in (sim_arm_h): Define.
5173 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5174 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5175 (arm_register_sim_regno): New function, map an internal REGNUM
5176 onto a simulator register number.
5177 (arm_gdbarch_init): Set register_sim_regno.
5178
814b3ba0
AH
51792002-06-09 Aldy Hernandez <aldyh@redhat.com>
5180
5181 * MAINTAINERS: Add self.
5182
475b0867
JB
51832002-06-11 Jim Blandy <jimb@redhat.com>
5184
919d772c
JB
5185 * source.c (source_info): Mention whether the symtab has
5186 information about preprocessor macros.
5187
475b0867
JB
5188 Call the command `info macro', not `show macro'.
5189 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5190 Fix error message.
5191 (_initialize_macrocmd): Register `info_macro_command' in
5192 `infolist', not `showlist'.
5193
9e364162
DJ
51942002-06-11 Daniel Jacobowitz <drow@mvista.com>
5195
5196 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5197 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5198 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5199 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5200 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5201 unconditionally.
5202 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5203 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5204 (_initialize_mips_tdep): Remove dead code.
5205 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5206 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5207 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5208 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5209 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5210 MIPS_LAST_FP_ARG_REGNUM): Remove.
5211
23aa4c72
ML
52122002-06-11 Michal Ludvig <mludvig@suse.cz>
5213
5214 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5215 (unwind_tmp_obstack_free, parse_frame_info)
5216 (update_context, cfi_read_fp, cfi_write_fp)
5217 (cfi_frame_chain, cfi_init_extra_frame_info)
5218 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5219 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5220
70eb15a4
CV
52212002-06-11 Corinna Vinschen <vinschen@redhat.com>
5222
5223 * v850-tdep.c (v850_type_is_scalar): New function.
5224 (v850_use_struct_convention): Match current gcc implementation
5225 as close as possible.
5226 (v850_push_arguments): Fix stack_offset handling. Don't write
5227 struct_addr into register. This is done by v850_store_struct_return.
5228 (v850_extract_return_value): Care for structs.
5229 (v850_store_return_value): Ditto.
5230 (v850_store_struct_return): Actually write address.
5231
482a4d06
ML
52322002-06-11 Michal Ludvig <mludvig@suse.cz>
5233
5234 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5235 without debug information too.
5236
d855c300
AC
52372002-06-10 Andrew Cagney <ac131313@redhat.com>
5238
5239 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5240 Make multi-arch pure.
5241 * gdbarch.h, gdbarch.c: Re-generate.
5242 * arm-tdep.c (arm_print_float_info): Update.
5243 * arch-utils.h (default_print_float_info): Update.
5244 * arch-utils.c (default_print_float_info): Update.
5245 * infcmd.c (float_info): Update call.
5246
dd12a101
AC
52472002-06-10 Andrew Cagney <ac131313@redhat.com>
5248
5249 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5250 the front of the initialize list.
5251
101dcfbe
AC
52522002-06-10 Andrew Cagney <ac131313@redhat.com>
5253
5254 * infrun.c (struct inferior_status): Replace fields
5255 selected_frame_address and selected_level with field
5256 selected_frame_id.
5257 (save_inferior_status): Update. Use get_frame_id.
5258 (struct restore_selected_frame_args): Delete.
5259 (restore_selected_frame): Update. Use frame_find_by_id.
5260 (restore_inferior_status): Update.
5261
5262 * breakpoint.h (struct breakpoint): Change type of
5263 watchpoint_frame to frame_id.
5264 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5265 call to get_current_frame.
5266 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5267 get_current_frame.
5268 (watchpoint_check): Use frame_find_by_id.
5269
5270 * frame.h (record_selected_frame): Delete declaration.
5271 * stack.c (record_selected_frame): Delete function.
5272
5273 * frame.h (struct frame_id): Define.
5274 (get_frame_id): Declare.
5275 (frame_find_by_id): Declare.
5276 * frame.c (frame_find_by_id): New function.
5277 (get_frame_id): New function.
5278
304270b6
AV
52792002-06-10 Andrey Volkov <avolkov@transas.com>
5280
5281 * ser-e7kpc.c: Fix duplicated define and call of
5282 _initialize_ser_e7000pc
5283
2f2cf184
DJ
52842002-06-09 Daniel Jacobowitz <drow@mvista.com>
5285
5286 * signals/signals.c (target_signal_from_host): Fix #ifdef
5287 SIGRTMIN case.
5288 (do_target_signal_to_host): Likewise.
5289
caaa3122
DJ
52902002-06-09 Daniel Jacobowitz <drow@mvista.com>
5291
5292 * mips-tdep.c (mips_find_abi_section): New function.
5293 (mips_gdbarch_init): Call it.
5294
6ac5df3a
MK
52952002-06-09 Mark Kettenis <kettenis@gnu.org>
5296
5297 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5298 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5299 after Andrew's 2002-06-08 gdbarch change.
5300
82ea117a
MK
53012002-06-09 Mark Kettenis <kettenis@gnu.org>
5302
5303 * i386-linux-nat.c (suppy_gregset): Don't supply
5304 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5305 register cache.
5306 (fill_gregset): Don't fetch it under the same circumstances.
5307
3c25f8c7
AC
53082002-06-09 Andrew Cagney <cagney@redhat.com>
5309
5310 * Makefile.in (callback_h): Define.
5311 (remote_sim_h): Update path to remote-sim.h.
5312 (remote-rdp.o): Add $(callback_h).
5313 (remote-sim.o): Use $(callback_h).
5314 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5315 * remote-rdp.c: Include "gdb/callback.h".
5316
1029b7fa
MK
53172002-06-09 Mark Kettenis <kettenis@gnu.org>
5318
5319 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5320 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5321
616675d3
AC
53222002-06-08 Andrew Cagney <ac131313@redhat.com>
5323
a3efda28
AC
5324 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5325 * rdi-share/serpardr.c: Ditto.
5326 * rdi-share/unixcomm.c: Ditto.
5327 * rdi-share/serdrv.c: Ditto.
5328 * rdi-share/hostchan.h: Ditto.
5329 * rdi-share/hostchan.c: Ditto.
5330 * rdi-share/host.h: Ditto.
5331 * rdi-share/devsw.c: Ditto.
5332
c5f10366
AC
5333 * objfiles.h: Change type of obj_private to void pointer.
5334 * pa64solib.c: Update copyright. Don't include "assert.h", use
5335 strcmp instead of STREQ, use LONGEST, do not use PTR
5336 * somsolib.c: Ditto.
5337
616675d3
AC
5338 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5339 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5340 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5341
e4b415d9
AC
53422002-06-08 Andrew Cagney <ac131313@redhat.com>
5343
5344 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5345 (default_get_saved_register): Delete function.
5346 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5347 generic_unwind_get_saved_register.
5348 * gdbarch.h, gdbarch.c: Re-generate.
5349
ca0d0b52
AC
53502002-06-08 Andrew Cagney <ac131313@redhat.com>
5351
5352 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5353 generic_func_frame_chain_valid.
5354 * gdbarch.h, gdbarch.c: Re-generate.
5355 * blockframe.c (generic_func_frame_chain_valid): Only check
5356 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5357 passing FP to PC_IN_CALL_DUMMY.
5358 Fix PR gdb/360.
5359
76860b5f
AC
53602002-06-08 Andrew Cagney <ac131313@redhat.com>
5361
5362 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5363 (register_gdbarch_data): Initialize init_p.
5364 (gdbarch_data): Initialize data pointer using the init function.
5365 (init_gdbarch_data): Delete function.
5366 (gdbarch_update_p): Update.
5367 (initialize_non_multiarch): Update.
5368 (struct gdbarch): Add field initialized_p.
5369 * gdbarch.h, gdbarch.c: Re-generate.
5370
8dda9770
ML
53712002-06-07 Michal Ludvig <mludvig@suse.cz>
5372
5373 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5374 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5375 better do the things actually here.
5376 * x86-64-tdep.c (x86_64_register_name2nr): New.
5377 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5378 (x86_64_gdbarch_init): Respect the above change.
5379 * x86-64-tdep.h (x86_64_register_name2nr)
5380 (x86_64_register_nr2name): Add prototypes.
5381 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5382
3d79a47c
MS
53832002-06-06 Michael Snyder <msnyder@redhat.com>
5384
7bd91a28
MS
5385 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5386 Delete extra braces and re-indent.
5387 (d10v_store_return_value): Char return values
3d79a47c
MS
5388 must be shifted over by one byte in R0.
5389 (d10v_extract_return_value): Delete extra braces, re-indent.
5390
095a4c96
EZ
53912002-06-06 Elena Zannoni <ezannoni@redhat.com>
5392
5393 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5394 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5395 (d10v_integer_to_address): Rewrite.
5396 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5397 the d10v specific functions which take care of converting to the
5398 correct space.
5399
e8a77ca4
EZ
54002002-06-06 Elena Zannoni <ezannoni@redhat.com>
5401
5402 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5403 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5404
4f2e4a4f
AC
54052002-06-02 Andrew Cagney <ac131313@redhat.com>
5406
5407 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5408 includes.
5409 * config/tm-linux.h: Ditto.
5410 * config/alpha/tm-alphalinux.h: Ditto.
5411 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5412 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5413 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5414 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5415 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5416 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5417 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5418 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5419 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5420 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5421 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5422 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5423 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5424 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5425 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5426 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5427 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5428 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5429 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5430 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5431 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5432 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5433 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5434 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5435 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5436 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5437 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5438 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5439 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5440 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5441 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5442 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5443 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5444 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5445 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5446 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5447 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5448
ae2ab2ce
AS
54492002-05-04 Aidan Skinner <aidan@velvet.net>
5450
5451 * ada-exp.tab.c: New file
5452 * ada-exp.y: New file
5453 * ada-lang.c: New file
5454 * ada-lang.h: New file
5455 * ada-lex.c: New file
5456 * ada-lex.l: New file
5457 * ada-tasks.c: New file
5458 * ada-typeprint.c: New file
5459 * ada-valprint.c: New file
5460
0ddd0135
JT
54612002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5462
5463 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5464 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5465
750fbacc
JT
54662002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5467
5468 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5469 insetead of ppc-linux-tdep.o.
5470 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5471 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5472
df94e18a
AC
54732002-06-02 Andrew Cagney <ac131313@redhat.com>
5474
5475 2002-05-07 Christian Groessler <chris@groessler.org>
5476 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5477 bit register contents for little endian hosts.
5478
1a38ab75
AC
54792002-06-01 Andrew Cagney <ac131313@redhat.com>
5480
5481 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5482 any maintainer.
5483
8b1632ac
AC
54842002-06-01 Andrew Cagney <ac131313@redhat.com>
5485
5486 * gdbarch.h: Regenerate.
5487
627054c8
AC
54882002-06-01 Andrew Cagney <ac131313@redhat.com>
5489
5490 * MAINTAINERS: Add everyone to write-after-approval list.
5491
4f460812
AC
54922002-06-01 Andrew Cagney <ac131313@redhat.com>
5493
5494 * stack.c (frame_info): Use frame_register_unwind instead of
5495 saved_regs. Mention when the SP is on the stack or in a register.
5496
5497 * frame.h (frame_register_unwind_ftype): Define. Document.
5498 (struct frame_info): Add field register_unwind and
5499 register_unwind_cache.
5500 (frame_register_unwind): Declare.
5501 (generic_unwind_get_saved_register): Declare.
5502
5503 * frame.c (frame_register_unwind): New function.
5504 (generic_unwind_get_saved_register): New function.
5505
5506 * blockframe.c (generic_call_dummy_register_unwind): New function.
5507 (frame_saved_regs_register_unwind): New function.
5508 (set_unwind_by_pc): New function.
5509 (create_new_frame): New function.
5510 (get_prev_frame): New function.
5511
de888f76
AC
55122002-05-30 Andrew Cagney <ac131313@redhat.com>
5513
5514 * a29k-share/: Delete directory.
5515 * remote-vx29k.c: Delete file.
5516
2f2c3626
JT
55172002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5518
5519 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5520 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5521
9ce5c36a
JT
55222002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5523
5524 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5525 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5526 (sparc64nbsd-nat.o)
5527 (sparcnbsd-nat.o)
5528 (sparcnbsd-tdep.o): New dependency lists.
5529 * NEWS: Note new UltraSPARC NetBSD native configuration.
5530 * configure.host (sparc64-*-netbsd*): New host.
5531 * configure.tgt (sparc-*-netbsdelf*)
5532 (sparc-*-netbsd*): Set gdb_target to nbsd.
5533 (sparc64-*-netbsd*): New target.
5534 * sparc64nbsd-nat.c: New file.
5535 * sparcnbsd-nat.c: New file.
5536 * sparcnbsd-tdep.c: New file.
5537 * sparcnbsd-tdep.h: New file.
5538 * config/sparc/nbsd.mt: New file.
5539 * config/sparc/nbsd64.mh: New file.
5540 * config/sparc/nbsd64.mt: New file.
5541 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5542 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5543 (HOST_IPC): Remove.
5544 * config/sparc/nbsdaout.mt: Remove.
5545 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5546 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5547 (HOST_IPC): Remove.
5548 * config/sparc/nbsdelf.mt: Remove.
5549 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5550 sparc-nat.c compatiblity defines.
5551 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5552 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5553 * config/sparc/tm-nbsd64.h: New file.
5554 * config/sparc/tm-nbsdaout.h: Remove.
5555 * config/sparc/xm-nbsd.h: Remove.
5556
ef3cf062
JT
55572002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5558
5559 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5560 * sparc-tdep.c: Include osabi.h.
5561 (gdbarch_tdep): Add osabi member.
5562 (_initialize_sparc_tdep): Use gdbarch_register.
5563 (sparc_gdbarch_init): Use generic OS ABI framework.
5564 (sparc_dump_tdep): New function.
5565
ee8ff470
KB
55662002-05-30 Kevin Buettner <kevinb@redhat.com>
5567
5568 * corefile.c (do_captured_read_memory_integer): Return non-zero
5569 result.
5570 (safe_read_memory_integer): Copy result of memory read when
5571 status is non-zero. Also, add comments.
5572
7b112f9c
JT
55732002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5574
5575 * Makefile.in (ppc_tdep_h): Define.
5576 (ppc-linux-nat.o)
5577 (ppc-linux-tdep.o)
5578 (rs6000-tdep.o): Use $(ppc_tdep_h).
5579 (ppc-sysv-tdep.o)
5580 (ppcnbsd-nat.o)
5581 (ppcnbsd-tdep.o): New dependency lists.
5582 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5583 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5584 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5585 (ppc_sysv_abi_broken_use_struct_convention)
5586 (ppc_sysv_abi_use_struct_convention)
5587 (ppc_sysv_abi_push_arguments): Move to...
5588 * ppc-sysv-tdep.c: ...here.
5589 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5590 * rs6000-tdep.c (process_note_abi_tag_sections)
5591 (get_elfosabi): Remove.
5592 (rs6000_gdbarch_init): Use generic OS ABI framework.
5593 (rs6000_dump_tdep): New function.
5594 (_initialize_rs6000_tdep): Use gdbarch_register.
5595 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5596 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5597 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5598 of ppc-linux-tdep.o.
5599 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5600 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5601 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5602 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5603 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5604 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5605
480dd42a
JB
56062002-05-29 Jim Blandy <jimb@redhat.com>
5607
5608 * macroscope.c (default_macro_scope): Put `void' in empty argument
5609 list.
5610
4182591f
AC
56112002-05-29 Andrew Cagney <ac131313@redhat.com>
5612
5613 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5614 * arch-utils.c: Include "sim-regno.h".
5615 * gdbarch.sh: Don't include "sim-regno.h".
5616 * gdbarch.h, gdbarch.c: Regenerate.
5617 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5618 here.
5619 * arch-utils.h (legacy_register_sim_regno): To here.
5620 * remote-sim.c (legacy_register_sim_regno): Move function from
5621 here.
5622 * arch-utils.c (legacy_register_sim_regno): To here.
5623
8238d0bf
AC
56242002-05-28 Andrew Cagney <ac131313@redhat.com>
5625
5626 * sim-regno.h: New file.
5627 * Makefile.in (sim_regno_h): Define.
5628 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5629 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5630 (legacy_register_sim_regno): New function.
5631 (one2one_register_sim_regno): New function.
5632 (gdbsim_fetch_register): Rewrite.
5633 (gdbsim_store_register): Only store a register when
5634 REGISTER_SIM_REGNO is valid.
5635 * d10v-tdep.c: Include "sim-regno.h".
5636 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5637 (d10v_ts3_register_sim_regno): Ditto.
5638 * gdbarch.sh: Include "sim-regno.h".
5639 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5640 * gdbarch.h, gdbarch.c: Regenerate.
5641 * arch-utils.h (default_register_sim_regno): Delete declaration.
5642 * arch-utils.c (default_register_sim_regno): Delete function.
5643
485721b1
JT
56442002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5645
5646 * ppcnbsd-nat.c: Rewrite.
5647 * ppcnbsd-tdep.c: New file.
5648 * ppcnbsd-tdep.h: New file.
5649 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5650 solib.o, and solib-svr4.o.
5651 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5652 nbsd-tdep.o, and corelow.o.
5653
697f244d
AC
56542002-05-28 Andrew Cagney <ac131313@redhat.com>
5655
5656 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5657 `tr' and `sed'. Mention that `broken' targets are not expected to
5658 build.
5659
f08caad1 56602002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5661
5662 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5663 Let PC point right after the prologue before looking up symbols.
5664
3139facc
MH
56652002-05-27 Martin M. Hunt <hunt@redhat.com>
5666
5667 * i386-tdep.c (i386_register_virtual_type): Return
5668 builtin_type_vec128i for SSE registers.
5669
5670 * gdbtypes.h (builtin_type_vec128i): Declare.
5671
5672 * gdbtypes.c (build_builtin_type_vec128i): New function.
5673 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5674 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5675 (build_gdbtypes): Initialize new builtin vector types.
5676 (_initialize_gdbtypes): Register new vector types with gdbarch.
5677
6e3ba3b8
JT
56782002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5679
5680 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5681 since it has been multi-arch'd.
5682 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5683 Move Alpha and VAX multi-arch news entries to same section
5684 as other multi-arch news.
5685
93d5585d
JT
56862002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5687
5688 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5689 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5690 static. Rename some register numbers to put them in ns32k-tdep
5691 private namespace.
5692 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5693 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5694 functions.
5695 (_initialize_ns32k_tdep): Use gdbarch_register.
5696 * ns32k-tdep.h: New file.
5697 * ns32knbsd-tdep.c: New file.
5698 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5699 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5700 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5701 REGISTER_BYTES, REGISTER_BYTE): Remove.
5702 * config/ns32k/tm-ns32k.h: New file.
5703 * config/ns32k/tm-umax.h: Remove.
5704
efb2c70e
JT
57052002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5706
5707 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5708 ns32k_store_struct_return, ns32k_extract_return_value,
5709 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5710 functions.
5711 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5712 ns32k_saved_pc_after_call.
5713 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5714 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5715 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5716 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5717 ns32k_extract_struct_value_address.
5718
7bcc927b
JT
57192002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5720
5721 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5722 ns32k_fix_call_dummy): New.
5723 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5724 ns32k_call_dummy_words.
5725 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5726 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5727 CALL_DUMMY_NARGS): Remove.
5728 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5729
78f9d765
JT
57302002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5731
5732 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5733 ns32k_frame_saved_pc, ns32k_frame_args_address,
5734 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5735 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5736 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5737 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5738 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5739 (BREAKPOINT): Remove..
5740 (FRAME_CHAIN): Define as ns32k_frame_chain.
5741 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5742 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5743 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5744 (FRAME_FIND_SAVED_REGS): Remove.
5745 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5746 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5747 (POP_FRAME): Define as ns32k_pop_frame.
5748
f2c762e0
JT
57492002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5750
5751 * ns32k-tdep.c (ns32k_register_byte_32082,
5752 ns32k_register_byte_32382, ns32k_register_raw_size,
5753 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5754 functions.
5755 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5756 ns32k_register_byte_32382.
5757 * config/ns32k/tm-umax.h: Update copyright years.
5758 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5759 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5760 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5761 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5762 (ns32k_get_enter_addr): Fix prototype.
5763
af137673
JT
57642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5765
5766 * ns32k-tdep.c: Update copyright years.
5767 (ns32k_register_name_32082): New function.
5768 (ns32k_register_name_32382): Ditto.
5769 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5770 (REGISTER_NAME): Define as ns32k_register_name_32382.
5771 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5772 (REGISTER_NAME): Define as ns32k_register_name_32082.
5773
a8bc7b56
JB
57742002-05-24 Jim Blandy <jimb@redhat.com>
5775
5776 * dwarf2read.c (free_line_header): Use xfree, not free.
5777
83a45910
JT
57782002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5779
5780 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5781 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5782
0db71247
AC
57832002-05-23 Andrew Cagney <ac131313@redhat.com>
5784
5785 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5786
b9e5e4dd
AC
57872002-05-23 Andrew Cagney <ac131313@redhat.com>
5788
5789 From Ross Alexander at NEC Europe:
5790 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5791
de530e84
MS
57922002-05-23 Michael Snyder <msnyder@redhat.com>
5793
5794 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5795 for input, rather than parse_and_eval_address.
5796
b91b96f4
AC
57972002-05-23 Andrew Cagney <ac131313@redhat.com>
5798
5799 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5800 * Makefile.in (sim_d10v_h): Update definition.
5801
8b279e7a
AC
58022002-05-24 Andrew Cagney <cagney@redhat.com>
5803
5804 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5805 change `2002-05-22 Michael Snyder' below.
5806 (d10v_push_arguments): Ditto.
5807 (d10v_extract_return_value): Ditto.
5808
0a3d0425
JB
58092002-05-23 Jim Blandy <jimb@redhat.com>
5810
5811 * macrotab.c (check_for_redefinition): Don't complain if the new
5812 definition is the same as the previous one. Take more arguments
5813 to allow the comparison.
5814 (macro_define_object, macro_define_function): Pass more arguments
5815 to check_for_redefinition.
5816
78eac43e
MS
58172002-05-22 Michael Snyder <msnyder@redhat.com>
5818
5819 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5820 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5821 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5822 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5823 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5824 Add a temp variable to save a call (and a memory read).
5825 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5826 if possible (so that PC_IN_CALL_DUMMY will work).
5827
9bc1edb8
CV
58282002-05-22 Corinna Vinschen <vinschen@redhat.com>
5829
5830 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5831
005ef3d2
ML
58322002-05-22 Michal Ludvig <mludvig@suse.cz>
5833
5834 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5835 fde->cie_ptr.
5836 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5837 (dwarf2_build_frame_info): Add offset to fde->initial_location
5838 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5839 (execute_stack_op): Change type of 'result' from ULONGEST to
5840 CORE_ADDR.
005ef3d2 5841
fcf4f891
JT
58422002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5843
5844 * config/alpha/tm-nbsd.h: Include solib.h.
5845
cfef91e4
JT
58462002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5847
5848 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5849 assumptions about the host's byte order.
5850
9964235a
JT
58512002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5852
5853 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5854 to dependency list.
5855 * alphanbsd-tdep.c: Include solib-svr4.h.
5856 * shnbsd-tdep.c: Ditto.
5857
9eeef8ef
JT
58582002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5859
5860 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5861 nbsd-tdep.h to dependency list.
5862 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5863 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5864 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5865 nbsdaout.mh and nbsdelf.mh consistently.
5866 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5867 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5868 nbsdaout.mt and nbsdelf.mh consistently.
5869 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5870 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5871 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5872 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5873 a.out shared library stuff from here...
5874 * config/nm-nbsdaout.h: ...to here.
5875 * config/tm-nbsd.h: Remove.
5876 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5877 * config/arm/nbsd.mh: Remove.
5878 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5879 nbsd-tdep.o.
5880 * config/arm/nbsdaout.mh: New file.
5881 * config/arm/nbsdelf.mh: New file.
5882 * config/arm/nm-nbsdaout.h: New file.
5883 * config/i386/nbsd.mh: Remove.
5884 * config/i386/nbsd.mt: Remove.
5885 * config/i386/nbsdaout.mh: New file.
5886 * config/i386/nbsdaout.mt: New file.
5887 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5888 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5889 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5890 i386_register_u_addr): Remove.
5891 * config/i386/nm-nbsdaout.h: New file.
5892 * config/i386/nm-nbsdelf.h: Remove.
5893 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5894 (USE_STRUCT_CONVENTION): Remove.
5895 * config/i386/tm-nbsdaout.h: New file.
5896 * config/i386/tm-nbsdelf.h: Remove.
5897 * config/m68k/nbsd.mh: Remove.
5898 * config/m68k/nbsd.mt: Remove.
5899 * config/m68k/nbsdaout.mh: New file.
5900 * config/m68k/nbsdaout.mt: New file.
5901 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5902 * config/m68k/nm-nbsdaout.h: New file.
5903 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5904 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5905 * config/ns32k/nbsd.mh: Remove.
5906 * config/ns32k/nbsd.mt: Remove.
5907 * config/ns32k/nbsdaout.mh: New file.
5908 * config/ns32k/nbsdaout.mt: New file.
5909 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5910 * config/ns32k/nm-nbsdaout.h: New file.
5911 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5912 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5913 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5914 (SVR4_SHARED_LIBS): Remove.
5915 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5916 * config/sparc/nbsd.mh: Remove.
5917 * config/sparc/nbsd.mt: Remove.
5918 * config/sparc/nbsdaout.mh: New file.
5919 * config/sparc/nbsdaout.mt: New file.
5920 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5921 * config/sparc/nbsdelf.mt: New file.
5922 * config/sparc/nm-nbsdaout.h: New file.
5923 * config/sparc/nm-nbsdelf.h: Remove.
5924 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5925 * config/sparc/tm-nbsdaout.h: New file.
5926
257ce470
JT
59272002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5928
5929 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5930 mipsnbsd-tdep.c
5931 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5932
76a6d5fe
JT
59332002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5934
5935 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5936 shnbsd-nat.c.
5937 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5938
45888261
JT
59392002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5940
5941 * NEWS: Note new MIPS NetBSD native configuration.
5942 * configure.host (mips*-*-netbsd*): New host.
5943 * configure.tgt (mips*-*-netbsd*): New target.
5944 * mipsnbsd-nat.c: New file.
5945 * mipsnbsd-tdep.c: New file.
5946 * mipsnbsd-tdep.h: New file.
5947 * config/mips/nbsd.mh: New file.
5948 * config/mips/nbsd.mt: New file.
5949 * config/mips/nm-nbsd.h: New file.
5950 * config/mips/tm-nbsd.h: New file.
5951
70f80edf
JT
59522002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5953
5954 * Makefile.in (SFILES): Add osabi.c.
5955 (COMMON_OBS): Add osabi.o.
5956 (osabi.o): New dependency list.
5957 * osabi.c: New file.
5958 * osabi.h: New file.
5959 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5960
5961 * Makefile.in (alpha_tdep_h): Define and use instead of
5962 alpha-tdep.h.
5963 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5964 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5965 Remove.
5966 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5967 * alpha-tdep.h: Include osabi.h.
5968 (alpha_abi): Remove.
5969 (gdbarch_tdep): Use generic OS ABI framework.
5970 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5971 gdbarch_register_osabi.
5972 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5973 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5974 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5975
5976 * Makefile.in (sh_tdep_h): Add osabi.h.
5977 * sh-tdep.h (sh_osabi): Remove.
5978 (gdbarch_tdep): Use generic OS ABI framework.
5979 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5980 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5981 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5982 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5983
5984 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5985 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5986 gdbarch_register_osabi.
5987 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5988 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5989 (get_elfosabi): Rename to...
5990 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5991 ABI framework support routines.
5992 (arm_gdbarch_init): Use generic OS ABI framework.
5993 (arm_dump_tdep): Likewise.
5994 (_initialize_arm_tdep): Likewise.
5995 * arm-tdep.h: Include osabi.h.
5996 (arm_abi): Remove.
5997 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5998 osabi member.
5999 (arm_gdbarch_register_os_abi): Remove prototype.
6000 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6001 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6002
6003 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6004 * mips-tdep.c: Include osabi.h.
6005 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6006 OS ABI framework.
6007
d194345b
KH
60082002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6009
6010 * h8300-tdep.c: Fix formatting.
6011
70c6b0d1
EZ
60122002-05-20 Elena Zannoni <ezannoni@redhat.com>
6013
6014 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6015 printing vector registers.
6016
165b8e33
AC
60172002-05-19 Andrew Cagney <ac131313@redhat.com>
6018
6019 From Fernando Nasser:
6020 * remote.c (remote_async_open_1): Re-throw the exception when the
6021 connection fails.
6022 (remote_cisco_open): Ditto.
6023 (remote_open_1): Ditto.
6024
36918e70
AC
60252002-05-19 Andrew Cagney <ac131313@redhat.com>
6026
6027 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6028 (remote_start_remote): Add uiout parameter. Pass through to
6029 remote_start_remote_dummy.
6030 (remote_open_1): Use catch_exception instead of catch_errors.
6031 (remote_async_open_1): Ditto.
6032 (remote_cisco_open): Ditto.
6033
ae44c0c4
AC
60342002-05-19 Andrew Cagney <ac131313@redhat.com>
6035
6036 * remote.c (remote_start_remote): Replace PTR with void pointer.
6037 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6038 static.
6039
8efe637d
AC
60402002-05-18 Andrew Cagney <ac131313@redhat.com>
6041
6042 * gdb_indent.sh: Allow the script to be run in the sim directory.
6043
2f1b5984
MK
60442002-05-18 Mark Kettenis <kettenis@gnu.org>
6045
f0f625e2
MK
6046 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6047 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6048
2f1b5984
MK
6049 * corelow.c (core_open): Only call set_gdbarch_from_file if
6050 exec_bfd is NULL.
6051
fc974602
AV
60522002-05-17 Andrey Volkov <avolkov@transas.com>
6053
6054 * h8300-tdep.c: Add support of EXR register
6055 * config/h8300/tm-h8300.h: Ditto.
6056
906709f4
AV
60572002-05-17 Andrey Volkov <avolkov@transas.com>
6058
6059 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6060
6e591d68
AV
60612002-05-17 Andrey Volkov <avolkov@transas.com>
6062
6063 * h8300-tdep.c: Change literal regnums to REGNO.
6064
84f0252a
JB
60652002-05-17 Jim Blandy <jimb@redhat.com>
6066
e0e9281e
JB
6067 * NEWS: Note addition of macro support.
6068
84f0252a
JB
6069 Expand preprocessor macros in C expressions.
6070 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6071 (scan_macro_expansion, scanning_macro_expansion,
6072 finished_macro_expansion): New function declarations.
6073 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6074 variable declarations.
6075 * parser-defs.h (expression_context_pc): New declaration.
6076 * parse.c (expression_context_pc): New variable.
6077 (parse_exp_1): Set expression_context_pc, as well as
6078 expression_context_block.
6079 * c-exp.y (yylex): If we're not already reading the result of a
6080 macro expansion, try to macro-expand the next token. When we're
6081 done scanning a macro expansion, switch back to the mainline text.
6082 Commas and `if's in a macro's expansion don't terminate the input.
6083 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6084 (macro_original_text, macro_expanded_text,
6085 expression_macro_lookup_func, expression_macro_lookup_baton): New
6086 variables.
6087 (scan_macro_expansion, scanning_macro_expansion,
6088 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6089 c_preprocess_and_parse): New functions.
6090 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6091 c_preprocess_and_parse, instead of c_parse.
6092 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6093 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6094
1c509ca8
JR
6095Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6096
6097 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6098 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6099 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6100
2250ee0c
CV
61012002-05-17 Corinna Vinschen <vinschen@redhat.com>
6102
6103 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6104
ab3b8126
JT
61052002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6106
6107 * Makefile.in (sh_tdep_h): Define and use.
6108 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6109 register enum): Move to...
6110 * * sh-tdep.h: ...here.
6111 * sh-tdep.c: Include sh-tdep.h.
6112 * sh3-rom.c: Likewise.
6113 * shnbsd-tdep.c: Likewise.
6114
ed9d4749
MS
61152002-05-16 Michael Snyder <msnyder@redhat.com>
6116
6117 * arm-tdep.c: Spelling fix in comment.
6118
2e276125
JB
61192002-05-16 Jim Blandy <jimb@redhat.com>
6120
6821892e
JB
6121 Add commands for manually expanding macros and showing their
6122 definitions.
6123 * macrocmd.c, macroscope.c, macroscope.h: New files.
6124 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6125 (macroscope_h): New variable.
6126 (HFILES_NO_SRCDIR): Add macroscope.h.
6127 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6128 (macroscope.o, macrocmd.o): New rules.
6129
2e276125
JB
6130 Teach the Dwarf 2 reader to read macro information.
6131 * dwarf2read.c: #include "macrotab.h".
6132 (dwarf_macinfo_buffer): New variable.
6133 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6134 dwarf_macinfo_size.
6135 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6136 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6137 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6138 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6139 dwarf2_macro_spaces_in_definition): New complaints.
6140 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6141 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6142 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6143 the partial symbol table.
6144 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6145 from what's recorded in the partial symbol table.
6146 (read_file_scope): If the compilation unit has a
6147 `DW_AT_macro_info' attribute, read its macro information.
6148 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6149
2f53fe6c
DJ
61502002-05-16 Daniel Jacobowitz <drow@mvista.com>
6151
6152 Fix PR gdb/546
6153 * ser-tcp.c: Don't include <netinet/udp.h>.
6154
2be99286
SC
61552002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6156
6157 * MAINTAINERS: Update my email address.
6158
c9af212b 61592002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6160
6161 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6162 include file of the same name.
6163
bf5f1a52
CV
61642002-05-16 Corinna Vinschen <vinschen@redhat.com>
6165
6166 * configure.tgt: Mark v850 as multi-arched.
6167 * config/v850/tm-v850.h: Remove file.
6168 * config/v850/v850.mt: Eliminate TM_FILE.
6169
435e042a
CV
61702002-05-16 Corinna Vinschen <vinschen@redhat.com>
6171
6172 * v850-tdep.c: Full multi-arch.
6173 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6174 Define GDB_MULTI_ARCH to 2.
6175
9819c6c8
PM
61762002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6177
6178 * p-exp.y (current_type): New static variable.
6179 Carries the type of the expression at the position that is parsed.
6180 (push_current_type, pop_current_type): Two new functions. Used
6181 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6182 (search_field): New static variable. Set to one after parsing a point
6183 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6184 (FIELDNAME): New token. After a point only a token belonging to
6185 current_type type definition is allowed.
6186 (all over token rules): reset and change current_type according
6187 to rules.
6188 (exp '[' rule): insert implicit array index field if
6189 exp is a pascal string type.
6190
3a06899a
CV
61912002-05-16 Corinna Vinschen <vinschen@redhat.com>
6192
6193 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6194 frame info. Use frame_info's saved_regs instead of matching member
6195 in extra_frame_info throughout.
6196 (v850_frame_init_saved_regs): New function.
6197 (v850_init_extra_frame_info): Move most functionality into
6198 v850_frame_init_saved_regs().
6199 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6200 (v850_frame_find_saved_regs): Remove declaration.
6201 (FRAME_FIND_SAVED_REGS): Remove definition.
6202 (v850_frame_init_saved_regs): Add declaration.
6203 (FRAME_INIT_SAVED_REGS): Add definition.
6204
6ed14b0e
CV
62052002-05-16 Corinna Vinschen <vinschen@redhat.com>
6206
6207 * v850-tdep.c: Begin multi-arch'ing v850.
6208 (v850_target_architecture_hook): Remove function.
6209 (v850_gdbarch_init): New function. Add code previously in
6210 v850_target_architecture_hook().
6211 (_initialize_v850_tdep): Don't set target_architecture_hook.
6212 Call register_gdbarch_init() instead.
6213
42725910
DJ
62142002-05-16 Daniel Jacobowitz <drow@mvista.com>
6215
6216 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6217 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6218 (fixup_class_method_type): Likewise.
6219
99d9066e
JB
62202002-05-15 Jim Blandy <jimb@redhat.com>
6221
6222 Add macro structures to GDB's symbol tables. Nobody puts anything
6223 in them yet.
6224 * symtab.h (struct symtab): New member: `macro_table'.
6225 * buildsym.h (pending_macros): New global variable.
6226 * buildsym.c: #include "macrotab.h".
6227 (buildsym_init): Initialize `pending_macros'.
6228 (end_symtab): If we found macro information while reading a CU's
6229 debugging info, do build a symtab structure for it. Make the
6230 symtab point to the macro information, and clear the
6231 `pending_macros' pointer which held it while we were reading the
6232 debug info.
6233 (really_free_pendings): Free any pending macro table.
6234 * objfiles.h (struct objfile): New member: `macro_cache'.
6235 * objfiles.c (allocate_objfile): Set allocate and free functions
6236 for the macro cache's objstack.
6237 (free_objfile): Empty the macro cache's obstack.
6238 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6239 set new allocate and free functions for it.
6240 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6241 free functions for the macro cache's objstack. (Why is this
6242 function building its own objfile?)
6243 * symmisc.c (print_objfile_statistics): Print statistics on the
6244 macro bcache.
6245 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6246
c899585b
RE
62472002-05-15 Richard Earnshaw <rearnsha@arm.com>
6248
6249 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6250 (REGISTER_U_ADDR): Delete definition.
6251 (arm_register_u_addr): Delete declaration.
6252
a6cdd8c5
RE
62532002-05-15 Richard Earnshaw <rearnsha@arm.com>
6254
6255 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6256 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6257
c97dcfc7
AC
62582002-05-14 Andrew Cagney <ac131313@redhat.com>
6259
6260 * regcache.c (register_valid): Revise comments refering to "Not
6261 available" and "unavailable".
6262 * frame.c (frame_register_read): Ditto.
6263 * findvar.c (value_of_register): Ditto.
6264
93021b7d
AC
62652002-05-15 Andrew Cagney <cagney@redhat.com>
6266
6267 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6268 (remote-sim.o): Update dependencies.
6269 (d10v-tdep.o): Specify dependencies.
6270 (sim_d10v_h): Define.
6271
a86bc61c
JB
62722002-05-14 Jim Blandy <jimb@redhat.com>
6273
6274 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6275 * macrotab.c (macro_lookup_inclusion, find_definition,
6276 new_macro_table): Same.
6277
6278 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6279 not `! strcmp ()'. This is a dubious improvement.
6280 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6281
6282 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6283 although it's not necessary, to avoid a warning.
6284
2fdde8f8
DJ
62852002-05-14 Daniel Jacobowitz <drow@mvista.com>
6286
6287 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6288 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6289 TYPE_INSTANCE_FLAGS.
6290 (struct main_type): New.
6291 (struct type): Move most members to struct main_type. Change
6292 cv_type and as_type to new type_chain member. Add instance_flags.
6293 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6294 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6295 (finish_cv_type): Remove prototype.
6296 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6297 Set TYPE_CHAIN.
6298 (alloc_type_instance): New function.
6299 (smash_type): New function.
6300 (make_pointer_type, make_reference_type, make_function_type)
6301 (smash_to_member_type, smash_to_method_type): Call smash_type.
6302 (make_qualified_type): New function.
6303 (make_type_with_address_space): Call make_qualified_type.
6304 (make_cv_type): Likewise.
6305 (finish_cv_type): Remove unnecessary function.
6306 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6307 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6308 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6309 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6310 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6311 * hpread.c (hpread_read_struct_type): Likewise.
6312 * stabsread.c (read_struct_type): Likewise.
6313
843fedf4
EZ
63142002-05-14 Elena Zannoni <ezannoni@redhat.com>
6315
6316 * configure.tgt: Add a catch all sh* target, for cases like
6317 sh[2,3,4]-elf and sh-hms.
6318
05a6c72c
KS
63192002-05-14 Keith Seitz <keiths@redhat.com>
6320
6321 * event-loop.c (create_file_handler): Don't do anything but
6322 update data when we are given a fd which we are already
6323 monitoring.
6324
5d085aaf
ML
63252002-05-14 Michal Ludvig <mludvig@suse.cz>
6326
6327 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6328 (update_context): Use __func__ in warnings.
6329
9db8d71f
DJ
63302002-05-14 Daniel Jacobowitz <drow@mvista.com>
6331
6332 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6333 and tcp_close to net_open and net_close.
6334 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6335 using UDP if requested. Don't try to disable Nagle on UDP
6336 sockets.
6337 * remote.c (remote_serial_open): New function. Warn about UDP.
6338 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6339
5dbc6baa
EZ
63402002-05-13 Elena Zannoni <ezannoni@redhat.com>
6341
6342 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6343
cc3023f7
EZ
63442002-05-13 Elena Zannoni <ezannoni@redhat.com>
6345
6346 * configure.tgt: Remove sh-hms target.
6347 * MAINTAINERS: Don't list sh-hms as a separate target.
6348
ec2bcbe7
JB
63492002-05-13 Jim Blandy <jimb@redhat.com>
6350
6351 Add first preprocessor macro-expansion files.
6352 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6353 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6354 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6355 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6356 (COMMON_OBS): Add macrotab.o, macroexp.o.
6357 (macroexp.o, macrotab.o): New rules.
6358
6d531722
AC
63592002-05-13 Andrew Cagney <ac131313@redhat.com>
6360
6361 * config/m88k/tm-m88k.h: Update copyright.
6362 (m88k_target_write_pc): Declare
6363 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6364 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6365 (SHIFT_INST_REGS): Update definition.
6366 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6367 using old definition of TARGET_WRITE_PC.
6368 * regcache.c (generic_target_write_pc): Delete code handling
6369 NNPC_REGNUM.
6370 * gdbarch.sh (NNPC_REGNUM): Delete.
6371 * gdbarch.h, gdbarch.c: Regenerate.
6372
3e3f2739
RE
63732002-05-13 Richard Earnshaw <rearnsha@arm.com>
6374
6375 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6376 builtin reg number.
6377
0004e5a2
DJ
63782002-05-13 Daniel Jacobowitz <drow@mvista.com>
6379
6380 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6381 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6382 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6383 access macros.
6384 * c-typeprint.c (cp_type_print_method_args): Likewise.
6385 (c_type_print_args): Likewise.
6386 * d10v-tdep.c (d10v_push_arguments): Likewise.
6387 (d10v_extract_return_value): Likewise.
6388 * expprint.c (print_subexp): Likewise.
6389 * gdbtypes.c (lookup_primitive_typename): Likewise.
6390 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6391 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6392 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6393 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6394 (TYPE_VECTOR): Likewise.
6395 * hpread.c (hpread_read_struct_type)
6396 (fix_static_member_physnames, fixup_class_method_type)
6397 (hpread_type_lookup): Likewise.
6398 * mdebugread.c (parse_symbol, parse_type): Likewise.
6399 * p-lang.c (is_pascal_string_type): Likewise.
6400 * valops.c (hand_function_call): Likewise.
6401 * x86-64-tdep.c (classify_argument): Likewise.
6402
6403 * hpread.c (hpread_read_function_type)
6404 (hpread_read_doc_function_type): Call replace_type.
6405 * dstread.c (create_new_type): Delete.
6406 (decode_dst_structure, process_dst_function): Call alloc_type.
6407 Use type access macros.
6408
dff95cc7
MK
64092002-05-12 Mark Kettenis <kettenis@gnu.org>
6410
6411 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6412 the're not supported by the current architecture.
6413 (i387_fill_fxsave): Likewise.
6414
bbcd32ad
FF
64152002-05-12 Fred Fish <fnf@redhat.com>
6416
6417 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6418 sect_index_xxx members to index the first slot in section_offsets
6419 if all of the section_offsets are zero.
6420
89cf4787
MK
64212002-05-12 Mark Kettenis <kettenis@gnu.org>
6422
6423 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6424 checked in with last change.
6425
1f77ffc5
MK
64262002-05-12 Mark Kettenis <kettenis@gnu.org>
6427
6428 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6429 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6430 config.sub.
6431
89b8b4a9
DJ
64322002-05-12 Daniel Jacobowitz <drow@mvista.com>
6433
6434 * Makefile.in: Update dependencies.
6435
14a5e767
AC
64362002-05-11 Andrew Cagney <ac131313@redhat.com>
6437
6438 * language.c (local_hex_string_custom): Simplify. Do not depend
6439 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6440
6441 * memattr.c (mem_info_command): Replace calls to
6442 longest_local_hex_string and longest_local_hex_string_custom.
6443 * buildsym.c (make_blockvector): Ditto.
6444 * solib.c (info_sharedlibrary_command): Ditto.
6445 * tracepoint.c (tracepoints_info): Ditto.
6446 * symtab.c (print_msymbol_info): Ditto.
6447
6448 * language.c (local_hex_string): Delete.
6449 (local_hex_string_custom): Delete.
6450 (longest_local_hex_string): Rename to local_hex_string.
6451 (longest_local_hex_string_custom): Rename to
6452 local_hex_string_custom.
6453 * language.h (local_hex_string): Change parameter type to LONGEST.
6454 (local_hex_string_custom): Ditto.
6455 (longest_local_hex_string): Delete declaration.
6456 (longest_local_hex_string_custom): Ditto.
6457
6458 * solib.c: Update copyright.
6459 * memattr.c: Update copyright.
6460
13d01224
AC
64612002-05-11 Andrew Cagney <ac131313@redhat.com>
6462
6463 * arch-utils.h (legacy_register_to_value): Declare.
6464 (legacy_value_to_register): Declare.
6465 (legacy_convert_register_p): Declare.
6466 * arch-utils.c (legacy_register_to_value): New function.
6467 (legacy_value_to_register): New function.
6468 (legacy_convert_register_p): New function.
6469
6470 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6471 (VALUE_TO_REGISTER): Define.
6472 (CONVERT_REGISTER_P): Define.
6473 * gdbarch.h, gdbarch.c: Regenerate.
6474
6475 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6476 VALUE_TO_REGISTER.
6477 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6478 CONVERT_REGISTER_P.
6479
4a1970e4
DJ
64802005-05-11 Daniel Jacobowitz <drow@mvista.com>
6481 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6482
6483 * Makefile.in: Update dependencies for valops.c.
6484 * valops.c: Include "gdb_assert.h".
6485 (typecmp): Skip THIS parameter to methods.
6486 (find_method_list): Remove static_memfuncp argument,
6487 update callers. Check for stub methods.
6488 (find_value_oload_method_list): Don't set *static_memfuncp.
6489 (find_overload_match): Don't check for stub methods. Assert
6490 that methods are not stubbed. Handle static methods.
6491 (value_find_oload_method_list): Remove static_memfuncp argument.
6492 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6493 to the argument list for static stub methods.
6494 * value.h (value_find_oload_method_list): Update prototype.
6495
b2e75d78
AC
64962002-05-11 Andrew Cagney <ac131313@redhat.com>
6497
6498 * arch-utils.h (generic_register_size): Declare.
6499 (generic_register_raw_size, generic_register_virtual_size): Delete
6500 declarations.
6501 * arch-utils.c (generic_register_raw_size): Delete.
6502 (generic_register_size): New function.
6503 (generic_register_virtual_size): Delete.
6504
6505 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6506 default generic_register_size.
6507 * gdbarch.h, gdbarch.c: Re-generate.
6508
6509 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6510 register_virtual_size.
6511 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6512 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6513
451fbdda
AC
65142002-05-11 Andrew Cagney <ac131313@redhat.com>
6515
6516 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6517 * gdbarch.h, gdbarch.c: Regenerate.
6518 * gnu-v3-abi.c: Update copyright.
6519 (vtable_address_point_offset): Update.
6520 (gnuv3_rtti_type): Update.
6521 (gnuv3_baseclass_offset): Update.
6522 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6523 (init_fetch_link_map_offsets): Update.
6524 * remote.c (get_remote_state): Update.
6525
6d2f5cea
DJ
65262002-05-11 Daniel Jacobowitz <drow@mvista.com>
6527
6528 * TODO: Remove value_headof/value_from_vtable_info comment.
6529 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6530 * values.c (value_headof, value_from_vtable_info): Delete.
6531 * value.h (value_from_vtable_info): Delete prototype.
6532
d2324da4
AC
65332002-05-11 Andrew Cagney <ac131313@redhat.com>
6534
6535 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6536 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6537 $(gdb_regex_h).
6538 (gdb_assert_h): Define.
6539 (gdb_wait_h): Define.
6540 (gdb_regex_h): Define.
6541
5c717440
DJ
65422002-05-11 Daniel Jacobowitz <drow@mvista.com>
6543
6544 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6545 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6546
6c7861b3
JT
65472002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6548
6549 * nbsd-tdep.c: Fix comment.
6550
ea5bc2a6
JT
65512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6552
6553 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6554 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6555 (nbsd-tdep.o): New dependency list.
6556 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6557 nbsd-tdep.h.
6558 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6559 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6560 * nbsd-tdep.c: New file.
6561 * nbsd-tdep.h: New file.
6562 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6563 nbsd-tdep.h.
6564 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6565 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6566 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6567 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6568
b28da865
JT
65692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6570
6571 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6572 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6573 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6574 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6575 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6576 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6577
4b8ff1fa
JT
65782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6579
6580 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6581 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6582 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6583 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6584 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6585 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6586 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6587
dfe6eb1f
JT
65882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6589
6590 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6591 fetch_elfcore_registers to...
6592 * i386nbsd-tdep.c: ...here.
6593 (i386nbsd_use_struct_convention): Rename to...
6594 (i386nbsd_aout_use_struct_convention): ...this.
6595 (i386nbsd_supply_reg): New function.
6596 (i386nbsd_fill_reg): New function.
6597 (fetch_core_registers): Use i386nbsd_supply_reg.
6598 (fetch_elfcore_registers): Likewise.
6599 (_initialize_i386nbsd_tdep): New function.
6600 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6601 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6602 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6603 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6604 (i386nbsd_aout_use_struct_convention): ...this.
6605
20cb8cda
JT
66062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6607
6608 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6609 (store_inferior_registers): Use shnbsd_fill_reg.
6610 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6611 sh_nbsd_supply_register): Collapse into...
6612 (shnbsd_supply_reg): ...this.
6613 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6614 (shnbsd_fill_reg): ...this.
6615 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6616 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6617 (fetch_core_registers): Use shnbsd_supply_reg.
6618 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6619 (sh_nbsd_core_fns): Rename to...
6620 (shnbsd_core_fns): ...this.
6621 (sh_nbsd_elfcore_fns): Rename to...
6622 (shnbsd_elfcore_fns): ...this.
6623 (sh_nbsd_init_abi): Rename to...
6624 (shnbsd_init_abi): ...this.
6625 (_initialize_sh_nbsd_tdep): Rename to...
6626 (_initialize_shnbsd_tdep): ...this.
6627 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6628 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6629 sh_nbsd_fill_register): Remove prototypes.
6630 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6631
e750d25e
JT
66322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6633
6634 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6635 (i387-nat.o): Delete dependency list.
6636 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6637 (x86-64-linux-nat.o): Likewise.
6638 * i387-nat.c: Delete file, moving contents to...
6639 * i387-tdep.c: ...here.
6640 * i387-nat.h: Rename...
6641 * i387-tdep.h: ...to this.
6642 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6643 * i386-linux-nat.c: Likewise.
6644 * i386bsd-nat.c: Likewise.
6645 * i386gnu-nat.c: Likewise.
6646 * i386nbsd-nat.c: Likewise.
6647 * i386v4-nat.c: Likewise.
6648 * x86-64-linux-nat.c: Likewise.
6649 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6650 * config/i386/go32.mh (NATDEPFILES): Likewise.
6651 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6652 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6653 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6654 * config/i386/linux.mh (NATDEPFILES): Likewise.
6655 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6656 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6657 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6658 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6659
1aee598a
JT
66602002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6661
6662 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6663 (alphanbsd-nat.o): Remove dependency list.
6664 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6665 * alphanbsd-nat.c: Delete. Contents moved to...
6666 * alphanbsd-tdep.c: ...here.
6667 (_initialize_alphanbsd_tdep): Register core functions.
6668 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6669
12bcb0fe
JT
66702002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6671
6672 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6673 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6674 (alphanbsd-nat.o): Likewise.
6675 (alphabsd-tdep.o): New dependency list.
6676 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6677 (fill_gregset): Use alphabsd_fill_reg.
6678 (supply_fpregset): Use alphabsd_supply_fpreg.
6679 (fill_fpregset): Use alphabsd_fill_fpreg.
6680 (fetch_inferior_registers): Use struct reg and struct fpreg
6681 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6682 and alphabsd_supply_fpreg.
6683 (store_inferior_registers): Use struct reg and struct fpreg
6684 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6685 and alphabsd_fill_fpreg.
6686 * alphabsd-tdep.c: New file.
6687 * alphabsd-tdep.h: New file.
6688 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6689 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6690 alphabsd_supply_fpreg.
6691 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6692 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6693
361d1df0
EC
66942002-05-11 Eric Christopher <echristo@redhat.com>
6695
6696 * mips-tdep.c (mips_double_register_type): Fix thinko.
6697 (mips_single_register_type): Ditto.
6698 * MAINTAINERS: Add self.
6699
92dd7cee
MK
67002002-05-11 Mark Kettenis <kettenis@gnu.org>
6701
6702 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6703 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6704 right thing on architectures with different endianness and/or
6705 integer sizes.
6706
e27da16d
JT
67072002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6708
6709 From Christian Limpach <chris@Pin.LU>
6710 * configure.in: Change sed expression which comments out
6711 NATDEPFILES to also comment out continuation lines.
6712 * configure: Regenerate.
6713
ddde02bd
EZ
67142002-05-10 Elena Zannoni <ezannoni@redhat.com>
6715
6716 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6717 big patch.
6718
1c922164
EZ
67192002-05-10 Elena Zannoni <ezannoni@redhat.com>
6720
6721 * sh-tdep.c: Include correct file.
6722
283150cd
EZ
67232002-05-10 Elena Zannoni <ezannoni@redhat.com>
6724
6725 New support for sh64-elf (sh5) target.
6726
6727 * configure.tgt: For sh64-elf target, default to sh-elf.
6728
6729 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6730 (struct gdbarch_tdep): Add new fields for new registers and ABI
6731 info.
361d1df0 6732
283150cd
EZ
6733 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6734 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6735 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6736 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6737 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6738 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6739 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6740 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6741 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6742 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6743 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6744 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6745 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6746 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6747 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6748 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6749 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6750 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6751 sign_extend, sh64_nofp_frame_init_saved_regs,
6752 sh64_init_extra_frame_info, sh64_get_saved_register,
6753 sh64_extract_struct_value_address, sh64_pop_frame,
6754 sh64_push_arguments, sh64_extract_return_value,
6755 sh64_store_return_value, sh64_show_media_regs,
6756 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6757 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6758 sh_sh64_register_virtual_type,
6759 sh_sh64_register_convert_to_virtual,
6760 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6761 sh64_register_read, sh64_pseudo_register_write,
6762 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6763 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6764 sh64_do_pseudo_register, sh_compact_do_registers_info,
6765 sh64_do_registers_info, sh_gdbarch_init): New functions.
6766
3117ed25
EZ
67672002-05-10 Elena Zannoni <ezannoni@redhat.com>
6768
6769 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6770
2654e6d4
DJ
67712002-05-10 Daniel Jacobowitz <drow@mvista.com>
6772
6773 * linespec.c (decode_line_1): Check for a double quote after
6774 a filename correctly.
6775
9ab3e532
JB
67762002-05-10 Jim Blandy <jimb@redhat.com>
6777
6778 Properly track the size of the current objfile's .debug_line section.
6779 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6780 (DWARF_LINE_SIZE): New macro.
6781 (dwarf2_build_psymtabs_hard): Record the line section's size in
6782 the partial symbol table.
6783 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6784 symbol table.
6785
126fa72d
PS
67862002-05-10 Petr Sorfa <petrs@caldera.com>
6787
6788 * ia64-tdep.c: Handle breakpoints on L instruction type
6789 in MLX instruction bundle by moving the breakpoint to
6790 the third slot (X instruction type) as L holds only data.
6791
1f077a3e
KB
67922002-05-10 Kevin Buettner <kevinb@redhat.com>
6793
6794 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6795 (process_one_symbol): Complain about discarding local symbols
6796 due to a misplaced N_LBRAC entry.
6797
8120c9d5 67982002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6799
6800 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6801 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6802 decrease the depth we are at, in the case of templates.
361d1df0 6803
67b2c998
DJ
68042002-05-09 Daniel Jacobowitz <drow@mvista.com>
6805
6806 * mips-tdep.c (mips_float_register_type): New function.
6807 (mips_double_register_type): New function.
6808 (mips_print_register): Use them.
6809 (do_fp_register_row): Likewise.
6810
fd326606
DJ
68112002-05-09 Daniel Jacobowitz <drow@mvista.com>
6812
6609d9af 6813 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6814 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6815 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6816
bef35864
MS
68172002-05-09 Michael Snyder <msnyder@redhat.com>
6818
6819 * remote-rdp.c (remote_rdp_can_run): Remove.
6820
c55a3f73
TT
68212002-05-09 Tom Tromey <tromey@redhat.com>
6822
6823 * jv-valprint.c (java_val_print): Handle `char' as a special case
6824 of TYPE_CODE_INT.
6825
b8d5e71d
MS
68262002-05-09 Michael Snyder <msnyder@redhat.com>
6827
6828 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6829 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6830 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6831 str r(0123),[sp,#nn].
361d1df0 6832 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6833 order-independent by placing it in a loop.
6834
e2cd42dd
MS
68352002-05-06 Michael Snyder <msnyder@redhat.com>
6836
6837 * stabsread.c (read_type): Add recognition for new attribute:
6838 "@V;" means that an array type is actually a vector.
6839 This is analogous to the vector flag that's been added to dwarf2.
6840
3ce1502b
MK
68412002-05-09 Mark Kettenis <kettenis@gnu.org>
6842
6843 * i386-tdep.h (i386_abi): New enum.
6844 (struct gdbarch_tdep): Replace os_ident member with abi.
6845 (i386_gdbarch_register_os_abi): New prototype.
6846 * i386-tdep.c (i386_abi_names): New array.
6847 (process_note_abi_tag_sections): Removed.
6848 (process_note_sections): New function.
6849 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6850 (struct i386_abi_handler): New struct.
6851 (i386_abi_handler_list): New variable.
6852 (i386_gdbarch_register_os_abi): New function.
6853 (i386_gdbarch_init): Adapt for the changes given above.
6854
084c156a
DJ
68552002-05-08 Daniel Jacobowitz <drow@mvista.com>
6856
6857 * gregset.h: Say "GNU/Linux".
6858
6599f021
EZ
68592002-05-08 Elena Zannoni <ezannoni@redhat.com>
6860
6861 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6862 (build_gdbtypes): Build builtin_type_v2_float.
6863 (_initialize_gdbtypes): Register new builtin type.
6864
40af4b0c
AC
68652002-05-08 Andrew Cagney <ac131313@redhat.com>
6866
6867 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6868 (clear_gdbarch_swap): New function.
6869 (initialize_non_multiarch): Call.
6870 (gdbarch_update_p): Before calling init(), swap out and clear the
6871 existing architecture.
6872 * gdbarch.c: Regenerate.
6873
4fe84f46
JT
68742002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6875
6876 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6877 alphanbsd-tdep.c.
6878
4015edd1
JT
68792002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6880
6881 * sh-nbsd-nat.c: Rename to...
6882 * shnbsd-nat.c: ...this.
6883 * sh-nbsd-tdep.c: Rename to...
6884 * shnbsd-tdep.c: ...this.
6885 * sh-nbsd-tdep.h: Rename to...
6886 * shnbsd-tdep.h: ...this.
6887 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6888 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6889
0e2bd219
RE
68902002-05-08 Richard Earnshaw <rearnsha@arm.com>
6891
6892 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6893 concatenation for command help messages.
6894
13a38d45
JT
68952002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6896
6897 * NEWS: Note new sh*-*-netbsdelf* configuration.
6898 * configure.host: Set gdb_host_cpu to sh for all sh*.
6899 (sh*-*-netbsdelf*): New host.
6900 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6901 (sh*-*-netbsdelf*): New target.
6902 * sh-nbsd-nat.c: New file.
6903 * sh-nbsd-tdep.c: New file.
6904 * sh-nbsd-tdep.h: New file.
6905 * config/sh/nbsd.mh: New file.
6906 * config/sh/nbsd.mt: New file.
6907 * config/sh/nm-nbsd.h: New file.
6908 * config/sh/tm-nbsd.h: New file.
6909
d658f924
JT
69102002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6911
6912 * sh-tdep.c (sh_osabi_names): Declare.
6913 (process_note_abi_tag_sections): New function.
6914 (get_elfosabi): Ditto.
6915 (sh_gdbarch_register_os_abi): Ditto.
6916 (sh_dump_tdep): Ditto.
6917 _initialize_sh_tdep): Use gdbarch_register to register
6918 sh_gdbarch_init and sh_dump_tdep.
6919 * config/sh/tm-sh.h (sh_osabi): Declare.
6920 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6921
848cfffb
AC
69222002-05-07 Andrew Cagney <ac131313@redhat.com>
6923
6924 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6925 (thumb_scan_prologue): Ditto.
6926 (arm_find_callers_reg): Ditto.
6927 (arm_frame_chain): Ditto.
6928 (arm_init_extra_frame_info): Ditto.
6929 (arm_frame_saved_pc): Ditto.
6930 (arm_pop_frame): Ditto.
6931 (arm_push_return_address): New function.
6932 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6933 call_dummy_location, call_dummy_breakpoint_offset_p,
6934 call_dummy_breakpoint_offset, call_dummy_p,
6935 call_dummy_stack_adjust_p, call_dummy_words,
6936 sizeof_call_dummy_words, call_dummy_start_offset,
6937 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6938 call_dummy_address, push_return_address and push_dummy_frame for
6939 generic dummy frames.
6940
e7d717c0
JT
69412002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6942
6943 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6944 size computation for alloca.
6945 (sh_fp_frame_init_saved_regs): Likewise.
6946
7bbcf283
RE
69472002-05-07 Richard Earnshaw <rearnsha@arm.com>
6948
6949 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6950 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6951 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6952 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6953 * remote-rdp.c (remote_rdp_fetch_register): Use
6954 ARM_MAX_REGISTER_RAW_SIZE.
6955 (remote_rdp_store_register): Likewise.
6956
4657573b
ML
69572002-05-07 Michal Ludvig <mludvig@suse.cz>
6958
361d1df0 6959 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6960 added default labels to switch {} statements.
6961 * x86-64-tdep.c: Ditto.
6962 * x86-64-linux-nat.c: Ditto.
6963
010f3b2f
JT
69642002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6965
6966 * solib.h: Protect against multiple inclusion.
6967
debd256d
JB
69682002-05-06 Jim Blandy <jimb@redhat.com>
6969
9ab3e532
JB
6970 Add first preprocessor macro-expansion files.
6971 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6972 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6973 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6974 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6975 (COMMON_OBS): Add macrotab.o, macroexp.o.
6976 (macroexp.o, macrotab.o): New rules.
6977
debd256d
JB
6978 Separate the job of reading the line number info statement program
6979 header (...expialidocious) out into its own function.
6980 * dwarf2read.c (struct line_head, struct filenames, struct
6981 directories): Replace with...
6982 (struct line_header): New structure, containing the full
6983 contents of the statement program header, including the
6984 include directory and file name tables.
6985 (read_file_scope): If we have line number info, instead of just
6986 calling dwarf_decode_lines to do all the work, call
6987 dwarf_decode_line_header first to get a `struct line_header'
6988 containing the data in the statement program header, and then
6989 pass that to dwarf_decode_lines, which will pick up where that
6990 left off. Be sure to clean up the `struct line_header' object.
6991 (dwarf_decode_line_header, free_line_header, add_include_dir,
6992 add_file_name): New functions.
6993 (dwarf_decode_lines): Move all the code to read the statement
6994 program header into dwarf_decode_line_header. Take the line
6995 header it built as the first argument, instead of the offset to
6996 the compilation unit's line number info. Use the new `struct
6997 line_header' type instead of the old structures. No need to do
6998 cleanups here now, since we don't allocate anything.
6999 (dwarf2_statement_list_fits_in_line_number_section,
7000 dwarf2_line_header_too_long): New complaints.
7001
ac3aafc7
EZ
70022002-05-06 Elena Zannoni <ezannoni@redhat.com>
7003
7004 * gdbtypes.c (init_vector_type): New function.
7005 (build_builtin_type_vec128): Simplify the representation of SIMD
7006 registers.
7007 (build_gdbtypes): Initialize new builtin vector types.
7008 (_initialize_gdbtypes): Register new vector types with gdbarch.
7009 (builtin_type_v4_float, builtin_type_v4_int32,
7010 builtin_type_v8_int16, builtin_type_v16_int8,
7011 builtin_type_v2_int32, builtin_type_v4_int16,
7012 builtin_type_v8_int8): New (renamed) SIMD types.
7013
13e49980
MK
70142002-05-06 Mark Kettenis <kettenis@gnu.org>
7015
7016 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7017 (i387_fill_fxsave): Likewise.
7018
997b20b8
AO
70192002-05-05 Alexandre Oliva <aoliva@redhat.com>
7020
7021 * alpha-tdep.c (alpha_extract_return_value): Don't use
7022 non-constant array size in prototype.
7023
535c96ce
AC
70242002-05-04 Andrew Cagney <ac131313@redhat.com>
7025
7026 From Brian Taylor <briant at model dot com>:
7027 * ui-out.c (ui_out_field_core_addr): Use the function
7028 longest_local_hex_string_custom'to format addresses > 32 bits
7029 wide.
7030
7031 * ui-out.c (ui_out_field_core_addr): Update comment.
7032
bedfa57b
AC
70332002-05-04 Andrew Cagney <ac131313@redhat.com>
7034
7035 * stack.c (select_and_print_frame): Make static. Delete the
7036 parameter `level'.
7037 (func_command): Update call.
7038 (select_frame_command): Delete code computing the frame level.
7039 * frame.h (select_and_print_frame): Delete declaration.
7040
f621c63e
AC
70412002-05-04 Andrew Cagney <ac131313@redhat.com>
7042
7043 * sparc-tdep.c (sparc_get_saved_register): Comment why
7044 get_prev_frame call is safe.
7045
0f7d239c
AC
70462002-05-04 Andrew Cagney <ac131313@redhat.com>
7047
7048 * frame.h (select_frame): Delete level parameter.
7049 * stack.c (select_frame): Update. Use frame_relative_level to
7050 obtain the frame's level.
7051 (select_and_print_frame): Update call.
7052 (select_frame_command): Ditto.
7053 (up_silently_base): Ditto.
7054 (down_silently_base): Ditto.
7055 * ocd.c (ocd_start_remote): Ditto.
7056 * remote-rdp.c (remote_rdp_open): Ditto.
7057 * remote-mips.c (mips_initialize): Ditto.
7058 (common_open): Ditto.
7059 * remote-e7000.c (e7000_start_remote): Ditto.
7060 * m3-nat.c (select_thread): Ditto.
7061 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7062 (child_get_current_exception_event): Ditto.
7063 * varobj.c (varobj_create): Ditto.
7064 (varobj_update): Ditto.
7065 (c_value_of_root): Ditto.
7066 * tracepoint.c (finish_tfind_command): Ditto.
7067 * corelow.c (core_open): Ditto.
7068 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7069 * thread.c (info_threads_command): Ditto.
7070 (switch_to_thread): Ditto.
7071 * infrun.c (normal_stop): Ditto.
7072 (restore_selected_frame): Ditto.
7073 (restore_inferior_status): Ditto.
7074 * breakpoint.c (insert_breakpoints): Ditto.
7075 (watchpoint_check): Ditto.
7076 (bpstat_stop_status): Ditto.
7077 (do_enable_breakpoint): Ditto.
7078 * blockframe.c (flush_cached_frames): Ditto.
7079 (reinit_frame_cache): Ditto.
7080
71d6c7b1
AC
70812002-05-04 Andrew Cagney <ac131313@redhat.com>
7082
7083 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7084 maintainer.
7085
cda6c68a
JB
70862002-05-04 Jim Blandy <jimb@redhat.com>
7087
7088 * gdbtypes.c (replace_type): Doc fix.
7089
5c1c87f0
AC
70902002-05-04 Andrew Cagney <ac131313@redhat.com>
7091
7092 * valprint.c (strcat_longest): Delete commented out function.
7093 Update copyright.
7094
cd9bfe15
AC
70952002-05-04 Andrew Cagney <ac131313@redhat.com>
7096
7097 * MAINTAINERS: Mark a29k as deleted.
7098 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7099 Move new configurations to the top.
7100 * configure.tgt: Remove a29k.
7101 * config/a29k/tm-vx29k.h: Delete.
7102 * config/a29k/vx29k.mt: Delete.
7103 * config/a29k/tm-a29k.h: Delete.
7104 * config/a29k/a29k-udi.mt: Delete.
7105 * config/a29k/a29k.mt: Delete.
7106 * a29k-tdep.c: Delete.
7107 * remote-udi.c: Delete.
7108 * remote-mm.c: Delete.
7109 * remote-eb.c: Delete.
7110 * remote-adapt.c: Delete.
7111 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7112 * config/s390/s390x.mt: Ditto.
7113 * config/s390/s390.mt: Ditto.
7114 * config/sparc/sparclynx.mh: Ditto.
7115 * config/sparc/linux.mh: Ditto.
7116 * config/pa/hppaosf.mh: Ditto.
7117 * config/pa/hppabsd.mh: Ditto.
7118 * config/ns32k/nbsd.mt: Ditto.
7119 * config/mips/vr5000.mt: Ditto.
7120 * config/m68k/sun3os4.mh: Ditto.
7121 * config/m68k/nbsd.mt: Ditto.
7122 * config/m68k/m68klynx.mh: Ditto.
7123 * config/m32r/m32r.mt: Ditto.
7124 * config/i386/x86-64linux.mt: Ditto.
7125 * config/i386/nbsdelf.mt: Ditto.
7126 * config/i386/nbsd.mt: Ditto.
7127 * config/i386/i386lynx.mh: Ditto.
7128
bf0c5130
AC
71292002-05-04 Andrew Cagney <ac131313@redhat.com>
7130
7131 * target.c (debug_print_register): New function. Handle oversize
7132 registers.
7133 (debug_to_fetch_registers): Call.
7134 (debug_to_store_registers): Call.
7135
2ae1c2d2
JB
71362002-05-03 Jim Blandy <jimb@redhat.com>
7137
13a393b0
JB
7138 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7139 (read_type): Doc fix.
7140 * gdbtypes.c (replace_type): Doc fix.
7141
2ae1c2d2
JB
7142 * stabsread.c (multiply_defined_struct): New complaint.
7143 (read_struct_type): If the type we were passed isn't empty, or
7144 incomplete, don't read the new struct type into it; complain,
7145 and return the original type unchanged. Take a new `type_code'
7146 argument, which is the type code for the new type.
7147 (read_type): Rather than storing the type's type code here, pass
7148 it as an argument to read_struct_type, and let that take care of
7149 storing it. That way, we don't overwrite the original type code,
7150 so read_struct_type can use it to decide whether we're overwriting
7151 something we shouldn't.
7152 (complain_about_struct_wipeout): New function.
7153
8de9bdc4
AC
71542002-05-03 Andrew Cagney <ac131313@redhat.com>
7155
7156 * gdbarch.sh: Assert that gdbarch is non-NULL.
7157 * gdbarch.c: Regenerate.
7158
f773fdbb
JM
71592002-05-03 Jason Merrill <jason@redhat.com>
7160
7161 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7162 and return NULL.
7163
0e04a514
ML
71642002-05-03 Michal Ludvig <mludvig@suse.cz>
7165
7166 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7167 (x86_64_dwarf2gdb_regno_map_length),
7168 (x86_64_dwarf2_reg_to_regnum): Added.
7169 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7170 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7171 (_initialize_x86_64_tdep): Synced with the change above.
7172 (x86_64_skip_prologue): Reformulated message.
7173
065432a8
PM
71742002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7175
7176 * f-exp.y: Also use new prev_lexptr variable
7177 to improve error reporting. Based on Michael Snyder
7178 2002-04-24 dated patch to c-exp.y.
7179 * jv-exp.y: Likewise.
7180 * m2-exp.y: Likewise.
7181
a3162708
EZ
71822002-05-02 Elena Zannoni <ezannoni@redhat.com>
7183
7184 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7185 we are dealing with vectors.
7186
03620c38
PM
71872002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7188
7189 * config/m68k/tm-nbsd.h: Obvious fix,
7190 correct machine name.
7191
6604db2e
PM
71922002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7193
7194 * p-typeprint.c (pascal_type_print_base): Add support
7195 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7196
0906b739
PM
71972002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7198
7199 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7200 for fondamental pascal 'char' type.
7201
e2625b33
PM
72022002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7203
7204 * p-lang.h (is_pascal_string_type): Declaration changed,
7205 new sixth argument of type char ** added.
361d1df0 7206 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7207 changed. Args length_pos, length_size, string_pos, char_size
7208 can now be NULL. New argument arrayname set to the field
7209 name of the char array. Return value set to char array
7210 field index plus one.
361d1df0 7211 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7212 is_pascal_string_type function.
7213
cf17c188
AC
72142002-05-02 Andrew Cagney <cagney@redhat.com>
7215
7216 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7217 <cagney@redhat.com> change.
7218 * gdbarch.c: Regenerate.
7219
52bca491
AC
72202002-05-02 Andrew Cagney <cagney@redhat.com>
7221
7222 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7223 before probing for a new one. Detect errorenous gdbarch_init
7224 functions.
7225 * gdbarch.c: Regenerate.
7226
d5e72505
AC
72272002-05-01 Andrew Cagney <cagney@redhat.com>
7228
7229 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7230 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7231 * config/v850/tm-v850.h: Ditto. Update copyright.
7232
af566d9f
AC
72332002-04-30 Andrew Cagney <ac131313@redhat.com>
7234
7235 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7236 current_gdbarch.
7237
880d85fa
MS
72382002-04-30 Michael Snyder <msnyder@redhat.com>
7239
94c30b78
MS
7240 * arm-tdep.c: Whitespace clean-ups.
7241 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7242 should have been removed as part of 4/24 change.
7243
6f5987a6
KB
72442002-04-30 Kevin Buettner <kevinb@redhat.com>
7245
7246 * rs6000-tdep.c: Added comment describing how fpscr register
7247 numbers were chosen.
7248
1a113c93
MS
72492002-04-30 Michael Snyder <msnyder@redhat.com>
7250
7251 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7252
9a6f53fe
EZ
72532002-04-29 Elena Zannoni <ezannoni@redhat.com>
7254
7255 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7256 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7257 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7258
11ed25ac
KB
72592002-04-29 Kevin Buettner <kevinb@redhat.com>
7260
7261 From Louis Hamilton <hamilton@redhat.com>:
7262 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7263 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7264 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7265 not bfd-private xcoff data, to determine wordsize.
7266 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7267
ae232405
AC
72682002-04-29 Andrew Cagney <ac131313@redhat.com>
7269
7270 GDB 5.2 released from 5.2 branch.
7271
91fd20f7
ML
72722002-04-29 Michal Ludvig <mludvig@suse.cz>
7273
7274 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7275 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7276 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7277
2dc5091b
EZ
72782002-04-29 Elena Zannoni <ezannoni@redhat.com>
7279
7280 * rs6000-tdep.c (rs6000_extract_return_value,
7281 rs6000_store_return_value): Handle returning vectors.
7282 (rs6000_gdbarch_init): Use
7283 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7284 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7285 New function.
7286 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7287 vectors.
7288 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7289 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7290
2b9848d8
PM
72912002-04-24 Pierre Muller <ics.u-strasbg.fr>
7292
7293 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7294 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7295 with fprintf_unfiltered (gdb_stderr,...).
7296
f8d17dc5
PM
72972002-04-24 Pierre Muller <ics.u-strasbg.fr>
7298
7299 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7300 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7301 Replace fprintf (stderr,...
7302 with fprintf_unfiltered (gdb_stderr,....
7303 * remote-es.c: Likewise.
7304 * remote-os9k.c: Likewise.
7305 * remote-st.c: Likewise.
7306
2f2f1ad1
AS
73072002-04-28 Andreas Schwab <schwab@suse.de>
7308
7309 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7310 linux-proc.o and gcore.o.
7311
b6779aa2
AC
73122002-04-26 Michal Ludvig <mludvig@suse.cz>
7313
7314 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7315 code without frame pointers.
7316
7e57f5f4
AC
73172002-04-26 Andrew Cagney <ac131313@redhat.com>
7318
7319 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7320 ON_STACK is needed.
7321
2ceb85d0
BE
73222002-04-26 Ben Elliston <bje@redhat.com>
7323
7324 * target.c (do_xfer_memory): Correct reference to the new option
7325 "trust-readonly-sections".
7326
f5f8a009
EZ
73272002-04-26 Elena Zannoni <ezannoni@redhat.com>
7328
7329 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7330 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7331 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7332 vectors.
7333 (read_array_type): Record the fact that this array type is really a
7334 vector (i.e. are passed in by value).
7335
5868c862
JT
73362002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7337
7338 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7339 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7340 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7341 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7342 * alpha-linux-tdep.c: Include frame.h.
7343 (alpha_linux_sigcontext_addr): New function.
7344 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7345 alpha_linux_sigcontext_addr.
7346 * alpha-osf1-tdep.c: Include gdbcore.h.
7347 (alpha_osf1_sigcontext_addr): New function.
7348 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7349 alpha_osf1_sigcontext_addr.
7350 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7351 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7352
bfb01f37
AC
73532002-04-26 Andrew Cagney <ac131313@redhat.com>
7354
361d1df0 7355 * stack.c (selected_frame_level):
bfb01f37
AC
7356 (select_frame): Do not set selected_frame_level.
7357 * frame.h (selected_frame_level): Delete declaration.
7358
15813d3f
AC
73592002-04-26 Andrew Cagney <ac131313@redhat.com>
7360
7361 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7362 convert_from_func_ptr-addr when AIX / PowerOpen.
7363
6096c27a
AC
73642002-04-25 Andrew Cagney <ac131313@redhat.com>
7365
7366 * valops.c (hand_function_call): Call
7367 generic_save_call_dummy_addr.
7368 * frame.h (generic_save_call_dummy_addr): Declare.
7369 * blockframe.c (struct dummy_frame): Add fields call_lo and
7370 call_hi.
7371 (generic_find_dummy_frame): Check for PC in range call_lo to
7372 call_hi instead of entry_point_address.
7373 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7374 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7375 (generic_save_call_dummy_addr): New function.
7376
f510d44e
DM
73772002-04-24 David S. Miller <davem@redhat.com>
7378
7379 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7380 sparc_skip_prologue.
7381 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7382 information to find prologue when possible.
7383 (sparc_prologue_frameless_p): Call examine_prologue directly.
7384 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7385 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7386 second argument.
7387 (SKIP_PROLOGUE): Likewise.
7388
15d72a92
JT
73892002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7390
7391 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7392 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7393 indicate that the condition it was testing is always true.
7394 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7395 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7396 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7397
accc6d1f
JT
73982002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7399
7400 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7401 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7402 tdep->jb_pc and tdep->jb_elt_size.
7403 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7404 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7405 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7406 * alpha-nat.c (get_longjmp_target): Remove.
7407 (JB_ELEMENT_SIZE): Ditto.
7408 (JB_PC): Ditto.
7409 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7410 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7411 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7412 to alpha_get_longjmp_target.
7413 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7414 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7415 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7416
1bfdc549
AC
74172002-04-25 Andrew Cagney <ac131313@redhat.com>
7418
7419 * README: Update to GDB 5.2.
7420
1bd316f0
AC
74212002-04-25 Andrew Cagney <ac131313@redhat.com>
7422
7423 * gdbarch.sh (LC_ALL): Set to `c'.
7424
2e5ff58c
TR
74252002-04-25 Theodore A. Roth <troth@verinet.com>
7426
7427 * avr-tdep.c: Ran through gdb_indent.sh.
7428
e33ce519
TR
74292002-04-25 Theodore A. Roth <troth@verinet.com>
7430
7431 * MAINTAINERS: Add myself as AVR maintainer.
7432 * NEWS: Note new target avr.
7433
8818c391
TR
74342002-04-25 Theodore A. Roth <troth@verinet.com>
7435
7436 * Makefile.in: Add support for AVR target.
7437 * configure.tgt: Add support for AVR target.
7438 * avr-tdep.c: New file
7439 * config/avr/avr.mt: New file.
7440
79509c2d
TR
74412002-04-25 Theodore A. Roth <troth@verinet.com>
7442
7443 * MAINTAINERS: Add myself to write-after-approval.
7444
dac8068e
PM
74452002-04-24 Pierre Muller <ics.u-strasbg.fr>
7446
7447 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7448 with fprintf_unfiltered (gdb_stderr,....
7449
25bf3106
PM
74502002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7451
7452 Fix PR gdb/508.
7453 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7454
24467a86
PM
74552002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7456
7457 * p-exp.y: Also use new prev_lexptr variable
7458 to improve error reporting. Based on Michael Snyder
7459 2002-04-24 dated patch to c-exp.y.
7460
95b80706
JT
74612002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7462
7463 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7464 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7465 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7466 to 0.
7467 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7468 and struct value.
7469 (FUNCTION_START_OFFSET): Remove.
7470 (BREAKPOINT): Ditto.
7471
e90cc612
JT
74722002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7473
7474 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7475 * NEWS: Ditto.
7476
6c72f9f9
JT
74772002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7478
7479 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7480 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7481 alpha_linux_pc_in_sigtramp.
7482 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7483 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7484 alpha_osf1_pc_in_sigtramp.
7485 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7486 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7487 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7488 alphafbsd_pc_in_sigtramp.
7489 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7490 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7491 alphanbsd_pc_in_sigtramp.
7492 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7493 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7494
5e4f3379
JT
74952002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7496
7497 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7498
da8ca43d
JT
74992002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7500
7501 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7502 alphanbsd-tdep.c.
7503 (alphanbsd-nat.o): New dependency list.
7504 (alphanbsd-tdep.o): Ditto.
7505 * NEWS: Note new native NetBSD/alpha configuration.
7506 * alphanbsd-nat.c: New file.
7507 * alphanbsd-tdep.c: Ditto.
7508 * configure.host (alpha*-*-netbsd*): New host.
7509 * configure.tgt (alpha*-*-netbsd*): New target.
7510 * config/alpha/nbsd.mh: New file.
7511 * config/alpha/nbsd.mt: Ditto.
7512 * config/alpha/nm-nbsd.h: Ditto.
7513 * config/alpha/tm-nbsd.h: Ditto.
7514
36a6271d
JT
75152002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7516
7517 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7518 (alpha-osf1-tdep.o): New dependency list.
7519 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7520 and skip_sigtramp_frame members.
7521 * alpha-linux-tdep.c: Include gdbcore.h.
7522 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7523 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7524 * alpha-osf1-tdep.c: New file.
7525 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7526 alpha-osf1-dep.c.
7527 (alpha_frame_past_sigtramp_frame): New function.
7528 (alpha_dynamic_sigtramp_offset): Ditto.
7529 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7530 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7531 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7532 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7533 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7534 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7535 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7536 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7537 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7538 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7539 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7540 to find_solib_trampoline_target.
7541 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7542 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7543 (SKIP_TRAMPOLINE_CODE): Remove.
7544 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7545 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7546 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7547 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7548 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7549 (PROC_SIGTRAMP_MAGIC): Ditto.
7550 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7551 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7552 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7553 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7554 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7555
2f4bc57b
JT
75562002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7557
7558 * NEWS: Note that Alpha targets are now multi-arch.
7559
665132f9
MS
75602002-04-24 Michael Snyder <msnyder@redhat.com>
7561
7562 * parser-defs.h (prev_lexptr): New external variable.
7563 * parse.c (parse_exp_1): Set prev_lexptr to null before
7564 calling the language-specific parser.
7565 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7566 (yyerror): Use prev_lexptr in error reporting.
7567
32872fa7
DJ
75682002-04-24 Daniel Jacobowitz <drow@mvista.com>
7569
7570 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7571 * gregset.h: If FILL_FPXREGSET is defined, provide
7572 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7573 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7574 is defined, call fill_fpxregset.
7575
57e76fac
MS
75762002-04-24 Roland McGrath <roland@frob.com>
7577
7578 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7579 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7580 (supply_gregset, supply_fpregset): New functions.
7581
7582 * gnu-nat.c (gnu_find_memory_regions): New function.
7583 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7584 (gnu_xfer_memory): Add a cast.
7585
f43845b3
MS
75862002-04-24 Michael Snyder <msnyder@redhat.com>
7587
361d1df0 7588 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7589 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7590 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7591 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7592 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7593 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7594
a0abec03
AC
7595Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7596
7597 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7598 NUM_PSEUDO_REGS can be used.
7599
d7bd68ca
AC
76002002-04-24 Andrew Cagney <ac131313@redhat.com>
7601
7602 * arch-utils.h: Update copyright.
7603
7604 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7605 * gdbarch.h, gdbarch.c: Re-generate.
7606
7607 * inferior.h (IN_SIGTRAMP): Delete definition.
7608 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7609 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7610
7611 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7612 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7613 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7614 (find_proc_framesize): Ditto.
7615 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7616 (alpha_init_extra_frame_info): Ditto.
7617 * infrun.c (handle_inferior_event): Ditto.
7618 (handle_inferior_event): Ditto.
7619 (check_sigtramp2): Ditto.
7620 * blockframe.c (create_new_frame): Ditto.
7621 (get_prev_frame): Ditto.
7622 * ppc-linux-tdep.c: Update comments.
7623 * i386-linux-tdep.c: Update comments.
7624 * breakpoint.c (bpstat_what): Update comment.
7625
4867e41e
DM
76262002-04-24 David S. Miller <davem@redhat.com>
7627
21d83aa5
DM
7628 * i960-tdep.c (register_in_window_p): New function.
7629 (i960_find_saved_register): Use it instead of
7630 REGISTER_IN_WINDOW_P.
7631 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7632
4867e41e
DM
7633 * symtab.h (find_stab_function_addr): Kill extern.
7634 * minsyms.c (find_stab_function_addr): Remove from here...
7635 * dbxread.c: ... to here, and mark it static.
7636
69cdf6a2
DM
76372002-04-20 David S. Miller <davem@redhat.com>
7638
7639 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7640 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7641
5a595886
DM
76422002-04-21 David S. Miller <davem@redhat.com>
7643
7644 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7645 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7646 (vx_write_register): Likewise.
7647
1da1a192
JB
76482002-04-23 J. Brobecker <brobecker@gnat.com>
7649
7650 * source.c (is_regular_file): New function.
7651 (openp): Check wether file to open is a regular file
7652 to avoid opening directories.
7653
baa6f10b
JT
76542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7655
7656 * findvar.c (extract_signed_integer): Cast printf argument
7657 to suppress format warning.
7658 (extract_unsigned_integer): Likewise.
7659 * infcmd.c (registers_info): Likewise.
7660 * top.c (get_prompt_1): Likewise.
7661 * valops.c (value_assign): Likewise.
7662 * valprint.c (print_decimal): Likewise.
7663
b2c4da81
L
76642002-04-22 H.J. Lu (hjl@gnu.org)
7665
7666 * c-exp.y (typebase): Support
361d1df0 7667
b2c4da81
L
7668 [long|long long|short] [signed|unsigned] [int|]
7669
7670 and
7671
7672 signed [long|long long|short] int
7673
f267bd6a
JT
76742002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7675
7676 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7677 and vax-tdep.h.
7678 * vax-tdep.h: New file.
7679 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7680 Make several routines static.
7681 (vax_get_saved_register): New function.
7682 (vax_gdbarch_init): New function.
7683 (_initialize_vax_tdep): Register vax_gdbarch_init.
7684 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7685 Remove macros now under the control of gdbarch.
7686
da3c6d4a
MS
76872002-04-22 Michael Snyder <msnyder@redhat.com>
7688
11d3b27d
MS
7689 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7690 Some whitespace and coding standards tweaks.
da3c6d4a 7691
a33f7558
JT
76922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7693
7694 * vax-tdep.c: Include regcache.h.
7695 (vax_call_dummy_words): New.
7696 (sizeof_vax_call_dummy_words): New.
7697 (vax_fix_call_dummy): New function.
7698 (vax_saved_pc_after_call): Ditto.
7699 * config/vax/tm-vax.h: Don't include regcache.h.
7700 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7701 (CALL_DUMMY): Remove.
7702 (CALL_DUMMY_WORDS): Define.
7703 (SIZEOF_CALL_DUMMY_WORDS): Define.
7704 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7705
47a73475
MS
77062002-04-18 Michael Snyder <msnyder@redhat.com>
7707
7708 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7709
52efde73
JT
77102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7711
7712 * vax-tdep.c (vax_frame_chain): New function.
7713 (vax_push_dummy_frame): Ditto.
7714 (vax_pop_frame): Ditto.
7715 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7716 (FRAMELESS_FUNCTION_INVOCATION): Use
7717 generic_frameless_function_invocation_not.
7718 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7719 (POP_FRAME): Use vax_pop_frame.
7720
ea74468c
JT
77212002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7722
7723 * vax-tdep.c (vax_store_struct_return): New function.
7724 (vax_extract_return_value): Ditto.
7725 (vax_store_return_value): Ditto.
7726 (vax_extract_struct_value_address): Ditto.
7727 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7728 vax_store_struct_return.
7729 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7730 (STORE_RETURN_VALUE): Use vax_store_return_value.
7731 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7732
5516aa92
JT
77332002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7734
7735 * vax-tdep.c (vax_frame_saved_pc): New function.
7736 (vax_frame_args_address_correct): Ditto.
7737 (vax_frame_args_address): Ditto.
7738 (vax_frame_locals_address): Ditto.
7739 (vax_frame_num_args): Move code to be in proximity to
7740 other frame-related functions.
7741 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7742 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7743 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7744 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7745 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7746
36af0b35
L
77472002-04-22 H.J. Lu (hjl@gnu.org)
7748
7749 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7750 includedir.
7751
ab62c900
JT
77522002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7753
7754 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7755 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7756 (FRAME_INIT_SAVED_REGS): New macro.
7757
7232b100
JT
77582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7759
7760 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7761
b70d2aee
JT
77622002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7763
7764 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7765 where needed.
7766 (fetch_osf_core_registers): Likewise.
7767 (supply_gregset): Likewise.
7768
a0e8a2d1 77692002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7770
a0e8a2d1
JB
7771 * symfile.h (get_section_index): Define.
7772 * symfile.c (get_section_index): New function.
7773 * mdebugread.c (SC_IS_SBSS): New macro.
7774 (SC_IS_BSS): Return true for the scBss storage class only, as
7775 the scSBss storage class refers to the .sbss section.
7776 (parse_partial_symbols): Discard the symbols which associated
7777 section does not exist.
7778 Make sure to use the .sbss section index for symbols which
7779 storage class is scBss, rather than using the .bss section index.
7780
51eb8b08
JT
77812002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7782
7783 * vax-tdep.c: Update copyright years.
7784 (vax_register_name): New function.
7785 (vax_register_byte): Ditto.
7786 (vax_register_raw_size): Ditto.
7787 (vax_register_virtual_size): Ditto.
7788 (vax_register_virtual_type): Ditto.
7789 * config/vax/tm-vax.h: Update copyright years.
7790 (REGISTER_NAMES): Remove.
7791 (REGISTER_NAME): Define.
7792 (REGISTER_BYTE): Use vax_register_byte.
7793 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7794 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7795 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7796
6cc1c0a8
AC
77972002-04-21 Andrew Cagney <ac131313@redhat.com>
7798
7799 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7800 declaration
7801 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7802
9319a2fe
DM
78032002-04-21 David S. Miller <davem@redhat.com>
7804
7805 * arch-utils.c (generic_prologue_frameless_p): Kill
7806 SKIP_PROLOGUE_FRAMELESS_P code.
7807 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7808 references.
7809 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7810 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7811 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7812 references.
7813 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7814 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7815 (sparc_gdbarch_init): Pass it to
7816 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7817
e9ed6d01
JT
78182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7819
7820 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7821 (alphabsd-nat.o): New dependency list.
7822
36012033
JT
78232002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7824
7825 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7826 alphafbsd-tdep.c.
7827 (alpha-linux-tdep.o): New dependency list.
7828 (alphafbsd-tdep.o): Likewise.
7829
3379287a
JT
78302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7831
7832 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7833 to here...
7834 * alpha-tdep.c: ...from here.
7835 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7836
4bcbd6cb
JT
78372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7838
7839 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7840 prototype from here...
7841 * alpha-tdep.h: ...to here.
7842
b31da25e
AC
78432002-04-21 Andrew Cagney <ac131313@redhat.com>
7844
7845 * frame.h (selected_frame_level): Document as deprecated.
7846 (frame_relative_level): Declare.
7847 * stack.c (frame_relative_level): New function.
7848 (selected_frame_level): Document as deprecated.
7849 (select_frame): Do not set the selected_frame_level.
7850
7851 * stack.c (frame_info, record_selected_frame): Update.
7852 (frame_command, current_frame_command): Update.
7853 (up_silently_base, up_command, down_silently_base): Update.
7854 (down_command): Update.
7855 * inflow.c (kill_command): Update.
7856 * tracepoint.c (finish_tfind_command): Update.
7857 * corelow.c (core_open): Update.
7858 * thread.c (info_threads_command): Update.
7859 (do_captured_thread_select): Update.
7860 * infcmd.c (finish_command): Update.
7861 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7862
9c1d6fe5
JT
78632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7864
7865 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7866
ab89facf
AC
78672002-04-21 Andrew Cagney <ac131313@redhat.com>
7868
7869 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7870 type const.
7871
82a4efa1
JT
78722002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7873
7874 * alphafbsd-tdep.c: Update copyright years. Include
7875 alpha-tdep.h.
7876 (alphafbsd_use_struct_convention): Make static.
7877 (alphafbsd_init_abi): New function.
7878 (_initialize_alphafbsd_tdep): New function.
7879 * config/alpha/tm-fbsd.h: Update copyright years.
7880 (USE_STRUCT_CONVENTION): Remove.
7881
44dffaac
JT
78822002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7883
7884 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7885 an Alpha ABI variant.
7886 (alpha_abi_handler_list): Declare.
7887 (alpha_gdbarch_register_os_abi): New function.
7888 (alpha_gdbarch_init): Give registered ABI variant handlers a
7889 chance to tweak the gdbarch once we have set up defaults.
7890 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7891
65585be4
JT
78922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7893
7894 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7895 to standard_coerce_float_to_double.
7896 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7897
d9b023cc
JT
78982002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7899
7900 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7901 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7902 from gdbarch_tdep rather than a constant.
7903 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7904 the default text address for all Alpha Unix ABIs.
7905 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7906 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7907
dc129d82
JT
79082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7909
7910 * alpha-tdep.h: New file. Includes several Alpha target constants
7911 taken from...
7912 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7913 let gdbarch deal with.
7914 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7915 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7916 to dependency list.
7917 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7918 Alpha target register names.
7919 * alphabsd-nat.c: Likewise.
7920 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7921 Alpha target register names. Make serveral routines static.
7922 (alpha_get_saved_register): New function.
7923 (alpha_abi_names): New.
7924 (process_note_abi_tag_sections): New function.
7925 (get_elfosabi): New function.
7926 (alpha_gdbarch_init): New function.
7927 (alpha_dump_tdep): New function.
7928 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7929
d49d1e0a
AC
79302002-04-21 Andrew Cagney <ac131313@redhat.com>
7931
7932 * frame.c (find_saved_register): Delete #ifdef
7933 HAVE_REGISTER_WINDOWS code.
7934 * config/sparc/tm-sparc.h: Update comments.
7935 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7936
92e8c9ed
AC
79372002-04-21 Andrew Cagney <ac131313@redhat.com>
7938
7939 * i960-tdep.c (i960_find_saved_register): New function.
7940 (i960_get_saved_register): New function.
7941 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7942 (i960_get_saved_register): Declare.
7943 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7944
e1925118
DM
79452002-04-20 David S. Miller <davem@redhat.com>
7946
7947 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7948
29673b29
AC
79492002-04-20 Andrew Cagney <ac131313@redhat.com>
7950
7951 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7952 instead of NUM_PSEUDO_REGS.
7953
6c86dcd5
DM
79542002-04-20 David S. Miller <davem@redhat.com>
7955
7956 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7957 GDB_MULTI_ARCH_PARTIAL
7958 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7959 define, let tm-sp64.h do it.
7960
aa40ec90
JT
79612002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7962
7963 * frame.c (find_saved_register): Avoid a NULL pointer
7964 dereference and actually walk the frame list.
7965
0f79675b
AC
79662002-04-20 Andrew Cagney <ac131313@redhat.com>
7967
7968 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7969 sorted in most most-recent-used order. Document.
7970 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7971
f91305dd 79722002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7973
7974 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7975 instead of ->prev.
7976 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7977 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7978 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7979 instead of ->prev.
7980
73d322b1
EZ
79812002-04-19 Elena Zannoni <ezannoni@redhat.com>
7982
7983 Fix PR gdb/471.
7984 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7985 (build_builtin_type_vec128): Ditto.
7986 (append_composite_type_field): Fix calculation of type length in
7987 union case.
7988
ccd9a834
EZ
79892002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7990
7991 * config/djgpp/README: Update.
7992
7993 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7994 compiler warnings.
7995
a57f9e49
JT
79962002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7997
7998 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7999 (alpha_setup_arbitrary_frame): ...to this.
8000 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8001 for alpha_setup_arbitrary_frame.
8002
f4f9705a
AC
80032002-04-18 Andrew Cagney <cagney@redhat.com>
8004
8005 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8006 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8007
f4f9705a
AC
8008 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8009 * target.h (memory_breakpoint_from_pc): Update declaration.
8010 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8011
8012 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8013 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8014 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8015 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8016 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8017 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8018 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8019 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8020 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8021 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8022 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8023 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8024
8025 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8026 const pointer.
8027 * monitor.c (monitor_insert_breakpoint): Ditto.
8028 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8029
8030 * config/mcore/tm-mcore.h: Update copyright.
8031 * mem-break.c: Ditto.
8032 * xstormy16-tdep.c: Ditto.
8033
29f319b8
PM
80342002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8035
8036 * p-exp.y: Add precedence rule for '^' token.
8037 This removes the shift/reduce conflicts.
8038 Remove the comment concerning these shift/reduce conflicts.
8039
ebeac11a
EZ
80402002-04-18 Elena Zannoni <ezannoni@redhat.com>
8041
8042 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8043 (registers_powerpc_nofp): New register set for processors
8044 without floating point unit.
8045
27c31547
DM
80462002-04-18 David S. Miller <davem@redhat.com>
8047
8048 * MAINTAINERS: Add myself to write-after-approval.
8049
47a73475
MS
80502002-04-17 Michael Snyder <msnyder@redhat.com>
8051
8052 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8053
953836b2
AC
80542002-04-17 Andrew Cagney <ac131313@redhat.com>
8055
8056 * rs6000-tdep.c (frame_initial_stack_address): Use
8057 frame_register_read to read the alloca_reg.
8058
8b0d4340
AC
80592002-04-17 Andrew Cagney <ac131313@redhat.com>
8060
8061 * frame.c (find_saved_register): Find saved registers in the next
8062 not prev frame.
8063 Fix PR gdb/365.
8064
d8864532
AC
80652002-04-17 Andrew Cagney <ac131313@redhat.com>
8066
8067 * gdbarch.sh (LANG): Set to ``c''.
8068
36cc83a3 80692002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8070
36cc83a3 8071 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8072
2f4150cc 80732002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8074
8075 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8076 Update copyright.
8077
628703c6 8078 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8079 Also fix PR gdb/391.
361d1df0 8080
56157b4a
AC
80812002-04-14 Andrew Cagney <ac131313@redhat.com>
8082
8083 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8084 * aclocal.m4, configure: Re-generate.
8085 Fix PR gdb/391.
361d1df0 8086
6d1e3329
EZ
80872002-04-14 Elena Zannoni <ezannoni@redhat.com>
8088
8089 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8090 instead of tm_print_insn.
8091
cb06fa07
EZ
80922002-04-14 Elena Zannoni <ezannoni@redhat.com>
8093
8094 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8095
f208ba17
AC
80962002-04-14 Andrew Cagney <ac131313@redhat.com>
8097
8098 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8099 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8100 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8101
20f01a46
DH
81022002-04-12 Don Howard <dhoward@redhat.com>
8103
8104 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8105 max_user_call_depth.
8106 (init_cmd_lists): Initialize the new value;
8107 * cli/cli-script.c (execute_user_command): Limit the call depth of
8108 user defined commands. This avoids a core-dump when user commands
8109 are infinitly recursive.
8110
a88376a3
KB
81112002-04-12 Kevin Buettner <kevinb@redhat.com>
8112
8113 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8114 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8115 from tdep struct instead of DEFAULT_LR_SAVE.
8116 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8117 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8118 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8119
f2172603
MS
81202002-04-12 Michael Snyder <msnyder@redhat.com>
8121
694f61fb 8122 * Remote.c: Spelling fix.
20fe79c8
MS
8123 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8124 If no symbol found for "sbrk", try "_sbrk".
8125 (make_output_phdrs): Use bfd_section_name.
8126 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8127 * eval.c: Indentation fix-ups.
169a7369
MS
8128 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8129 in case it gets applied to an address that is already
8130 in the instruction space.
de74f71f
MS
8131 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8132 * symfile.c: Fix indentation, long lines.
f2172603
MS
8133 * source.c: White space fix-up.
8134
cda5a58a
AC
81352002-04-12 Andrew Cagney <cagney@redhat.com>
8136
8137 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8138 * frame.c (frame_register_read): New function. Return non-zero on
8139 success.
8140 (read_relative_register_raw_bytes_for_frame): Delete.
8141 (read_relative_register_raw_bytes): Delete.
8142 * frame.h (frame_register_read): Declare.
8143 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8144 * sh-tdep.c: Ditto.
8145 * infcmd.c (do_registers_info): Ditto.
8146 * hppa-tdep.c: Ditto.
8147 * rs6000-tdep.c: Ditto.
8148 * h8500-tdep.c: Ditto.
8149 * mips-tdep.c: Ditto.
8150 * h8300-tdep.c: Ditto.
8151 * z8k-tdep.c: Ditto.
8152
2ea5f656
KB
81532002-04-12 Kevin Buettner <kevinb@redhat.com>
8154
8155 From Jimi X <jimix@watson.ibm.com>:
8156 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8157 64-bit SysV ABI.
8158
27b15785
KB
81592002-04-12 Kevin Buettner <kevinb@redhat.com>
8160
8161 From Jimi X <jimix@watson.ibm.com>:
8162 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8163 bfd info.
8164
5d57ee30
KB
81652002-04-12 Kevin Buettner <kevinb@redhat.com>
8166
8167 From Jimi X <jimix@watson.ibm.com>:
8168 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8169 register sets for these processor variants.
8170
bc1e36ca
DJ
81712002-04-11 Daniel Jacobowitz <drow@mvista.com>
8172
bc1e36ca
DJ
8173 * regformats/reg-ppc.dat: Support FPSCR.
8174
e3f36dbd
KB
81752002-04-11 Kevin Buettner <kevinb@redhat.com>
8176
8177 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8178 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8179 Add fpscr as an invalid/unfetchable register.
8180 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8181 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8182 (fill_fpregset): Add support for register fpscr.
8183 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8184 (fill_gregset): Account for the fact that register ``mq'' might
8185 not exist.
8186 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8187 (registers_power): Add fpscr to register set at slot 71.
8188 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8189 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8190
943c9c25
MS
81912002-04-11 Michael Snyder <msnyder@redhat.com>
8192
8193 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8194 * configure: Regenerate.
8195 * config.in: Regenerate.
8196 * acconfig.h: Add define for _SYSCALL32.
8197 * core-sol2.c: Remove #define _SYSCALL32.
8198 * solib-legacy.c: Remove #define _SYSCALL32.
8199
d8c0a2e7
AC
82002002-04-10 Andrew Cagney <ac131313@redhat.com>
8201
8202 * stack.c (select_frame): Cleanup internal error message, do not
8203 use %p.
8204
7cc19214
AC
82052002-04-10 Andrew Cagney <ac131313@redhat.com>
8206
8207 * stack.c (select_frame): Check that selected_frame and the
8208 specified level are as expected.
8209 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8210 Update copyright.
8211 * frame.h (struct frame_info): Add field `level'. Update
8212 copyright.
8213 Work-in-progress PR gdb/464.
8214
67a2b77e
AC
82152002-04-10 Andrew Cagney <ac131313@redhat.com>
8216
8217 * maint.c (maint_print_section_info): Rename print_section_info.
8218 (print_bfd_section_info, print_objfile_section_info): Update.
8219 * inferior.h (struct gdbarch): Add opaque declaration.
8220 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8221 * gdbarch.h: Regenerate.
8222
8cfda98c
ML
82232002-04-10 Michal Ludvig <mludvig@suse.cz>
8224
8225 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8226 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8227 (kernel_u_size): Added.
8228 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8229 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8230
ca439ad2 82312002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8232
ca439ad2
JI
8233 * valarith.c (find_size_for_pointer_math): New function, either returns
8234 the size for a pointer's target, returns 1 for void *, or errors for
8235 incomplete types.
8236 (value_add, value_sub): use find_size_for_pointer_math.
8237
2f2893d9
DJ
82382002-04-09 Daniel Jacobowitz <drow@mvista.com>
8239
8240 * linux-low.c (linux_look_up_symbols): New hook.
8241 (linux_target_ops): Add linux_look_up_symbols.
8242 * remote-utils.c (decode_address): New function.
8243 (look_up_one_symbol): New function.
8244 * server.c (handle_query): Call target look_up_symbols hook.
8245 * server.h (look_up_one_symbol): Add prototype.
8246 * target.h (struct target_ops): Add look_up_symbols hook.
8247
96cb11df
AC
82482002-04-09 Andrew Cagney <ac131313@redhat.com>
8249
8250 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8251 override FP_REGNUM with frame->fp. Update copyright.
8252 * parse.c (num_std_regs, std_regs): Delete.
8253 (target_map_name_to_register): Do not search std_regs. Update
8254 function description.
8255 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8256 declarations. Update copyright.
8257 Fix PR gdb/251.
361d1df0 8258
97658e92
DJ
82592002-04-09 Daniel Jacobowitz <drow@mvista.com>
8260
8261 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8262 after the last symbol in a block.
8263
6044e3eb
PM
82642002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8265
8266 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8267 is non zero as a found symbol.
8268
0406ec40
AC
82692002-04-08 Andrew Cagney <ac131313@redhat.com>
8270
8271 * findvar.c: Include "builtin-regs.h".
8272 (value_of_register): Call value_of_builtin_reg when applicable.
8273 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8274 (target_map_name_to_register): Call
8275 builtin_reg_map_name_to_regnum.
8276 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8277 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8278 (builtin_regs_h): Define.
8279 (builtin-regs.o): New target.
8280 (findvar.o): Add $(builtin_regs_h).
8281 * builtin-regs.c, builtin-regs.h: New files.
8282 * std-regs.c: New file.
8283 Partial fix for PR gdb/251.
8284
56a6dfb9
KB
82852002-04-08 Kevin Buettner <kevinb@redhat.com>
8286
8287 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8288 it's no longer required.
8289
3a808432
AC
82902002-04-08 Andrew Cagney <ac131313@redhat.com>
8291
8292 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8293
7c40d541
KB
82942002-04-08 Kevin Buettner <kevinb@redhat.com>
8295
8296 From Jimi X <jimix@watson.ibm.com>:
8297 * rs6000-tdep.c (rs6000_software_single_step): Use
8298 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8299 and size. Use target_insert_breakpoint() and
8300 target_remove_breakpoint() to insert and remove breakpoints
8301 instead of explicit memory reads and writes.
8302
cc9836a8
KB
83032002-04-08 Kevin Buettner <kevinb@redhat.com>
8304
8305 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8306 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8307 ELF_OBJECT_FORMAT ifdef.
8308
7495d1dc
KB
83092002-04-08 Kevin Buettner <kevinb@redhat.com>
8310
8311 From Jimi X <jimix@watson.ibm.com>:
8312 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8313
4288e836
KB
83142002-04-08 Kevin Buettner <kevinb@redhat.com>
8315
8316 From Jimi X <jimix@watson.ibm.com>:
8317 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8318 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8319
a4e4e501
MK
83202002-04-07 Mark Kettenis <kettenis@gnu.org>
8321
8322 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8323 s/asprintf/xasprintf/.
8324 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8325
006defba
AC
83262002-04-07 Andrew Cagney <ac131313@redhat.com>
8327
8328 I believe Jeff Law denies responsability for this one:
8329 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8330 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8331 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8332 Work-around for PR gdb/366.
8333
7aa83cac
EZ
83342002-04-07 Elena Zannoni <ezannoni@redhat.com>
8335
8336 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8337 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8338 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8339
cf1fcca1
EZ
83402002-04-07 Elena Zannoni <ezannoni@redhat.com>
8341
8342 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8343 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8344 information.
8345
3f289e6f
AC
83462002-04-07 Andrew Cagney <ac131313@redhat.com>
8347
8348 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8349 maintainer.
8350
129188f6
AC
83512002-04-07 Andrew Cagney <ac131313@redhat.com>
8352
8353 * README (Reporting Bugs in GDB): Document the bug web page as the
8354 prefered way of submitting bugs.
8355 Fix PR gdb/402.
8356
1200cd6e
AC
83572002-04-06 Andrew Cagney <ac131313@redhat.com>
8358
8359 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8360 -1. Update comment.
8361 * gdbarch.h, gdbarch.c: Re-generate.
8362
2853c33c
AS
83632002-04-07 Andreas Schwab <schwab@suse.de>
8364
8365 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8366 buffer to regcache_collect.
8367
c2169756
AC
83682002-04-06 Andrew Cagney <ac131313@redhat.com>
8369
8370 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8371 * gdbarch.c, gdbarch.h: Re-generate.
8372
25f1b008
AC
83732002-04-06 Andrew Cagney <ac131313@redhat.com>
8374
8375 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8376 declaration. Fix -Werror.
8377
59263426
DJ
83782002-04-05 Daniel Jacobowitz <drow@mvista.com>
8379
8380 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8381 * gdbarch.c: Regenerate.
8382
f5db4da3
MS
83832002-04-05 Michael Snyder <msnyder@redhat.com>
8384
80f8a6eb
MS
8385 * breakpoint.c (clear_command): Rewrite middle section to
8386 combine two loops with identical control conditions.
8387 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8388 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8389
ad3dcc5c
L
83902002-04-05 H.J. Lu (hjl@gnu.org)
8391
8392 * solib-svr4.c (bkpt_names): Add "__start".
8393
f32e7a74
AC
83942002-04-04 Andrew Cagney <ac131313@redhat.com>
8395
8396 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8397 as test for 64 bit target.
8398
8227c0ff
AC
83992002-04-05 Andrew Cagney <ac131313@redhat.com>
8400
8401 * h8500-tdep.c (h8500_write_fp): Delete function.
8402 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8403 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8404 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8405 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8406 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8407 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8408 (s390_write_fp):
8409 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8410 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8411 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8412 (d10v_write_fp): Delete function.
8413 * inferior.h (write_fp, generic_target_write_fp): Delete
8414 declarations.
8415 * regcache.c (generic_target_write_fp): Delete function.
8416 (write_fp): Delete function.
8417 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8418 * gdbarch.h, gdbarch.c: Regenerate.
8419 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8420 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8421 (sparc64_write_fp): Delete declaration.
8422 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8423 (h8500_write_fp): Delete declaration.
8424
2757dd86
AC
84252002-04-04 Andrew Cagney <ac131313@redhat.com>
8426
8427 * sparc-tdep.c (sparc64_write_fp): Delete.
8428 (sparc_push_dummy_frame): Replace write_fp call with code to store
8429 the FP directly.
8430 (sparc_gdbarch_init): Do not initialize write_fp.
8431
c69255e1
KB
84322002-04-05 Kevin Buettner <kevinb@redhat.com>
8433
8434 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8435 clause.
8436
ae767bfb
JB
84372002-03-29 Jim Blandy <jimb@redhat.com>
8438
8439 * stack.c (get_selected_block): Add new argument `addr_in_block',
8440 used to return the exact code address we used to select the block,
8441 not just the block.
8442 * blockframe.c (get_frame_block, get_current_block): Same.
8443 * frame.h (get_frame_block, get_current_block,
8444 get_selected_block): Update declarations.
8445 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8446 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8447
84d2ac95
MS
84482002-04-05 Michael Snyder <msnyder@redhat.com>
8449
8450 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8451 warning message.
8452
596aa3bf
JB
84532002-04-05 J. Brobecker <brobecker@gnat.com>
8454
8455 * utils.c (xfullpath): New function.
8456 * defs.h (xfullpath): Add declaration.
8457 * source.c (openp): Use xfullpath in place of gdb_realpath to
8458 avoid resolving the basename part of filenames when the
8459 associated file is a symbolic link. This fixes a potential
8460 inconsistency between the filenames known to GDB and the
8461 filenames it prints in the annotations.
8462 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8463 to be able to match a filename with either the real filename, or
8464 the name of any symbolic link to this file.
8465 (lookup_partial_symtab): Ditto.
8466
c02f5703
MS
84672002-04-04 Michael Snyder <msnyder@redhat.com>
8468
8469 * breakpoint.c: Add support for hardware breakpoints in overlays.
8470 (overlay_events_enabled): New state variable.
8471 (insert_breakpoints): Use overlay_events_enabled to decide
8472 whether to attempt to set a breakpoint at the overlay load addr.
8473 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8474 (remove_breakpoint): Use overlay_events_enabled to decide
8475 whether breakpoints need to be removed from overlay load addr.
8476 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8477 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8478 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8479 disable_overlay_breakpoints): Update overlay_events_enabled.
8480
5fb290d7
DJ
84812002-04-04 Daniel Jacobowitz <drow@mvista.com>
8482
8483 * dwarf2read.c (struct function_range): New.
8484 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8485 (check_cu_functions): New.
8486 (read_file_scope): Initialize global function lists.
8487 Call dwarf_decode_line after processing children.
8488 (read_func_scope): Add to global function list.
8489 (dwarf_decode_lines): Call check_cu_functions everywhere
8490 record_line is called. Call record_line with a linenumber
8491 of 0 to mark sequence ends.
8492
7b3fabf0
ML
84932002-04-04 Michal Ludvig <mludvig@suse.cz>
8494
361d1df0 8495 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8496 change sync with glibc.
8497
bce58c09
JB
84982002-04-03 Jim Blandy <jimb@redhat.com>
8499
8500 * configure.in: Call AC_C_INLINE.
8501 * configure: Regenerated.
361d1df0 8502
2fccf04a
DJ
85032002-04-01 Daniel Jacobowitz <drow@mvista.com>
8504
8505 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8506 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8507
2d1bfe2e
MK
85082002-03-31 Mark Kettenis <kettenis@gnu.org>
8509
a5941fbf
MK
8510 * NEWS: Mention gcore support on FreeBSD/i386.
8511
a90cd31d
MK
8512 * fbsd-proc.c: New file.
8513 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8514 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8515
2d1bfe2e
MK
8516 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8517 while statement.
8518
9eb6e5a1
JB
85192002-03-29 Jim Blandy <jimb@redhat.com>
8520
8521 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8522 unescaped newlines in string literals, but newer ones don't. So
8523 escape them.
8524
f02df580
MS
85252002-03-26 Michael Snyder <msnyder@redhat.com>
8526 Andrew Cagney <cagney@redhat.com>
8527
361d1df0 8528 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8529 restore file to memory.
8530 * cli/cli-dump.h: New file.
8531 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8532 * NEWS: Mention new commands.
f02df580 8533
109f874e
MS
85342002-03-28 Michael Snyder <msnyder@redhat.com>
8535
8536 * symfile.c (symbol_file_add): Move test for null symbols to later.
8537
520f6ade
AC
85382002-03-27 Andrew Cagney <ac131313@redhat.com>
8539
8540 From veksler at il.ibm.com:
8541 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8542 the xstrduped original path.
8543 Fix PR gdb/417.
8544
d4654627
MS
85452002-03-27 Michael Snyder <msnyder@redhat.com>
8546
8547 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8548 * infcmd.c (_initialize_infcmd): Ditto.
8549 * language.c (_initialize_language): Ditto.
8550 * symfile.c (_initialize_symfile): Ditto.
8551 * top.c (_init_main): Ditto.
8552 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8553
6be8bc0c
EZ
85542002-03-27 Elena Zannoni <ezannoni@redhat.com>
8555
8556 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8557 vector registers handling.
8558 (skip_prologue): Handle new AltiVec instructions. Fill in new
8559 fields of frame data.
8560 (frame_get_saved_regs): Fill in information for AltiVec registers.
8561
12af6855
JB
85622002-03-27 Jim Blandy <jimb@redhat.com>
8563
8564 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8565 a function; leave this macro here to invoke that function.
8566 (symbol_init_mangled_name): Declaration for that function.
8567 * symtab.c (symbol_init_mangled_name): New function.
8568
dc672865
AC
85692002-03-27 Andrew Cagney <ac131313@redhat.com>
8570
8571 * valarith.c: Replace strerror with safe_strerror.
8572 * tracepoint.c: Ditto.
8573 * lin-lwp.c: Ditto.
8574 * go32-nat.c: Ditto.
8575 * inflow.c: Ditto.
8576 * gnu-nat.c: Ditto.
8577
d96429cd
AS
85782002-03-27 Andreas Schwab <schwab@suse.de>
8579
8580 * event-top.c (command_line_handler): Remove useless if.
8581
7e336ba1
AJ
85822002-03-27 Andreas Jaeger <aj@suse.de>
8583
8584 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8585 comment.
8586
de220d0f
ML
85872002-03-27 Michal Ludvig <mludvig@suse.cz>
8588
8589 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8590 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8591 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8592 (x86_64_linux_dr_get_status, supply_gregset),
8593 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8594 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8595 (x86_64_register_info_table): Add.
8596 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8597 (x86_64_register_raw_size, x86_64_register_virtual_type),
8598 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8599 general x86_64_register_info_table.
8600 (i386_gdbarch_init): gdbarch_register_bytes is now set
8601 dynamicaly during initialization.
8602 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8603 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8604
0e98d0a7
DJ
86052002-03-27 Daniel Jacobowitz <drow@mvista.com>
8606
8607 * gdbserver/server.c (main): Call target_signal_to_host_p
8608 and target_signal_to_host on signals received from the remote.
8609 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8610 target_signal_from_host on signals sent to the remote.
8611 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8612 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8613
3130066b
DJ
86142002-03-27 Daniel Jacobowitz <drow@mvista.com>
8615
8616 * signals/signals.c: Include "server.h" in gdbserver build.
8617 (target_signal_from_name): Don't use STREQ.
8618 (_initialize_signals): Likewise. Don't include function in
8619 gdbserver build.
8620
9aedf4f4
DJ
86212002-03-27 Daniel Jacobowitz <drow@mvista.com>
8622
8623 * signals.c: Moved to...
8624 * signals/signals.c: Here.
7e336ba1 8625 * Makefile (signals.o): Update.
9aedf4f4 8626
3fa41cdb
JL
86272002-03-26 Jeff Law (law@redhat.com)
8628
8629 * somread.c (som_symtab_read): Remove some commented out code and
8630 updated related comments. Do not set the minimal symbol table to
8631 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8632 in a dynamic executable.
8633 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8634 where we are unable to find the minimal symbol for the given
8635 PC value.
8636
ee677e8d
MS
86372002-03-25 Jeff Law (law@redhat.com)
8638
8639 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8640
e76e1718
ML
86412002-03-25 Michal Ludvig <mludvig@suse.cz>
8642
8643 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8644
18a642a1
AC
86452002-03-23 Andrew Cagney <ac131313@redhat.com>
8646
8647 * command.h: Update copyright.
8648 (struct cmd_list_element): Replace definition with opaque
8649 declaration.
8650 (enum cmd_types): Document that it will eventually be moved to
8651 cli/cli-decode.h
8652 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8653 (MALLOCED_REPLACEMENT): Delete macro.
8654 * Makefile.in (cli_decode_h): Add $(command_h).
8655 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8656 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8657 * completer.c: Include "cli/cli-decode.h".
8658 * maint.c: Include "cli/cli-decode.h".
8659 * cli/cli-decode.h: Include "command.h".
8660 (enum command_class): Delete.
8661 (enum cmd_types): Comment out.
8662 (enum cmd_auto_boolean): Delete.
8663 (enum var_types): Delete.
8664
b2875cc0
AC
86652002-03-23 Andrew Cagney <ac131313@redhat.com>
8666
8667 * cli/cli-decode.c: Include "gdb_assert.h".
8668 (add_set_or_show_cmd): New static function.
8669 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8670 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8671 all fields, such as func, from the set command.
8672
3b45974e
AC
86732002-03-23 Andrew Cagney <ac131313@redhat.com>
8674
8675 * MAINTAINERS (sh-elf): Change warning flag to -w.
8676
823ca731
AC
86772002-03-23 Andrew Cagney <cagney@redhat.com>
8678
8679 * defs.h (error): Add printf format attribute.
8680 * thread-db.c (thread_from_lwp): Fix error format string.
8681 * stack.c (parse_frame_specification): Ditto.
8682 * cli/cli-decode.c (undef_cmd_error): Ditto.
8683 * scm-lang.c (scm_lookup_name): Ditto.
8684 * tracepoint.c (trace_error): Ditto.
8685 * remote-utils.c (usage): Ditto.
8686 * remote.c (compare_sections_command): Ditto.
8687 Fix PR gdb/328.
8688
0e101458
AC
86892002-03-22 Andrew Cagney <ac131313@redhat.com>
8690
8691 * gdbtypes.c (append_composite_type_field): New function.
8692 (init_composite_type): New function.
8693 * gdbtypes.h (append_composite_type_field): Declare.
8694 (init_composite_type): Ditto.
8695
8e0662df
EZ
86962002-03-22 Elena Zannoni <ezannoni@redhat.com>
8697
8698 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8699 function.
8e0662df
EZ
8700 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8701 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8702 structure returning convention for SYSV ABI case, but not
8703 for GNU/Linux, FreeBSD, or NetBSD.
8704
3121eff0
DJ
87052002-03-22 Daniel Jacobowitz <drow@mvista.com>
8706
8707 * symtab.h (lookup_block_symbol): Add mangled_name argument
8708 to prototype.
8709
8710 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8711 with new mangled_name argument.
8712 * linespec.c (decode_line_1): Likewise.
8713 * valops (value_of_this): Likewise.
8714 * symtab.c (lookup_transparent_type): Likewise.
8715 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8716 (lookup_symbol): If we are given a mangled name, pass it down
8717 to lookup_symbol_aux.
8718 (lookup_block_symbol): If we are given a mangled name to check
8719 against, only return symbols which match it.
8720
349b409f
CF
87212002-03-22 Christopher Faylor <cgf@redhat.com>
8722
8723 * win32-nat.c (child_create_inferior): Check for proper shell to use
8724 here, in case the user changes it on the fly.
8725 (_initialize_inftarg): Remove shell path considerations.
8726
2a873819
EZ
87272002-03-21 Elena Zannoni <ezannoni@redhat.com>
8728
8729 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8730 for gdbarch_max_register_raw_size and max_register_virtual_size.
8731 Adjust copyright year.
8732
a1b9830c
DJ
87332002-03-21 Daniel Jacobowitz <drow@mvista.com>
8734
8735 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8736 in a function to cover the entire beginning of the function
8737 as well if it does not already.
8738
8b5790f2
TR
87392002-03-21 Tom Rix <trix@redhat.com>
8740
8741 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8742 (rs6000_ptrace64): Renamed from ptrace64.
8743
bdbe5747
MH
87442002-03-20 Martin M. Hunt <hunt@redhat.com>
8745
8746 * gdbserver/remote-utils.c (remote_open): Don't call
8747 getprotobyname, we're all using TCP here so just use
8748 IPPROTO_TCP.
7e336ba1 8749 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8750
87512002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8752
bdbe5747
MH
8753 * regcache.c (_initialize_regcache): No need to call
8754 build_regcache() at this time; it gets called whenever
8755 the gdbarch changes.
8756
7781cd62
DB
87572002-03-20 David O'Brien <obrien@FreeBSD.org>
8758
8759 * sparc-nat.c: Include sys/param.h where possible.
8760
f65ca430
DJ
87612002-03-20 Daniel Jacobowitz <drow@mvista.com>
8762
8763 Fix PR gdb/422.
8764 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8765 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8766 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8767 complex types.
8768 * stabsread.c (rs6000_builtin_type): Likewise.
8769 (read_sun_floating_type): Likewise.
8770
0c867556
PS
87712002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8772
8773 * stabsread.c (read_member_functions): Remove skip code for duplicate
8774 constructor/destructor methods. Use standard parsing for these
8775 methods and just do not chain them to the list of methods after
8776 parsing.
8777
12b9c64f
AO
87782002-03-19 Alexandre Oliva <aoliva@redhat.com>
8779
8780 * coffread.c: Remove redundant static declarations. Replace
8781 occurrences of `PTR' with `void *'.
8782 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8783 * top.h (quit_cover): Likewise.
8784 * defs.h (catch_errors): Likewise.
8785
349c5d5f
AC
87862002-03-18 Andrew Cagney <ac131313@redhat.com>
8787
8788 * defs.h (XMALLOC): Define.
8789 * gdb-events.sh (XMALLOC): Delete macro.
8790 * gdb-events.c, gdb-events.h: Regenerate.
8791 * gdbarch.sh (XMALLOC): Delete macro.
8792 * gdbarch.c: Regenerate.
8793 * serial.c (XMALLOC): Delete macro.
8794 * ui-file.c (XMALLOC): Ditto.
8795 * ser-unix.h (XMALLOC): Ditto.
8796 * sh-tdep.c (XMALLOC): Ditto.
8797 * ui-out.c (XMALLOC): Ditto.
8798 * utils.c (XMALLOC): Ditto.
8799 * i386-tdep.c (XMALLOC): Ditto.
8800 * gdb-events.c (XMALLOC): Ditto.
8801 * d10v-tdep.c (XMALLOC): Ditto.
8802 * cli-out.c (XMALLOC): Ditto.
8803
8804 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8805 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8806 * ui-file.c, ui-out.c: Ditto.
8807
7d0766f3
AC
88082002-03-18 Andrew Cagney <ac131313@redhat.com>
8809
8810 * command.h (struct cmd_list_element): Add field context.
8811 (set_cmd_context, get_cmd_context): Declare.
8812 * cli/cli-decode.h: Ditto.
8813 * cli/cli-decode.c (get_cmd_context): New function.
8814 (set_cmd_context): New function.
8815 (add_cmd): Initialize context.
8816 Part of fixing PR gdb/145 and PR gdb/146.
8817
5913bcb0
AC
88182002-03-17 Andrew Cagney <ac131313@redhat.com>
8819
1868c04e
AC
8820 * cli/cli-decode.c (cmd_type): New function.
8821 * command.h (cmd_type): Declare.
8822 * infrun.c (set_schedlock_func): Call function cmd_type.
8823 * kod.c (kod_set_os): Call cmd_type.
8824 * cris-tdep.c (cris_version_update): Use function cmd_type.
8825 (cris_mode_update, cris_abi_update): Ditto.
8826
5913bcb0
AC
8827 * command.h: (execute_cmd_post_hook): Declare.
8828 (execute_cmd_pre_hook): Declare.
8829 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8830 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8831 functions. Execute pre/post hook while ensuring that afterwords
8832 hook_in is cleared.
8833 * top.c (execute_command): Use execute_cmd_post_hook, and
8834 execute_cmd_pre_hook to execute pre/post commands.
8835 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8836 hook_stop_stub.
8837 (hook_stop_stub): Call execute_cmd_pre_hook.
8838
b51450c9
AC
88392002-03-17 Andrew Cagney <ac131313@redhat.com>
8840
8841 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8842 set'' and this leads to a core dump. Move xstrdup of
8843 operating_system to after check that it is not NULL.
8844
f66c9f11
AC
88452002-03-17 Andrew Cagney <ac131313@redhat.com>
8846
8e694ecf
AC
8847 * kod.c (kod_set_os): Remove unnecessary check that
8848 ``command->type'' is set_cmd.
8849
f66c9f11
AC
8850 * valprint.c (set_input_radix): Use input_radix.
8851 (set_output_radix): Use output_radix.
8852 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8853 isn't reverted.
8854
9d01611c
AC
88552002-03-16 Andrew Cagney <ac131313@redhat.com>
8856
8857 * value.h (struct value): Delete field ``substring_addr''. Change
8858 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8859 force_core_addr_align and force_pointer_aligh.
8860
8861 * value.h (struct value): Fix typo in above change.
9d01611c 8862
4156bb53
PS
88632002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8864
8865 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8866 to fix internal_error from ``maintenance print architecture''.
8867
0e5e3ea6
PS
88682002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8869
8870 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8871 for gcc versions after gcc-2.8.1.
8872
9b013045
PS
88732002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8874
8875 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8876 for method resolution. Restore adjustment of ``this'' pointer after
8877 calling value_struct_elt, which was accidentally removed during the
8878 HP merge.
8879
376c9600
AC
88802002-03-15 Andrew Cagney <ac131313@redhat.com>
8881
8882 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8883 value_of_register.
8884 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8885 get_saved_register.
8886 * value.h (value_of_register): Update.
8887
a4db0f07
RH
88882002-03-14 Richard Henderson <rth@redhat.com>
8889
8890 * configure.in: Detect declaration for canonicalize_file_name.
8891 * utils.c (canonicalize_file_name): Declare, if needed.
8892 (gdb_realpath): Prefer realpath if available and usable.
8893 * config.in, configure: Rebuild.
8894
96383835
RH
88952002-03-14 Richard Henderson <rth@redhat.com>
8896
8897 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8898 a constant array bound.
8899
8900 * MAINTAINERS: Add myself to write-after-approval.
8901
75245b24
MS
89022002-03-14 Michael Snyder <msnyder@redhat.com>
8903
8904 * symfile.c (syms_from_objfile): Return immediately if no syms.
8905 (symbol_file_add): Return immediately if no syms.
8906 (find_sym_fns): Return immediately if no syms.
8907
e641a1ca
ML
89082002-03-13 Michal Ludvig <mludvig@suse.cz>
8909
8910 * gdbserver/remote-util.c (remote_open): Print remote-side's
8911 IP address when remote debugging over the network.
7e336ba1 8912
df08bfec
DB
89132002-03-12 David O'Brien <obrien@FreeBSD.org>
8914
8915 * config/sparc/fbsd.mh: Fix copyright.
8916 * config/sparc/fbsd.mt: Likewise.
8917
9a57864f
RE
89182002-03-11 Richard Earnshaw <rearnsha@arm.com>
8919
8920 * MAINTAINERS: Fix typo in name of gdb warnings option.
8921 (x86-64): Fix formating so that this can be parsed by awk.
8922
dd7bf85e
DJ
89232002-03-10 Daniel Jacobowitz <drow@mvista.com>
8924
8925 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8926 * defs.h: Include "gdb/signals.h".
8927 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8928
33a0a2ac
ML
89292002-03-10 Michal Ludvig <mludvig@suse.cz>
8930
8931 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8932 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8933 from x86-64-tdep.h
8934
dd824b04
DJ
89352002-03-10 Daniel Jacobowitz <drow@mvista.com>
8936 Don Howard <dhoward@redhat.com>
8937
8938 * mips-tdep.c (ST0_FR): Define.
8939 (mips2_fp_compat): New function, temporarily disabled.
8940 (mips_read_fp_register_single): New function.
8941 (mips_read_fp_register_double): New function.
8942 (mips_print_register): Use them.
8943 (do_fp_register_row): Likewise.
8944
6a41ff59
AC
89452002-03-09 Andrew Cagney <ac131313@redhat.com>
8946
8947 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8948 approval''.
8949
4ea09c10
PS
89502002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8951
8952 * stabsread.c (read_member_functions): Fix is_stub test for
8953 static member functions, improve comment.
8954
6ccc741d
RE
89552002-03-07 Richard Earnshaw <rearnsha@arm.com>
8956
8957 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8958 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8959 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8960 commands that set boolean values.
8961 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8962 (arm_rdi_resume): Always initialize PC.
8963 (arm_rdi_open): Don't use rslt as a boolean.
8964 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8965 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8966 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8967 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8968
438013df
AO
89692002-03-06 Alexandre Oliva <aoliva@redhat.com>
8970
8971 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8972 * configure: Rebuilt.
8973
70ed8774
SC
89742002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8975
8976 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8977 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8978
5ba2abeb
AC
89792002-03-06 Andrew Cagney <ac131313@redhat.com>
8980
8981 * cli/cli-decode.c (set_cmd_completer): New function.
8982 * command.h (set_cmd_completer): Declare.
8983 * cli/cli-decode.h (set_cmd_completer): Ditto.
8984
8985 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8986 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8987 * win32-nat.c (_initialize_inftarg): Ditto.
8988 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8989 * proc-api.c (_initialize_proc_api): Ditto.
8990 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8991 * source.c (_initialize_source): Ditto.
8992 * exec.c (_initialize_exec): Ditto.
8993 * solib.c (_initialize_solib): Ditto.
8994 * top.c (init_main): Ditto.
8995 * tracepoint.c (_initialize_tracepoint): Ditto.
8996 * symfile.c (_initialize_symfile): Ditto.
8997 * printcmd.c (_initialize_printcmd): Ditto.
8998 * infcmd.c (_initialize_infcmd): Ditto.
8999 * corefile.c (_initialize_core): Ditto.
9000
f779ca99
AC
90012002-03-05 Andrew Cagney <ac131313@redhat.com>
9002
9003 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9004
01a3934b
AC
90052002-03-05 Andrew Cagney <ac131313@redhat.com>
9006
9007 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9008
37057839
AC
90092002-03-05 Andrew Cagney <ac131313@redhat.com>
9010
9011 * NEWS: Update headings, 5.2 has branched.
9012
c6ecbae5
DJ
90132002-03-04 Daniel Jacobowitz <drow@mvista.com>
9014
9015 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9016 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9017 (register_addr, REGISTER_RAW_SIZE): Likewise.
9018 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9019 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9020
e9f30c21
ML
90212002-03-03 Michal Ludvig <mludvig@suse.cz>
9022
9023 * MAINTAINERS (x86-64): Add myself.
9024 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9025 changed value_ptr -> struct value *
9026
54394ac3
DB
90272002-03-01 David O'Brien <obrien@FreeBSD.org>
9028
9029 * configure.host (sparc64-*-freebsd): Add.
9030 * configure.tgt: Likewise.
9031 * config/sparc/fbsd.mh: New file.
9032 * config/sparc/fbsd.mt: Likewise.
9033 * config/sparc/nm-fbsd.h: Likewise.
9034 * config/sparc/tm-fbsd.h: Likewise.
9035
bfe95955
DJ
90362002-03-01 Daniel Jacobowitz <drow@mvista.com>
9037
9038 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9039 regformats/reg-s390x.dat.
9040
f33c6cbf
AC
90412002-03-01 Andrew Cagney <ac131313@redhat.com>
9042
9043 * utils.c: Add FIXME explaining true/false problem.
9044
5ecaa7dd
AC
90452002-02-28 Andrew Cagney <ac131313@redhat.com>
9046
9047 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9048
2a251cc2
MC
90492002-02-28 Michael Chastain <mec@shout.net>
9050
9051 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9052
6a8031a3 90532002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9054
9055 * gdbserver/linux-s390-low.c: New file.
9056 * regformats/reg-s390.dat: New file.
9057 * regformats/reg-s390x.dat: New file.
9058 * gdbserver/configure.srv: Add S/390.
9059 * gdbserver/Makefile.in: Add S/390.
9060 * configure.tgt: Enable gdbserver for S/390.
9061
ac469903
EZ
90622002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9063
9064 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9065 first line of the doc string for "info dos", except at the end of
9066 the sentence, since the short help stops at the first period.
9067
985cb1a3
JM
90682002-02-28 Jason Merrill <jason@redhat.com>
9069
9070 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9071
c570663e
FF
90722002-02-27 Fred Fish <fnf@redhat.com>
9073
9074 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9075 comment (dumy -> dummy).
9076
43630227
PS
90772002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9078
9079 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9080
b84911e8
RB
90812002-02-27 Rodney Brown <rbrown64@csc.com.au>
9082
9083 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9084
58caa3dc
DJ
90852002-02-27 Daniel Jacobowitz <drow@mvista.com>
9086
9087 * gdbserver/acconfig.h: New file.
9088 * gdbserver/i387-fp.c: New file.
9089 * gdbserver/i387-fp.h: New file.
9090 * gdbserver/linux-x86-64.c: New file.
9091 * regformats/reg-x86-64.dat: New file.
9092 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9093 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9094 * gdbserver/configure.in: Add support for regsets.
9095 * gdbserver/config.in: Regenerate.
9096 * gdbserver/configure: Regenerate.
9097 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9098 * gdbserver/linux-low.h: New file.
9099 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9100 for regsets.
9101 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9102 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9103 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9104 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9105 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9106 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9107 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9108 "i387-fp.h". Add PTRACE_GETREGS and friends.
9109 * gdbserver/regcache.c (supply_register): New function.
9110 (supply_register_by_name): New function.
9111 (collect_register): New function.
9112 (collect_register_by_name): New function.
9113
93652174
DJ
91142002-02-27 Daniel Jacobowitz <drow@mvista.com>
9115
9116 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9117 (config.status): Add configure.srv dependency.
9118 (server_h): Add config.h dependency.
9119
a02e4a61
DJ
91202002-02-27 Daniel Jacobowitz <drow@mvista.com>
9121
9122 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9123 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9124 * gdbserver/configure.srv: Change i386-*-linux* to use
9125 reg-i386-linux.o.
9126
ce0eebec
AC
91272002-02-26 Andrew Cagney <ac131313@redhat.com>
9128
9129 * x86-64-tdep.c: Re-indent. Update copyright date.
9130
82dbc5f7
AC
91312002-02-26 Andrew Cagney <ac131313@redhat.com>
9132
9133 From Michal Ludvig <mludvig@suse.cz>:
9134 * x86-64-tdep.c (value.h): Delete.
9135 (gdb_assert.h): Include.
9136 (x86_64_register_convert_to_virtual,
9137 x86_64_register_convert_to_raw ): Add check which lets only
9138 floating-point values to be converted.
9139 (value_push): Delete.
9140 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9141 (i386_gdbarch_init): Number of register_bytes fixed.
9142
e4621584
AC
91432002-02-26 Andrew Cagney <ac131313@redhat.com>
9144
9145 * MAINTAINERS: Add x86-64 target.
9146
81a9a963
AC
91472002-02-26 Andrew Cagney <ac131313@redhat.com>
9148
9149 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9150 * osfsolib.c (solib_map_sections): Ditto.
9151 * irix5-nat.c (solib_map_sections): Ditto.
9152 * corelow.c (gdb_check_format): Ditto.
9153 * symfile.c (symfile_bfd_open): Ditto.
9154 * solib.c (solib_map_sections): Ditto.
9155 Fix PR gdb/354.
7e336ba1 9156
0f017ab9
AC
91572002-02-26 Andrew Cagney <ac131313@redhat.com>
9158
9159 * remote.c (_initialize_remote): By default, disable ``e'' and
9160 ``E'' step out-of-range packets.
9161
75738c29
AS
91622002-02-26 Andreas Schwab <schwab@suse.de>
9163
9164 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9165 m68k_linux_frame_saved_pc.
9166 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9167 in_sigtramp.
9168 (SIGCONTEXT_PC_OFFSET): Remove.
9169 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9170 m68k_linux_sigtramp_saved_pc): New functions.
9171 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9172 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9173 (UCONTEXT_PC_OFFSET): Define.
9174 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9175 non-RT and RT signal trampolines.
9176
7e8ed687
RE
91772002-02-26 Richard Earnshaw <rearnsha@arm.com>
9178
9179 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9180 (TARGET_NBPG, STACK_END_ADDR): Delete
9181 (VARIABLES_INSIDE_BLOCK): Delete.
9182
6972bc8b
AC
91832002-02-25 Andrew Cagney <ac131313@redhat.com>
9184
9185 * utils.c (perror_with_name): Make string parameter constant.
9186 (print_sys_errmsg): Ditto.
9187 (query): Ditto.
9188 * defs.h (perror_with_name): Update.
9189 (print_sys_errmsg): Update.
9190 (query): Update.
9191
aa32f823
DJ
91922002-02-25 Daniel Jacobowitz <drow@mvista.com>
9193
9194 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9195 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9196
19caaa45
PS
91972002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9198
9199 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9200 if it already matches the current architecture from the exec file.
9201 Include arch-utils.h for gdbarch_info_init prototype.
9202 * Makefile.in (rs6000-nat.o): Update dependencies.
9203
d951901f
EZ
92042002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9205
9206 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9207 list of exported variables.
9208
7ea81414
DJ
92092002-02-24 Daniel Jacobowitz <drow@mvista.com>
9210
9211 * gdbserver/configure.srv: New file.
9212 * gdbserver/configure.in: Use configure.srv instead
9213 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9214 from it.
9215 * gdbserver/configure: Regenerated.
9216 * gdbserver/terminal.h: New file.
9217 * gdbserver/Makefile.in: Update for configure changes. Remove
9218 more unneeded include paths.
9219
080fe24b
AC
92202002-02-24 Andrew Cagney <ac131313@redhat.com>
9221
9222 From wiz at danbala:
9223 * config/sparc/tm-sp64.h: Fix grammar and typos.
9224 Fix PR gdb/287.
9225
8605d56e
AC
92262002-02-24 Andrew Cagney <ac131313@redhat.com>
9227
9228 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9229 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9230 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9231 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9232 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9233 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9234 * s390-tdep.c: Ditto.
92362027
AC
9235 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9236 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9237 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9238 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9239 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9240 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9241 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9242 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9243 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9244 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9245 Fix PR gdb/378.
7e336ba1 9246
8ed32cc0
AC
92472002-02-23 Andrew Cagney <ac131313@redhat.com>
9248
a3007b6f
AC
9249 * lin-thread.c: Delete file.
9250 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9251 to gdb_proc_service.h.
9252 * configure: Re-generate.
9253
50a9e2f1
AC
9254 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9255 * serial.c (serial_open): Delete check for "ocd".
9256 Fix PR gdb/349.
9257
8b6e7932
AC
9258 * Makefile.in (linux-thread.o): Delete target.
9259 * linux-thread.c: Delete file.
9260
d155c46b
AC
9261 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9262 renamed SH files to be consistent.
9263
8ed32cc0
AC
9264 * symtab.c (sort_search_symbols): Use xfree.
9265
0e18d038
RE
92662002-02-23 Richard Earnshaw <rearnsha@arm.com>
9267
9268 * arm-linux-tdep.c (arm_linux_init_abi): Register
9269 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9270 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9271 definition with undef, since we don't want the sysvr4 definition.
9272 (SKIP_TRAMPOLINE_CODE): Likewise.
9273
27aac7ff
AC
92742002-02-23 Andrew Cagney <ac131313@redhat.com>
9275
9276 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9277
9278 * configure.in: (AC_CHECK_FUNCS) Added test for
9279 canonicalize_file_name Regenerated.
9280 * config.in, configure: Regenerated.
9281 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9282 defined use canonicalize_file_name.
7e336ba1 9283
65a6e0ee
MC
92842002-02-23 Michael Chastain <mec@shout.net>
9285
9286 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9287
47b95330
AC
92882002-02-23 Andrew Cagney <ac131313@redhat.com>
9289
9290 * README: Remove references to cygnus.com.
9291 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9292 dot com'' form. Remove references to cygnus.com and sourceware.
9293
696f451b
AC
92942002-02-23 Andrew Cagney <ac131313@redhat.com>
9295
9296 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9297 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9298 1003.1-2001 no longer allows "head -1".
9299 * gdb/Makefile.in (version.c): Likewise.
9300 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9301 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9302 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9303
bbaca940
AC
93042002-02-23 Andrew Cagney <ac131313@redhat.com>
9305
9306 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9307 * command.h (cmd_cfunc_eq): Declare.
9308 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9309
9310 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9311 ``struct cmd_list_element *''.
9312 * cli/cli-cmds.c (is_complete_command): Update. Use
9313 cmd_cfunc_eq.
9314 * top.c (execute_command): Pass the command to
9315 is_complete_command.
9316 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9317
b8b8b047
AC
93182002-02-23 Andrew Cagney <ac131313@redhat.com>
9319
9320 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9321 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9322 architecture defines.
9323 * s390-tdep.c (s390_gdbarch_init): Likewise.
9324
19d3fc80
RE
93252002-02-23 Richard Earnshaw <rearnsha@arm.com>
9326
9327 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9328 (arm_linux_push_arguments): Likewise.
9329 (arm_linux_init_abi): Register them. Also register linux-specific
9330 call_dummy_words.
9331 (find_minsym_and_objfile): Use strcmp, not STREQ.
9332 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9333 (arm_linux_call_dummy_words): Delete declaration.
9334 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9335 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9336 declarations.
9337 (LOWEST_PC): Delete.
9338
3ab13650
PS
93392002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9340
9341 * maint.c (print_section_info): Do not prepend `0x' to filepos
9342 output, it will be handled by local_hex_string_custom.
9343
19d3fc80 93442002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9345
9346 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9347 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9348 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9349
d85a5daf
JB
93502002-02-22 Jim Blandy <jimb@redhat.com>
9351
9352 Indicate that the bcache functions don't change the strings
9353 they're passed.
9354 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9355 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9356
eeb25b8a
PM
93572002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9358
9359 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9360
6badb179
CF
93612002-02-21 Christopher Faylor <cgf@redhat.com>
9362
9363 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9364 find the complete path to a loaded DLL.
9365
e8717518
FF
93662002-02-21 Fred Fish <fnf@redhat.com>
9367
9368 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9369 that marks the end of the range of a function, enter a line number
9370 entry that has a line number of zero and a PC offset that matches
9371 the end of the function. This starts a range of PC's for which no
9372 line number information is known.
9373 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9374 PC's for which no line number info is found (line number is zero)
9375 then we didn't find any valid line information.
9376 * symtab.h: Document use of zero line number entry.
9377
9abe5450
EZ
93782002-02-21 Elena Zannoni <ezannoni@redhat.com>
9379
9380 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9381 (have_ptrace_getvrregs): Define for run time checks.
9382 (gdb_vrregset_t): New type for Altivec register handling.
9383 (fetch_register, store_register): Fetch/store altivec register
9384 when needed.
9385 (fetch_altivec_register, store_altivec_register): New functions.
9386 (supply_vrregset, fill_vrregset): New functions.
9387 (fetch_altivec_registers, store_altivec_registers): New functions.
9388 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9389 registers as well.
9390
aaa38bb5
AJ
93912002-02-21 Jiri Smid <smid@suse.cz>
9392
9393 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9394
b34db576
RE
93952002-02-21 Richard Earnshaw <rearnsha@arm.com>
9396
9397 * Makefile.in (armnbsd-nat.o): Update dependencies.
9398 * armnbsd-nat.c (supply_gregset): New function. Common code to
9399 supply the integer register set.
9400 (supply_fparegset): New function. Similar for FPA registers.
9401 (fetch_regs, fetch_fp_regs): Use them.
9402 (fetch_core_registers): Likewise.
9403 (fetch_elfcore_registers): New function.
9404 (arm_netbsd_elfcore_fns): New core-file type specification.
9405 (_initialize_arm_netbsd_nat): Register it.
9406
3e56fc4b
RE
94072002-02-21 Richard Earnshaw <rearnsha@arm.com>
9408
9409 * armnbsd-nat.c: Include gdbcore.h.
9410 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9411 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9412 'void' to declaration, to shut up ARI.
9413 (fetch_core_registers): Make static. Rewrite using supply_register.
9414 (arm_netbsd_core_fns): New core-file type specification.
9415 (_initialize_arm_netbsd_nat): New function.
9416
097f6b0b
CF
94172002-02-21 Christopher Faylor <cgf@redhat.com>
9418
9419 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9420 value.
9421
c914e0cc
CF
94222002-02-20 Christopher Faylor <cgf@redhat.com>
9423
9424 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9425 fails.
9426
385fa495
DJ
94272002-02-20 Daniel Jacobowitz <drow@mvista.com>
9428
9429 * jv-exp.y (parse_number): Change type of implicit longs
9430 to builtin_type_uint64.
9431
e5f1222d
DJ
94322002-02-20 Daniel Jacobowitz <drow@mvista.com>
9433
9434 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9435 to be an integer instead of a `union wait'.
9436
75c9abc6
DJ
94372002-02-20 Daniel Jacobowitz <drow@mvista.com>
9438
9439 * mips-linux-nat.c: Call the operating system GNU/Linux.
9440 * mips-linux-tdep.c: Likewise.
9441 * mips-tdep.c: Likewise.
9442
551792a5
DJ
94432002-02-20 Daniel Jacobowitz <drow@mvista.com>
9444
9445 Fix PR gdb/265.
9446 * jv-exp.y (parse_number): Handle 64-bit integers.
9447
ee6e2b82
DJ
94482002-02-20 Daniel Jacobowitz <drow@mvista.com>
9449
9450 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9451 AC_STDC_HEADERS to AC_HEADER_STDC.
9452 * gdbserver/configure: Regenerated.
9453
a48442a0
RE
94542002-02-20 Richard Earnshaw <rearnsha@arm.com>
9455
9456 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9457 is defined.
9458 * sparc-tdep.c (get_longjmp_target): Likewise.
9459
fe419ffc
RE
94602002-02-20 Richard Earnshaw <rearnsha@arm.com>
9461
9462 * News: Add news about ARM and Multi-arch. Mention the new target
9463 arm*-*-netbsd*.
9464
5832ed7e
JB
94652002-02-19 Jim Blandy <jimb@redhat.com>
9466
9467 * stabsread.c (error_type_complaint): Improve error message.
9468
84563040
DJ
94692002-02-19 Daniel Jacobowitz <drow@mvista.com>
9470
9471 * gdbserver/README: Update documentation.
9472 * gdbserver/configure.in: Update configury to match documentation.
9473 * gdbserver/Makefile.in: Likewise.
9474 * gdbserver/configure: Regenerated.
9475 * gdbserver/aclocal.m4: New file, generated by aclocal.
9476 * gdbserver/config.in: New file, generated by autoheader.
9477
375fd65b
RE
94782002-02-19 Richard Earnshaw <rearnsha@arm.com>
9479
9480 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9481 armnbsd-nat.c.
9482
08216dd7
RE
94832002-02-19 Richard Earnshaw <rearnsha@arm.com>
9484
9485 * arm-tdep.h (enum arm_float_model): New enum.
9486 (struct gdbarch_tdep): Add fp_model.
9487 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9488 up floating-point conversions until we know the floating-point model
9489 in use by the inferior. Don't complain about being unable to
9490 determine the ABI of the inferior when we don't have one.
9491 (arm_extract_return_value): Support different floating-point models.
9492 (arm_store_return_value): Likewise.
aaa38bb5 9493 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9494 ARM_FLOAT_SOFT.
9495 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9496
65d6d66a
PS
94972002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9498
9499 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9500 of ``current_gdbarch''.
9501
47221191
RE
95022002-02-19 Richard Earnshaw <rearnsha@arm.com>
9503
9504 * armnbsd-nat.c : ANSIfy all function declarations.
9505 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9506 (fetch_inferior_registers): Re-implement in terms of above.
9507 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9508 (store_inferior_registers): Re-implement in terms of above.
9509
fdf39c9a
RE
95102002-02-19 Richard Earnshaw <rearnsha@arm.com>
9511
aaa38bb5 9512 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9513 kernel.
9514 * arm-linux-tdep.c: Likewise.
9515 * config/arm/tm-linux.h: Likewise.
9516
93247f88
RE
95172002-02-19 Richard Earnshaw <rearnsha@arm.com>
9518
9519 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9520 * config/arm/nbsd.mt (TM_FILE): Delete.
9521 * config/arm/tm-nbsd.h: Delete.
9522
d7b486e7
RE
95232002-02-19 Richard Earnshaw <rearnsha@arm.com>
9524
9525 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9526 Initialize CALL_DUMMY_LENGTH.
9527
41d39a95
RE
95282002-02-19 Richard Earnshaw <rearnsha@arm.com>
9529
9530 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9531 function.
9532 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9533 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9534 defines one thing and that is incorrect for this port.
9535 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9536
e1195560
PM
95372002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9538
9539 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9540
c1748f97
PM
95412002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9542
9543 * win32-nat.c (display_selector): New function. Displays information
9544 about the information returned by GetThreadSelectorEntry API function.
9545 (display_selectors): New function. Displays the infomation of
9546 the selector given as argument, or of CS, DS ans FS selectors
9547 if no argument is given.
9548 ( _initialize_inftarg): Add "w32" as info prefix command.
9549 Add "info w32 selector" as command calling display_selectors.
9550
e41e6bbf
PM
95512002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9552
9553 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9554 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9555 if not defined.
9556
0d3a9f48
RE
95572002-02-18 Richard Earnshaw <rearnsha@arm.com>
9558
9559 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9560
3fb4b924
RE
95612002-02-18 Richard Earnshaw <rearnsha@arm.com>
9562
9563 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9564 (arm_fix_call_dummy): Call it.
9565 (arm_call_dummy_breakpoint_offset): Delete.
9566 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9567 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9568
7f55af32
AC
95692002-02-18 Andrew Cagney <ac131313@redhat.com>
9570
9571 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9572 Default to func_frame_chain_valid.
9573 * gdbarch.h, gdbarch.c: Re-generate.
9574 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9575
05f13b9c
EZ
95762002-02-18 Elena Zannoni <ezannoni@redhat.com>
9577
9578 * ppc-linux-nat.c: Update copyright.
9579 (fetch_register, store_register): Add tid parameter, don't compute
9580 tid here.
9581 (fetch_ppc_registers, store_ppc_registers): Add tid
9582 parameter. Pass it along to callees.
9583 (fetch_inferior_registers, store_inferior_registers): Compute tid
9584 here, and pass it to calleed functions.
9585 (fill_gregset, supply_fpregset): Clean up formatting.
9586
d7afb4c9
RE
95872002-02-18 Richard Earnshaw <rearnsha@arm.com>
9588
9589 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9590 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9591
9df628e0
RE
95922002-02-18 Richard Earnshaw <rearnsha@arm.com>
9593
9594 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9595 * gdbarch.c gdbarch.h: Regenerate.
9596 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9597 function.
9598 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9599 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9600 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9601
9602 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9603 * arm-tdep.c (arm_get_longjmp_target): New function.
9604 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9605 this to a positive value register arm_get_longjmp_target as the
9606 longjmp handler.
9607 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9608 (arm_linux_init_abi): Set up longjmp description in tdep.
9609 * armnbsd-nat.c (get_longjmp_target): Delete.
9610 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9611 description in tdep.
9612 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9613 (get_longjmp_target): Delete declaration.
9614 (GET_LONGJMP_TARGET): Delete.
9615 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9616 (GET_LONGJMP_TARGET): Delete.
9617
57bc8964
KB
96182002-02-17 Kevin Buettner <kevinb@redhat.com>
9619
9620 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9621 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9622 of ``current_gdbarch''.
9623
83d31a92
TT
96242002-02-17 Tom Tromey <tromey@redhat.com>
9625
9626 * cli/cli-cmds.c (compare_strings): New function.
9627 (complete_command): Only print each unique item once.
9628 * completer.h (complete_line): Declare.
9629 * completer.c (complete_line): New function.
9630 (line_completion_function): Use it.
9631
17ef5d92
AC
96322002-02-16 Andrew Cagney <ac131313@redhat.com>
9633
9634 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9635 * gdbarch.h, gdbarch.c: Re-generate.
9636
491b8946
DJ
96372002-02-16 Daniel Jacobowitz <drow@mvista.com>
9638
9639 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9640
96412002-02-16 Daniel Jacobowitz <drow@mvista.com>
9642
9643 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9644 * valops.c (value_arg_coerce): Don't take the address of a reference
9645 to convert an argument to a reference.
9646
dfe7f3ac
CF
96472002-02-15 Christopher Faylor <cgf@redhat.com>
9648
9649 * win32-nat.c (get_image_name): New function.
9650 (handle_load_dll): Use get_image_name function.
9651 (get_child_debug_event): Avoid registering debug events until possibly
9652 execed process is started.
9653 (child_create_inferior): Allow invocation via shell so that command
9654 line redirection, etc. works ok.
9655 (_initialize_inftarg): Add new command: "set shell" to control whether
9656 a shell is used to start a process.
9657
1d33e73a
DJ
96582002-02-15 Daniel Jacobowitz <drow@mvista.com>
9659
9660 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9661 instead of find_register_by_number.
9662 (cannot_store_register): Likewise.
9663
48cd0caa
PM
96642002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9665
aaa38bb5 9666 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9667 fprintf_unfiltered (gdb_stderr, ...).
9668
8656e7d8
DJ
96692002-02-15 Daniel Jacobowitz <drow@mvista.com>
9670
9671 * gdbserver/gdbserver.1: Document --attach.
9672
66e810cd
RE
96732002-02-15 Richard Earnshaw <rearnsha@arm.com>
9674
9675 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9676 descriptions.
9677 * arm-tdep.c (arm_default_arm_le_breakpoint)
9678 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9679 (arm_default_thumb_be_breakpoint): New. Initialize them from
9680 traditional breakpoint defines.
9681 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9682 (arm_gdbarch_init): Initialize new breakpoint variables.
9683 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9684 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9685 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9686 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9687 code out to ...
9688 (arm_netbsd_init_abi_common): ... here; new function.
9689 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9690 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9691 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9692 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9693
97e03143
RE
96942002-02-15 Richard Earnshaw <rearnsha@arm.com>
9695
9696 * arm-tdep.h (enum arm_abi): New enum.
9697 (struct gdbarch_tdep): New structure.
9698 (LOWEST_PC): Provide a default.
9699 (arm_gdbarch_register_os_abi): Declare new function.
9700 * arm-tdep.c (arm_abi_names): New array.
9701 (process_note_abi_tag_sections): New function.
9702 (get_elfosabi): New function.
9703 (arm_gdbarch_register_os_abi): New function.
9704 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9705 support for that ABI has been built in, then call the appropriate
9706 configuration routine. Use gdbarch_num_regs() to get the number
9707 of registers.
9708 (arm_dump_tdep): New function.
9709 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9710 place-holder functions.
9711 (_initialize_arm_tdep): Register them.
9712 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9713
9714 * armnbsd-tdep.c: New file.
9715 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9716 * config/arm/nbsd.mt (TDEPFILES): Add it.
9717 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9718
9719 * armnbsd-nat.c: Include regcache.h.
9720 * Makefile.in (armnbsd-nat.o): Update dependency list.
9721
9722 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9723
ad68be46
DJ
97242002-02-14 Daniel Jacobowitz <drow@mvista.com>
9725
9726 * gdbserver/Makefile.in: Fix typos in target rules.
9727
003d6d1d
DJ
97282002-02-14 Daniel Jacobowitz <drow@mvista.com>
9729
aaa38bb5 9730 Fix part of PR gdb/267.
003d6d1d
DJ
9731 * linespec.c (find_methods): Handle constructors specially for now.
9732
6b230f1b
CV
97332002-02-14 Corinna Vinschen <vinschen@redhat.com>
9734
9735 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9736 handling.
9737 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9738 standard_coerce_float_to_double().
9739
1ea98d12
CF
97402002-02-14 Christopher Faylor <cgf@redhat.com>
9741
9742 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9743 GDBINIT_FILENAME.
9744
dd47e6fd
EZ
97452002-02-14 Elena Zannoni <ezannoni@redhat.com>
9746
9747 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9748 find_variant_by_name, because it confuses the multiarch
9749 framework. Return NULL if there isn't an architecture with the
9750 user supplied name, instead of forcing a different one without
9751 recording the change with the multiarch machinery.
9752 (find_variant_by_name): Delete.
9753
d7e39b9e
PS
97542002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9755
9756 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9757 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9758
76e42a4f
MH
97592002-02-13 Martin M. Hunt <hunt@redhat.com>
9760
aaa38bb5 9761 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9762 print_frame_info_listing_hook, set current_source_symtab.
9763
0a30fbc4
DJ
97642002-02-14 Daniel Jacobowitz <drow@mvista.com>
9765
9766 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9767 and remove unused $(INCLUDE_DIR).
9768 Add regcache.c to OBS.
9769 Add generated register protocol files to clean target.
9770 Update dependencies for new objects, obsolete old target code.
9771
9772 * gdbserver/linux-low.c: Remove all platform-specific code to
9773 new files. Remove various dead code. Update to use regcache
9774 functionality.
9775 * gdbserver/remote-utils.c (fromhex): Add return statement
9776 to quiet warning.
9777 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9778 constant.
9779 (input_interrupt): Add integer parameter to match prototype
9780 of a signal handler.
9781 (outreg): Use register_data ().
9782 (prepare_resume_reply): Use gdbserver_expedite_regs.
9783 * gdbserver/server.c (main): Dynamically allocate own_buf because
9784 PBUFSIZ is no longer constant. Use registers_to_string () and
9785 registers_from_string ().
9786 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9787 for error (), fatal (), and warning (). Update definition of
9788 PBUFSIZ to use regcache functionality. Add include guard.
9789 * gdbserver/utils.c (fatal): Add missing ``const''.
9790 (warning): New function.
9791
9792 * regformats/regdat.sh: Include "regcache.h" in generated files.
9793 Provide init_registers () function.
9794 * regformats/regdef.h: Add prototype for set_register_cache ().
9795 Add include guard.
9796
9797 * gdbserver/linux-arm-low.c: New file.
9798 * gdbserver/linux-i386-low.c: New file.
9799 * gdbserver/linux-ia64-low.c: New file.
9800 * gdbserver/linux-m68k-low.c: New file.
9801 * gdbserver/linux-mips-low.c: New file.
9802 * gdbserver/linux-ppc-low.c: New file.
9803 * gdbserver/linux-sh-low.c: New file.
9804
9805 * gdbserver/regcache.c: New file.
9806 * gdbserver/regcache.h: New file.
9807
9808 * gdbserver/low-linux.c: Removed obsolete file.
9809
4cc841d0
DJ
98102002-02-14 Daniel Jacobowitz <drow@mvista.com>
9811
9812 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9813 * config/i386/linux.mt: Likewise.
9814 * config/ia64/linux.mt: Likewise.
9815 * config/m68k/linux.mh: Likewise.
9816 * config/powerpc/linux.mh: Likewise.
9817 * config/mips/linux.mt: Likewise.
9818
9819 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9820
9821 * config/i386/i386lynx.mh: Mark gdbserver variables
9822 as (currently) obsolete for this target.
9823 * config/i386/nbsd.mt: Likewise.
9824 * config/i386/nbsdelf.mt: Likewise.
9825 * config/m32r/m32r.mt: Likewise.
9826 * config/m68k/m68klynx.mh: Likewise.
9827 * config/m68k/nbsd.mt: Likewise.
9828 * config/m68k/sun3os4.mh: Likewise.
9829 * config/mips/vr5000.mt: Likewise.
9830 * config/ns32k/nbsd.mt: Likewise.
9831 * config/pa/hppabsd.mh: Likewise.
9832 * config/pa/hppaosf.mh: Likewise.
9833 * config/powerpc/nbsd.mt: Likewise.
9834 * config/rs6000/rs6000lynx.mh: Likewise.
9835 * config/s390/s390.mt: Likewise.
9836 * config/s390/s390x.mt: Likewise.
9837 * config/sparc/sparclynx.mh: Likewise.
9838 * config/sparc/sun4os4.mh: Likewise.
9839 * config/i386/x86-64linux.mt: Likewise.
9840 * config/sparc/linux.mh: Likewise.
9841
a85f51e7
DJ
98422002-02-14 Daniel Jacobowitz <drow@mvista.com>
9843
9844 * configure.tgt: Configure gdbserver only for known working
9845 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9846 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9847 SUBDIRS if it is configured. Update comment for ${nativefile}.
9848 * configure: Regenerated.
9849
65554fef
MS
98502002-02-13 Michael Snyder <msnyder@redhat.com>
9851
670a52db
MS
9852 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9853
6dbdc4a3
MS
9854 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9855 (default_gcore_mach): Just return 0, work around a problem in bfd.
9856 (default_gcore_target): OK to return NULL if exec_bfd is null.
9857 (make_mem_sec): Use a cast, avoid a warning.
9858
9859 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9860 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9861 sizeof (host pointer) != sizeof (target pointer)).
9862 (procfs_make_note_section): Avoid overflow in psargs string.
9863
aaa38bb5 9864 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9865 implementation return an error.
9866
98672002-02-13 Rodney Brown <rbrown64@csc.com.au>
9868
9869 * procfs.c (procfs_make_note_section): Provide a default definition
9870 (for alpha-dec-osf4.0f). Fix typos.
9871
1e4d76e7
EZ
98722002-02-13 Elena Zannoni <ezannoni@redhat.com>
9873
9874 * linux-proc.c: Add include of regcache.h.
9875 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9876
b6d1a1d5
AC
98772002-02-13 Andrew Cagney <ac131313@redhat.com>
9878
9879 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9880 * memattr.c (create_mem_region): Disallow useless empty region.
9881 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9882 non-overlapping.
b6d1a1d5 9883
6c6ea35e
MC
98842002-02-13 Michael Chastain <mec@shout.net>
9885
9886 * defs.h: Kill CONST_PTR.
9887 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9888 * c-lang.c (c_builtin_types): Likewise.
9889 * ch-lang.c (ch_builtin_types): Likewise.
9890 * f-lang.c (f_builtin_types): Likewise.
9891 * language.c (unknown_builtin_types): Likewise.
9892 * m2-lang.c (m2_builtin_types): Likewise.
9893 * p-lang.c (pascal_builtin_types): Likewise.
9894 * scm-lang.c (c_builtin_types): Likewise.
9895
3e0b0f48
KS
98962002-02-13 Keith Seitz <keiths@redhat.com>
9897
9898 * arm-tdep.h (arm_get_next_pc): Add declaration.
9899
67255d04
RE
99002002-02-13 Richard Earnshaw <rearnsha@arm.com>
9901
9902 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9903 with other related struct-returning functions.
9904 (arm_extract_struct_value_address): New function.
9905 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9906 initialize float_format, double_format and long_double_format as
9907 appropriate to the endianness of the target.
9908 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9909 (arm_use_struct_convention): Delete declaration.
9910 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9911
079777f6
KS
99122002-02-13 Keith Seitz <keiths@redhat.com>
9913
9914 * defs.h (core_addr_to_string_nz): New function.
9915
34588f23
MK
99162002-02-13 Mark Kettenis <kettenis@gnu.org>
9917
9918 Apply missing bits of 2002-01-15 patch.
9919 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9920 (fill_fpregset): Use i387_fill_fsave.
9921
49b563f9
KS
99222002-02-12 Keith Seitz <keiths@redhat.com>
9923
49b563f9
KS
9924 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9925 (core_addr_to_string_nz): New function.
9926
aeb98c60
RE
99272002-02-11 Richard Earnshaw <rearnsha@arm.com>
9928
9929 * arm-linux-nat.c: Really include arm-tdep.h.
9930 * config/arm/tm-linux.h (struct type, struct value): Declare.
9931
65554fef
MS
99322002-02-11 Michael Snyder <msnyder@redhat.com>
9933
9934 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9935 (gcore section): Ifdef for Solaris and Unixware only.
9936 (procfs_do_thread_registers): Unixware needs one lwpstatus
9937 per thread (not one prstatus or pstatus).
9938 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9939 not over all gdb threads. For unixware, call elfcore_write_pstatus
9940 once before iterating over threads.
9941
34e8f22d
RE
99422002-02-11 Richard Earnshaw <rearnsha@arm.com>
9943
9944 * arm-tdep.h: New file.
9945 * arm-tdep.c: Include arm-tdep.h.
9946 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9947 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9948 (arm_print_float_info, arm_register_type, convert_to_extended)
9949 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9950 (arm_extract_return_value, arm_register_name): Make static.
9951 (arm_software_single_step): Similarly. Fix types in declaration.
9952 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9953 (arm_store_return_value, arm_store_struct_return): New functions.
9954 (arm_gdbarch_init): Register the above functions. Also register
9955 call_dummy_start_offset, sizeof_call_dummy_words,
9956 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9957 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9958 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9959 prologue_cache.saved_regs here, rather than ...
9960 (_initialize_arm_tdep): ... here.
9961 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9962 declarations.
9963 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9964 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9965 (arm_print_float_info, arm_register_type, convert_to_extended)
9966 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9967 (arm_extract_return_value, arm_register_name): Delete declarations.
9968 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9969 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9970 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9971 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9972 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9973 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9974 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9975 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9976 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9977 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9978 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9979 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9980 interface.
9981 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9982 * remote-rdi.c remote-rdp.c: Likewise.
9983 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9984 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9985 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9986 definition.
9987
9988 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9989 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9990 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9991 from non-ARM_ prefixed definitions.
9992 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9993 all uses of above.
9994 * remote-rdi.c remote-rdp.c: Likewise.
9995 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9996
148754e5
RE
99972002-02-11 Richard Earnshaw <rearnsha@arm.com>
9998
9999 * arm-tdep.c (arm_frameless_function_invocation)
10000 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10001 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10002 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10003 (arm_pop_frame, arm_get_next_pc): Make static.
10004 (arm_gdbarch_init): Register above in gdbarch structure.
10005 (arm_read_fp): Renamed from arm_target_read_fp.
10006 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10007 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10008 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10009 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10010 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10011 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10012 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10013 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10014 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10015 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10016 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10017
434d2d4f
DJ
100182002-02-10 Daniel Jacobowitz <drow@mvista.com>
10019
10020 * symtab.c (compare_search_syms): New function.
10021 (sort_search_symbols): New function.
10022 (search_symbols): Sort symbols after searching rather than
10023 before.
10024
55241689
AC
100252002-02-10 Andrew Cagney <ac131313@redhat.com>
10026
10027 * NEWS: Linux -> GNU/Linux.
10028
028c194b
AC
100292002-02-10 Andrew Cagney <ac131313@redhat.com>
10030
10031 * gdbarch.sh: For for level one methods, disallow a definition
10032 when partially multi-arched. Add comments explaining rationale.
10033 * gdbarch.h: Re-generate.
10034
6acf50cd
AC
100352002-02-10 Andrew Cagney <ac131313@redhat.com>
10036
10037 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10038 multi-arch partial.
aaa38bb5 10039
50248794
AC
100402002-02-10 Andrew Cagney <ac131313@redhat.com>
10041
10042 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10043 field. Use diff -u.
10044 * gdbarch.c: Re-generate.
10045
c30e0066
AC
100462002-02-10 Andrew Cagney <ac131313@redhat.com>
10047
9b56c5f3 10048 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10049 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10050 partial.
10051
6e6d6484
AC
100522002-02-10 Andrew Cagney <ac131313@redhat.com>
10053
10054 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10055 multi-arch partial.
10056 (PUSH_ARGUMENTS): Switch to using predefault.
10057 * gdbarch.c: Regenerate.
10058
c203844d
AC
100592002-02-10 Andrew Cagney <ac131313@redhat.com>
10060
10061 * valops.c (PUSH_ARGUMENTS): Delete definition.
10062 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10063 partial. Default to default_push_arguments.
10064 * gdbarch.h, gdbarch.c: Regenerate.
10065
b5a2688f
AC
100662002-02-09 Andrew Cagney <ac131313@redhat.com>
10067
10068 * defs.h (throw_exception): Rename return_to_top_level. Update
10069 comments.
10070 * utils.c (error_stream, internal_verror, quit): Ditto.
10071 * top.c (throw_exception, catcher): Ditto.
10072 * sparclet-rom.c (sparclet_load): Ditto.
10073 * remote.c (interrupt_query, minitelnet): Ditto.
10074 * remote-sds.c (interrupt_query): Ditto.
10075 * remote-mips.c (mips_error, mips_kill): Ditto.
10076 * ocd.c (interrupt_query): Ditto.
10077 * monitor.c (monitor_interrupt_query): Ditto.
10078 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10079 * target.h: Update comment.
aaa38bb5 10080
b5a2688f 10081 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10082
2fa5c1e0
AC
100832002-02-09 Andrew Cagney <ac131313@redhat.com>
10084
10085 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10086 default_double_format.
10087 * gdbarch.h, gdbarch.c: Re-generate.
10088 * findvar.c (floatformat_unknown): Delete variable definition.
10089 * doublest.h (floatformat_unknown): Delete variable declaration.
10090
da966255
JB
100912002-02-09 Jim Blandy <jimb@redhat.com>
10092
10093 * stabsread.c (read_type): Add code to parse Sun's syntax for
10094 prototyped function types.
10095
123a4891
AC
100962002-02-09 Andrew Cagney <ac131313@redhat.com>
10097
10098 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10099 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10100
fb39c8f3
PS
101012002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10102
10103 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10104 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10105 now _initialize_xcoffsolib gets called again and overrides the
10106 commands from solib.c in a native configuration.
10107
0b87a11d
MK
101082002-02-09 Mark Kettenis <kettenis@gnu.org>
10109
10110 * doublest.c (store_typed_floating): Don't try to return a value.
10111 Fixes PR gdb/290.
10112
bdc2fc72
JB
101132002-02-08 Jim Blandy <jimb@redhat.com>
10114
10115 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10116 is prototyped and has no arguments, print its argument list as
10117 `(void)'.
10118
da69bbcf
CD
101192002-02-08 Chris Demetriou <cgd@broadcom.com>
10120
10121 * MAINTAINERS (write-after-approval): Add myself.
10122 (paper-trail): I've escaped!
aaa38bb5 10123
b69571f5
CF
101242002-02-08 Christopher Faylor <cgf@redhat.com>
10125
10126 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10127 changes.
10128 (_initialize_check_for_gdb_ini): Ditto.
10129
f6871398
MH
101302002-02-08 Martin M. Hunt <hunt@redhat.com>
10131
10132 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10133 xaprintf -> xasprintf.
10134
4e52d31c
PM
101352002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10136
10137 * win32-nat.c: Remove use of printf and sprintf functions.
10138
39bbf761
RE
101392002-02-08 Richard Earnshaw <rearnsha@arm.com>
10140
10141 * arm-tdep.c (arm_frame_chain_valid): Make static.
10142 (arm_push_arguments): Likewise.
10143 (arm_gdbarch_init): New function.
10144 (_initialize_arm_tdep): Call it.
10145 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10146 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10147 (FRAME_CHAIN_VALID): Delete.
10148 (arm_frame_chain_valid): Delete declaration.
10149 (PUSH_ARGUMENTS): Delete.
10150 (arm_push_arguments): Delete declaration.
10151 (CALL_DUMMY_P): Delete.
10152
9c9532c9
CV
101532002-02-08 Andrew Cagney <ac131313@redhat.com>
10154 Corinna Vinschen <vinschen@redhat.com>
10155
10156 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10157 on builtin float types.
10158
4e8f7a8b
DJ
101592002-02-08 Daniel Jacobowitz <drow@mvista.com>
10160
10161 * utils.c: Include <curses.h> before "bfd.h".
10162 * tui/tui-hooks.c: Likewise.
10163 * tui/tui.c: Likewise.
10164 * tui/tuiCommand.c: Likewise.
10165 * tui/tuiData.c: Likewise.
10166 * tui/tuiDataWin.c: Likewise.
10167 * tui/tuiDisassem.c: Likewise.
10168 * tui/tuiGeneralWin.c: Likewise.
10169 * tui/tuiIO.c: Likewise.
10170 * tui/tuiLayout.c: Likewise.
10171 * tui/tuiRegs.c: Likewise.
10172 * tui/tuiSource.c: Likewise.
10173 * tui/tuiSourceWin.c: Likewise.
10174 * tui/tuiStack.c: Likewise.
10175 * tui/tuiWin.c: Likewise.
10176
cd4bffcf
EZ
101772002-02-07 Elena Zannoni <ezannoni@redhat.com>
10178
10179 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10180 to include space for pseudoregs as well. Update loops accordingly.
10181 (sh_fp_frame_init_saved_regs): Ditto.
10182 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10183
26806ce2
AC
101842002-02-07 Andrew Cagney <ac131313@redhat.com>
10185
10186 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10187 Add Richard Earnshaw to Arm maintainers.
10188
97fdab62
AC
101892002-02-07 Andrew Cagney <ac131313@redhat.com>
10190
a6b98203
AC
10191 * defs.h (warning_begin): Delete declaration.
10192
97fdab62
AC
10193 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10194 Delete macro.
10195
78b29b40
MS
101962002-02-07 Michael Snyder <msnyder@redhat.com>
10197
aaa38bb5 10198 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10199 Logic bug, remove misplaced else.
10200
d8849953
KD
102012002-02-07 Klee Dienes <klee@apple.com>
10202
10203 * fork-inferior.c (fork_inferior): Add '!' to the list of
10204 characters that need to be quoted when building a string for the
10205 shell. Quote '!' specifically with a backslash, since CSH chokes
10206 when trying to evaluate "str!str".
aaa38bb5 10207
095778a0
NC
102082002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10209
10210 * rdi-share/host.h: Only provide a typedef for bool if it is not
10211 defined.
10212
1900040c
MS
102132002-02-04 Michael Snyder <msnyder@redhat.com>
10214
10215 * breakpoint.h (enum bptype): Add new overlay event bp type.
10216 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10217
1900040c
MS
10218 * breakpoint.c (create_internal_breakpoint): New function.
10219 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10220 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10221 (create_thread_event_breakpoint): Ditto.
10222 (create_solib_event_breakpoint): Ditto.
10223 (create_overlay_event_breakpoint): New function.
10224 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10225 (update_breakpoints_after_exec): Delete and re-initialize
10226 overlay event breakpoints after an exec. Add FIXME comment
10227 about longjmp breakpoint.
10228 (print_it_typical): Ignore overlay event breakpoints.
10229 (print_one_breakpoint): Ditto.
10230 (mention): Ditto.
10231 (bpstat_what): Do not stop for overlay event breakpoints.
10232 (delete_breakpoint): Don't delete overlay event breakpoints.
10233 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10234 (breakpoint_re_set): Re-create overlay event breakpoint.
10235
10236 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10237 (overlay_manual_command): Disable overlay breakpoints.
10238 (overlay_off_command): Disable overlay breakpoints.
10239
082fc60d
RE
102402002-02-06 Richard Earnshaw <rearnsha@arm.com>
10241
10242 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10243 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10244 to here from config/tm-arm.h.
10245 (coff_sym_is_thumb): Make static.
10246 (arm_elf_make_msymbol_special): New function.
10247 (arm_coff_make_msymbol_special): New function.
10248 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10249 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10250 (coff_sym_is_thumb): Delete declaration.
10251 (arm_elf_make_msymbol_special): Declare.
10252 (arm_coff_make_msymbol_special): Declare.
10253 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10254 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10255
039c5766
RE
102562002-02-06 Richard Earnshaw <rearnsha@arm.com>
10257
10258 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10259
102602002-02-06 Richard Earnshaw <rearnsha@arm.com>
10261
10262 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10263 * gdbarch.c gdbarch.h: Regenerate.
10264 * arch-utils.c (default_print_float_info): New function.
10265 * arch-utils.h (default_print_float_info): Prototype it.
10266 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10267 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10268 (PRINT_FLOAT_INFO): Document it.
10269
10270 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10271 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10272 (PRINT_FLOAT_INFO): Define.
10273
58fa08f0
PM
102742002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10275
aaa38bb5 10276 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10277 Add typecast to sprintf argument to suppress a warning.
10278
7393af7c
PM
102792002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10280
58fa08f0 10281 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10282 to allow easier handling of pass state.
10283 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10284 that gives exception name and address.
10285 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10286 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10287 exceptions added.
aaa38bb5
AJ
10288 (child_continue): Correctly report continue_status.
10289 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10290 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10291 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10292 the exception should be passed to debuggee or not.
10293
6af4589c
MS
102942002-02-05 Michael Snyder <msnyder@redhat.com>
10295
10296 * regcache.c (fetch_register): Call target_fetch_register
10297 only if we don't call FETCH_PSEUDO_REGISTER.
10298 (store_register): Call target_store_register only if we
10299 don't call STORE_PSEUDO_REGISTER.
10300
a2cf933a
EZ
103012002-02-05 Elena Zannoni <ezannoni@redhat.com>
10302
10303 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10304 ELF_MAKE_MSYMBOL_SPECIAL.
10305 * gdbarch.c, gdbarch.h: Regenerate.
10306 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10307 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10308 * elfread.c (elf_symtab_read): Compile use of
10309 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10310 multiarched.
10311 * coffread.c (coff_symtab_read): Ditto, for
10312 COFF_MAKE_MSYMBOL_SPECIAL.
10313
6bb7be43
JB
103142002-02-05 Jim Blandy <jimb@redhat.com>
10315
10316 * solib-svr4.c (svr4_truncate_ptr): New function.
10317 (svr4_relocate_section_addresses): Do the address arithmetic with
10318 the appropriate truncation for target addresses, even when
10319 CORE_ADDR is larger than a target address.
10320
e18651ec
DJ
103212002-02-05 Daniel Jacobowitz <drow@mvista.com>
10322
10323 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10324 to (int *).
10325
6b2725be
DJ
103262002-02-05 Daniel Jacobowitz <drow@mvista.com>
10327
10328 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10329 code.
10330
fca9e603
DJ
103312002-02-05 Daniel Jacobowitz <drow@mvista.com>
10332
10333 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10334
6c537a52
DJ
103352002-02-05 Daniel Jacobowitz <drow@mvista.com>
10336
10337 * gdbserver/linux-low.c: Remove unused include files.
10338
d844cde6
DJ
103392002-02-05 Daniel Jacobowitz <drow@mvista.com>
10340
10341 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10342 (read_inferior_memory): Use it.
10343 (write_inferior_memory): Likewise.
10344
d07c63e7
DJ
103452002-02-05 Daniel Jacobowitz <drow@mvista.com>
10346
10347 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10348 grubbing through sys_errlist.
10349
da6d8c04
DJ
103502002-02-05 Daniel Jacobowitz <drow@mvista.com>
10351
10352 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10353
5b421780
PM
103542002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10355 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10356
9f60d481
AC
103572002-02-04 Andrew Cagney <ac131313@redhat.com>
10358
10359 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10360 (do_sfunc, set_cmd_sfunc): New functions.
10361
10362 * command.h (struct cmd_list_element): Add field func.
10363 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10364 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10365 * cli/cli-decode.h: Ditto.
10366
10367 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10368 (help_all, help_cmd_list): Ditto.
10369 (find_cmd, complete_on_cmdlist): Ditto.
10370 * top.c (execute_command): Ditto.
10371
10372 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10373 function.sfunc.
10374
10375 * infcmd.c (notice_args_read): Fix function signature.
10376
10377 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10378 * cli/cli-decode.c (add_set_cmd): Ditto.
10379 * utils.c (initialize_utils): Ditto.
10380 * maint.c (_initialize_maint_cmds): Ditto.
10381 * infrun.c (_initialize_infrun): Ditto.
10382 * demangle.c (_initialize_demangler): Ditto.
10383 * remote.c (add_packet_config_cmd): Ditto.
10384 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10385 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10386 * proc-api.c (_initialize_proc_api): Ditto.
10387 * kod.c (_initialize_kod): Ditto.
10388 * valprint.c (_initialize_valprint): Ditto.
10389 * top.c (init_main): Ditto.
10390 * infcmd.c (_initialize_infcmd): Ditto.
10391 * corefile.c (_initialize_core): Ditto.
10392 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10393 * arch-utils.c (initialize_current_architecture): Ditto.
10394 (_initialize_gdbarch_utils): Ditto.
10395 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10396
10397 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10398 * wince.c (_initialize_inftarg): Ditto.
10399 * symfile.c (_initialize_symfile): Ditto.
10400 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10401 * language.c (_initialize_language): Ditto.
10402 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10403
f9ba0717
MS
104042002-02-04 Michael Snyder <msnyder@redhat.com>
10405
10406 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10407
0c74b2a7
DJ
104082002-02-04 Daniel Jacobowitz <drow@mvista.com>
10409
10410 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10411 Add rules for building the register data files.
10412
c638789f
DJ
104132002-02-04 Daniel Jacobowitz <drow@mvista.com>
10414
10415 * regformats/regdat.sh: Add braces to the definition of
10416 expedite_regs_${arch}.
10417
db253027
DJ
104182002-02-04 Daniel Jacobowitz <drow@mvista.com>
10419
10420 * regformats/regdef.h (struct reg): Add comment describing the
10421 requirements for offset and size fields.
10422
206be19c
AS
104232002-02-04 Andreas Schwab <schwab@suse.de>
10424
10425 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10426 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10427
181c1381
RE
104282002-02-04 Richard Earnshaw <rearnsha@arm.com>
10429
10430 * gdbarch.sh (copyright): Update years in generated header.
10431 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10432 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10433 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10434 * dbxread.c: Likewise.
10435 * dwarfread.c: Likewise.
10436 * elfread.c: Likewise.
10437 * somread.c: Likewise.
10438
10439 * arm-tdep.c (arm_smash_text_address): New function.
10440 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10441
fa4ba8da
PM
104422002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10443
10444 Add support for hardware watchpoints on win32 native.
aaa38bb5 10445 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10446 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10447 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10448 of debug registers.
10449 (debug_registers_changed): New variable. Reflects when debug registers
10450 are changed and need to be written to inferior.
aaa38bb5 10451 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10452 was set, used when new threads are created.
10453 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10454 i386-nat code.
10455 (thread_rec): Set dr array if id is the thread of current_event .
10456 (child_continue, child_resume): Change the debug registers for all
10457 threads if debug_registers_changed.
10458 (child_add_thread): Change the debug registers if debug_registers_used.
10459 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10460 Link nm.h to new nm-cygwin.h file.
10461 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10462 of hardware registers.
10463
a73c86fb
AC
104642002-02-03 Andrew Cagney <ac131313@redhat.com>
10465
10466 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10467 Restore behavour broken by 2002-01-20 Andrew Cagney
10468 <ac131313@redhat.com> IEEE_FLOAT removal.
10469
acf5ed49
DJ
104702002-02-03 Daniel Jacobowitz <drow@mvista.com>
10471
10472 * c-valprint.c (c_val_print): Pass a proper valaddr to
10473 cp_print_class_method.
10474 * valops.c (search_struct_method): If there is only one method
10475 and args is NULL, return that method.
10476
493d28d5
DJ
104772002-02-03 Daniel Jacobowitz <drow@mvista.com>
10478
10479 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10480 accessing tag_name directly.
10481
7495dfdb
DJ
104822002-02-03 Daniel Jacobowitz <drow@mvista.com>
10483
10484 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10485 of accessing tag_name directly.
10486
dd6bda65
DJ
104872002-02-03 Daniel Jacobowitz <drow@mvista.com>
10488
10489 PR gdb/280
10490 * gdbtypes.c (replace_type): New function.
10491 * gdbtypes.h (replace_type): Add prototype.
10492 * stabsread.c (read_type): Use replace_type.
10493
88fe217c
RE
104942002-02-03 Richard Earnshaw <rearnsha@arm.com>
10495
10496 * Makefile.in (memattr.o): Add missing dependencies rule.
10497
e5d66720
PS
104982002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10499
10500 * breakpoint.c (break_at_finish_command): Really export.
10501 (break_at_finish_at_depth_command): Ditto.
10502 (tbreak_at_finish_command): Ditto.
10503 * hppa-tdep.c: Include completer.h.
10504 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10505 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10506
fffee0be
AC
105072002-02-01 Andrew Cagney <ac131313@redhat.com>
10508
10509 * utils.c (do_write): New function.
10510 (error_stream): Rewrite combining the code from error_begin and
10511 verror.
10512 (verror): Rewrite using error_stream.
10513 (error_begin): Delete function.
10514
255e7dbf
AC
105152002-02-01 Andrew Cagney <ac131313@redhat.com>
10516
10517 * utils.c (error_begin): Make static.
10518 * defs.h (error_begin): Delete declaration.
10519
10520 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10521 (decode_line_1): Use cplusplus_error instead of error_begin,
10522 cplusplus_hint and return_to_top_level.
10523 * coffread.c (coff_symfile_read): Use error instead of error_begin
10524 and return_to_top_level.
10525 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10526
ddfe3c15
AC
105272002-02-01 Andrew Cagney <ac131313@redhat.com>
10528
10529 * language.h (type_error, range_error): Make string parameter
10530 constant.
10531 * language.c (warning_pre_print): Delete extern declaration.
10532 * dwarfread.c (warning_pre_print): Ditto.
10533 * language.c (type_error, range_error): Rewrite to use verror and
10534 vwarning instead of warning_begin.
10535
03ac34d5
MS
105362002-02-01 Michael Snyder <msnyder@redhat.com>
10537
261c4ca2
MS
10538 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10539 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10540
e00d1dc8
AC
105412002-02-01 Andrew Cagney <ac131313@redhat.com>
10542
10543 * command.h (NO_FUNCTION): Delete macro.
10544 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10545 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10546 * tracepoint.c (_initialize_tracepoint): Ditto.
10547 * cli/cli-decode.c (add_set_cmd): Ditto.
10548 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10549
76b79d6e
DJ
105502002-02-01 Daniel Jacobowitz <drow@mvista.com>
10551
10552 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10553 Update ``this'' pointer when calling virtual functions.
10554
799f9e91
MS
105552002-02-01 Michael Snyder <msnyder@redhat.com>
10556
c7bd442c 10557 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10558 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10559
3cf384d4
DJ
105602002-02-01 Daniel Jacobowitz <drow@mvista.com>
10561
10562 * regformats/reg-arm.dat: New file.
10563 * regformats/reg-i386.dat: New file.
10564 * regformats/reg-ia64.dat: New file.
10565 * regformats/reg-m68k.dat: New file.
10566 * regformats/reg-mips.dat: New file.
10567 * regformats/reg-ppc.dat: New file.
10568 * regformats/reg-sh.dat: New file.
10569 * regformats/regdef.h: New file.
10570 * regformats/regdat.sh: New file.
10571
0defa245
RE
105722002-02-01 Richard Earnshaw <reanrsha@arm.com>
10573
10574 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10575 (arm_frame_args_address, arm_frame_locals_address): New functions.
10576 (arm_frame_num_args): New function.
10577 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10578 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10579 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10580
405f26e6
MS
105812002-01-31 Michael Snyder <msnyder@redhat.com>
10582
502fd408
MS
10583 * breakpoint.c (break_at_finish_command): Export.
10584 (break_at_finish_at_depth_command): Export.
10585 (tbreak_at_finish_command): Export.
d6020d45 10586 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10587 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10588 "txbreak" commands, which are HPPA specific.
502fd408 10589
7d35e135
MS
10590 * printcmd.c (disassemble_command): Remove an ancient
10591 artifact of an old merge.
10592
aaa38bb5 10593 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10594 Define enum constant values for overlay mode.
10595 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10596 (overlay_is_mapped, overlay_auto_command,
10597 overlay_manual_command): Ditto.
d874f1e2 10598
aaa38bb5
AJ
10599 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10600 breakpoint_here_p, breakpoint_inserted_here_p,
10601 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10602 describe_other_breakpoints, check_duplicates, clear_command):
10603 Coding standard fixes.
10604
8add0441 10605 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10606 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10607 code: check bfd SEC_READONLY flag for section.
10608
e351066e
AC
106092002-01-31 Andrew Cagney <ac131313@redhat.com>
10610
7d35e135 10611 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10612
8a48e967
DJ
106132002-01-30 Daniel Jacobowitz <drow@mvista.com>
10614
10615 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10616 data symbols, since we search based on textlow and texthigh.
10617 (find_pc_sect_symtab): Likewise.
10618
f5a96129
AC
106192002-01-30 Andrew Cagney <ac131313@redhat.com>
10620
10621 * defs.h (vwarning): Declare.
f5a96129
AC
10622 * utils.c (vwarning): New function.
10623 (warning): Call vwarning.
10624 (warning_begin): Delete function.
10625
10626 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10627 the warning message.
10628 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10629 warning_begin.
10630
cefd4ef5
MS
106312002-01-30 Michael Snyder <msnyder@redhat.com>
10632
1a703748
MS
10633 * NEWS: Mention "set trust-readonly-sections" command.
10634 Mention generate-core-file command.
cefd4ef5 10635
3a11626d
MS
106362002-01-15 Michael Snyder <msnyder@redhat.com>
10637
10638 * target.c: New command, "set trust-readonly-sections on".
10639 (do_xfer_memory): Honor the suggestion to trust readonly sections
10640 by reading them from the object file instead of from the target.
10641 (initialize_targets): Register command "set trust-readonly-sections".
10642
d1c7e53b
AC
106432002-01-29 Andrew Cagney <ac131313@redhat.com>
10644
10645 * parse.c (target_map_name_to_register): Simplify, search regs and
10646 pseudo-regs using a single loop.
10647
e2c9a72c
AC
106482002-01-30 Andrew Cagney <ac131313@redhat.com>
10649
10650 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10651
69824b4e
MK
106522002-01-15 Rodney Brown <rbrown64@csc.com.au>
10653
10654 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10655 * config/i386/i386v42mp.mh: Add i387-nat.o .
10656 * i386v4-nat.c: Include i387-nat.h.
10657 (supply_fpregset): Use i387_supply_fsave.
10658 (fill_fpregset): Use i387_fill_fsave.
10659
6eb69eab
RE
106602002-01-30 Richard Earnshaw <rearnsha@arm.com>
10661
10662 * arm-tdep.c (arm_call_dummy_words): Define.
10663 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10664 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10665 (CALL_DUMMY_WORDS): Define.
10666 (arm_call_dummy_words): Declare.
10667 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10668 (arm_linux_call_dummy_words): Declare.
10669
9852326a
AS
106702002-01-30 Andreas Schwab <schwab@suse.de>
10671
10672 * m68klinux-nat.c: Fix last change to use regcache_collect
10673 instead of referencing registers[] directly.
10674
977a3030
AC
106752002-01-29 Andrew Cagney <ac131313@redhat.com>
10676
10677 * parse.c (target_map_name_to_register): Delete code wrapped in
10678 #ifdef REGISTER_NAME_ALIAS_HOOK.
10679
2076c72b
MS
106802002-01-28 Michael Snyder <msnyder@redhat.com>
10681
10682 * regcache.c (legacy_read_register_gen): Need to be able to
10683 read pseudo-register as well as real register.
10684 (legacy_write_register_gen): Ditto.
10685
8fcc723b
AC
106862002-01-28 Andrew Cagney <ac131313@redhat.com>
10687
10688 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10689 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10690 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10691 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10692 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10693 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10694 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10695 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10696 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10697 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10698 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10699 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10700 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10701 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10702 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10703 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10704 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10705 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10706 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10707 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10708
afe64c1a
AC
107092002-01-28 Andrew Cagney <ac131313@redhat.com>
10710
10711 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10712 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10713 (initialize_current_architecture): Update target_byte_order using
10714 information from BFD.
aaa38bb5 10715 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10716 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10717
75bc7ddf
AC
107182002-01-28 Andrew Cagney <ac131313@redhat.com>
10719
10720 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10721 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10722
10723 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10724 #ifdef INVALID_FLOAT.
10725 * infcmd.c (do_registers_info): Ditto.
10726 * values.c (unpack_double): Ditto. Add comment.
10727
10728 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10729 already commented out.
10730
0280a90a
AS
107312002-01-26 Andreas Schwab <schwab@suse.de>
10732
10733 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10734 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10735 registers and add support for PTRACE_GETREGS.
10736
7072a954
AC
107372002-01-24 Andrew Cagney <ac131313@redhat.com>
10738
10739 GDB 5.1.1 released from 5.1 branch.
10740 * NEWS: Add 5.1.1 news.
10741 * README: Sync with 5.1 branch.
10742
86f902e0
FF
107432002-01-23 Fred Fish <fnf@redhat.com>
10744
10745 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10746 stabstring on initial malloc. Reallocing will copy it for us,
10747 if necessary.
10748
8af51c36
EZ
107492002-01-23 Elena Zannoni <ezannoni@redhat.com>
10750
aaa38bb5 10751 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10752 (HFILES_NO_SRCDIR): Remove hpread.h.
10753 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10754 (hpread.o): Update dependencies.
10755 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10756
10757 * hp-psymtab-read.c: Remove file.
10758 * hp-symtab-read.c: Remove file.
10759 * hpread.h: Remove file.
10760
10761 * hpread.c: Merge all contents of hp-psymtab-read.c,
10762 hp-symtab-read.c and hpread.h into this file, as it was prior to
10763 January 1999.
10764
10765 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10766 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10767 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10768 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10769
dc5cfeb6
EZ
107702002-01-23 Elena Zannoni <ezannoni@redhat.com>
10771
10772 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10773 fill_gregset): Call gdbarch_tdep() just once, assign result to
10774 variable and use that, instead of calling the function several
10775 times.
10776
ea87b71b
AO
107772002-01-24 Alexandre Oliva <aoliva@redhat.com>
10778
10779 * configure.host: Accept sparcv9 as alias for sparc64.
10780 * configure.tgt: Likewise.
10781
13fc0c2f
KB
107822002-01-22 Kevin Buettner <kevinb@redhat.com>
10783
10784 * solib-aix5.c (build_so_list_from_mapfile)
10785 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10786 arguments is not reversed.
10787 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10788 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10789
7bd872fe
EZ
107902002-01-22 Elena Zannoni <ezannoni@redhat.com>
10791
10792 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10793 modified version of obsolete sh_fetch_pseudo_register.
10794 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10795 (sh4_register_read): New function.
10796 (sh_pseudo_register_write): New function. Renamed and modified
10797 version of obsolete sh_store_pseudo_register.
10798 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10799 (sh4_register_write): New function.
10800 (sh_gdbarch_init): Remove setting of gdbarch function
10801 fetch_pseudo_register and store_pseudo_register. Remove setting of
10802 register_convert_to_raw, register_convert_to_virtual,
10803 register_convertible.
10804 (sh_sh4_register_convertible): Delete. No longer needed. All is
10805 taken care by architecture specific functions
10806 register_read/register_write.
10807 (sh_sh4_register_convert_to_virtual): Make static.
10808 (sh_sh4_register_convert_to_raw): Ditto.
10809
069e84fd
AC
108102002-01-22 Andrew Cagney <ac131313@redhat.com>
10811
10812 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10813 (floatformat_is_nan, floatformat_mantissa): Ditto.
10814
10815 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10816 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10817 builtin_type_ieee_double_little,
10818 builtin_type_ieee_double_littlebyte_bigword,
10819 builtin_type_m68881_ext, builtin_type_i960_ext,
10820 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10821 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10822 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10823 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10824
211a4f69
CV
108252002-01-22 Corinna Vinschen <vinschen@redhat.com>
10826
10827 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10828 parameter. Set frameless flag if it exists and depended of
10829 whether the scanned function is frameless or not.
10830 (xstormy16_skip_prologue): If function is frameless, return
10831 result of xstormy16_scan_prologue().
10832 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10833 call.
10834
f81353e4
EZ
108352002-01-21 Elena Zannoni <ezannoni@redhat.com>
10836
10837 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10838 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10839 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10840 sh_sh4_register_byte, sh_sh4_register_raw_size,
10841 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10842 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10843 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10844 sh_store_pseudo_register, sh_do_pseudo_register): Call
10845 gdbarch_tdep() just once, assign result to variable and use that,
10846 instead of calling the function several times.
10847
63c73a17
MK
108482002-01-20 Mark Kettenis <kettenis@gnu.org>
10849
10850 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10851 macros instead of LAST_FPU_CTRL_REGNUM.
10852 (store_register): Likewise.
10853
39ad761d
JB
108542002-01-21 Jim Blandy <jimb@redhat.com>
10855
10856 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10857 is up-to-date before running the program, not just when a program
10858 exits.
10859
3d74b771
FF
108602002-01-21 Fred Fish <fnf@redhat.com>
10861
10862 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10863 when we have found all instructions we are looking for.
10864
966fbf70
RE
108652002-01-21 Richard Earnshaw <rearnsha@arm.com>
10866
10867 * arm-tdep.c (arm_register_name): New function.
10868 (arm_registers_names): Make static.
10869 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10870 (arm_register_name): Declare.
10871 (REGISTER_NAME): Use it.
10872
c3b4394c
RE
108732002-01-21 Richard Earnshaw <rearnsha@arm.com>
10874 Kevin Buettner <kevinb@redhat.com>
10875
10876 Convert arm targets to new FRAME interface.
10877 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10878 (arm_frame_find_save_regs): Delete.
10879 (arm_frame_init_saved_regs): New.
10880 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10881 Allocate extra_info as required. Convert all uses of fsr.regs
10882 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10883 to use extra_info.
10884 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10885 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10886 (check_prologue_cache, save_prologue_cache): Likewise.
10887 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10888 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10889 (FRAME_FIND_SAVED_REGS): Delete.
10890 (arm_frame_find_saved_regs): Delete prototype.
10891 (arm_frame_init_saved_regs): New prototype.
10892 (FRAME_INIT_SAVED_REGS): Define.
10893
61d99182
AC
108942002-01-20 Andrew Cagney <ac131313@redhat.com>
10895
10896 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10897
6aaea291
AC
108982002-01-20 Andrew Cagney <ac131313@redhat.com>
10899
10900 From Jeff Law <law@redhat.com>:
10901 * infttrace.c: Include <sys/pstat.h>.
10902 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10903 exec file if the ttrace equivalent fails.
10904
15f698d2
AC
109052002-01-20 Andrew Cagney <ac131313@redhat.com>
10906
10907 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10908 (closeLogFile): Ditto.
10909
f86ddd7c
MC
109102002-01-20 Michael Chastain <mec@shout.net>
10911
10912 * top.c (print_gdb_version): Bump copyright year to 2002.
10913
904507ce
AC
109142002-01-20 Andrew Cagney <ac131313@redhat.com>
10915
10916 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10917 Zannoni and Eli Zaretskii.
10918
d7f0b9ce
DJ
109192002-01-20 Daniel Jacobowitz <drow@mvista.com>
10920
10921 * buildsym.c: Update copyright years.
10922 * c-typeprint.c: Likewise.
10923 * dwarf2read.c: Likewise.
10924 * f-typeprint.c: Likewise.
10925 * gdbtypes.c: Likewise.
10926 * gdbtypes.h: Likewise.
10927 * hp-symtab-read.c: Likewise.
10928 * hpread.c: Likewise.
10929 * mdebugread.c: Likewise.
10930 * p-typeprint.c: Likewise.
10931
3fd3d7d2
AC
109322002-01-20 Andrew Cagney <ac131313@redhat.com>
10933
10934 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10935 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10936 byte-order selectable.
10937 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10938 * arch-utils.c: Ditto.
10939 (set_endian): Ditto.
10940 (set_endian_from_file): Ditto.
10941 * gdbserver/low-sim.c (create_inferior): Ditto.
10942 * gdbarch.sh: Ditto.
10943 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10944 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10945 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10946 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10947 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10948 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10949 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10950 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10951 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10952 macro definition.
10953 * config/mips/tm-wince.h: Remove #undef of macro
10954 TARGET_BYTE_ORDER_SELECTABLE.
10955 * config/sh/tm-wince.h: Ditto.
10956
b02dede2
DJ
109572002-01-20 Daniel Jacobowitz <drow@mvista.com>
10958
10959 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10960 member function fields. Add accessor macro
10961 TYPE_FN_FIELD_ARTIFICIAL.
10962 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10963 * c-typeprint.c (c_type_print_base): Skip artificial member
10964 functions.
10965
c3643761
DJ
109662002-01-20 Daniel Jacobowitz <drow@mvista.com>
10967
10968 * f-typeprint.c: Delete unused function f_type_print_args.
10969 * p-typeprint.c: Delete unused function pascal_type_print_args.
10970
8176bb6d
DJ
109712002-01-20 Daniel Jacobowitz <drow@mvista.com>
10972
10973 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10974 comment. Add ``artificial'' to ``union field_location''.
10975
10976 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10977
10978 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10979 * mdebugread.c (parse_symbol): Likewise.
10980 * stabsread.c (define_symbol): Likewise.
10981 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10982 initializing TYPE_FIELD_BITPOS to n (obsolete).
10983 (hpread_doc_function_type): Likewise.
10984 * hpread.c (hpread_function_type): Likewise.
10985
7fd60527
AC
109862002-01-20 Andrew Cagney <ac131313@redhat.com>
10987
10988 * configure.in (host_makefile_frag): Only require a host makefile
10989 fragment when a native build.
10990 * configure: Re-generate.
10991
c2f05ac9
AC
109922002-01-20 Andrew Cagney <ac131313@redhat.com>
10993
10994 * doublest.h (floatformat_from_type): Declare.
10995 * doublest.c (floatformat_from_type): New function.
10996 (convert_typed_floating): Use.
10997
10998 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10999 call to function floatformat_from_type.
11000
11001 * gdbarch.sh (IEEE_FLOAT): Delete.
11002 * gdbarch.h, gdbarch.c: Re-generate.
11003 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11004 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11005 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11006 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11007 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11008 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11009 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11010 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11011 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11012 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11013 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11014 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11015
11016 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11017 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11018 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11019 * sh-tdep.c (sh_gdbarch_init): Ditto.
11020 * mips-tdep.c (mips_gdbarch_init): Ditto.
11021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11022 * cris-tdep.c (cris_gdbarch_init): Ditto.
11023
abf22e64
AJ
110242002-01-20 Jiri Smid <smid@suse.cz>
11025
11026 * configure.host, configure.tgt: Support x86-64.
11027 * NEWS: Note new target x86-64.
11028
b7c4cbf8
AJ
11029 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11030 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11031 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11032 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11033 x86-64-linux-nat.o): Fix dependencies.
11034
82600034
AC
110352002-01-19 Andrew Cagney <ac131313@redhat.com>
11036
11037 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11038 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11039 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11040 * config/sparc/xm-sun4os4.h: Delete file.
11041 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11042
bbe5c628
AC
110432002-01-19 Andrew Cagney <ac131313@redhat.com>
11044
11045 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11046 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11047 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11048 * config/i386/i386lynx.mh (XM_FILE): Delete.
11049 * config/rs6000/xm-rs6000ly.h: Delete file.
11050 * config/sparc/xm-sparclynx.h: Delete file.
11051 * config/m68k/xm-m68klynx.h: Delete file.
11052 * config/i386/xm-i386lynx.h: Delete file.
11053 * config/xm-lynx.h: Delete file.
11054 * config/djgpp/fnchange.lst: Update.
11055
f8453e34
JT
110562002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11057
11058 * alpha-tdep.c (alpha_register_byte): New function.
11059 (alpha_register_raw_size): Ditto.
11060 (alpha_register_virtual_size): Ditto.
11061 (alpha_skip_prologue_internal): Renamed from
11062 alpha_skip_prologue.
11063 (alpha_skip_prologue): New version that calls
11064 alpha_skip_prologue_internal.
11065 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11066 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11067 second argument from alpha_skip_prologue.
11068 (REGISTER_BYTE): Use alpha_register_byte.
11069 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11070 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11071 (FRAMELESS_FUNCTION_INVOCATION): Use
11072 generic_frameless_function_invocation_not.
11073 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11074 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11075
52d9e613
AC
110762002-01-19 Andrew Cagney <ac131313@redhat.com>
11077
11078 * config/mips/xm-news-mips.h: Delete file.
11079 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11080
11081 * config/m88k/xm-m88k.h: Delete file.
11082 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11083 * config/m88k/xm-delta88v4.h: Ditto.
11084 * config/m88k/xm-delta88.h: Ditto.
11085
11086 * config/alpha/xm-fbsd.h: Delete file.
11087 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11088
11089 * config/sparc/xm-sparc.h: Delete file.
11090 * Makefile.in (xm-sun4os4.h): Delete dependency.
11091 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11092 * config/sparc/xm-sun4os4.h: Ditto.
11093 * config/sparc/xm-linux.h: Ditto.
11094
11095 * config/i386/xm-windows.h: Delete file.
11096
2d1b2124
AC
110972002-01-19 Andrew Cagney <ac131313@redhat.com>
11098
11099 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11100 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11101
ee1f65f0
JT
111022002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11103
11104 * alpha-tdep.c (alpha_call_dummy_words): New.
11105 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11106 (CALL_DUMMY_P): Define.
11107 (CALL_DUMMY_WORDS): Define.
11108 (SIZEOF_CALL_DUMMY_WORDS): Define.
11109
98081e55
PB
111102002-01-19 Per Bothner <per@bothner.com>
11111
11112 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11113 isn't NULL, which can happen with some gcj-3.x-produced code.
11114
0d056799
JT
111152002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11116
11117 * alpha-tdep.c (alpha_register_virtual_type): New function.
11118 (alpha_init_frame_pc_first): Ditto.
11119 (alpha_fix_call_dummy): Ditto.
11120 (alpha_store_struct_return): Ditto.
11121 (alpha_extract_struct_value_address): Ditto.
11122 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11123 alpha_register_virtual_type.
11124 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11125 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11126 alpha_extract_struct_value_address.
11127 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11128 (INIT_FRAME_PC): Use init_frame_pc_noop.
11129 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11130
4604bcad
MK
111312002-01-19 Mark Kettenis <kettenis@gnu.org>
11132
11133 * i386gnu-nat.c: Include "i386-tdep.h".
11134 (fetch_fpregs): Simplify code dealing with uninitialized floating
11135 point states such that it doesn't require FP7_REGNUM.
11136
140f9984
JT
111372002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11138
abf22e64
AJ
11139 * alpha-tdep.c (frame_extra_info): New.
11140 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11141 frame->extra_info.
11142 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11143 (alpha_frame_saved_pc): Use frame->extra_info.
11144 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11145 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11146 (init_extra_frame_info): Rename to...
11147 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11148 (alpha_print_extra_frame_info): New function.
140f9984
JT
11149 (alpha_frame_locals_address): Ditto.
11150 (alpha_frame_args_address): Ditto.
abf22e64 11151 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11152 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11153 alpha_frame_args_address.
abf22e64 11154 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11155 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11156 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11157 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11158 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11159 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11160
d734c450
JT
111612002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11162
11163 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11164 (alpha_cannot_fetch_register): Ditto.
11165 (alpha_cannot_store_register): Ditto.
11166 (alpha_register_convertible): Ditto.
11167 (alpha_use_struct_convention): Ditto.
11168 * config/alpha/tm-alpha.h: Update copyright years.
11169 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11170 (INNER_THAN): Use core_addr_lessthan.
11171 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11172 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11173 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11174 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11175 (FRAME_CHAIN): Remove unnecessary cast.
11176
b4ceaee6
AC
111772002-01-18 Andrew Cagney <ac131313@redhat.com>
11178
11179 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11180 obsolete.
11181
0a65a603
AC
111822002-01-18 Andrew Cagney <ac131313@redhat.com>
11183
11184 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11185 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11186 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11187 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11188 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11189 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11190 * x86-64-linux-nat.c: Ditto.
11191
636a6dfc
JT
111922002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11193
abf22e64 11194 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11195 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11196 (REGISTER_NAME): Define.
11197
acceddb6
JT
111982002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11199
11200 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11201
ec32e4be
JT
112022002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11203
11204 * alpha-tdep.c: Update copyright years.
11205 (alpha_next_pc): New function.
11206 (alpha_software_single_step): Ditto.
11207 * config/alpha/tm-alpha.h: Add prototype for
11208 alpha_software_single_step.
11209
e771a871
JT
112102002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11211
11212 * alphabsd-nat.c: Update copyright years.
11213 (fill_gregset): Use regcache_collect.
11214 (fill_fpregset): Likewise.
11215 (fetch_inferior_registers): Only fetch integer registers
11216 if requested to do so.
11217 (store_inferior_registers): Only store integer registers
11218 if requested to do so.
11219
7708fa01
AC
112202002-01-17 Andrew Cagney <ac131313@redhat.com>
11221
11222 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11223 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11224 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11225 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11226 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11227 * config/arm/linux.mh (XDEPFILES): Delete.
11228 * config/arm/nbsd.mh (XDEPFILES): Delete.
11229 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11230 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11231 * config/i386/i386m3.mh (XDEPFILES): Delete.
11232 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11233 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11234 * config/i386/fbsd.mh (XDEPFILES): Delete.
11235 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11236 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11237 * config/i386/i386v4.mh (XDEPFILES): Delete.
11238 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11239 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11240 * config/i386/i386aix.mh (XDEPFILES): Delete.
11241 * config/i386/go32.mh (XDEPFILES): Delete.
11242 * config/i386/cygwin.mh (XDEPFILES): Delete.
11243 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11244 * config/i386/i386mach.mh (XDEPFILES): Delete.
11245 * config/i386/i386v32.mh (XDEPFILES): Delete.
11246 * config/i386/linux.mh (XDEPFILES): Delete.
11247 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11248 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11249 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11250 * config/i386/i386sco.mh (XDEPFILES): Delete.
11251 * config/i386/i386v.mh (XDEPFILES): Delete.
11252 * config/i386/nbsd.mh (XDEPFILES): Delete.
11253 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11254 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11255 * config/i386/symmetry.mh (XDEPFILES): Delete.
11256 * config/i386/obsd.mh (XDEPFILES): Delete.
11257 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11258 * config/ia64/linux.mh (XDEPFILES): Delete.
11259 * config/ia64/aix.mh (XDEPFILES): Delete.
11260 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11261 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11262 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11263 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11264 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11265 * config/m68k/linux.mh (XDEPFILES): Delete.
11266 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11267 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11268 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11269 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11270 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11271 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11272 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11273 * config/m88k/delta88.mh (XDEPFILES): Delete.
11274 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11275 * config/m88k/m88k.mh (XDEPFILES): Delete.
11276 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11277 * config/mips/linux.mh (XDEPFILES): Delete.
11278 * config/mips/irix6.mh (XDEPFILES): Delete.
11279 * config/mips/irix5.mh (XDEPFILES): Delete.
11280 * config/mips/irix4.mh (XDEPFILES): Delete.
11281 * config/mips/irix3.mh (XDEPFILES): Delete.
11282 * config/mips/decstation.mh (XDEPFILES): Delete.
11283 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11284 (NATDEPFILES): Move core-aout.o to here.
11285 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11286 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11287 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11288 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11289 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11290 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11291 * config/pa/hpux11.mh (XDEPFILES): Delete.
11292 * config/powerpc/aix.mh (XDEPFILES): Delete.
11293 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11294 * config/powerpc/linux.mh (XDEPFILES): Delete.
11295 * config/romp/rtbsd.mh: Rename XDEPFILES.
11296 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11297 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11298 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11299 * config/s390/s390.mh (XDEPFILES): Delete.
11300 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11301 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11302 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11303 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11304 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11305 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11306 * config/sparc/linux.mh (XDEPFILES): Delete.
11307 * config/vax/vaxult.mh (XDEPFILES): Delete.
11308 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11309 * Makefile.in (DEPFILES): Remove XDEPFILES.
11310
375fc983
AC
113112002-01-17 Andrew Cagney <ac131313@redhat.com>
11312
11313 * utils.c (internal_verror): Fix comments, default is yes not no.
11314 Update queries to match. Default to quit and dump core.
11315
8926118c
AC
113162002-01-17 Andrew Cagney <ac131313@redhat.com>
11317
11318 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11319 copyright.
11320 * defs.h, event-top.c, gdbcmd.h: Ditto.
11321 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11322 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11323 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11324 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11325 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11326 * mi/mi-main.c:Ditto.
11327
11328 * stack.c, symfile.c: Update copyright.
11329
45b7b345
DJ
113302002-01-17 Daniel Jacobowitz <drow@mvista.com>
11331
db728ff7
DJ
11332 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11333 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11334 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11335 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11336
db728ff7
DJ
113372002-01-17 Daniel Jacobowitz <drow@mvista.com>
11338
11339 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11340 * gdbserver/low-lynx.c (myattach): Likewise.
11341 * gdbserver/low-nbsd.c (myattach): Likewise.
11342 * gdbserver/low-sim.c (myattach): Likewise.
11343 * gdbserver/low-sparc.c (myattach): Likewise.
11344 * gdbserver/low-sun3.c (myattach): Likewise.
11345
11346 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11347
db728ff7 11348 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11349 (main): Handle "--attach".
11350
8de3c354
AC
113512002-01-16 Andrew Cagney <ac131313@redhat.com>
11352
11353 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11354 maintainer.
11355
b0129042
DJ
113562002-01-15 Daniel Jacobowitz <drow@mvista.com>
11357
11358 * c-typeprint.c (is_type_conversion_operator): Add additional
11359 check for non-conversion operators.
11360
ba8679fb 113612002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11362
11363 * linux-proc.c: Add "info proc" command, a la procfs.c.
11364 (read_mapping): New function, abstract and re-use code.
11365 (linux_find_memory_regions): Use new func read_mapping.
11366 (linux_info_proc_cmd): New function, implement "info proc".
11367 (_initialize_linux_proc): Add new command "info proc".
11368
e4f9b4d5
MS
113692002-01-15 Michael Snyder <msnyder@redhat.com>
11370
11371 * symfile.c (generic_load): Use bfd_map_over_sections method
11372 instead of manipulating bfd structure members directly.
11373 (add_section_size_callback): New function, bfd sections callback
11374 used by generic_load.
11375 (load_sections_callback): New function, bfd sections callback
11376 used by generic_load.
11377
08cf96df
EZ
113782002-01-15 Elena Zannoni <ezannoni@redhat.com>
11379
abf22e64 11380 [Based on work by Jim Blandy]
08cf96df
EZ
11381 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11382 (builtin_type_vec128): Export.
11383 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11384 types.
11385 (builtin_type_vec128): New builtin type for 128 bit vector
11386 registers.
11387 (build_gdbtypes): Initialize builtin_type_v16qi and
11388 builtin_type_v8hi. Create the vec128 register builtin type
11389 structure.
11390 (build_builtin_type_vec128): New function.
abf22e64 11391 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11392 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11393 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11394 AltiVec register to new builtin type.
11395
d7242108
DJ
113962001-01-15 Daniel Jacobowitz <drow@mvista.com>
11397
11398 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11399 to make_cv_type.
11400
4ee3352d
AC
114012002-01-14 Andrew Cagney <ac131313@redhat.com>
11402
11403 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11404 CLEAN_UP_REGISTER_VALUE.
11405 * regcache.c (supply_register): Update only call.
11406
f015b2e7
AC
114072002-01-14 Andrew Cagney <ac131313@redhat.com>
11408
11409 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11410 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11411 a29k-*-vxworks* targets as obsolete.
11412
356ae49d
MS
114132002-01-14 Michael Snyder <msnyder@redhat.com>
11414
11415 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11416 until we can resolve portability issues.
11417 * gregset.h: Remove references to fpxregs.
11418 * gcore.c (gcore_command): Initialize note_sec to NULL.
11419
ade8f45e
AC
114202002-01-13 Andrew Cagney <ac131313@redhat.com>
11421
11422 * signals.c (target_signal_to_name): Rewrite. Only use
11423 signals[].name when in bounds and non-NULL.
abf22e64 11424
89c49e7a
AC
114252002-01-13 Andrew Cagney <ac131313@redhat.com>
11426
11427 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11428 * signals.c (target_signal_to_name): Verify that SIG is within the
11429 bounds of the signals array.
11430
4daa9f9f
AC
114312002-01-13 Andrew Cagney <ac131313@redhat.com>
11432
11433 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11434
ba4bbdcb
KS
114352002-01-13 Keith Seitz <keiths@redhat.com>
11436
11437 * stack.c (print_frame_info_base): Print the frame's pc
11438 only if when print_frame_info_listing_hook is not defined.
11439
575bbeb6
KS
114402002-01-13 Keith Seitz <keiths@redhat.com>
11441
11442 * varobj.c (varobj_set_value): Make sure that there were no
11443 errors evaluating the object before attempting to set its
11444 value.
11445 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11446 so this offset adjustment is no longer necessary.
11447 (create_child): Don't set the error flag if the child is
11448 a CPLUS_FAKE_CHILD.
11449 (value_of_child): If value_fetch_lazy fails, return NULL
11450 so that callers will be notified that an error occurred.
11451 (c_value_of_variable): Delay check of variable's validity
11452 until later. We actually want all structs and unions to have
11453 the value "{...}".
11454 Do not return "???" for variables which could not be evaluated.
11455 This error condition must be returned to the caller so that it
11456 can get the error condition from gdb.
11457 (cplus_name_of_child): Adjust index for vptr before figuring
11458 out the name of the child.
11459 (cplus_value_of_child): If a child's (real) parent is not valid,
11460 don't even bother trying to give a value for it. Just return
11461 an error. Change all instances in this function.
11462 (cplus_type_of_child): If our parent is one of the "fake"
11463 parents, we need to get at the type of the real parent, and
11464 derive the child's true type using this information.
11465
b76898ab
AC
114662002-01-13 Andrew Cagney <ac131313@redhat.com>
11467
11468 From 2002-01-09 John Marshall <johnm@falch.net>:
11469 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11470 sources.redhat.com, and tweak some related URLs which had
11471 suffered from linkrot.
11472
b6649e88
AC
114732002-01-13 Andrew Cagney <ac131313@redhat.com>
11474
11475 From Jeff law:
11476 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11477 structures passed in registers.
11478
82cc5033
EZ
114792002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11480
11481 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11482 white space which prevented compilation. Reported by DSK
11483 <dsk@student.unsw.edu.au>.
11484
ba5f2f8a
MS
114852002-01-11 Michael Snyder <msnyder@redhat.com>
11486
fbd35540
MS
11487 * symfile.c (build_section_addr_info_from_section_tab):
11488 Use bfd access method instead of manipulating bfd directly.
11489 (syms_from_objfile): Ditto.
11490 (simple_overlay_update_1): Ditto.
11491 (simple_overlay_update): Ditto.
11492 (generic_load): Ditto.
11493 (overlay_unmapped_address): FIXME comment, bfd access methods.
11494 (sections_overlap): FIXME comment, bfd access methods.
11495 (pc_in_mapped_range): FIXME comment, bfd access methods.
11496 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11497 (section_is_mapped): FIXME comment, bfd access methods.
11498 (section_is_overlay): FIXME comment, bfd access methods.
11499
ba5f2f8a
MS
11500 * symfile.c (generic_load): Whitespace and long line cleanups.
11501 Remove duplicate variable, change several local variables to
11502 more appropriate data types.
11503 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11504
17df2af6
AC
115052002-01-12 Andrew Cagney <ac131313@redhat.com>
11506
11507 From Peter Schauer:
11508 * language.c (longest_local_hex_string_custom): Use phex_nz to
11509 convert NUM to a hex string.
11510
ec920329
EZ
115112002-01-12 Elena Zannoni <ezannoni@redhat.com>
11512
11513 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11514 the function.
538a76d6 11515 Update Copyright year.
ec920329 11516
3abd2e01
AC
115172002-01-12 Andrew Cagney <ac131313@redhat.com>
11518
11519 * language.c (longest_raw_hex_string): Delete unused function.
11520
b21b22e0
PS
115212002-01-11 Petr Sorfa <petrs@caldera.com>
11522
11523 * MAINTAINERS (write-after-approval): Add myself.
11524 * dwarf2read.c (read_tag_string_type): Handling of
11525 DW_AT_byte_size.
11526 (read_tag_string_type): FORTRAN fix to prevent propagation of
11527 first string size.
11528 (set_cu_language): Handling of DW_LANG_Fortran95
11529
747fe712
RE
115302002-01-11 Richard Earnshaw <rearnsha@arm.com>
11531
11532 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11533 GETPID(inferior_ptid).
11534 (store_inferior_registers): Likewise.
11535
f1bea926
JM
115362002-01-10 Jason Merrill <jason@redhat.com>
11537
11538 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11539 Fix DW_OP_minus.
11540
ae940673
AC
115412002-01-10 Andrew Cagney <ac131313@redhat.com>
11542
11543 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11544 and bfd/elf32-sh-nbsd.c.
11545
00546b04
MS
115462002-01-10 Michael Snyder <msnyder@redhat.com>
11547
352ed7b4
MS
11548 * NEWS: Mention --pid and corefile/proc-id behavior change.
11549
c18be923
MS
11550 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11551 * gcore.c: Include cli/cli-decode.h instead of command.h.
11552
00546b04
MS
11553 * main.c (captured_main): Add new command line option "--pid".
11554 If the second command line argument (following the symbol-file)
11555 begins with a digit, try to attach to it before trying to open
11556 it as a corefile.
11557 (print_gdb_help): Document the "--pid" argument.
11558
db60ec62
EZ
115592002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11560
11561 * completer.c (command_completer): New function.
11562
11563 * completer.h <command_completer>: Add prototype.
11564
11565 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11566 completer for the "help" command.
11567
39c22d1a
JM
115682002-01-09 Jason Merrill <jason@redhat.com>
11569
11570 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11571
c564377f
MS
115722002-01-09 Michael Snyder <msnyder@redhat.com>
11573
975aec09
MS
11574 * i386-linux-nat.c (fill_fpxregset): Make global.
11575 (store_fpxregset): Ditto.
11576
db4a10fa
MS
11577 * gregset.h (gdb_fpxregset_t): Define.
11578 (supply_fpxregset): Prototype.
11579 (fill_fpxregset): Prototype.
11580
c564377f
MS
11581 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11582
c3d45d70
RE
115832002-01-09 Richard Earnshaw <rearnsha@arm.com>
11584
11585 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11586 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11587 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11588
fcc87af1
AC
115892002-01-09 Andrew Cagney <ac131313@redhat.com>
11590
11591 * MAINTAINERS: Update target maintainer rules so that any
11592 Maintainer can approve a tested patch for a maintenance-only
11593 target.
11594
dd96c05b
RE
115952002-01-09 Richard Earnshaw <rearnsha@arm.com>
11596
d4297db9 11597 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11598
d4297db9 11599 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11600 IN_SIGTRAMP.
11601
145fdc6e
MS
116022002-01-08 Michael Snyder <msnyder@redhat.com>
11603
11604 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11605 real name of the executable, rather than the /proc name.
11606
be4d1333
MS
116072002-01-03 Michael Snyder <msnyder@redhat.com>
11608
11609 Implement a "generate-core-file" command in gdb, save target state.
11610 * gcore.c: New file. Implement new command 'generate-core-file'.
11611 Save a corefile image of the current state of the inferior.
11612 * linux-proc.c: Add linux-specific code for saving corefiles.
11613 * target.h (struct target_ops): Add new target vectors for saving
11614 corefiles; to_find_memory_regions and to_make_corefile_notes.
11615 (target_find_memory_regions): New macro.
11616 (target_make_corefile_notes): New macro.
11617 * target.c (update_current_target): Inherit new target methods.
11618 (dummy_find_memory_regions): New place-holder method.
11619 (dummy_make_corefile_notes): New place-holder method.
11620 (init_dummy_target): Initialize new dummy target vectors.
11621 * exec.c (exec_set_find_memory_regions): New function.
11622 Allow the exec_ops vector for memory regions to be taken over.
11623 (exec_make_note_section): New function, target vector method.
11624 * defs.h (exec_set_find_memory_regions): Export prototype.
11625 * procfs.c (proc_find_memory_regions): New function, corefile method.
11626 (procfs_make_note_section): New function, corefile method.
11627 (init_procfs_ops): Set new target vector pointers.
11628 (find_memory_regions_callback): New function.
11629 (procfs_do_thread_registers): New function.
11630 (procfs_corefile_thread_callback): New function.
11631 * sol-thread.c (sol_find_memory_regions): New function.
11632 (sol_make_note_section): New function.
11633 (init_sol_thread_ops): Initialize new target vectors.
11634 * inftarg.c (inftarg_set_find_memory_regions): New function.
11635 Allow to_find_memory_regions vector to be taken over.
11636 (inftarg_set_make_corefile_notes): New function.
11637 Allow to_make_corefile_notes vector to be taken over.
11638 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11639 interface layer if not target_has_execution (may be a corefile).
11640 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11641 * config/sparc/sun4sol2.mh: Ditto.
11642 * config/alpha/alpha-linux.mh: Ditto.
11643 * config/arm/linux.mh: Ditto.
11644 * config/i386/x86-64linux.mh: Ditto.
11645 * config/ia64/linux.mh: Ditto.
11646 * config/m68k/linux.mh: Ditto.
11647 * config/mips/linux.mh: Ditto.
11648 * config/powerpc/linux.mh: Ditto.
11649 * config/sparc/linux.mh: Ditto.
11650
c6b92abd
MS
116512002-01-07 Michael Snyder <msnyder@redhat.com>
11652
11653 * arm-linux-nat.c: Remove references to regcache.c internal data
11654 (registers[] and register_valid[]).
11655
4b09dc8c
MS
116562002-01-07 Michael Snyder <msnyder@redhat.com>
11657
abf22e64
AJ
11658 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11659 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11660 symbol file and shlibs.
11661 * Makefile.in: Add rule for linux-proc.o.
11662 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11663 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11664 * config/arm/linux.mh: Ditto.
11665 * config/i386/linux.mh: Ditto.
11666 * config/i386/x86-64linux.mh: Ditto.
11667 * config/ia64/linux.mh: Ditto.
11668 * config/m68k/linux.mh: Ditto.
11669 * config/mips/linux.mh: Ditto.
11670 * config/powerpc/linux.mh: Ditto.
11671 * config/sparc/linux.mh: Ditto.
11672
c25b74ac
PM
116732002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11674
11675 * win32-nat.c: Add i386-tdep.h dependency.
11676
94cd915f
MS
116772002-01-07 Michael Snyder <msnyder@redhat.com>
11678
c7cccb76
MS
11679 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11680 instead of bfd_get_arch_size. Don't bail out just because
11681 there's no exec_bfd.
abf22e64 11682
34c0bd93
MS
11683 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11684 * p-valprint.c (pascal_object_print_value): Ditto.
11685 * somread.c (som_symtab_read): Ditto.
11686 * symfile.c (simple_free_overlay_region_table): Ditto.
11687 * valops.c (value_assign): Ditto.
11688
21c1c920
MS
11689 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11690 use tilde_expand and strerror for opening save-tracepoints file.
11691
5bbd998e
MS
11692 * thread-db.c (thread_db_new_objfile): Indendation fix.
11693
94cd915f
MS
11694 * infptrace.c (GDB_MAX_ALLOCA): New define.
11695 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11696 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11697 can be overridden with whatever value is appropriate to the host).
11698 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11699 alloca to allocate potentially large buffer.
11700 * rs6000-nat.c (child_xfer_memory): Ditto.
11701 * symm-nat.c (child_xfer_memory): Ditto.
11702 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11703
494e8a93
JSC
117042002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11705
11706 From Nick Clifton <nickc@redhat.com>
11707 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11708
d0e1d48e
MS
117092002-01-07 Michael Snyder <msnyder@redhat.com>
11710
abf22e64 11711 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11712 Don't use exec_bfd if it's NULL.
11713
290b2c7a
MK
117142002-01-06 Mark Kettenis <kettenis@gnu.org>
11715
abf22e64 11716 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11717
aef21287
AC
117182002-01-06 Andrew Cagney <ac131313@redhat.com>
11719
11720 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11721 * gnu-nat.c: Ditto.
11722
30efa627
AC
117232002-01-06 Andrew Cagney <ac131313@redhat.com>
11724
11725 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11726 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11727 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11728 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11729 z8k-coff have not been multi-arched. Update z8k-coff build
11730 status.
11731
9b4ff276
AC
117322002-01-06 Andrew Cagney <ac131313@redhat.com>
11733
11734 * MAINTAINERS: Mark a29k target as obsolete.
11735 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11736 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11737 comments.
11738 * NEWS: Note that a29k targets are obsolete.
11739 * a29k-tdep.c: Mark as obsolete.
11740 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11741 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11742 a29k-*-vxworks* targets as obsolete.
11743 * remote-adapt.c: Obsolete.
11744 * remote-eb.c: Obsolete.
11745 * remote-mm.c: Obsolete.
11746 * remote-udi.c: Obsolete.
11747 * config/a29k/a29k-udi.mt: Obsolete.
11748 * config/a29k/a29k.mt: Obsolete.
11749 * config/a29k/tm-a29k.h: Obsolete.
11750 * config/a29k/tm-vx29k.h: Obsolete.
11751 * config/a29k/vx29k.mt: Obsolete.
11752
a9011d31
AC
117532002-01-05 Andrew Cagney <ac131313@redhat.com>
11754
11755 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11756 with BFD_ENDIAN_BIG.
11757
9299404e
AC
117582002-01-05 Andrew Cagney <ac131313@redhat.com>
11759
11760 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11761 * configure, config.in: Re-generate.
11762 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11763 * defs.h: Do not include <endian.h>.
11764
7e89e357
JT
117652002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11766
11767 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11768 * config.in: Regenerate.
11769 * configure.in: Update copyright years.
11770 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11771 * configure: Regenerate.
11772 * i386bsd-nat.c: Update copyright years.
11773 (fill_gregset): Use regcache_collect.
11774 (fetch_inferior_registers): Only fetch integer registers
11775 if requested to do so. Add support for XMM registers
11776 using PT_GETXMMREGS.
11777 (store_inferior_registers): Only store integer registers
11778 if requested to do so. Add support for XMM registers
11779 using PT_SETXMMREGS.
11780 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11781 (store_inferior_registers): Remove.
11782 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11783 (fetch_elfcore_registers): New function.
11784 (i386nbsd_elfcore_fns): New.
11785 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11786 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11787 i386bsd-nat.o.
11788 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11789 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11790 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11791 * config/i386/tm-nbsd.h: Update copyright years.
11792 (HAVE_SSE_REGS): Define.
11793 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11794 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11795 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11796 (SIGCONTEXT_PC_OFFSET): Remove.
11797 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11798
a752853e
AC
117992002-01-05 Andrew Cagney <ac131313@redhat.com>
11800
11801 * configure.tgt: Remove powerpc-*-macos* target.
11802 * config/m68k/xm-mpw.h: Delete file.
11803 * config/xm-mpw.h: Delete file.
11804 * ser-mac.c: Delete file.
11805 * mpw-make.sed: Delete file.
11806 * mpw-config.in: Delete file.
11807 * mac-xdep.c: Delete file.
11808 * mac-gdb.r: Delete file.
11809 * mac-defs.h: Delete file.
11810 * mac-nat.c: Delete file.
11811 * config/powerpc/macos.mh: Delete file.
11812 * config/powerpc/macos.mt: Delete file.
11813 * config/powerpc/nm-macos.h: Delete file.
11814 * config/powerpc/tm-macos.h: Delete file.
11815 * source.c (openp, open_source_file): Remove obsolete code.
11816 * top.c (gdb_readline): Ditto.
11817 * utils.c (query): Ditto.
11818 * event-top.c (display_gdb_prompt): Ditto.
11819 * Makefile.in (ser-mac.o): Delete obsolete target.
11820 * NEWS: Update.
11821
d7449b42
AC
118222002-01-04 Andrew Cagney <ac131313@redhat.com>
11823
11824 * defs.h (BIG_ENDIAN): Delete macro definition.
11825 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11826 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11827 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11828 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11829 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11830 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11831 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11832 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11833 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11834 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11835 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11836 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11837 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11838 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11839 * gdbarch.c: Re-generate.
11840
356374e8
DJ
118412002-01-04 Daniel Jacobowitz <drow@mvista.com>
11842
11843 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11844 for core files.
11845
a2b8f8f8
JT
118462002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11847
11848 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11849
12466af9
AC
118502002-01-04 Andrew Cagney <ac131313@redhat.com>
11851
11852 * value.h (value_ptr): Delete typedef.
11853
3549ab40
JT
118542002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11855
11856 * i386nbsd-nat.c: Update copyright years.
11857 Include i386-tdep.h.
11858
fedbd091
EZ
118592002-01-04 Elena Zannoni <ezannoni@redhat.com>
11860
11861 * stabsread.c: Update copyright years.
11862
11863 From Debashis Mahata <debashis.mahata@wipro.com>:
11864 (read_struct_fields): Deal with Sun C compiler erroneous stab
11865 output for structs and unions.
fec8b34f 11866 Fix PR gdb/269.
fedbd091 11867
eb43544b
DJ
118682002-01-04 Daniel Jacobowitz <drow@mvista.com>
11869
11870 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11871 prototype.
11872
1514d34e
DJ
118732002-01-04 Daniel Jacobowitz <drow@mvista.com>
11874
11875 * cp-abi.c: Fix whitespace.
11876 (baseclass_offset): New wrapper function.
11877 * cp-abi.h (baseclass_offset): Add prototype.
11878 (struct cp_abi_ops): Add baseclass_offset pointer.
11879
11880 * valops.c (vb_match): Move to...
11881 * gnu-v2-abi.c (vb_match): here.
11882 * valops.c (baseclass_offset): Move to...
11883 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11884
11885 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11886
11887 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11888 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11889 * hpacc-abi.c (init_hpacc_ops): Likewise.
11890
7f8c9282
DJ
118912002-01-04 Daniel Jacobowitz <drow@mvista.com>
11892
11893 * valops.c (find_overload_match): Accept obj as a
11894 reference parameter. Update it before returning.
11895 * value.h (find_overload_match): Update prototype.
11896 * eval.c (evaluate_subexp_standard): Pass object to
11897 find_overload_match by reference.
11898
f23631e4
AC
118992002-01-03 Andrew Cagney <ac131313@redhat.com>
11900
11901 * valarith.c: Replace value_ptr with struct value pointer. Remove
11902 register attribute from value declarations.
11903 * valops.c: Ditto.
11904 * value.h: Ditto.
11905 * scm-lang.c (scm_lookup_name): Ditto.
11906
79e10fab 119072002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11908
79e10fab
AC
11909 Abstract the functionality of iterating over mapped memory
11910 regions into a general purpose iterator function.
abf22e64 11911 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11912 iterator for memory sections.
11913 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11914 (solib_mappings_callback): New function, callback for above.
11915 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11916 (info_mappings_callback): New function, callback for above.
11917
11918 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11919
c5ad026a
MK
119202002-01-01 Mark Kettenis <kettenis@gnu.org>
11921
d2a7c97a
MK
11922 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11923 * i386-tdep.c: Include "elf-bfd.h".
11924 (process_note_abi_tag_sections): New function.
11925 (i386_gdbarch_init): Add code to recognize various OS/ABI
11926 combinations.
11927
c5ad026a
MK
11928 * maint.c (_initialize_maint_cmds): Add missing \ in
11929 string-literal.
11930
a1a5b71e 11931For older changes see ChangeLog-2001
c906108c
SS
11932\f
11933Local Variables:
11934mode: change-log
11935left-margin: 8
11936fill-column: 74
11937version-control: never
11938End:
This page took 0.83373 seconds and 4 git commands to generate.