2002-10-23 Michael Snyder <msnyder@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-23 Michael Snyder <msnyder@redhat.com>
2
3 * valops.c (value_of_local): Restore quotes in error message.
4
5 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
6
7 * symtab.c (symbol_init_language_specific): New function.
8 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
9 turning most of it into a function.
10 (symbol_init_language_specific): Export.
11
12 2002-10-23 David Carlton <carlton@math.stanford.edu>
13
14 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
15 (dwarf_attr_name): Ditto.
16 (dwarf_type_encoding_name): Ditto.
17 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
18 (process_die): Handle DW_TAG_namespace,
19 DW_TAG_imported_declaration, DW_TAG_imported_module.
20 (read_namespace): New function.
21
22 2002-10-22 Joel Brobecker <brobecker@gnat.com>
23
24 * configure.in: Define NEW_PROC_API on Interix too.
25 * configure: Regenerate.
26
27 2002-10-21 Joel Brobecker <brobecker@gnat.com>
28
29 * configure: Regenerate using the proper version of autoconf.
30
31 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
32
33 * findvar.c (read_var_value): Temporarily disable TLS code, until
34 complete TLS support is added.
35
36 2002-10-21 Jim Blandy <jimb@redhat.com>
37 Elena Zannoni <ezannoni@redhat.com>
38
39 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
40 for thread local storage locations.
41 (struct symbol): Add objfile field.
42 (SYMBOL_OBJFILE): Define.
43 * dwarf2read.c (is_thread_local): New static variable.
44 (new_symbol): If variable is in thread local fill in address class
45 and objfile appropriately.
46 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
47 stack operation.
48 * printcmd.c (address_info): Print the information for thread
49 local storage variable.
50 * findvar.c (read_var_value): In case of thread local variable,
51 defer to the target vector code to compute address.
52
53 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
54
55 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
56 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
57
58 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
59
60 * symtab.h (address_class): Rename
61 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
62 * hpread.c (hpread_process_one_debug_symbol): Ditto.
63 * printcmd.c (address_info): Ditto.
64 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
65
66 2002-10-20 Mark Kettenis <kettenis@gnu.org>
67
68 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
69 DBREG_DRX macro to acces debug registers.
70
71 * Makefile.in (i386obsd-tdep.o): New target.
72
73 * solib-sunos.c: Include "bcache.h" and "regcache.h".
74 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
75
76 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
77 * config/i386/obsd.mt: New file.
78 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
79 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
80 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
81 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
82 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
83 * i386obsd-tdep.c: New file.
84
85 2002-10-19 Adam Fedor <fedor@gnu.org>
86
87 * objc-exp.y (name_not_typename): Fix invalid comment.
88
89 2002-10-20 Mark Kettenis <kettenis@gnu.org>
90
91 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
92 to allocate partial syms and macro byte caches.
93
94 2002-10-18 David Carlton <carlton@math.stanford.edu>
95
96 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
97
98 2002-10-18 Adam Fedor <fedor@gnu.org>
99
100 * stabsread.c (find_name_end): New function.
101 (define_symbol): Use it.
102
103 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
104
105 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
106 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
107 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
108 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
109
110 2002-10-17 David Carlton <carlton@math.stanford.edu>
111
112 * symfile.h: Add opaque declaration for struct obstack.
113 Declare obsavestring to take a const char *.
114 * symfile.c (obsavestring): Make first argument a const char *.
115
116 2002-10-16 Adam Fedor <fedor@gnu.org>
117
118 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
119 names when matching breakpoints in current file.
120
121 2002-10-16 Kevin Buettner <kevinb@redhat.com>
122
123 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
124 (read_tag_pointer_type): Add address class support.
125 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
126 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
127 New methods.
128 * gdbarch.h, gdbarch.c: Regenerate.
129 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
130 (make_type_with_address_space, recursive_type_dump): Add address
131 class support.
132 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
133 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
134 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
135
136 2002-10-16 Klee Dienes <kdienes@apple.com>
137
138 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
139 to get the last character of a char[] buffer, not
140 name[sizeof(vptr_name)-1].
141
142 2002-10-14 Adam Fedor <fedor@gnu.org>
143
144 * symtab.h: New objc_specific struct.
145 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
146 (SYMBOL_DEMANGLED_NAME): Likewise.
147
148 2002-10-14 Adam Fedor <fedor@gnu.org>
149
150 * symfile.c (init_filename_language_table): Add ObjC file extension.
151
152 2002-10-14 Adam Fedor <fedor@gnu.org>
153
154 * utils.c (puts_filtered_tabular): New function.
155 (fprintf_symbol_filtered): Get ObjC demangled name.
156 * defs.h (puts_filtered_tabular): Declared.
157
158 2002-10-14 Kevin Buettner <kevinb@redhat.com>
159
160 * c-lang.h (c_type_print_varspec_prefix): Delete.
161 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
162 ``need_post_space'' parameter. Adjust all callers.
163
164 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
165
166 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
167 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
168 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
169 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
170
171 2002-10-13 Adam Fedor <fedor@gnu.org>
172
173 * source.c (print_source_lines): Update comments.
174
175 2002-10-13 Adam Fedor <fedor@gnu.org>
176
177 * valops.c (value_of_local): New function.
178 (value_of_this): Use it.
179 * value.h (value_of_local): Declared.
180
181 2002-10-13 Adam Fedor <fedor@gnu.org>
182
183 * parse.c: (length_of_subexp, prefixify_subexp): Handle
184 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
185
186 2002-10-12 Adam Fedor <fedor@gnu.org>
187
188 * language.c (binop_result_type): Add language_objc to case.
189 (integral_type): Likewise.
190 (character_type): Likewise.
191 (string_type): Likewise.
192 (boolean_type): Likewise.
193 (structured_type): Likewise.
194 (binop_type_check): Likewise.
195
196 2002-10-11 Adam Fedor <fedor@gnu.org>
197
198 * printcmd.c (address_info): Print 'self' for ObjC.
199
200 2002-10-11 Adam Fedor <fedor@gnu.org>
201
202 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
203 OP_SELF.
204
205 2002-10-11 Adam Fedor <fedor@gnu.org>
206
207 * language.h (CAST_IS_CONVERSION): Add language_objc.
208
209 2002-10-11 Adam Fedor <fedor@gnu.org>
210
211 * defs.h (enum language): Add language_objc.
212
213 2002-10-11 Klee Dienes <kdienes@apple.com>
214
215 * findvar.c (read_memory_typed_address): New function.
216 * gdbcore.h (read_memory_typed_address): Add prototype.
217 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
218 to read a value destined for a CORE_ADDR, not read_memory_integer.
219 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
220 (f77_get_dynamic_lowerbound): Ditto.
221
222 2002-10-11 Martin M. Hunt <hunt@redhat.com>
223
224 * utils.c (string_to_core_addr): After turning string into
225 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
226 which will do necessary sign-extension, etc.
227
228 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
229
230 * c-exp.y (THIS): Delete token and grammar rule.
231 (yylex): Don't return THIS.
232 * cp-valprint.c (vtbl_ptr_name_old): Delete.
233 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
234 * demangle.c (cplus_markers): Update comment. Put '$'
235 first. Remove CPLUS_MARKER.
236 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
237 * jv-exp.y (THIS): Delete token and grammar rule.
238 (yylex): Don't return THIS.
239 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
240 * objc-exp.y (THIS): Delete token and grammar rule.
241 (yylex): Don't return THIS.
242 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
243 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
244 (read_member_functions): Likewise for opname.
245 (read_tilde_fields): Use is_cplus_marker.
246
247 * defs.h (CPLUS_MARKER): Don't define.
248 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
249 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
250 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
251 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
252 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
253
254 * config/i386/tm-i386v4.h: Delete file.
255 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
256 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
257 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
258 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
259 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
260 * config/i386/i386sco5.mt (TM_FILE): Likewise.
261 * config/i386/i386v4.mt (TM_FILE): Likewise.
262 * config/i386/ncr3000.mt (TM_FILE): Likewise.
263
264 2002-10-10 Marko Mlinar <markom@opencores.org>
265
266 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
267 accidentially not commited 2002-10-09
268 * gdbarch.h, gdbarch.c: Re-generate.
269
270 2002-10-09 Marko Mlinar <markom@opencores.org>
271
272 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
273 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
274 * gdbarch.h, gdbarch.c: Re-generate.
275
276 2002-10-08 Petr Sorfa <petrs@caldera.com>
277
278 Revised and re-submitted by John Wolfe <jlw@caldera.com>
279
280 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
281 so we can work on more than one compilation unit at a time. This
282 helps prepare GDB to handle inter-CU die references.
283 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
284 the code to be defined before struct comp_unit_head.
285 (comp_unit_head): Added new members - offset, cu_head,
286 begin_die, next and dwarf2_abbrevs.
287 (dwarf2_abbrevs): Removed single static var; now member of
288 struct comp_unit_head.
289 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
290 members.
291 (psymtab_to_symtab_1): Changed to work with the new
292 struct comp_unit_head.
293 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
294 constructs the dwarf2_abbrevs[] inside the cu_header.
295 (dwarf2_empty_abbrev_table): Now expects a ptr to a
296 dwarf2_abbrev table to clean up.
297 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
298 handling of dwarf2_abbrevs inside the cu_header.
299 (read_partial_die): Now supports the call to the new
300 dwarf2_lookup_abbrev.
301 (read_full_die): Now supports the call to the new
302 dwarf2_lookup_abbrev.
303
304 2002-10-06 Christopher Faylor <cgf@redhat.com>
305
306 * Makefile.in (install-gdbtk): Add missing continuation backslash to
307 insure that shell variables, such as "transformed_name" are propagated
308 to later shell statements in rule.
309
310 2002-10-06 Mark Kettenis <kettenis@gnu.org>
311
312 * config/i386/nm-i386sco.h: Add protection against
313 multiple-inclusion. Include "i386/nm-i386v.h".
314 (REGISTER_U_ADDR): Remove define.
315 (i386_register_u_addr): Remove prototype.
316
317 2002-10-04 Michael Snyder <msnyder@redhat.com>
318
319 * m32r-stub.c (handle_exception): Make sure exception is "trap"
320 before treating it as a single-step event.
321
322 2002-10-03 Adam Fedor <fedor@gnu.org>
323
324 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
325 (objc_demangle): Remove assignment in if statements, Replace
326 free with xfree.
327 (add_msglist): Likewise.
328 (end_msglist): Likewise.
329 (complare_selectors): Likewise.
330 (selectors_info): Likewise.
331 (compare_classes): Likewise.
332 (classes_info): Likewise.
333 (print_object_command): Likewise.
334 (find_objc_msgcall_submethod): Replace PTR with void *.
335 * objc-lang.h: Remove check for __STDC__.
336
337 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
338
339 * ui-out.h (ui_out_field_fmt_int): New prototype.
340 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
341 of field width and alignment.
342 * stack.c (print_frame_info_base): When printing frame level, use
343 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
344 PR gdb/192
345
346 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
347
348 * MAINTAINERS: Add self to Write After Approval list.
349
350 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
351
352 * infcmd.c (interrupt_target_command_wrapper): Delete.
353 (interrupt_target_command): Make non static.
354 (nofp_registers_info): Make static.
355 * stack.c (return_command_wrapper): Delete.
356 (return_command): Make non static.
357
358 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
359
360 * event-top.c (gdb_setup_readline): New function. Code moved from
361 _initialize_event_loop().
362 (_initialize_event_loop): Call gdb_setup_readline().
363
364 2002-10-02 Andrew Cagney <ac131313@redhat.com>
365
366 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
367 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
368 * gdbarch.h, gdbarch.c: Re-generate.
369
370 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
371
372 Fix PR gdb/778
373 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
374 before recursing.
375 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
376 of fill_in_vptr_fieldno.
377
378 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
379
380 * inferior.h (registers_info, stepi_command, nexti_command,
381 continue_command, interrupt_target_command): Export from infcmd.c.
382 * frame.h (args_info, selected_frame_level_changed_hook,
383 return_command): Export from stack.c.
384 * v850ice.c (stepi_command, nexti_command, continue_command): use
385 prototypes from inferior.h.
386 * tracepoint.c (registers_info, args_info, locals_info): Use
387 prototypes from frame.h and inferior.h.
388 * Makefile.in (mi-main.o): Add dependency on frame.h.
389
390 2002-10-02 Andrew Cagney <ac131313@redhat.com>
391
392 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
393 value in register 3 adjusted by ppc_gp0_regnum.
394
395 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
396
397 2002-10-02 Marko Mlinar <markom@opencores.org>
398
399 * MAINTAINERS: Add myself to the Write After Approval list.
400
401 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
402
403 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
404 of the section for the N64 ABI, fixed.
405
406 * config/mips/tm-irix6.h: Include solib.h.
407
408 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
409
410 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
411 GNU operators.
412
413 2002-10-01 Andrew Cagney <ac131313@redhat.com>
414
415 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
416 and that "mi0" syntax has been removed.
417
418 2002-09-30 David Carlton <carlton@math.stanford.edu>
419
420 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
421 * ppc-sysv-tdep.c: #include "gdb_string.h".
422 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
423 pacify GCC.
424
425 2002-10-01 Andrew Cagney <ac131313@redhat.com>
426
427 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
428 "vrsave"'s register number.
429
430 2002-09-30 Andrew Cagney <ac131313@redhat.com>
431
432 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
433 use frame_unwind_signed_register to obtain the PC.
434 (mips_frame_chain): Handle a generic dummy frame.
435 (mips_init_extra_frame_info): When a generic dummy frame, don't
436 re-compute the frame base.
437 (mips_pop_frame): Handle generic dummy frames.
438 (mips_gdbarch_init): When generic dummy frames, set
439 use_generic_dummy_frames, push_dummy_frame to
440 generic_push_dummy_frame, pc_in_call_dummy to
441 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
442 generic_save_dummy_frame_tos.
443
444 2002-09-30 Andrew Cagney <ac131313@redhat.com>
445
446 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
447 against TOP when TOP was explictly set.
448 (generic_push_dummy_frame): Set TOP to zero.
449
450 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
451
452 * event-loop.c (start_event_loop): Rename variable 'result' to
453 'gdb_result', to avoid conflicts with upcoming intepreters changes.
454
455 2002-09-30 Keith Seitz <keiths@redhat.com>
456
457 * gdb-events.sh (selected_thread_changed): New event.
458 * gdb-events.c: Regenerated.
459 * gdb-events.h: Regenerated.
460
461 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
462
463 * MAINTAINERS: Add self to Write After Approval list.
464
465 2002-09-30 Fernando Nasser <fnasser@redhat.com>
466
467 * disasm.c: New file.
468 * disasm.h: New file.
469 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
470 (compare_lines): Ditto.
471 (dump_insns): Ditto.
472 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
473 argument.
474 (do_assembly_only): Ditto.
475 (do_disassembly): Renamed to gdb_disassembly and moved to
476 disasm.c. Sdded uiout argument.
477 * Makefile.in: Add new files. Reorder SFILES list. Update
478 dependencies. Include libgdb.a later in the insight executable.
479
480 2002-09-29 Andrew Cagney <ac131313@redhat.com>
481
482 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
483 bfd/elf64-alpha-fbsd.c.
484
485 2002-09-29 Andrew Cagney <ac131313@redhat.com>
486
487 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
488 i386gnu-tdep.c.
489
490 2002-09-29 Andrew Cagney <ac131313@redhat.com>
491
492 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
493 __FUNCTION__.
494 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
495 function name.
496 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
497 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
498 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
499 (S_msg_sig_post_reply): Ditto.
500
501 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
502
503 * sh-tdep.c (sh_use_struct_convention): Use definition according
504 to ABI.
505 (sh_push_arguments): Store in register with correct endianess.
506 (sh_default_store_return_value): Ditto.
507 (sh_gdbarch_init): Set sizeof long double to 8.
508
509 2002-09-27 Mark Kettenis <kettenis@gnu.org>
510
511 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
512 Fix some whitespace problems.
513
514 2002-09-27 David Carlton <carlton@math.stanford.edu>
515
516 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
517 (mcore-tdep.o): Ditto.
518 (ns32k-tdep.o): Ditto.
519 (ns32knbsd-tdep.o): Ditto.
520 (sh3-rom.o): Ditto.
521 (vax-tdep.o): Ditto.
522 * cris-tdep.c: #include "gdb_string.h"
523 * mcore-tdep.c: Ditto.
524 * ns32k-tdep.c: Ditto.
525 * ns32knbsd-tdep.c: Ditto.
526 * sh3-rom.c: Ditto.
527 * vax-tdep.c: Ditto.
528
529 2002-09-27 David Carlton <carlton@math.stanford.edu>
530
531 * config/djgpp/fnchange.lst: Add entries for
532 gdb/testsuite/gdb.c++/m-static files.
533
534 2002-09-27 Jim Wilson <wilson@redhat.com>
535
536 * MAINTAINERS: Add myself to the Write After Approval list.
537
538 2002-09-26 Martin M. Hunt <hunt@redhat.com>
539
540 * mips-tdep.c (find_proc_desc): Initialize startaddr.
541
542
543 2002-09-26 Andrew Cagney <ac131313@redhat.com>
544
545 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
546 frame.
547
548 2002-09-26 Andrew Cagney <ac131313@redhat.com>
549
550 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
551 (rs6000_struct_return_address): Delete variable.
552 (rs6000_store_struct_return): Update.
553 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
554 deprecated_extract_struct_value_address.
555 (rs6000_frame_align): New function.
556 (rs6000_gdbarch_init): Set frame_align.
557
558 2002-09-26 Andrew Cagney <ac131313@redhat.com>
559
560 From Grace Sainsbury <graces@redhat.com>:
561 * Makefile.in (gdbtk-main.o): New target.
562 (gdb.o): New target.
563 (main_h): Define.
564 (main.o): Update dependencies.
565 (gdb$(EXEEXT)): Add gdb.o.
566 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
567 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
568 (SUBDIR_GDBTK_CLEAN): Set.
569 (install-gdbtk): Install the insight binary.
570 (uninstall-gdbtk): New target.
571 (all-gdbtk, clean-gdbtk): New rule.
572 * top.c (use_windows): Default to zero.
573 * main.c: Include "main.h".
574 (main): Delete.
575 (struct captured_main_args): Delete.
576 (gdb_main): New function.
577 * main.h: New file.
578 * gdb.c: New File.
579
580 2002-09-25 Andrew Cagney <cagney@redhat.com>
581
582 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
583 (frame_map_regnum_to_name): New function.
584 (frame_map_name_to_regnum): New function.
585 * frame.h (frame_map_name_to_regnum): Declare.
586 (frame_map_regnum_to_name): Declare.
587 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
588 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
589 * parse.c: Do not include "builtin-regs.h".
590 (target_map_name_to_register): Delete function.
591 (write_dollar_variable): Use frame_map_name_to_regnum.
592 * parser-defs.h (target_map_name_to_register): Delete declaration.
593 * expprint.c: Include "frame.h".
594 (print_subexp): Use frame_map_regnum_to_name.
595 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
596 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
597
598 2002-09-25 Andrew Cagney <ac131313@redhat.com>
599
600 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
601 wasn't saved, and the next innermost frame is a dummy, return the
602 dummy frame's link register.
603
604 2002-09-24 Jim Blandy <jimb@redhat.com>
605
606 Fix from Paul Breed:
607 * main.c (captured_main): Add a `break' after the case for 'b'.
608
609 2002-09-24 Keith Seitz <keiths@redhat.com>
610
611 * varobj.c (c_type_of_child): Use get_target_type instead
612 of TYPE_TARGET_TYPE.
613
614 2002-09-22 Fernando Nasser <fnasser@redhat.com>
615
616 * source.c (get_current_or_default_source_symtab_and_line): Remove
617 function.
618 (set_default_source_symtab_and_line): New function. Attempts to
619 determine a source file to list lines from if one is not currently
620 defined.
621 (get_current_source_symtab_and_line): Initialize sal.pc and
622 sal.end fields.
623 (set_current_source_symtab_and_line): Mark argument as const.
624 * source.h: Update declarations and comments.
625 * linespec.c (decode_line_1): Replace call to removed routine above.
626 * stack.c (print_frame_info_base): Ditto.
627 * cli/cli-cmds.c (edit_command): Ditto.
628 (list_command): Ditto.
629
630 2002-09-22 Fernando Nasser <fnasser@redhat.com>
631
632 * source.c (get_current_or_default_source_symtab_and_line): Initialize
633 sal.pc and sal.end fields.
634 (get_current_or_default_source_symtab_and_line): Ditto.
635 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
636 so we do not cause a new source symtab to be searched for (reverting an
637 unintentional change from the 2002-09-20 patch).
638 * scm-lang.c (scm_unpac): Ditto.
639
640 2002-09-21 Andrew Cagney <cagney@redhat.com>
641
642 * complaints.c (symfile_explanations): Remove new-line from
643 ``isolated_message''.
644 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
645 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
646
647 2002-09-20 Nick Clifton <nickc@redhat.com>
648
649 * NEWS: Announce that V850EA ISA is no longer supported.
650 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
651
652 2002-09-20 David Carlton <carlton@math.stanford.edu>
653
654 * Makefile.in (c-lang.o): Correct dependencies.
655 (utils.o): Gather dependencies.
656 (charset.o): Move.
657 * c-lang.c: #include "gdb_string.h"
658
659 2002-09-20 Fernando Nasser <fnasser@redhat.com>
660
661 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
662 * cli/cli-cmds.c (list_command): New function. Implements the new
663 cli edit command.
664 (_init_cli_cmds): Add new command definition.
665 * gdb.1: Document edit command.
666 * doc/gdb.texinfo: Document edit command.
667
668 2002-09-20 Fernando Nasser <fnasser@redhat.com>
669
670 * source.c: Make global variables current_source_symtab and
671 current_source_line static.
672 (list_command): Moved to cli/cli-cmds.c.
673 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
674 (get_first_line_listed): New accessor function.
675 (get_lines_to_list): New accessor function.
676 (get_current_source_symtab_and_line): New function. Retrieves the
677 position in the source code that we consider current.
678 (get_current_or_default_source_symtab_and_line): New function.
679 Like the above but attempts to determine a default position if one
680 is not currently defined.
681 (set_current_source_symtab_and_line): New function. Sets the source
682 code position considered current and returns the previously set one.
683 (clear_current_source_symtab_and_line): Reset stored information about
684 a current source line.
685 (_initialize_source): Remove registration for the "list" command and
686 its alias.
687 * source.h: Add declarations for the new functions above.
688 * symtab.h: Remove declarations for the global variables mentioned
689 above.
690 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
691 obtain current source line.
692 * linespec.c (decode_line_1): Ditto.
693 * macroscope.c (default_macro_scope): Ditto.
694 * scm-lang.c (scm_unpac): Ditto.
695 * stack.c (print_frame_info_base): Ditto.
696 * symfile.c (clear_symtab_users): Ditto.
697 * symtab.c (decode_line_spec): Ditto.
698 * cli/cli-cmds.c (list_command): Moved here from source.c.
699 (ambiguous_line_spec): Moved here from source.c.
700 (_init_cli_cmds): Add definition for "list" and its alias.
701 * Makefile.in: Update dependencies.
702
703 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
704
705 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
706 with what gcc thinks is correct.
707
708 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
709
710 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
711 multiple register push instruction.
712
713 2002-09-19 Jim Blandy <jimb@redhat.com>
714
715 Add support for distinct host and target character sets.
716 * charset.c, charset.h: New files.
717 * c-exp.y: #include "charset.h".
718 (yylex): Convert character and string literals to the target
719 character set, before returning them as the semantic value of the
720 token.
721 * c-lang.c: #include "charset.h".
722 (c_emit_char): Use charset-specific methods to recognize
723 characters with backslash escape forms, to decide which characters
724 to print literally and which to print using numeric escape
725 sequences, and to convert target characters to host characters
726 before printing.
727 * utils.c: #include "charset.h".
728 (no_control_char_error): New function.
729 (parse_escape): Use charset-specific methods to recognize
730 backslash escapes, parse `control character' notation, and convert
731 characters from the host character set to the target character set.
732 * configure.in: Set the default host character set.
733 Check where to find iconv, and what its argument types might be.
734 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
735 * Makefile.in (SFILES): List charset.c.
736 (COMMON_OBS): List charset.o.
737 (charset.o): New rule.
738 (charset_h): New header dependency variable.
739 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
740 (LIBICONV): New variable, set by configure.
741 (CLIBS): Include $(LIBICONV) here.
742 * aclocal.m4, config.in, configure: Regenerated.
743
744 2002-09-19 Joel Brobecker <brobecker@gnat.com>
745
746 * ada-exp.y: Add missing semicolons to end rules. Fixes a
747 bison 1.35 warning.
748
749 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
750
751 * gdb_mbuild.sh: New file.
752
753 2002-09-19 Andrew Cagney <ac131313@redhat.com>
754
755 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
756
757 2002-09-18 Andrew Cagney <ac131313@redhat.com>
758
759 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
760 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
761 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
762 valops.c, value.h: Revert previous change.
763
764 2002-09-18 Michael Snyder <msnyder@redhat.com>
765
766 Preliminary support for Objective-C:
767 * defs.h (language_objc): New enum value.
768 (puts_filtered_tabular): Declaration only, exported from utils.c.
769 (skip_quoted): Delete, declared in completer.h.
770 * c-exp.y: Include completer.h.
771 * p-exp.y: Ditto.
772 * jv-exp.y: Ditto.
773 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
774 New operator enum values.
775 * language.h (CAST_IS_CONVERSION): Test for language_objc.
776 * language.c (binop_result_type): Handle language_objc case.
777 (integral_type, character_type, string_type, boolean_type,
778 structured_type, binop_type_check): Ditto.
779 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
780 (struct objc_specific): Add to general_symbol_info.
781 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
782 (SYMBOL_DEMANGLED_NAME): Handle objc case.
783 * parser-defs.h (struct objc_class_str): New struct type.
784 (start_msglist, end_msglist, add_msglist): Declaration only,
785 exported from objc-lang.c.
786 * value.h (value_of_local, value_nsstring,
787 call_function_by_hand_expecting_type): Exported from valops.c.
788 * valops.c (find_function_addr): Export.
789 (call_function_by_hand_expecting_type): New function.
790 (value_of_local): New function.
791 * symfile.c (init_filename_language_table): Add ".m" extension
792 for Objective-C.
793 * utils.c (puts_filtered_tabular): New function.
794 (fprintf_symbol_filtered): Add objc demangling support (disabled).
795 (set/show demangle): Extend help-string to refer to ObjC.
796 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
797 * stabsread.c (symbol_reference_defined): Objective-C symbols
798 may contain colons: make allowances when scanning stabs strings
799 for colons.
800 (objc_find_colon): New function.
801 * printcmd.c (address_info): If language == objc then print
802 "self" instead of "this".
803 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
804 OP_NSSTRING, and OP_SELF.
805 (prefixify_subexp): Ditto.
806 * source.c (print_source_lines): Mention objc in comment.
807 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
808 method names.
809
810 2002-09-18 Andrew Cagney <ac131313@redhat.com>
811
812 * complaints.h: Update copyright.
813 (struct complaints): Declare.
814 (struct complaint): Make `message' constant.
815 (internal_complaint): Declare.
816 (complaint): Declare.
817 (complaint_root): Delete declaration.
818 (symfile_complaints): Delete declaration.
819 (struct complaints): Add opaque declaration.
820 (clear_complaints): Add a complaints parameter.
821 * complaints.c: Update copyright.
822 (enum complaint_series): Define.
823 (complaint_root): Delete.
824 (struct complaints): Define.
825 (complaint_sentinel, symfile_complaint_book): New variables.
826 (symfile_explanations, symfile_complaints): New variables.
827 New variables.
828 (get_complaints): New function.
829 (vcomplaint): New function.
830 (complaint): New function.
831 (internal_complaint): New function.
832 (complain): Call vcomplain with symfile_complaint.
833 (clear_complaints): Rewrite.
834 (_initialize_complaints): Use add_setshow_command.
835 * Makefile.in (complaints.o): Update dependencies.
836 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
837 to call to clear_complaints.
838 (new_symfile_objfile, reread_symbols): Ditto.
839 (oldsyms_complaint): Delete.
840 (empty_symtab_complaint, unknown_option_complaint): Delete.
841 (free_named_symtabs): Use complaint instead of complain.
842
843 2002-09-18 Michael Snyder <msnyder@redhat.com>
844
845 Contributed by Apple Computer, Inc. Merged with current sources
846 by Adam Fedor <fedor@doc.com> [cagney].
847
848 * objc-lang.c: First clean-up round: comments, indentation.
849 * objc-lang.h: Ditto.
850 * objc-lang.y: Ditto.
851
852 2002-09-18 Andrew Cagney <ac131313@redhat.com>
853
854 * maint.c (maintenance_internal_error): Print the parameter as the
855 error message.
856 (maintenance_internal_warning): New function.
857 (_initialize_maint_cmds): Add command `maint internal-warning'.
858
859 * defs.h (internal_warning, internal_vwarning): Declare.
860 * utils.c (struct internal_problem): Define.
861 (internal_vproblem): New function.
862 (internal_warning): New function.
863 (internal_vwarning): New function.
864 (internal_warning_problem, internal_error_problem): New variables.
865 (internal_verror): Just call internal_vproblem.
866
867 2002-09-18 Michael Snyder <msnyder@redhat.com>
868
869 * objc-lang.c: New file, support for Objective-C.
870 Preliminary check-in, not yet integrated into gdb.
871 * objc-lang.h: New file.
872 * objc-exp.y: New file.
873
874 2002-09-18 Andrew Cagney <ac131313@redhat.com>
875
876 * infrun.c (signal_stop_update): Convert definition to ISO C.
877 (signal_print_update): Ditto.
878 (signal_pass_update): Ditto.
879 * inflow.c (terminal_save_ours): Ditto.
880
881 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
882 comments.
883
884 * config/djgpp/fnchange.lst: Handle name clashes between
885 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
886 bfd/coff-tic80.c.
887
888 * i386-linux-tdep.h: Fix tipo.
889
890 2002-09-18 Adam Fedor <fedor@gnu.org>
891
892 * MAINTAINERS: Add myself to the Write After Approval list.
893
894 2002-09-18 Jim Blandy <jimb@redhat.com>
895
896 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
897 texthigh and textlow to reader-specific structs caused
898 objfile_relocate to miss them. This is fixable, but the work that
899 the change was supposed to prepare GDB for never got done anyway.
900
901 2002-09-18 David Carlton <carlton@math.stanford.edu>
902
903 * MAINTAINERS: Alphabetize Write After Approval list.
904
905 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
906
907 Fix PR gdb/709
908 * values.c (value_static_field): Call read_var_value.
909
910 2002-09-18 Andrew Cagney <ac131313@redhat.com>
911
912 * valops.c (hand_function_call): Align the initial stack pointer
913 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
914 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
915 return value.
916 * mips-tdep.c (mips_frame_align): New function.
917 (mips_gdbarch_init): Set frame_align.
918 * gdbarch.sh (FRAME_ALIGN): New method.
919 * gdbarch.h, gdbarch.c: Re-generate.
920
921 2002-09-18 Michal Ludvig <mludvig@suse.cz>
922
923 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
924 registers.
925
926 2002-09-17 Andrew Cagney <ac131313@redhat.com>
927
928 * NEWS: Mention that MIPS $fp behavior changed.
929 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
930 reference to FP_REGNUM.
931 (mipsnbsd_cannot_store_register): Ditto.
932 * mips-linux-nat.c: Update copyright.
933 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
934 (mips_linux_cannot_store_register): Ditto.
935 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
936 * config/mips/tm-mips.h: Update copyright.
937 (FP_REGNUM): Delete macro.
938 (MIPS_REGISTER_NAMES): Replace "fp" with "".
939 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
940 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
941 (mips_r3041_reg_names, mips_r3051_reg_names)
942 (mips_r3081_reg_names): Replace "fp" with "".
943 Fix PR gdb/480.
944
945 2002-09-17 Theodore A. Roth <troth@verinet.com>
946
947 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
948 generic_read_register_dummy() (PR gdb/703).
949 (avr_push_return_address): #if 0 out unused vars.
950 (avr_gdbarch_init): Enable use of avr_push_return_address().
951
952 2002-09-17 Michael Snyder <msnyder@redhat.com>
953
954 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
955 RTE will take care of it.
956
957 2002-09-17 Andrew Cagney <ac131313@redhat.com>
958
959 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
960 invalid, return SP_REGNUM.
961
962 2002-09-17 Michael Snyder <msnyder@redhat.com>
963
964 * mips-tdep.c (mips_pop_frame): Read saved values of floating
965 point registers without sign extension.
966
967 2002-09-17 Andrew Cagney <cagney@redhat.com>
968
969 * blockframe.c (deprecated_read_register_dummy): Rename
970 generic_read_register_dummy.
971 * frame.c (frame_unwind_signed_register): New function.
972 (frame_unwind_unsigned_register): New function.
973 * frame.h (frame_unwind_signed_register): Declare.
974 (frame_unwind_unsigned_register): Declare.
975 (deprecated_read_register_dummy): Rename
976 generic_read_register_dummy.
977
978 * h8300-tdep.c (h8300_frame_chain): Update.
979 (h8300_frame_saved_pc): Update.
980 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
981 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
982 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
983 (s390_frame_chain): Update.
984 * v850-tdep.c (v850_find_callers_reg): Update.
985 (v850_frame_saved_pc): Update.
986 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
987 (m32r_find_callers_reg): Update.
988 (m32r_frame_saved_pc): Update.
989 * sh-tdep.c (sh_find_callers_reg): Update.
990 (sh64_get_saved_pr): Update.
991 (sh_init_extra_frame_info): Update.
992 (sh_init_extra_frame_info): Update.
993 (sh64_init_extra_frame_info): Update.
994 (sh64_init_extra_frame_info): Update.
995 * mcore-tdep.c (mcore_find_callers_reg): Update.
996 (mcore_frame_saved_pc): Update.
997 (mcore_init_extra_frame_info): Update.
998 * i386-tdep.c (i386_frame_saved_pc): Update.
999 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1000 (ia64_init_extra_frame_info): Update.
1001 (ia64_init_extra_frame_info): Update.
1002 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1003 * cris-tdep.c (cris_init_extra_frame_info): Update.
1004 * avr-tdep.c (avr_frame_chain): Update.
1005 (avr_init_extra_frame_info): Update.
1006 (avr_frame_saved_pc): Update.
1007 * arm-tdep.c (arm_find_callers_reg): Update.
1008 (arm_init_extra_frame_info): Update.
1009 (arm_frame_saved_pc): Update.
1010
1011 2002-09-17 Tom Tromey <tromey@redhat.com>
1012
1013 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1014 is "'".
1015
1016 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1017
1018 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1019 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1020 NEXT_PROLOGUE_INSN.
1021 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1022 NEXT_PROLOGUE_INSN.
1023
1024 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1025
1026 * osfsolib.c: Remove file, replaced by solib-osf.c.
1027 * Makefile.in: Remove compilation rules for osfsolib.c.
1028
1029 2002-09-16 David Carlton <carlton@math.stanford.edu>
1030
1031 * cp-valprint.c (cp_print_class_method): Correct args to
1032 check_stub_method_group.
1033
1034 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1035
1036 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1037 `set architecture'. Unify naming convention of functions.
1038 (h8300_skip_prologue): Improve prologue analysis.
1039 (h8300_push_arguments): Rewritten to more closely match GCC's
1040 bizarre argument-passing behavior, along with the comment describing
1041 said behavior.
1042 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1043 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1044 sim, remote-e7000.c, remote-hms.c and remote.c
1045
1046 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1047
1048 * i386-tdep.c (gdb_print_insn_i386): Removed.
1049 (i386_print_insn): New function.
1050 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1051 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1052 tm_print_insn_info.
1053
1054 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1055
1056 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1057 zero.
1058
1059 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1060
1061 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1062 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1063 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1064
1065 2002-09-13 Christopher Faylor <cgf@redhat.com>
1066
1067 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1068
1069 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1070
1071 * gdbtypes.c (check_stub_method): Make static.
1072 (check_stub_method_group): New function.
1073 * gdbtypes.h: Update prototypes.
1074 * cp-support.c: New file.
1075 * cp-support.h: New file.
1076
1077 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1078 (update_method_name_from_physname): New function.
1079 (read_member_functions): Correct method names for operators
1080 and v3 constructors/destructors. Separate v2 constructors and
1081 destructors.
1082 * Makefile.in (stabsread.o): Update dependencies.
1083 (SFILES): Add cp-support.c.
1084 (COMMON_OBS): Add cp-support.o.
1085 (cp_support_h, cp-support.o): Add.
1086
1087 * cp-valprint.c (cp_print_class_method): Call
1088 check_stub_method_group instead of check_stub_method. Remove
1089 extraneous QUITs.
1090 * p-valprint.c (pascal_object_print_class_method): Likewise.
1091 * valops.c (search_struct_method): Likewise.
1092 (find_method_list, value_struct_elt_for_reference): Likewise.
1093
1094 2002-09-13 Andrew Cagney <cagney@redhat.com>
1095
1096 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1097 * gdbarch.h, gdbarch.c: Regenerate.
1098
1099 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1100
1101 * frame.c (find_saved_register): Delete function.
1102 * frame.h (find_saved_register): Delete declaration.
1103 Fix PR gdb/631.
1104
1105 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1106
1107 * mips-tdep.c (read_next_frame_reg): Re-hack using
1108 frame_register_unwind.
1109
1110 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1111
1112 * mips-tdep.c (mips_get_saved_register): Re-hack using
1113 frame_register_unwind.
1114
1115 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1116
1117 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1118 vector. Will be useful for Interix.
1119 * gdbarch.h, gdbarch.c: Regenerate.
1120
1121 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1122 name of the malloc function by NAME_OF_MALLOC.
1123
1124 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1125
1126 * value.h (find_function_in_inferior): Add const keyword to
1127 one of the parameters. Allows us to invoke this function with
1128 a const char *.
1129 * valops.c (find_function_in_inferior): Likewise.
1130
1131 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1132
1133 * exec.c (xfer_memory): Fix compilation warning with old versions
1134 of GCC.
1135 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1136
1137 2002-09-12 David Carlton <carlton@math.stanford.edu>
1138
1139 * symtab.h: Run through gdb_indent.h.
1140 Add 2002 to Copyright year list.
1141
1142 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1143
1144 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1145 mach constants.
1146 * MAINTAINERS: Add myself to write after approval list.
1147
1148 2002-09-11 J. Brobecker <brobecker@gnat.com>
1149
1150 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1151
1152 2002-09-11 J. Brobecker <brobecker@gnat.com>
1153
1154 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1155 Interix.
1156
1157 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1158
1159 * procfs.c (do_detach): Clear current signal, not just fault.
1160 Corrects problem with breakpoint trap signal leaking to detached
1161 process on Tru64.
1162
1163 2002-09-10 Michael Snyder <msnyder@redhat.com>
1164
1165 * buildsym.c (finish_block): Protect against null pointer.
1166
1167 2002-09-10 Andrew Cagney <cagney@redhat.com>
1168
1169 * infcmd.c (default_print_registers_info): Send all output to
1170 ``file'' instead of ``gdb_stdout''.
1171
1172 2002-09-10 Michael Snyder <msnyder@redhat.com>
1173
1174 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1175 LONGEST, and use signed register read (addresses are sign-
1176 extended for mips).
1177
1178 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1179
1180 * event-loop.c (gdb_do_one_event): Make public.
1181 * event-loop.h (gdb_do_one_event): Declare.
1182
1183 2002-09-10 Jeff Law <law@redhat.com>
1184
1185 * infttrace.c (child_resume): Simplify and rework to avoid
1186 TT_PROC_CONTINUE.
1187
1188 2002-09-09 Fred Fish <fnf@intrinsity.com>
1189
1190 * printcmd.c (print_scalar_formatted): "len" is the number of
1191 target bytes, NOT the number of target bits.
1192
1193 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1194
1195 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1196 * top.c (init_main): Set rl_terminal_name.
1197
1198 2002-09-08 Aidan Skinner <aidan@velvet.net>
1199
1200 * ada-lang.c (ada_array_bound, ada_type_match,
1201 _initialize_ada_language): Fix K&R definitions.
1202 * ada-tasks.c (get_current_task): Fix K&R definitions.
1203 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1204
1205 2002-09-07 Christopher Faylor <cgf@redhat.com>
1206
1207 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1208 Add XP.
1209
1210 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1211
1212 * i386-tdep.c (i386_register_virtual_type,
1213 i386_register_convertible, i386_register_convert_to_virtual,
1214 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1215 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1216 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1217 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1218 Don't set push_arguments twice.
1219
1220 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1221 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1222 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1223 sigtramp_end to NULL.
1224 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1225 defines.
1226 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1227
1228 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1229 whitespace.
1230
1231 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1232 * gdbarch.h, gdbarch.c: Re-generate.
1233 * blockframe.c (find_pc_sect_partial_function): Convert to use
1234 SIGTRAMP_START_P predicate.
1235
1236 2002-09-05 Michael Snyder <msnyder@redhat.com>
1237
1238 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1239 generic_dummy_frame method and old method. Also distinguish
1240 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1241 (arm_extract_return_value): Use new regcache method.
1242
1243 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1244 adjustment that doesn't conform to the ABI.
1245 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1246 saved regcache, not from current regcache.
1247
1248 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1249
1250 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1251 * README: Update.
1252
1253 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1254
1255 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1256 if arm_apcs_32 is false.
1257
1258 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1259
1260 GDB 5.3 branch created.
1261
1262 2002-09-03 Theodore A. Roth <troth@verinet.com>
1263
1264 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1265 generic_unwind_get_saved_register.
1266
1267 2002-09-03 David Carlton <carlton@math.stanford.edu>
1268
1269 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1270 argument (PR gdb/653). Update call to smash_to_method_type.
1271 (read_structure_scope): Update call to dwarf2_add_member_fn.
1272
1273 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1274
1275 * x86-64-linux-tdep.c: Include gdb_string.h
1276 * x86-64-linux-nat.c: Ditto.
1277
1278 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1279
1280 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1281 when YYDEBUG is set to 1.
1282 * c-exp.y: Likewise.
1283 * f-exp.y: Likewise.
1284 * jv-exp.y: Likewise.
1285 * m2-exp.y: Likewise.
1286 * p-exp.y: Likewise.
1287
1288 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1289
1290 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1291 dependency list.
1292 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1293 solib_svr4_fetch_link_map_offsets to
1294 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1295 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1296 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1297 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1298 solib-svr4.o, and solib-legacy.o.
1299 * config/i386/tm-nbsd.h: Include solib.h.
1300
1301 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1302
1303 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1304 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1305 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1306 comment noting that this needs its own target configuration.
1307 * config/i386/nbsd.mt: New file.
1308 * config/i386/nbsdaout.mt: Remove.
1309 * config/i386/nbsdelf.mt: Ditto.
1310 * config/i386/tm-nbsdaout.h: Ditto.
1311
1312 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1313
1314 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1315 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1316 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1317 tdep->sigtramp_end.
1318 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1319 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1320 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1321
1322 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1323
1324 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1325 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1326 * i386-tdep.h (i386bsd_init_abi): New prototype.
1327 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1328 function declaration.
1329 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1330 for NetBSD-a.out or NetBSD-ELF.
1331 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1332 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1333 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1334 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1335 and nbsd-tdep.h.
1336 (i386nbsd_pc_in_sigtramp): New function.
1337 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1338 i386nbsd_pc_in_sigtramp.
1339 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1340 and i386nbsdelf_init_abi OS ABI handlers.
1341 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1342 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1343
1344 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1345
1346 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1347 registers if the target really has them.
1348
1349 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1350
1351 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1352 than nbsd-tdep.h.
1353
1354 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1355
1356 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1357 list.
1358 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1359 (alphanbsd_skip_sigtramp_frame): New functions.
1360 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1361 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1362 to alphanbsd_sigcontext_addr.
1363
1364 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1365
1366 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1367 list.
1368 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1369 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1370 nbsd_pc_in_sigtramp.
1371 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1372 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1373 * nbsd-tdep.c: Include gdb_string.h.
1374 (nbsd_pc_in_sigtramp): New function.
1375 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1376 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1377 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1378 ppcnbsd_pc_in_sigtramp.
1379 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1380 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1381 shnbsd_pc_in_sigtramp.
1382 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1383 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1384 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1385
1386 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1387
1388 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1389 watchpoints to NULL.
1390 (insert_breakpoints): set val field of watchpoints if NULL.
1391
1392
1393 2002-08-29 Jim Blandy <jimb@redhat.com>
1394
1395 * symtab.c (lookup_symbol_aux): In the cases where we find a
1396 minimal symbol of an appropriate name and use its address to
1397 select a symtab to read and search, use `name' (as passed to us)
1398 as the demangled name when searching the symtab's global and
1399 static blocks, not the minsym's name.
1400
1401 2002-08-29 Keith Seitz <keiths@redhat.com>
1402
1403 * stack.c (print_frame_info_base): Always set current_source_symtab
1404 and current_source_line.
1405
1406 2002-08-29 Donn Terry <donnte@microsoft.com>
1407
1408 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1409
1410 2002-08-28 Keith Seitz <keiths@redhat.com>
1411
1412 * stack.c (select_frame): Add FIXME concerning selected-frame
1413 events.
1414 (select_frame_command): Send selected-frame-level-changed
1415 event notification, but only if the level actually changed.
1416 (up_silently_base): Add selected-frame-level-changed event
1417 notification.
1418 (down_silently_base): Likewise.
1419
1420 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1421
1422 * Makefile.in: Update dependencies for all gdb/*.c files.
1423
1424 2002-08-27 Tom Tromey <tromey@redhat.com>
1425
1426 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1427 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1428 Update dependencies.
1429 * i387-tdep.c: Include gdb_string.h.
1430 * osabi.c: Likewise.
1431 * i386-linux-nat.c: Likewise.
1432 * lin-lwp.c: Likewise.
1433 * ax-gdb.c: Likewise.
1434 * signals/signals.c: Likewise.
1435 * jv-valprint.c: Likewise.
1436 * p-lang.c: Likewise.
1437 * c-valprint.c: Likewise.
1438 * cp-abi.c: Likewise.
1439
1440 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1441
1442 * cli/cli-script.h (copy_command_lines): Export.
1443 * breakpoint.c: Include cli/cli-script.h.
1444 * Makefile.in (breakpoint.o): Update dependencies.
1445
1446 2002-08-26 Michael Snyder <msnyder@redhat.com>
1447
1448 * breakpoint.c (insert_breakpoints): Protect all references
1449 to 'process_warning'. Shorten long lines.
1450
1451 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1452
1453 * cli/cli-script.c (copy_command_lines): New function.
1454 * defs.h (copy_command_lines): Export.
1455 * testsuite/gdb.base/commands.exp: New tests for commands
1456 attached to a temporary breakpoint, and for commands that
1457 delete the breakpoint they are attached to.
1458
1459 2002-08-26 Michael Snyder <msnyder@redhat.com>
1460
1461 * breakpoint.c (bpstat_stop_status): Instead of copying the
1462 pointer to the breakpoint commands struct, make a new copy
1463 of the struct and point to that.
1464 (bpstat_clear): Free the commands struct.
1465 (bpstat_clear_actions): Free the commands struct.
1466 (bpstat_do_actions): Free the command actions. Also execute
1467 the local cleanups, instead of deleting them.
1468 (delete_breakpoint): Leave the commands field of the bpstat
1469 chain alone -- it will be freed later.
1470
1471 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1472
1473 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1474 deleted in 2002-08-20 commit. This function is still used by
1475 ppc-linux-nat.c.
1476
1477 2002-08-26 Keith Seitz <keiths@redhat.com>
1478
1479 * gdb-events.sh: Add selected-frame-level-changed event.
1480 * gdb-events.c: Regenerated.
1481 * gdb-events.h: Regenerated.
1482
1483 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1484
1485 Fix PR gdb/393:
1486 * inflow.c (terminal_save_ours): New function to save terminal
1487 settings.
1488 * inferior.h (terminal_save_ours): Declare.
1489 * target.c (debug_to_terminal_save_ours): New function.
1490 (cleanup_target): Defaults to_terminal_save_ours.
1491 (update_current_target): Inherit to_terminal_save_ours.
1492 (setup_target_debug): Set to_terminal_save_ours.
1493 * target.h (target_terminal_save_ours): New to save terminal settings.
1494 (target_ops): New member to_terminal_save_ours.
1495 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1496 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1497 * inftarg.c (init_child_ops): Likewise.
1498 * m3-nat.c (init_m3_ops): Likewise.
1499 * procfs.c (init_procfs_ops): Likewise.
1500 * wince.c (init_child_ops): Likewise.
1501 * win32-nat.c (init_child_ops): Likewise.
1502 * sol-thread.c (init_sol_thread_ops): Likewise.
1503
1504 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1505
1506 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1507 use regcache_* functions.
1508 (i386_gdbarch_init): Set store_return_value instead of
1509 deprecated_store_return_value.
1510
1511 * regcache.c (regcache_raw_write_signed,
1512 regcache_raw_write_unsigned): New functions.
1513 * regcache.h (regcache_raw_write_signed,
1514 regcache_raw_write_unsigned): New prototypes.
1515
1516 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1517
1518 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1519 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1520 source file dependencies. Cleanup corresponding generator rules.
1521
1522 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1523
1524 * regcache.h (register_offset_hack): Declare.
1525 (regcache_cooked_read_using_offset_hack): Declare.
1526 (regcache_cooked_write_using_offset_hack): Declare.
1527
1528 * regcache.c (register_offset_hack): New function.
1529 (regcache_cooked_read_using_offset_hack): New function.
1530 (regcache_cooked_write_using_offset_hack): New function.
1531 (regcache_dump): Check that the registers, according to their
1532 offset, are packed hard against each other.
1533 (cooked_xfer_using_offset_hack): New function.
1534
1535 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1536
1537 * regcache.c (struct regcache_descr): Add field register_type.
1538 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1539 in as a parameter
1540 (init_regcache_descr): Initialize register_type. Pass the descr
1541 to init_legacy_regcache_descr. Use register_type instead of
1542 REGISTER_VIRTUAL_TYPE.
1543 (register_type): New function.
1544 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1545 * regcache.h (register_type): Declare.
1546
1547 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1548
1549 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1550 instead of deprecated_store_return_value. Fix fallout from
1551 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1552
1553 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1554
1555 * regcache.c (max_register_size): New function.
1556 (init_legacy_regcache_descr): Ensure that max_register_size is
1557 large enough for REGISTER_VIRTUAL_SIZE.
1558 * regcache.h (max_register_size): Declare.
1559
1560 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1561
1562 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1563 store_return_value.
1564 (e500_extract_return_value): Change type of valbuf pointer to
1565 void.
1566
1567 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1568
1569 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1570 workaround.
1571
1572 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1573 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1574 long long) to prevent compiler warning on 64-bit systems.
1575
1576 2002-08-23 Andrew Cagney <cagney@redhat.com>
1577
1578 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1579 (DEPRECATED_STORE_RETURN_VALUE): New method.
1580 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1581 * gdbarch.h, gdbarch.c: Re-generate.
1582
1583 * values.c (set_return_value): Pass current_regcache to
1584 STORE_RETURN_VALUE.
1585 * arch-utils.h (legacy_store_return_value): Declare.
1586 * arch-utils.c (legacy_store_return_value): New function.
1587 (legacy_extract_return_value): Update parameters.
1588
1589 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1590 STORE_RETURN_VALUE.
1591 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1592 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1593 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1594 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1595 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1596 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1597 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1598 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1599 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1600 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1601
1602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1603 * i386-tdep.c (i386_extract_return_value): Update.
1604 * arch-utils.c (legacy_extract_return_value): Update.
1605 * frv-tdep.c (frv_gdbarch_init): Update.
1606 * cris-tdep.c (cris_gdbarch_init): Update.
1607 * d10v-tdep.c (d10v_gdbarch_init): Update.
1608 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1609 * m68k-tdep.c (m68k_gdbarch_init): Update.
1610 * mcore-tdep.c (mcore_gdbarch_init): Update.
1611 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1612 * s390-tdep.c (s390_gdbarch_init): Update.
1613 * sparc-tdep.c (sparc_gdbarch_init): Update.
1614 * sh-tdep.c (sh_gdbarch_init): Update.
1615 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1616 * v850-tdep.c (v850_gdbarch_init): Update.
1617 * avr-tdep.c (avr_gdbarch_init): Update.
1618 * ia64-tdep.c (ia64_gdbarch_init): Update.
1619 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1620 * vax-tdep.c (vax_gdbarch_init): Update.
1621 * alpha-tdep.c (alpha_gdbarch_init): Update.
1622 * arm-tdep.c (arm_gdbarch_init): Update.
1623 * mips-tdep.c (mips_gdbarch_init): Update.
1624 * i386-tdep.c (i386_gdbarch_init): Update.
1625
1626 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1627
1628 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1629 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1630
1631 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1632
1633 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1634 problems.
1635
1636 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1637
1638 * infrun.c (handle_inferior_event): Move a comment outside of a
1639 function call, in order to avoid indent reformatting this part
1640 of the code in an unreadable way.
1641
1642 2002-08-23 Grace Sainsbury <graces@redhat.com>
1643
1644 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1645 when breakpoints fail. Move general breakpoint error messages to
1646 insert_breakpoints.
1647 * breakpoint.c (insert_breakpoints): Change warnings when
1648 breakpoints are nto inserted to specify the type. Remove call to
1649 memory_error when hardware breakpoints can't be inserted. Remove
1650 multiple calls to warning so all messages are sent to the user at
1651 once.
1652 (delete_breakpoints): Make insert error messsages more explicit.
1653
1654 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1655
1656 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1657 gdbserver/ChangeLog.
1658
1659 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1660
1661 * i386-tdep.c: Include "objfiles.h".
1662 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1663 skip_trampoline_code.
1664 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1665 (CPLUS_MARKER): Define to '.'.
1666
1667 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1668 member.
1669 (linux_corefile_thread_callback): Increase args->num_notes.
1670 (linux_make_note_section): Initialize thread_args.num_notes, and
1671 use it to determine whether notes for any threads were created.
1672
1673 2002-08-23 Donn Terry <donnte@microsoft.com>
1674
1675 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1676 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1677 and PCUNKILL.
1678 (write_with_trace): Conditionalize out the switch branch handling
1679 PCSHOLD if the corresponding macro is not defined. Likewise for
1680 PRSABORT and PRSTOP.
1681 This change will be needed by the Interix port.
1682
1683 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1684
1685 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1686 write_register wherever possible instead of manipulating the
1687 register bytes directly.
1688 Assign VALUE_CONTENTS to a variable and use that.
1689 The GPR numbers are now dependent on the architecture.
1690
1691 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1692
1693 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1694 ev_offset fields.
1695 (skip_prologue): Add support for BookE/e500 instructions.
1696 (e500_extract_return_value): New function.
1697 (frame_get_saved_regs): Add support for saving ev registers and
1698 pseudo gpr's.
1699 (e500_store_return_value): New function.
1700 (rs6000_gdbarch_init): Move up default intializations of
1701 deprecated_extract_return_value and store_return_value. Overwrite
1702 init of store_return_value with e500 specific version.
1703 Set extract_return_value for e500.
1704
1705 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1706
1707 * blockframe.c (generic_call_dummy_register_unwind): Use
1708 regcache_cooked_read to catch cases in which the variable is
1709 stored in a pseudo register.
1710
1711 2002-08-22 Andrew Cagney <cagney@redhat.com>
1712
1713 * NEWS: Mention that the i960 has been made obsolete.
1714 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1715 i960-tdep.c
1716 (remote-nrom.o): Obsolete target.
1717 (remote-nindy.o, i960-tdep.o): Ditto.
1718 * remote-nrom.c: Make file obsolete.
1719 * remote-nindy.c, remote-vx960.c: Ditto.
1720 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1721 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1722 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1723 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1724 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1725 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1726 i960-*-vxworks* obsolete.
1727 * MAINTAINERS: Note that the i960 is obsolete.
1728
1729 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1730
1731 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1732 detach to allow reinitialization.
1733
1734 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1735
1736 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1737 attempt).
1738
1739 2002-08-22 Jim Blandy <jimb@redhat.com>
1740
1741 * coffread.c (coff_symfile_read): Don't try to read the line
1742 number table from disk if the image file doesn't have a symbol
1743 table; we'll never actually look at the info anyway, and Windows
1744 ships DLL's with bogus file offsets for the line number data.
1745
1746 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1747
1748 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1749 an e500 executable.
1750
1751 2002-08-21 Michael Snyder <msnyder@redhat.com>
1752
1753 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1754 (MSYMBOL_SIZE): Replace macro with function.
1755 (DEFAULT_MIPS_TYPE): Delete unused macro.
1756 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1757 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1758
1759 2002-08-21 Jim Blandy <jimb@redhat.com>
1760
1761 * valops.c (value_cast): Simplify and correct logic for doing a
1762 static cast from a pointer to a base class to a pointer to a
1763 derived class.
1764
1765 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1766
1767 * infcmd.c (default_print_registers_info): Replace
1768 do_registers_info.
1769 (registers_info): Use gdbarch_print_registers_info instead of
1770 DO_REGISTERS_INFO.
1771 * inferior.h (default_print_registers_info): Replace
1772 do_registers_info.
1773 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1774 (DO_REGISTERS_INFO): Change to a predicate function.
1775 * gdbarch.h, gdbarch.c: Regenerate.
1776
1777 2002-08-21 Keith Seitz <keiths@redhat.com>
1778
1779 * gdb-events.sh: Add target-changed event.
1780 * gdb-events.c: Regenerated.
1781 * gdb-events.c: Regenerated.
1782 * valops.c (value_assign): Add target-changed event notification
1783 to inlval_register, lval_memory, and lval_reg_frame_relative.
1784
1785 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1786
1787 * NEWS: Add an entry regarding the improvement of the next/step
1788 operation on Alpha Tru64 multi-processor machines.
1789
1790 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1791
1792 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1793 directores.
1794 * Makefile.in: Update all _h macro definitions.
1795 * Makefile.in (install-gdbtk): Move to install section.
1796 (rdi-share/libangsd.a): Move to end of file.
1797
1798 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1799
1800 * frame.c (frame_register_unwind): When a register, set addrp to
1801 the register's byte.
1802
1803 2002-08-20 Michael Snyder <msnyder@redhat.com>
1804
1805 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1806 used locally, so move them from the target machine header to here.
1807 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1808 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1809 Make static.
1810 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1811
1812 2002-08-20 Andrew Cagney <cagney@redhat.com>
1813
1814 * NEWS: Mention that the Apollo line was made obsolete.
1815 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1816 m68*-hp-hpux* obsolete.
1817 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1818 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1819 * buildsym.c (make_blockvector): Make static.
1820 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1821 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1822 (ALLDEPFILES): Remove dstread.c.
1823 (dstread.o): Obsolete make rule.
1824 * dstread.c: Makefile obsolete.
1825 * dst.h: Ditto.
1826 * config/m68k/hp300hpux.mt: Ditto.
1827 * config/m68k/hp300hpux.mh: Ditto.
1828 * config/m68k/hp300bsd.mt: Ditto.
1829 * config/m68k/hp300bsd.mh: Ditto.
1830 * config/m68k/apollo68b.mt: Ditto.
1831 * config/m68k/apollo68v.mh: Ditto.
1832 * config/m68k/apollo68b.mh: Ditto.
1833
1834 2002-08-20 Michael Snyder <msnyder@redhat.com>
1835
1836 * mips-tdep.c (mips_in_return_stub): Make static.
1837 (mips_gdbarch_init): Set in_solib_return_trampoline.
1838 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1839
1840 2002-08-20 Michael Snyder <msnyder@redhat.com>
1841
1842 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1843 * gdbarch.c, gdbarch.h: Regenerate.
1844 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1845 Add.
1846 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1847
1848 2002-08-20 Michael Snyder <msnyder@redhat.com>
1849
1850 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1851 (mips_gdbarch_init): Set skip_trampoline_code,
1852 in_solib_call_trampoline.
1853 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1854 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1855
1856 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1857
1858 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1859
1860 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1861 vector type for ev registers.
1862 (e500_pseudo_register_read): New function.
1863 (e500_pseudo_register_write): New function.
1864 (e500_dwarf2_reg_to_regnum): New function.
1865 (PPC_UISA_NOFP_SPRS): New macro.
1866 (PPC_EV_REGS): New macro.
1867 (PPC_GPRS_PSEUDO_REGS): New macro.
1868 (registers_e500): New register set for e500.
1869 (variants): Add e500 variant.
1870 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1871 before setting architectural dependent variations. Initialize ev
1872 registers numbers. Add case for e500 architecture. Set the
1873 number of pseudo registers.
1874
1875 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1876
1877 * rs6000-tdep.c: Clean up comments.
1878
1879 2002-08-20 Andrew Cagney <cagney@redhat.com>
1880
1881 * h8300-tdep.c: Re-indent file.
1882
1883 2002-08-20 Jim Blandy <jimb@redhat.com>
1884
1885 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1886 default for this.
1887
1888 2002-08-20 Keith Seitz <keiths@redhat.com>
1889
1890 * breakpoints.c (watch_command_1): Use internal breakpoint
1891 when setting a watchpoint_scope breakpoint.
1892
1893 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1894
1895 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1896 (build_builtin_type_vec64i): Ditto.
1897 (build_builtin_type_vec128): Ditto.
1898 (build_builtin_type_vec128i): Ditto.
1899
1900 2002-08-19 Michael Snyder <msnyder@redhat.com>
1901
1902 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1903 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1904 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1905 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1906 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1907 CALL_DUMMY_ADDRESS): Delete.
1908 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1909 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1910 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1911 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1912 push_return_address.
1913 (mips_register_raw_size, mips_eabi_use_struct_convention,
1914 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1915 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1916 mips_init_extra_frame_info, mips_eabi_push_arguments,
1917 mips_n32n64_push_arguments, mips_push_return_address,
1918 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1919 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1920
1921 2002-08-19 Michael Snyder <msnyder@redhat.com>
1922
1923 * mips-tdep.c (mips_frame_num_args): New function.
1924 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1925 frame_saved_pc, frame_args_address, frame_locals_address,
1926 frame_num_args, and frame_args_skip.
1927 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1928 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1929 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1930 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1931
1932 2002-08-20 Michael Snyder <msnyder@redhat.com>
1933
1934 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1935 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1936 * mips-tdep.c (mips_store_struct_return): New function.
1937 (mips_extract_struct_value_address): New function.
1938 (mips_gdbarch_init): Set store_struct_return and
1939 extract_struct_value_address.
1940
1941 2002-08-20 David Carlton <carlton@math.stanford.edu>
1942
1943 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1944 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1945 (read_file_scope): Check that line_header is nonzero before
1946 decoding macro information.
1947
1948 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1949
1950 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1951 flag the general-purpose registers as floating-point on targets
1952 that don't support the floating-point registers.
1953
1954 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1955
1956 * rs6000-tdep.c (altivec_register_p): Delete.
1957 (rs6000_do_altivec_registers): Delete.
1958 (rs6000_altivec_registers_info): Delete.
1959 (rs6000_do_registers_info): Delete.
1960 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1961 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1962
1963 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1964
1965 * infcmd.c (do_registers_info): Print vector registers in hex
1966 format only.
1967 (print_vector_info): Check that printing registers
1968 makes sense.
1969 (print_float_info): Ditto.
1970
1971 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1972
1973 * mips-tdep.c (mips_gdbarch_init): Update.
1974 (mips_o32_extract_return_value): Rewrite.
1975 (mips_o32_store_return_value): Rewrite.
1976 (mips_o32_xfer_return_value): New function.
1977 (mips_xfer_register): Tweak debug print message. Allow for
1978 buf_offset when dumping the value transfered.
1979
1980 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1981
1982 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1983 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1984 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1985 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1986 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1987
1988 2002-08-14 Michael Snyder <msnyder@redhat.com>
1989
1990 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1991
1992 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1993
1994 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1995 register.
1996 (P): New macro to define a register as a pseudo register.
1997 (R, R4, R8, R16, FR32, R64, R0): Updated.
1998 (struct variant): Add new fields for number of pseudo registers
1999 and number of total registers.
2000 (tot_num_registers): New macro replacing....
2001 (num_registers): ...deleted macro.
2002 (num_registers): New function.
2003 (num_pseudo_registers): New function.
2004 (variants): Update all variants to intialize new fields correctly.
2005 Postpone initialization of number of pseudo regs and real regs.
2006 (init_variants): New function.
2007 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2008 registers offsets.
2009
2010 2002-08-19 David Carlton <carlton@math.stanford.edu>
2011
2012 * valops.c (search_struct_field): Change error message to treat
2013 return value of 0 from value_static_field as meaning that field is
2014 optimized out.
2015 (value_struct_elt_for_reference): Ditto.
2016 * values.c (value_static_field): Treat an unresolved location the
2017 same as a nonexistent symbol. Fix PR gdb/635.
2018 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2019 enclosed. Fix PR gdb/574.
2020 * MAINTAINERS: Add self to Write After Approval list.
2021
2022 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2023
2024 * mips-tdep.c (mips_xfer_register): New function.
2025 (mips_n32n64_extract_return_value): Rewrite.
2026 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2027 instead of deprecated_extract_return_value.
2028
2029 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2030
2031 * rs6000-tdep.c (TDEP): Delete macro.
2032 (branch_dest): Replace use of TDEP macro with its body.
2033 (rs6000_pop_frame): Ditto.
2034 (rs6000_push_arguments): Ditto.
2035 (rs6000_skip_trampoline_code): Ditto.
2036 (rs6000_frame_saved_pc): Ditto.
2037 (rs6000_frame_chain): Ditto.
2038 (rs6000_register_name): Ditto.
2039 (rs6000_register_byte): Ditto.
2040 (rs6000_register_raw_size): Ditto.
2041 (rs6000_register_virtual_type): Ditto.
2042 (rs6000_register_convertible): Ditto.
2043 (rs6000_convert_from_func_ptr_addr): Ditto.
2044
2045 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2046
2047 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2048 conditionally.
2049 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2050 MIPS_LINUX_JB_ELEMENT_SIZE.
2051 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2052 for MAX_REGISTER_RAW_SIZE arrays.
2053 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2054 MIPS_LINUX_JB_ELEMENT_SIZE.
2055
2056 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2057
2058 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2059
2060 2002-08-19 Aidan Skinner <aidan@velvet.net>
2061
2062 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2063 ada-valprint.c ada-tasks.c.
2064 (YYFILES): Add ada-exp.y.
2065 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2066 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2067 (ada-exp.tab.o): New target.
2068
2069 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2070
2071 * regcache.c (regcache_xfer_part): New function.
2072 (regcache_raw_read_part): New function.
2073 (regcache_raw_write_part): New function.
2074 (regcache_cooked_read_part): New function.
2075 (regcache_cooked_write_part): New function.
2076 * regcache.h (regcache_raw_read_part): Declare.
2077 (regcache_raw_write_part): Declare.
2078 (regcache_cooked_read_part): Declare.
2079 (regcache_cooked_write_part): Declare.
2080
2081 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2082
2083 * remote.c (remote_open_1): Add async_p.
2084 (remote_async_open_1): Delete.
2085 (open_remote_target): Delete.
2086 (remote_open, extended_remote_open): Update calls to remote_open_1.
2087 (remote_async_open, extended_remote_async_open): Call
2088 remote_open_1 instead of remote_async_open_1.
2089
2090 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2091
2092 * blockframe.c: Fix a few coding standard violations.
2093
2094 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2095
2096 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2097 here from ...
2098 * config/i386/tm-i386sco5.h: ... here. File removed.
2099 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2100
2101 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2102 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2103 (TM_FILE): Set to tm-i386.h.
2104 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2105 * config/i386/tm-i386v.h: Remove file.
2106 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2107 instead of "i386/tm-i386v.h".
2108 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2109 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2110 "i386/tm-i386v.h".
2111 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2112 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2113 "i386/tm-i386.h".
2114
2115 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2116
2117 * config/i386/nm-i386v.h: Add protection against
2118 multiple-inclusion.
2119 (i386_register_u_addr): Remove prototype.
2120 (register_u_addr): New prototype.
2121 (REGISTER_U_ADDR): Redefine accordingly.
2122 * i386v-nat.c: Improve several comments.
2123 (i386_register_u_addr): Change signature and rename to
2124 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2125 ubase variable.
2126
2127 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2128
2129 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2130 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2131 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2132 deprecated_extract_return_value.
2133 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2134 rename mips_o32o64_push_arguments.
2135 (mips_gdbarch_init): Update.
2136 (mips_extract_return_value): Delete.
2137 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2138 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2139 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2140 (mips_n32n64_extract_return_value): Clone
2141 mips_extract_return_value.
2142 (mips_store_return_value): Delete.
2143 (mips_o32_store_return_value): Clone mips_store_return_value.
2144 (mips_o64_store_return_value): Clone mips_store_return_value.
2145 (mips_eabi_store_return_value): Clone mips_store_return_value.
2146 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2147
2148 2002-08-18 Aidan Skinner <aidan@velvet.net>
2149
2150 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2151 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2152
2153 2002-08-18 Aidan Skinner <aidan@velvet.net>
2154
2155 * ada-lang.c: Run through gdb_indent.sh.
2156 * ada-lang.h: Run through gdb_indent.sh.
2157 * ada-tasks.c: Run through gdb_indent.sh.
2158 * ada-typeprint.c: Run through gdb_indent.sh.
2159 * ada-valprint.c: Run through gdb_indent.sh.
2160
2161 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2162
2163 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2164 ABI.
2165
2166 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2167
2168 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2169
2170 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2171 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2172
2173 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2174 write_register_gen instead of write_register_bytes.
2175
2176 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2177 i[3456]-*-osf1mk* configurations have been made obsolete.
2178 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2179 i[3456]86-*-osf1mk* hosts obsolete.
2180 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2181 targets obsolete.
2182 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2183 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2184 config/i386/i386m3.mt, config/i386/nm-m3.h,
2185 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2186 config/i386/i386mk.mh, config/i386/i386mk.mt,
2187 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2188 obsolete.
2189 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2190 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2191 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2192
2193 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2194
2195 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2196 (hppa_value_returned_from_stack): Declare.
2197 (hppa_extract_return_value): Declare.
2198 * config/pa/hppa.mt: New file.
2199 * configure.tgt: Recognize hppa*-*-*.
2200 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2201
2202 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2203
2204 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2205 comment.
2206
2207 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2208
2209 * top.c (gdb_rl_operate_and_get_next): Make sure
2210 operate-and-get-next functions correctly even when the history
2211 list is completely filled.
2212
2213 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2214
2215 * MAINTAINERS (Target Instruction Set Architectures): Rename
2216 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2217 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2218 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2219 already listed under Host/Native.
2220
2221 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2222 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2223 mips*-*-*.
2224
2225 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2226
2227 * config/ia64/ia64.mt: New file.
2228 * config/alpha/alpha.mt: New file.
2229 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2230 ia64-linux-gnu. Mention that ia64-elf is broken.
2231 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2232
2233 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2234
2235 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2236 generic_func_frame_valid instead of func_frame_valid.
2237
2238 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2239
2240 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2241 procfs appears to be broken when debugging on multi-processor
2242 machines. So enable software single stepping in order to avoid
2243 using the procfs interface to do next/step operations, using
2244 internal breakpoints instead.
2245
2246 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2247 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2248 make this pc address equal to the value it would have if the
2249 system stepping capability was used. Also set a new flag used
2250 to ensure that we don't readjust the PC one more time later.
2251
2252 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2253 address by DECR_PC_AFTER_BREAK when software single step is
2254 in use for this architecture, as this has already been taken
2255 care of in handle_inferior_event().
2256
2257 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2258
2259 * infrun.c (handle_inferior_event): Minor reformatting, to make
2260 a rather long condition expression easier to read.
2261
2262 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2263
2264 * Makefile.in (gdbtk.o): Move to end of file.
2265 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2266 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2267 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2268 (gdbtk-wrapper.o, gdbres.o): Ditto.
2269
2270 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2271
2272 * Makefile.in (copying.o): Separate out compile rule.
2273 (hpux-thread.o, procfs.o, signals.o): Ditto.
2274 (v850ice.o, z8k-tdep.o): Ditto.
2275 (tui-file.o): Move to TUI section.
2276 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2277 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2278
2279 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2280
2281 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2282 skip_trampoline_code, for better namespace-proofing.
2283
2284 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2285
2286 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2287
2288 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2289
2290 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2291
2292 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2293 signal, check whether we hit a breakpoint before checking for a
2294 single step breakpoint. Otherwise, GDB fails to notice that a
2295 breakpoint has been hit when stepping onto a breakpoint.
2296
2297 2002-08-16 Keith Seitz <keiths@redhat.com>
2298
2299 * gdb-events.sh (clear_gdb_event_hooks): New function.
2300 * gdb-events.c: Regenerate.
2301 * gdb-events.h: Regenerate.
2302
2303 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2304
2305 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2306 not_a_sw_breakpoint.
2307 * breakpoint.h (bpstat_stop_status): Add parameter names.
2308
2309 2002-08-16 Grace Sainsbury <graces@redhat.com>
2310
2311 * remote.c (remote_insert_hw_breakpoint)
2312 (remote_remove_hw_breakpoint): Fix calculation of length field
2313 for Z-packet.
2314
2315 2002-08-15 Michael Snyder <msnyder@redhat.com>
2316
2317 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2318 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2319 (supply_fpregset): Ditto.
2320
2321 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2322 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2323 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2324 (TARGET_READ_SP): Delete.
2325 (DO_REGISTERS_INFO): Delete.
2326 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2327 Delete.
2328 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2329 from macros to functions.
2330
2331 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2332 (mips_register_convertible, mips_register_convert_to_virtual,
2333 mips_register_convert_to_raw): Make static.
2334 (mips_read_sp): New function.
2335 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2336 (mips_do_registers_info): Make static.
2337 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2338 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2339 (mips_register_convert_from_type, mips_register_convert_to_type):
2340 New functions.
2341 (mips_gdbarch_init): Set up function_start_offset,
2342 register_virtual_size, pc_in_sigtramp.
2343
2344 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2345
2346 * infcmd.c (vector_info): New function.
2347 (_initialize_infcmd): Add command "info vector".
2348 (print_vector_info): New function.
2349
2350 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2351 * gdbarch.h, gdbarch.c: Regenerate.
2352
2353 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2354
2355 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2356 ``print_all''. Only print vector registers when ``print_all''.
2357
2358 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2359
2360 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2361 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2362
2363 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2364 Add `args' parameter.
2365 * gdbarch.h, gdbarch.c: Regenerate.
2366
2367 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2368
2369 * infcmd.c (float_info): Call print_float_info.
2370 (print_float_info): New function. By default, print the
2371 floating-point registers.
2372
2373 * arch-utils.h (default_print_float_info): Delete declaration.
2374 * arch-utils.c (default_print_float_info): Delete function.
2375
2376 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2377
2378 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2379 out define.
2380
2381 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2382 FRAME.
2383
2384 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2385 * configure.host: Make i[3456]86-*-aix host obsolete.
2386 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2387 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2388 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2389 config/i386/xm-i386aix.h: Make files obsolete.
2390 * i386aix-nat.c: Make file obsolete.
2391 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2392 (i386aix-nat.o): Make target obsolete.
2393
2394 * config/i386/nm-gnu.h: Removed.
2395 * config/i386/nm-i386gnu.h: New file.
2396 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2397 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2398 Moved here from ...
2399 * config/i386/tm-i386gnu.h: ... here. Removed.
2400 * config/i386/xm-i386gnu.h: Removed.
2401 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2402 (NAT_FILE): Set to nm-i386gnu.h.
2403 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2404 * i386-tdep.c: New file.
2405 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2406 (i386gnu-tdep.o): Specify dependencies.
2407
2408 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2409
2410 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2411 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2412 Adjust a few comments to reflect reality a bit closer.
2413 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2414 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2415 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2416 target_insert_watchpoint, target_remove_watchpoint):
2417 Move defines to ...
2418 * config/i386/nm-i386sco5.h: ... here.
2419 (kernel_u_size): Add prototype. Improve a few comments and add
2420 protection against multiple inclusion.
2421
2422 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2423 out define.
2424
2425 * uw-thread.c (SP_ARG0): Define if not already defined.
2426 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2427
2428 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2429
2430 * config/i386/tm-i386.h: Don't include "regcache.h".
2431
2432 * i387-tdep.h (i387_print_float_info): New prototype.
2433 * i387-tdep.c (print_i387_value, print_i387_ext,
2434 print_i387_status_word, print_i387_control_word): Add `struct
2435 ui_file *' argument and use it for output.
2436 (i387_print_float_info): Renamed from i387_float_info. Add
2437 `struct gdbarch *' and `struct ui_file *' arguments and use the
2438 latter for output.
2439 * i386-tdep.c: Include "i387-tdep.h".
2440 (i386_gdbarch_init): Set print_float_info.
2441 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2442 (FLOAT_INFO): Remove define.
2443
2444 2002-08-13 Michael Snyder <msnyder@redhat.com>
2445
2446 * mips-tdep.c (mips_push_arguments): Rename to
2447 mips_eabi_push_arguments, and tune for EABI.
2448 (MIPS_REGS_HAVE_HOME_P): Delete.
2449 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2450 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2451 Delete references to mips_regs_have_home_p.
2452
2453 2002-08-14 Keith Seitz <keiths@redhat.com>
2454
2455 * Makefile.in (install-gdbtk): Create insight plugin directory.
2456 Install plugins.tcl file.
2457
2458 2002-08-14 Keith Seitz <keiths@redhat.com>
2459
2460 * configure.in: Move SUBDIRS to near top of the file so that
2461 --enable options may add things to it.
2462 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2463 * configure: Regenerate.
2464
2465 2002-08-13 Michael Snyder <msnyder@redhat.com>
2466
2467 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2468 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2469 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2470
2471 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2472
2473 * vax-tdep.c (vax_get_saved_register): Delete function.
2474 (vax_gdbarch_init): Update.
2475 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2476 (ns32k_gdbarch_init): Update.
2477 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2478 (alpha_gdbarch_init): Update.
2479
2480 2002-08-13 Andrew Cagney <cagney@redhat.com>
2481
2482 * regcache.c (init_regcache_descr): Overallocate the
2483 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2484 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2485 nr_raw_registers.
2486 (set_register_cached): Add range checking assertions. Use
2487 current_regcache.
2488
2489 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2490
2491 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2492 numbers for MMX registers.
2493
2494 2002-08-13 Andrew Cagney <cagney@redhat.com>
2495
2496 * i386-tdep.c (i386_gdbarch_init): Use
2497 generic_unwind_get_saved_register.
2498
2499 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2500
2501 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2502 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2503 target vector.
2504 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2505 Delete. Add comment regarding this now-deleted target method.
2506
2507 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2508
2509 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2510 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2511 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2512 real PC and the page number (if it's within the memory bank window).
2513 (m68hc11_pseudo_register_write): Likewise when saving.
2514 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2515 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2516 (m68hc11_register_raw_size): And use 32-bit for it.
2517 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2518 16K memory bank is used by the prog; also use the virtual pc.
2519
2520 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2521
2522 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2523 (m68hc11_gdbarch_init): Install it in gdbarch.
2524 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2525 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2526 (MSYMBOL_SIZE): New for documentation.
2527 (insn_return_kind): Enum to specify how a function returns.
2528 (frame_extra_info): Cleanup and record the return mode.
2529 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2530 register in address computation.
2531 (m68hc11_get_return_insn): New to obtain the return instruction used
2532 by the function.
2533 (m68hc11_frame_init_saved_regs): Take into account the return
2534 instruction used by the function for far and interrupt functions.
2535 (m68hc11_init_extra_frame_info): Take into account page register.
2536 (m68hc11_frame_args_address): Adjust according to the return mode.
2537 (show_regs): Print page register only when it's used.
2538
2539 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2540
2541 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2542 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2543 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2544 registers.
2545 (m68hc11_register_raw_size): Likewise.
2546
2547 2002-08-13 Andrew Cagney <cagney@redhat.com>
2548
2549 * i386-tdep.c (i386_register_name): Handle mmx registers.
2550 (mmx_regnum_p): New function.
2551 (i386_mmx_names): New array.
2552 (mmx_num_regs): New variable.
2553 (i386_pseudo_register_read): New function.
2554 (i386_pseudo_register_write): New function.
2555 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2556
2557 * regcache.c (regcache_raw_read_unsigned): New function.
2558 (regcache_raw_read_signed): New function.
2559 * regcache.h (regcache_raw_read_unsigned): Declare.
2560 (regcache_raw_read_signed): Declare.
2561
2562 2002-08-13 Andrew Cagney <cagney@redhat.com>
2563
2564 * regcache.c (regcache_raw_read_as_address): Delete function.
2565 (regcache_cooked_read_signed): New function.
2566 (regcache_cooked_read_unsigned): New function.
2567 * regcache.h (regcache_cooked_read_signed): Declare.
2568 (regcache_cooked_read_unsigned): Declare.
2569 (regcache_raw_read_as_address): Delete declaration.
2570
2571 * blockframe.c (generic_read_register_dummy): Use
2572 regcache_cooked_read_unsigned.
2573 * i386-tdep.c (i386_extract_struct_value_address): Use
2574 regcache_cooked_read_unsigned.
2575
2576 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2577
2578 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2579 double sizes according to ELF ABI flags.
2580 (gdbarch_tdep): Record elf_flags.
2581
2582 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2583
2584 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2585 (m6812_prolog): They can appear in 68HC12 function prologue.
2586 (m68hc11_frame_chain): Cleanup.
2587
2588 2002-08-12 Andrew Cagney <cagney@redhat.com>
2589
2590 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2591 declarations.
2592 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2593 (i386_linux_register_raw_size): Delete function.
2594 (i386_linux_init_abi): Update.
2595 * i386-tdep.c (i386_register_raw_size): Delete function.
2596 (i386_register_byte): Delete function.
2597 (i386_gdbarch_init): Update.
2598 (i386_register_size): Delete array.
2599 (i386_register_offset): Delete array.
2600
2601 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2602 (REGISTER_RAW_SIZE): Delete macro.
2603 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2604 (REGISTER_BYTE): Delete macro.
2605
2606 2002-08-11 Aidan Skinner <aidan@velvet.net>
2607
2608 * ada-lang.c (ada_lookup_partial_symbol)
2609 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2610 prototype names so that grep ^func works properly.
2611
2612 * ada-lang.c (ada_array_element_type)
2613 (ada_lookup_partial_symbol): Fix typos in parameter list.
2614
2615 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2616 Fix prototype names so that grep ^func works properly.
2617
2618 2002-08-10 Andrew Cagney <cagney@redhat.com>
2619 Elena Zannoni <ezannoni@redhat.com>
2620 Martin M. Hunt <hunt@redhat.com>
2621
2622 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2623 (build_builtin_type_vec128i): Set the vector bit.
2624 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2625 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2626 (build_builtin_type_vec64): New function.
2627 (build_builtin_type_vec64i): New function.
2628 (build_gdbtypes): Initialize builtin_type_vec64 and
2629 builtin_type_vec64i.
2630
2631 2002-08-09 Andrew Cagney <cagney@redhat.com>
2632
2633 * regcache.c (regcache_dump): Compare the register offset
2634 with REGISTER_BYTE.
2635 * arch-utils.c (generic_register_byte): New function.
2636 * arch-utils.h (generic_register_byte): Declare.
2637 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2638 * gdbarch.h, gdbarch.c: Regenerate.
2639
2640 2002-08-09 Andrew Cagney <cagney@redhat.com>
2641
2642 * regcache.c: Include "gdbcmd.h"
2643 (_initialize_regcache): Add commands "maintenance print
2644 registers", "maintenance print raw-registers" and "maintenance
2645 print cooked-registers".
2646 (enum regcache_dump_what): Define.
2647 (dump_endian_bytes): New function.
2648 (regcache_dump): New function.
2649 (regcache_print): New function.
2650 (maintenance_print_registers): New function.
2651 (maintenance_print_raw_registers): New function.
2652 (maintenance_print_cooked_registers): New function.
2653 * Makefile.in (regcache.o): Update dependencies.
2654
2655 2002-08-09 Michael Snyder <msnyder@redhat.com>
2656
2657 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2658 (mips_push_arguments): Correct some comments. Use paddr_nz
2659 for printing addresses in debug output. Replace static
2660 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2661 (mips_n32n64_push_arguments): New function, cloned from
2662 mips_push_arguments and tuned for the n32/n64 ABI.
2663 (mips_push_register): Buffer needs dynamic allocation.
2664 (mips_print_register): Ditto.
2665 (do_gp_register_row): Ditto.
2666 (mips_store_return_value): Ditto.
2667 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2668
2669 2002-08-09 Don Howard <dhoward@redhat.com>
2670
2671 * memattr.c (mem_info_command): Print special case of upper bound
2672 as max CORE_ADDR + 1.
2673
2674 2002-08-08 Michael Snyder <msnyder@redhat.com>
2675
2676 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2677 returns structs by ref if they're too big to fit in two registers.
2678
2679 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2680
2681 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2682 saved regs value.
2683 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2684 mips_find_saved_regs().
2685 (mips_pop_frame): Likewise.
2686
2687 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2688
2689 * blockframe.c (frame_saved_regs_register_unwind): Revise
2690 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2691 frames are in use.
2692
2693 2002-08-09 Grace Sainsbury <graces@redhat.com>
2694
2695 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2696 T-packets; the 'a' is not taken as a register number.
2697 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2698 (remote_stopped_data_address): New functions; add to target
2699 vector.
2700 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2701 prototypes to match other implementations of this
2702 function. replace integer argument with pointer -- the length
2703 field in the Z-packet is the length of what is pointed to or 1 if
2704 pointer is null. Add to target vector.
2705 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2706 target vector.
2707
2708 From Mark Salter:
2709 * remote.c (remote_wait): Add support to extract optional
2710 watchpoint information from T-packet. Ignore unrecognized
2711 optional info in T-packet.
2712 (remote_async_wait): Ditto.
2713
2714 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2715
2716 * cli/cli-dump.c: Change fopen modes to use binary open modes
2717 as defined in include/fopen-bin.h throughout.
2718
2719 2002-08-08 Michael Snyder <msnyder@redhat.com>
2720
2721 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2722
2723 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2724
2725 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2726 assertion failure by returning early after a warning.
2727
2728 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2729
2730 * mips-tdep.c (mips_find_saved_regs): Make static.
2731 (mips_frame_init_saved_regs): New function.
2732 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2733 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2734 (mips_find_saved_regs): Delete declaration.
2735
2736 2002-08-08 Grace Sainsbury <graces@redhat.com>
2737
2738 * remote.c (remote_wait, remote_async_wait): Change
2739 thread_num from int to ULONGEST.
2740 (unpack_varlen_hex): Change result parameter from
2741 int * to ULONGEST *.
2742
2743 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2744
2745 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2746 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2747 powerpc*-*-*.
2748 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2749
2750 2002-08-08 Andrew Cagney <cagney@redhat.com>
2751
2752 * gcore.c (override_derive_stack_segment): Delete variable.
2753 (preempt_derive_stack_segment): Delete function.
2754 (derive_stack_segment): Delete function.
2755 (default_derive_stack_segment): Renamed to derive_stack_segment.
2756 (override_derive_heap_segment): Delete variable.
2757 (preempt_derive_heap_segment): Delete function.
2758 (derive_heap_segment): Delete function.
2759 (default_derive_heap_segment): Rename to derive_heap_segment.
2760
2761 2002-08-06 Michael Snyder <msnyder@redhat.com>
2762
2763 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2764 * mips-tdep.c (mips_EABI_use_struct_convention,
2765 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2766 New functions. (mips_use_struct_convention): Delete.
2767 (mips_gdbarch_init): set use_gdbarch_convention.
2768
2769 2002-08-06 Michael Snyder <msnyder@redhat.com>
2770
2771 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2772 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2773 mips_o32_reg_struct_has_addr): New functions.
2774 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2775
2776 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2777
2778 * regcache.c (pseudo_register): Delete function.
2779 (fetch_register): Delete function.
2780 (store_register): Delete function.
2781 (regcache_raw_read, legacy_read_register_gen): Use
2782 target_fetch_registers instead of fetch_register.
2783 (legacy_write_register_gen, regcache_raw_write): Use
2784 target_store_register instead of store_register.
2785 (write_register_bytes): Ditto.
2786
2787 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2788 (STORE_PSEUDO_REGISTER): Delete.
2789 * gdbarch.h, gdbarch.c: Regenerate.
2790
2791 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2792
2793 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2794 write dump file binary.
2795
2796 2002-08-05 Michael Snyder <msnyder@redhat.com>
2797
2798 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2799 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2800 (mips_gdbarch_init): Set N32 target to be mips64.
2801
2802 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2803
2804 * frame.c (find_saved_register): Break out of loop once saved
2805 register address is found. Don't mention sparc in loop comment
2806 anymore.
2807
2808 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2809
2810 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2811 mips_default_saved_regsize to 8.
2812
2813 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2814
2815 * gcore.c: Do not include <sys/procfs.h>.
2816 * Makefile.in (gcore.o): Update dependencies.
2817
2818 2002-08-06 Andrew Cagney <cagney@redhat.com>
2819
2820 * configure.tgt: Make arc-*-* obsolete.
2821 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2822 * MAINTAINERS: Make arc-elf obsolete.
2823 * arc-tdep.c: Make file obsolete.
2824 * config/arc/arc.mt: Ditto.
2825 * config/arc/tm-arc.h: Ditto.
2826
2827 2002-08-05 Theodore A. Roth <troth@verinet.com>
2828
2829 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2830
2831 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2832
2833 * mcore-tdep.c (mcore_gdbarch_init): Use
2834 generic_unwind_get_saved_register instead of
2835 generic_get_saved_register.
2836 * v850-tdep.c (v850_gdbarch_init): Ditto.
2837 * frv-tdep.c (frv_gdbarch_init): Ditto.
2838 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2839 * s390-tdep.c (s390_gdbarch_init): Ditto.
2840 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2841 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2842 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2843
2844 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2845
2846 * objfiles.h: Add missing #include "symfile.h"
2847
2848 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2849
2850 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2851
2852 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2853 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2854 of FIELD_BITSIZE.
2855
2856 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2857
2858 * NEWS: Cleanup and nitpick.
2859
2860 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2861
2862 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2863
2864 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2865
2866 * Makefile.in (gdbtk-bp.o): Update dependencies.
2867 (gdbtk-register.o): Ditto.
2868 (gdbtk-varobj.o): Ditto.
2869
2870 2002-08-03 Andrew Cagney <cagney@redhat.com>
2871
2872 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2873 m68hc11_fetch_pseudo_register.
2874 (m68hc11_pseudo_register_write): Replace
2875 m68hc11_store_pseudo_register.
2876 (m68hc11_gdbarch_init): Update.
2877
2878 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2879
2880 * gdbarch.sh: Include "gdb_string.h".
2881 * gdbarch.c: Regenerate.
2882
2883 * regcache.c: Include "gdb_string.h".
2884 * ax-general.c: Ditto.
2885 * varobj.c: Ditto.
2886 * std-regs.c: Ditto.
2887 * fbsd-proc.c: Ditto.
2888 * thread.c: Ditto.
2889
2890 * Makefile.in (regcache.o): Update dependencies.
2891 (thread.o, gdbarch.o): Ditto.
2892 (ax-general.o, gdbarch.o): Ditto.
2893 (varobj.o, std-regs.o): Ditto.
2894 (fbsd-proc.o): Specify dependencies.
2895
2896 2002-08-02 Andrew Cagney <cagney@redhat.com>
2897
2898 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2899 regnum.
2900 (regcache_cooked_write): Ditto.
2901
2902 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2903
2904 * regcache.c (regcache_cooked_read): New function.
2905 (regcache_cooked_write): New function.
2906 (read_register_gen): Rewrite using regcache_cooked_read.
2907 (write_register_gen): Rewrite using regcache_cooked_write.
2908
2909 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2910 Declare.
2911
2912 2002-08-02 Andrew Cagney <cagney@redhat.com>
2913
2914 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2915 Replace the architecture methods register_read and register_write.
2916 * gdbarch.h, gdbarch.c: Regenerate.
2917 * regcache.c (init_regcache_descr): Update.
2918 (read_register_gen): Update.
2919 (write_register_gen): Update.
2920 (supply_register): Update comment.
2921
2922 * sh-tdep.c (sh_gdbarch_init): Update.
2923 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2924 `regcache' and `gdbarch' parameters. Make `buffer' a void
2925 pointer. Update code.
2926 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2927 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2928 void pointer. Update code.
2929 (sh64_register_write): Delete.
2930 (sh4_register_read): Delete.
2931 (sh64_register_read): Delete.
2932 (sh4_register_write): Delete.
2933 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2934 void pointer, `to' parameter a void pointer.
2935 (sh_sh64_register_convert_to_raw): Ditto.
2936
2937 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2938
2939 * mips-tdep.c (mips_register_virtual_type): Use architecture
2940 invariant return values.
2941
2942 2002-08-01 Andrew Cagney <cagney@redhat.com>
2943
2944 * linux-proc.c: Include "gdb_string.h".
2945 * Makefile.in (linux-proc.o): Update dependency list.
2946
2947 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2948
2949 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2950 comment.
2951
2952 2002-08-01 Grace Sainsbury <graces@redhat.com>
2953
2954 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2955 to_insert_watchpoint, to_remove_watchpoint,
2956 to_stopped_by_watchpoint, to_stopped_data_address,
2957 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2958 target vecctor. Define their corresponding macros so they call
2959 them.
2960
2961 * target.c: Add default and debug versions of for
2962 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2963 to_insert_watchpoint, to_remove_watchpoint,
2964 to_stopped_by_watchpoint, to_stopped_data_address,
2965 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2966
2967 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2968
2969 * mips-tdep.c (mips_register_virtual_type): New function.
2970 (mips_gdbarch_init): Register mips_register_virtual_type()
2971 with gdbarch machinery.
2972 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2973 this file instead of tm-bigmips.h.
2974 (MIPS_REGSIZE): Delete this macro.
2975 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2976 multiarch version in mips-tdep.c will be found.
2977
2978 2002-08-01 Andrew Cagney <cagney@redhat.com>
2979
2980 * NEWS: Menion that CHILL has been made obsolete.
2981
2982 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2983 * stabsread.c (read_range_type): Ditto.
2984 * gdbtypes.h: Ditto.
2985 * language.c (binop_type_check): Ditto.
2986 (binop_result_type): Ditto.
2987 (integral_type): Ditto.
2988 (character_type): Ditto.
2989 (string_type): Ditto.
2990 (boolean_type): Ditto.
2991 (structured_type): Ditto.
2992 (lang_bool_type): Ditto.
2993 (binop_type_check): Ditto.
2994 * language.h (_LANG_chill): Ditto.
2995 * dwarfread.c (set_cu_language): Ditto.
2996 * dwarfread.c (CHILL_PRODUCER): Ditto.
2997 * dwarfread.c (handle_producer): Ditto.
2998 * expression.h (enum exp_opcode): Ditto.
2999 * eval.c: Ditto for comments.
3000 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3001 * expprint.c (print_subexp): Ditto.
3002 (print_subexp): Ditto.
3003 * valops.c (value_cast): Ditto.
3004 (search_struct_field): Ditto.
3005 * value.h (COERCE_VARYING_ARRAY): Ditto.
3006 * symfile.c (init_filename_language_table): Ditto.
3007 (add_psymbol_with_dem_name_to_list): Ditto.
3008 * valarith.c (value_binop): Ditto.
3009 (value_neg): Ditto.
3010 * valops.c (value_slice): Ditto.
3011 * symtab.h (union language_specific): Ditto.
3012 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3013 (SYMBOL_DEMANGLED_NAME): Ditto.
3014 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3015 * defs.h (enum language): Ditto.
3016 * symtab.c (got_symtab): Ditto.
3017 * utils.c (fprintf_symbol_filtered): Ditto.
3018
3019 * ch-typeprint.c: Make file obsolete.
3020 * ch-valprint.c: Make file obsolete.
3021 * ch-lang.h: Make file obsolete.
3022 * ch-exp.c: Make file obsolete.
3023 * ch-lang.c: Make file obsolete.
3024
3025 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3026 CHILL_LIB.
3027 (TARGET_FLAGS_TO_PASS): Ditto.
3028 (CHILLFLAGS): Obsolete.
3029 (CHILL): Obsolete.
3030 (CHILL_FOR_TARGET): Obsolete.
3031 (CHILL_LIB): Obsolete.
3032 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3033 ch-valprint.c.
3034 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3035 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3036 ch-lang.o.
3037 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3038 targets.
3039
3040 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3041
3042 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3043 This does not change anything at the moment, but will be helpful
3044 later when full Ada support is integrated.
3045
3046 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3047
3048 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3049 help message.
3050
3051 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3052
3053 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3054 and save it in a local variable. Use variable in later test.
3055
3056 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3057
3058 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3059 test. (Thanks to Daniel Jacobowitz.)
3060
3061 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3062
3063 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3064 (mips_abi_strings): Add "n64".
3065 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3066
3067 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3068
3069 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3070 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3071
3072 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3073
3074 * utils.c (host_pointer_to_address, address_to_host_pointer):
3075 Use gdb_assert() instead of explicit call to internal_error().
3076
3077 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3078
3079 * Makefile.in (rs6000-nat.o): Update dependencies.
3080
3081 From Nicholas Duffek:
3082 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3083 (aix-thread.o): New rule.
3084 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3085 * config/powerpc/aix432.mh: New file.
3086
3087 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3088
3089 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3090 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3091 (fetch_core_registers, ppc_linux_supply_gregset)
3092 (ppc_linux_supply_fpregset): New functions.
3093 (ppc_linux_regset_core_fns): New.
3094 (_initialize_ppc_linux_tdep): Call add_core_fns.
3095 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3096 and ppc_linux_supply_gregset.
3097 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3098 (supply_fpregset): Call ppc_linux_supply_fpregset.
3099 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3100 corelow.o.
3101 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3102
3103 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3104
3105 * symtab.c (lookup_symbol): Demangle before lowercasing.
3106
3107 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3108
3109 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3110 declaration.
3111 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3112 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3113 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3114 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3115 "gdb_string.h".
3116 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3117 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3118 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3119 (avr-tdep.o, mon960-rom.o): Ditto.
3120 (aout_stabs_gnu_h): Define.
3121 (symtab_h): Remove $(gdb_obstack_h).
3122
3123 2002-07-30 Jim Blandy <jimb@redhat.com>
3124
3125 Patch from David Carlton <carlton@math.stanford.edu>:
3126 * gdbinit.in: Move the `dir' commands that add GDB's own source
3127 directory to the search path to the end, so that the `gdb' source
3128 directory will be searched first.
3129
3130 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3131
3132 * gdb_obstack.h: New file.
3133 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3134 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3135 * objfiles.h: Include "gdb_obstack.h".
3136 * Makefile.in (gdb_obstack_h): Define.
3137 (symtab_h): Add $(gdb_obstack_h).
3138 (objfiles_h): Add $(gdb_obstack_h).
3139
3140 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3141 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3142 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3143 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3144 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3145 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3146 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3147 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3148
3149 * Makefile.in (bcache.o): Update dependencies.
3150 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3151 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3152 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3153 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3154 (stabsread.o, symfile.o, symmisc.o): Ditto.
3155 (symtab.o, typeprint.o, macroexp.o): Ditto.
3156 (macrotab.o, mdebugread.o): Ditto.
3157 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3158 (coff_ecoff_h, aout_aout64_h): Define.
3159 (aout_stabs_gnu_h, libaout_h): Define.
3160
3161 2002-07-29 Andrew Cagney <cagney@redhat.com>
3162
3163 * regcache.c (struct regcache_descr): Rename nr_registers to
3164 nr_cooked_registers. Revise comments describing the structure
3165 member fields.
3166 (init_regcache_descr): Update.
3167 (init_legacy_regcache_descr): Update.
3168 (read_register_gen, write_register_gen): When a cooked register in
3169 the raw register range, directly access the value from the raw
3170 register cache.
3171
3172 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3173
3174 * z8k-tdep.c: Do not include "obstack.h".
3175 * h8300-tdep.c, h8500-tdep.c: Ditto.
3176 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3177 * valprint.c, v850-tdep.c: Ditto.
3178 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3179 * mn10200-tdep.c: Ditto.
3180
3181 * Makefile.in (z8k-tdep.o): Update dependencies.
3182 (m68hc11-tdep.o, valprint.o): Ditto.
3183 (v850-tdep.o, d10v-tdep.o): Ditto.
3184 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3185 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3186 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3187 (sh_opc_h, gdb_sim_sh_h): Define.
3188 (elf_sh_h, elf_bfd_h): Define.
3189 (opcode_m68hc11_h): Define.
3190 (OPCODES_SRC, OPCODES_DIR): define.
3191 (OPCODES): Use $(OPCODES_DIR).
3192 (gdb_sim_d10v_h): Rename sim_d10v_h.
3193 (gdb_sim_arm_h): Rename sim_arm_h.
3194
3195 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3196
3197 * utils.c (host_pointer_to_address, address_to_host_pointer):
3198 Change internal_error() message to indicate function responsible
3199 for the error.
3200
3201 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3202
3203 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3204 calls to local_hex_string_custom().
3205
3206 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3207
3208 * irix5-nat.c: Move IRIX shared library support from here...
3209 * solib-irix.c: ...to here. Revised substantially to work with
3210 generic solib framework.
3211
3212 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3213 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3214 * mips-irix-tdep.c: New file.
3215
3216 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3217 (mips-irix-tdep.o, solib-irix.o): New rules.
3218 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3219 solib-irix.o.
3220 * config/mips/irix6.mt (TDEPFILES): Likewise.
3221 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3222
3223 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3224
3225 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3226 disabled (via ``#if 0'') includes.
3227
3228 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3229
3230 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3231 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3232 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3233 Add support for the fpscr register.
3234 * rs6000-nat.c (regmap, fetch_inferior_registers)
3235 (store_inferior_registers, fetch_core_registers): Likewise.
3236
3237 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3238
3239 * rs6000-nat.c (language.h): Include.
3240 (special_regs): Delete this array.
3241 (regmap): New function.
3242 (fetch_register, store_register): Use regmap() to map gdb
3243 register numbers to ptrace register numbers. Also, use
3244 outputs from regmap() to make decisions regarding type of
3245 ptrace() call to make. In particular, don't compare against
3246 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3247 (fetch_inferior_registers, store_inferior_registers): Where
3248 possible, obtain register numbers from tdep struct. Don't
3249 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3250 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3251 (LAST_UISA_SP_REGNUM): Delete.
3252
3253 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3254
3255 * rs6000-nat.c (ppc-tdep.h): Include.
3256 (fetch_registers, store_register, fetch_core_registers): Don't
3257 access registers[] directly. Instead, use supply_register() or
3258 regcache_collect() as appropriate.
3259 (find_toc_address): Format hex address with local_hex_string().
3260
3261 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3262
3263 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3264 bfd/elf32-frv.c.
3265
3266 2002-07-24 Tom Tromey <tromey@redhat.com>
3267
3268 * jv-exp.y: Marked all strings with _().
3269 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3270 internal_error.
3271 (MethodInvocation, CastExpression, parse_number, yyerror,
3272 java_type_from_name, push_expression_name, yylex): Typo fixes.
3273
3274 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3275
3276 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3277 (tee_file_flush, tee_file_write, tee_file_fputs)
3278 (tee_file_isatty): New.
3279 * ui-file.h (tee_file_new): Add prototype.
3280
3281 2002-07-24 Aidan Skinner <aidan@velvet.net>
3282
3283 * ada-lang.c: Change k&r style function definitions to prototyped
3284 form.
3285 * ada-typeprint.c: Change k&r style function definitions to prototyped
3286 form.
3287 * ada-valprint.c: Change k&r style function definitions to prototyped
3288 form.
3289
3290 2002-07-24 Andrew Cagney <cagney@redhat.com>
3291
3292 * README: Remove reference to remote-bug.
3293 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3294 remote-bug.c.
3295 (m88k-nat.o): Delete rule.
3296 (m88k-tdep.o): Delete rule.
3297 (remote-bug.o): Delete rule.
3298 * MAINTAINERS: Mark as obsolete.
3299 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3300 * m88k-tdep.c: Make file obsolete.
3301 * config/m88k/m88k.mh: Ditto.
3302 * config/m88k/delta88v4.mh: Ditto.
3303 * config/m88k/delta88v4.mt: Ditto.
3304 * config/m88k/delta88.mt: Ditto.
3305 * config/m88k/delta88.mh: Ditto.
3306 * remote-bug.c: Ditto.
3307 * config/m88k/tm-delta88.h: Ditto.
3308 * config/m88k/nm-delta88v4.h: Ditto.
3309 * config/m88k/xm-delta88.h: Ditto.
3310 * config/m88k/xm-dgux.h: Ditto.
3311 * config/m88k/tm-m88k.h: Ditto.
3312 * config/m88k/nm-m88k.h: Ditto.
3313 * config/m88k/tm-delta88v4.h: Ditto.
3314 * m88k-nat.c: Ditto.
3315 * cxux-nat.c: Ditto.
3316 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3317 and m88*-*-* obsolete.
3318 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3319 m88*-*-* obsolete.
3320
3321 2002-07-24 Andrew Cagney <cagney@redhat.com>
3322
3323 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3324 constant. Same for local pointer variables.
3325 (extract_signed_integer): Ditto.
3326 * defs.h (extract_unsigned_integer): Update.
3327 (extract_signed_integer): Update.
3328
3329 2002-07-24 Andrew Cagney <cagney@redhat.com>
3330
3331 * regcache.c (regcache_raw_write): Change buf parameter to a
3332 constant void pointer.
3333 (regcache_raw_read): Change buf parameter to a void pointer.
3334 (legacy_write_register_gen): Change myaddr parameter a constant
3335 void pointer.
3336 (supply_register): Change val parameter to a const void pointer.
3337 * regcache.h (regcache_raw_write): Update declaration.
3338 (regcache_raw_read): Update declaration.
3339 (supply_register): Update declaration.
3340
3341 2002-07-24 Tom Tromey <tromey@redhat.com>
3342
3343 * defs.h (gdb_readline_wrapper): Declare.
3344 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3345 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3346 * top.c (gdb_readline_wrapper): New function.
3347 (command_line_input): Use it.
3348
3349 2002-07-24 Andrew Cagney <cagney@redhat.com>
3350
3351 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3352 regcache_read and regcache_write.
3353 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3354 * regcache.c: Update.
3355 * sh-tdep.c (sh64_push_arguments): Update comment.
3356 (sh_pseudo_register_read): Update.
3357 (sh_pseudo_register_write): Update.
3358 (sh4_register_read): Update.
3359 (sh4_register_write): Update.
3360 (sh64_pseudo_register_read): Update.
3361 (sh64_pseudo_register_write): Update.
3362 (sh64_register_read): Update.
3363 (sh64_register_write): Update.
3364 * i386-tdep.c (i386_extract_return_value): Update.
3365 (i386_extract_struct_value_address): Update.
3366 (i386_extract_return_value): Update.
3367 * blockframe.c (generic_read_register_dummy): Update.
3368 (generic_call_dummy_register_unwind): Update
3369 * infrun.c (write_inferior_status_register): Update.
3370
3371 2002-07-23 Jim Blandy <jimb@redhat.com>
3372
3373 * parser-defs.h (expression_context_pc): Make this extern.
3374 (Thanks to Michael Snyder.)
3375
3376 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3377
3378 GDB 5.2.1 released from 5.2 branch.
3379 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3380 * README: Update to mention 5.2.1.
3381
3382 2002-07-23 Mark Salter <msalter@redhat.com>
3383
3384 * remote.c (remote_read_bytes): Fix check for error.
3385
3386 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3387
3388 * aix-thread.c (language.h): Include.
3389 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3390 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3391 Print newlines at end of debug messages.
3392 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3393 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3394
3395 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3396
3397 * aix-thread.c (ppc-tdep.h): Include.
3398 (special_register_p): New function.
3399 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3400 (store_regs_user_thread): Use register number information from
3401 gdbarch_tdep struct instead of hardcoded offsets relative to
3402 FIRST_UISA_SP_REGNUM.
3403 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3404 special_register_p() instead of using FPLAST_REGNUM and
3405 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3406 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3407 will be MQ's register number.
3408
3409 2002-07-22 Michael Snyder <msnyder@redhat.com>
3410
3411 * aix-thread.c (ops): Rename to aix_thread_ops.
3412 (base_ops): Rename to base_target.
3413 (ops_attach): Rename to aix_thread_attach.
3414 (ops_detach): Rename to aix_thread_detach.
3415 (ops_resume): Rename to aix_thread_detach.
3416 (ops_wait): Rename to aix_thread_wait.
3417 (ops_kill): Rename to aix_thread_kill.
3418 (init_ops): Rename to init_aix_thread_ops.
3419 (ops_fetch_register): Rename to aix_thread_fetch_register.
3420 (ops_store_register): Rename to aix_thread_store_register.
3421 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3422 (ops_thread_alive): Rename to aix_thread_thread_alive.
3423 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3424 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3425 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3426 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3427 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3428 (store_regs_lib): Rename to store_regs_user_thread.
3429 (store_regs_kern): Rename to store_regs_kernel_thread.
3430
3431 2002-07-22 Michael Snyder <msnyder@redhat.com>
3432
3433 * aix-thread.c (ops_prepare_to_store): Eliminate.
3434 (init_ops): Don't initialize ops.prepare_to_store.
3435 (store_regs_kern): Pre-fetch register buffers from child,
3436 because some registers may not be in the cache. Copy
3437 regs from register cache only if they are cached.
3438 (store_regs_lib): Copy regs from register cache only
3439 if they are cached.
3440 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3441 fill_gprs64): Ditto.
3442
3443 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3444
3445 * aix-thread.c (gdb_assert.h): Include.
3446 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3447 register sizes (from register cache) match size of buffer holding
3448 register data.
3449 (fill_sprs32): Change parameter types to match those in the ptrace()
3450 buffer.
3451 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3452 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3453
3454 2002-07-22 Michael Snyder <msnyder@redhat.com>
3455
3456 * aix-thread.c (supply_sprs64): Cosmetic change.
3457 (supply_sprs32): Cosmetic change.
3458 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3459 (fill_sprs64): Use regcache_collect instead of read_register.
3460 (store_regs_lib): Use regcache_collect instead of
3461 read_register. Use fill_sprs32 instead of fill_sprs64,
3462 if debugging a 32-bit architecture.
3463 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3464 out of the register cache, instead of passing a pointer into
3465 the register cache directly to ptrace. Use regcache_collect
3466 insteaad of read_register.
3467 (ops_prepare_to_store): Use target_read_registers instead
3468 of read_register_bytes.
3469
3470 2002-07-20 Aidan Skinner <aidan@velvet.net>
3471
3472 * MAINTAINERS: Add self under write after approval.
3473
3474 2002-07-20 Aidan Skinner <aidan@velvet.net>
3475
3476 * ada-tasks.c: Change k&r style function definitions to prototyped
3477 form.
3478
3479 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3480
3481 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3482 * x86-64-tdep.c: Include "objfiles.h".
3483 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3484 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3485
3486 2002-07-17 Michal Ludvig <michal@suse.cz>
3487
3488 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3489 (update_context): Initialise cfa variable.
3490
3491 2002-07-17 Michael Snyder <msnyder@redhat.com>
3492
3493 * aix-thread.c: Shorten some long lines.
3494 Bring comments into line with code spec.
3495
3496 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3497
3498 * infrun.c: Re-indent using gdb_indent.sh.
3499
3500 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3501
3502 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3503 Leave the indentation temporarily untouched, to minimize the diffs.
3504
3505 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3506
3507 * stabsread.c: Make os9k sections of the code obsolete,
3508 for real this time.
3509 * stabsread.h: Make os9k sections of the code obsolete.
3510
3511 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3512
3513 * linux-low.c (regsets_store_inferior_registers): Add free()
3514 at the end of a loop to prevent memory leak.
3515 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3516 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3517 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3518 line a comment.
3519 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3520
3521 2002-07-17 Jim Blandy <jimb@redhat.com>
3522
3523 * macrocmd.c (info_macro_command): Remove newline from error
3524 message.
3525
3526 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3527
3528 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3529 (sh_gdbarch_init): Use it for sh-dsp.
3530
3531 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3532
3533 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3534 64-bit DWARF2 format.
3535
3536 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3537
3538 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3539 <sys/proc.h> when not available.
3540
3541 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3542
3543 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3544 * stabsread.c: Make os9k sections of the code obsolete.
3545 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3546 * config/i386/i386os9k.mt: Make file obsolete.
3547 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3548 (COMMON_OBS): Remove os9kread.o
3549 (SFILES): Remove os9kread.c.
3550 (os9kread.o, remote-os9k.o): Make target obsolete.
3551 * remote-os9k.c: Make file obsolete.
3552 * os9kread.c: Make file obsolete.
3553 * Makefile.in
3554
3555 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3556
3557 * NEWS: Mention that the FR30 has been made obsolete.
3558 * fr30-tdep.c: Make file obsolete.
3559 * config/fr30/tm-fr30.h: Ditto.
3560 * config/fr30/fr30.mt: Ditto.
3561 * configure.tgt: Make fr30-*-elf obsolete.
3562 * MAINTAINERS: Make fr30-elf obsolete.
3563
3564 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3565
3566 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3567 found is not inside a section.
3568
3569 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3570
3571 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3572 strerror().
3573 (pdc_realloc): Use xrealloc() instead of realloc().
3574
3575 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3576
3577 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3578 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3579 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3580 macros.
3581
3582 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3583
3584 * aix-thread.c (ptrace_check): Eliminate goto.
3585 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3586 problem.
3587
3588 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3589
3590 * aix-thread.c (gdbcmd.h): Include.
3591 (DEBUG, DBG, DBG2, dbg): Eliminate.
3592 (debug_aix_thread): New static global.
3593 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3594 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3595 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3596 invocations to DBG and DBG2 macros to test against
3597 ``debug_aix_thread'' and call fprintf_unfiltered().
3598 (_initialize_aix_thread): Add new command "set debug aix-thread".
3599
3600 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3601
3602 From Gerhard Tonn <TON@de.ibm.com>:
3603 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3604 instead of supply_register.
3605
3606 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3607
3608 * dwarf2cfi.c: Include "gdb_assert.h".
3609 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3610 non-NULL.
3611 (update_context): Do not use __func__. Add missing ``break''.
3612 (update_context): Do not use __func__.
3613
3614 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3615
3616 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3617 and its setting. Set gdbarch instruction printing functions
3618 directly. For non-rs6000 case use new function
3619 gdb_print_insn_powerpc.
3620 (gdb_print_insn_powerpc): New function.
3621
3622 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3623
3624 * NEWS: Mention that the d30v has been marked obsolete.
3625 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3626 * configure.tgt: Mark d30v-*-* as obsolete.
3627 * d30v-tdep.c: Mark file as obsolete.
3628 * config/d30v/d30v.mt: Ditto.
3629 * config/d30v/tm-d30v.h: Ditto.
3630
3631 2002-07-13 Aidan Skinner <aidan@velvet.net>
3632
3633 * ada-tasks.c (add_task_entry): replace calls to
3634 malloc() with xmalloc
3635 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3636
3637 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3638 ada_finish_decode_line_1, all_sals_for_line
3639 ada_breakpoint_rewrite): replace calls to free() with xfree()
3640
3641 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3642
3643 From Nicholas Duffek (with minor changes by Martin Hunt,
3644 Louis Hamilton, and Kevin Buettner):
3645 * aix-thread.c: New file.
3646
3647 2002-07-12 Petr Sorfa <petrs@caldera.com>
3648
3649 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3650 complaint for invalid attribute class or form.
3651 (read_func_scope): DW_AT_frame_base
3652 better handling of DW_AT_block*.
3653 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3654 better handling of DW_AT_block*.
3655 (read_common_block): DW_AT_location
3656 better handling of DW_AT_block*.
3657 (read_partial_die): DW_AT_location better handling
3658 of DW_AT_block*.
3659 (new_symbol): DW_AT_external better handling of
3660 DW_AT_block*. Proper initialization of variable
3661 "addr".
3662 (attr_form_is_block): New function that returns true
3663 if the attribute's form is of DW_FORM_block*.
3664
3665 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3666
3667 * valops.c (find_method_list): Remove comment about
3668 removed STATIC_MEMFUNCP argument.
3669 (value_find_oload_method_list): Likewise.
3670
3671 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3672
3673 From Nicholas Duffek:
3674 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3675 target_new_objfile_hook.
3676
3677 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3678
3679 From Nicholas Duffek:
3680 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3681 csect.
3682
3683 2002-07-12 Andrew Cagney <cagney@redhat.com>
3684
3685 * MAINTAINERS: Mention --enable-sim-build-warnings.
3686 (m68hc11-elf): Disable sim build warnings.
3687 (m32r-elf): Mark as broken obsolete candidate.
3688 (x86_64-linux-gnu): Mark as buildable with -Werror.
3689 (arm-elf): Change -w to ``,'' which enables warnings but not
3690 -Werror.
3691
3692 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3693
3694 * bcache.h: Update copyright.
3695 (struct bstring, struct bcache): Move definition to "bcache.c".
3696 Replaced by opaque declaration.
3697 (bcache_xfree): Replace free_bcache.
3698 (bcache_xmalloc, bcache_memory_used): Declare.
3699
3700 * bcache.c: Update copyright.
3701 (struct bstring, struct bcache): Moved to here from "bcache.h".
3702 Update comments.
3703 (bcache_xmalloc, bcache_memory_used): New functions.
3704 (bcache_xfree): Replace function free_bcache.
3705
3706 * Makefile.in (objfiles.o): Add $(bcache_h).
3707 (objfiles_h): Remove $(bcache_h).
3708 (symfile.o): Add $(bcache_h).
3709
3710 * symmisc.c: Update copyright.
3711 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3712 (print_objfile_statistics): Use bcache_memory_used.
3713
3714 * symfile.c: Include "bcache.h".
3715 (reread_symbols): Use bcache_xfree.
3716 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3717 (add_psymbol_to_list): Pass psymbol_cache by value.
3718 (add_psymbol_with_dem_name_to_list): Ditto.
3719
3720 * objfiles.h: Update copyright.
3721 (struct bcache): Declare opaque. Do not include "bcache.h".
3722 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3723 bcache'' pointers.
3724 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3725
3726 * objfiles.c: Include "bcache.h". Update copyright.
3727 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3728 macro_cache.
3729 (free_objfile): Use bcache_xfree.
3730
3731 2002-07-11 Grace Sainsbury <graces@redhat.com>
3732
3733 * monitor.c (monitor_fetch_register): Make name a constant.
3734 (monitor_store_register): Same.
3735
3736 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3737
3738 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3739 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3740 (finish_block) For non-function blocks, hash the symbol table. For
3741 function blocks, mark the symbol table as unhashed.
3742 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3743 (msymbol_hash_iw): Likewise.
3744 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3745 value.
3746 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3747 (lookup_minimal_symbol): Likewise for both.
3748 * symtab.h (struct block): Add `hashtable' flag. Comment the
3749 hashtable.
3750 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3751 (ALL_BLOCK_SYMBOLS): Update.
3752 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3753 (struct symbol): Add `hash_next' pointer.
3754 * symtab.c (lookup_block_symbol): Search using the hash table when
3755 possible.
3756 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3757 (search_symbols, find_addr_symbol): Likewise.
3758
3759 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3760 (read_dst_symtab): Likewise.
3761 * jv-lang.c (get_java_class_symtab): Likewise.
3762 * mdebugread.c: Include "gdb_assert.h".
3763 (shrink_block): Assert that the block being modified is not hashed.
3764 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3765 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3766 symbols.
3767 (dump_symtab): Recognize hashed blocks.
3768 * printcmd.c (print_frame_args): Assert that function blocks do not
3769 have hashed symbol tables.
3770 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3771 (fill_in_ada_prototype, debug_print_block): Likewise.
3772 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3773
3774 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3775
3776 * stack.c (print_frame): Use result of frame_address_in_block()
3777 instead of fi->pc when evaluating symbols.
3778 (backtrace_command_1): Ditto.
3779
3780 2002-07-11 Andrew Cagney <cagney@redhat.com>
3781
3782 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3783 Make static.
3784
3785 * arm-tdep.c (arm_register_name): Make return type constant.
3786
3787 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3788
3789 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3790 prototype.
3791 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3792 * s390-tdep.c (s390_fp_regnum): Ditto.
3793 (s390_read_fp): Ditto.
3794 (s390_pop_frame): Ditto.
3795 (_initialize_s390_tdep): Ditto.
3796 * remote.c (get_remote_state): Ditto.
3797 * procfs.c (mappingflags): Ditto.
3798 * memattr.c (_initialize_mem): Ditto.
3799 * mcore-tdep.c (mcore_pop_frame): Ditto.
3800 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3801 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3802 * language.c (set_case_str): Ditto.
3803 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3804 * frv-tdep.c (new_variant): Ditto.
3805 (frv_stopped_data_address): Ditto.
3806 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3807 (context_alloc): Ditto.
3808 (frame_state_alloc): Ditto.
3809 (unwind_tmp_obstack_init): Ditto.
3810 (unwind_tmp_obstack_free): Ditto.
3811 (cfi_read_fp): Ditto.
3812 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3813 (cris_pop_frame): Ditto.
3814 * c-lang.c (scanning_macro_expansion): Ditto.
3815 (finished_macro_expansion): Ditto.
3816 (c_preprocess_and_parse): Ditto.
3817 * gdbarch.sh: Ditto.
3818 * gdbarch.h, gdbarch.c: Regenerate.
3819 * config/mn10200/tm-mn10200.h: Adjust indentation.
3820 * target.c: Adjust indentation.
3821 * symtab.h: Adjust indentation.
3822 * stabsread.h: Adjust indentation.
3823 * remote-es.c: Adjust indentation.
3824 * os9kread.c: Adjust indentation.
3825
3826 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3827
3828 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3829 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3830
3831 2002-07-10 Grace Sainsbury <graces@redhat.com>
3832
3833 * NEWS: Mention m68k, mcore multi-arching.
3834 * MAINTAINERS: Change status of m68k, mcore to reflect
3835 multi-arching.
3836
3837 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3838
3839 * valops.c (find_overload_match): Free oload_syms.
3840
3841 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3842
3843 Define HAVE_SYS_PROC_H if sys/proc.h exists
3844 * configure.in: Add check for sys/proc.h
3845 * config.in: Regenerate.
3846 * configure: Regenerate.
3847
3848 2002-07-09 Grace Sainsbury <graces@redhat.com>
3849
3850 * config/m68k/tm-m68k.h: Remove macros wrapped in
3851 #if !GDB_MULTI_ARCH.
3852
3853 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3854
3855 * config.in, configure: Regenerate.
3856
3857 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3858
3859 * dwarf2cfi.c: Include "gcore.h".
3860 (execute_stack_op): Fix implementation of the
3861 DW_OP_deref and DW_OP_deref_size operators by letting do their
3862 lookup in the target.
3863
3864 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3865
3866 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3867 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3868 tdep->sc_sp_offset.
3869
3870 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3871
3872 Fix PR gdb/595, gdb/602
3873 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3874 Don't call value_cast, just read the vtable pointer; update comments
3875 to match.
3876
3877 2002-07-05 Grace Sainsbury <graces@redhat.com>
3878
3879 * config/mcore/tm-mcore.h: Remove file.
3880 * config/mcore/mcore.mt: Remove definition of TM_FILE
3881 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3882
3883 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3884
3885 * i386bsd-tdep.c: Include "gdb_string.h".
3886
3887 2002-07-04 Grace Sainsbury <graces@redhat.com>
3888
3889 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3890 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3891 mcore-tdep.
3892 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3893 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3894 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3895 (RETVAL_REGNUM): Move macros from tm-mcore.h
3896 (mcore_reg_struct_has_addr): New function.
3897 (mcore_gdbarch_init): Added initializations for the macros removed
3898 from tm-mcore.h.
3899
3900 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3901
3902 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3903 traditonal string branding within the ELF header.
3904
3905 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3906
3907 * symtab.c (remove_params): New function.
3908 (make_symbol_overload_list): Use it instead of cplus_demangle.
3909 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3910
3911 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3912
3913 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3914
3915 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3916 New variables.
3917 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3918 and tdep->sigtramp_end.
3919 * i386obsd-nat.c: New file.
3920 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3921
3922 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3923 Don't call get_current_frame().
3924
3925 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3926
3927 * i386-nat.c (child_post_startup_inferior): New function
3928 calling i386_cleanup_dregs if
3929 I386_USE_GENERIC_WATCHPOINTS is defined.
3930 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3931 conditional to acknowledge that i386-nat.c has its
3932 own child_post_startup_inferior function.
3933
3934 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3935
3936 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3937 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3938 instead of MAX_REGISTER_RAW_SIZE.
3939 (i386_extract_return_value, i386_extract_struct_value_address):
3940 Convert to use regcache.
3941 (i386_gdbarch_init): Set max_register_raw_size and
3942 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3943 Set extract_return_value and extract_struct_value_address instead
3944 of their deprecated variants.
3945
3946 Convert i386 target to generic dummy frames.
3947 * i386-tdep.c: Include "symfile.h".
3948 (i386_frameless_signal_p): Consider a function to be frameless if
3949 the pc points at the first instruction of the function.
3950 (i386_frame_chain): Handle (generic) call dummies.
3951 (i386_frame_saved_pc): Likewise.
3952 (i386_frame_init_saved_regs): Remove code dealing with call
3953 dummies on the stack.
3954 (i386_push_dummy_frame): Removed.
3955 (i386_call_dummy_words): Removed.
3956 (i386_fix_call_dummy): Removed.
3957 (i386_push_return_address): New function.
3958 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3959 parameter, and don't call get_current_frame.
3960 (i386_pop_frame): New function.
3961 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3962 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3963 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3964 call_dummy_length to 0, set call_dummy_words to NULL, set
3965 sizeof_call_dummy_words to 0, set fix_call_dummy to
3966 generic_fix_call_dummy, set pc_in_call_dummy to
3967 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3968 generic_push_dummy_frame, set push_return_address to
3969 i386_push_return_address and set frame_chain_valid to
3970 generic_file_frame_chain_valid.
3971
3972 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3973
3974 * gdbarch.sh (struct regcache): Add opaque declaration.
3975 (EXTRACT_RETURN_VALUE): New architecture method.
3976 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3977 * gdbarch.h, gdbarch.c: Regenerate.
3978 * arch-utils.c (legacy_extract_return_value): New function.
3979 * arch-utils.h (legacy_extract_return_value): Declare.
3980 * values.c (value_being_returned): Re-enable code handling
3981 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3982 deprecated_grub_regcache_for_registers call to block handling
3983 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3984 (EXTRACT_RETURN_VALUE): Do not define.
3985
3986 2002-07-03 Grace Sainsbury <graces@redhat.com>
3987
3988 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3989 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3990 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3991 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3992 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3993 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3994 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3995 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3996 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3997 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3998 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3999 argument so the function fits the prototype in the architecture
4000 vector.
4001 (mcore_pop_frame): Remove argument so the function fits the
4002 prototype. Use get_current_frame instead of the argument.
4003 (mcore_push_arguments): Change type of struct_return so the
4004 function can be used in the architecture vector.
4005 (mcore_store_struct_return): Add.
4006 (mcore_frame_init_saved_regs): Add.
4007 (mcore_gdbarch_init): Add function calls to replace the macros
4008 removed from tm-mcore.h
4009
4010 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4011
4012 * infcmd.c (print_return_value): Remove compatibility code calling
4013 deprecated_grub_regcache_for_registers.
4014
4015 * values.c: Include "regcache.h".
4016 (value_being_returned): Update. Use
4017 deprecated_grub_regcache_for_registers to extract the register
4018 buffer address.
4019 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4020 ``struct regcache''.
4021 * Makefile.in (values.o): Add dependency on $(regcache_h).
4022
4023 * inferior.h (run_stack_dummy): Change type of second parameter to
4024 a ``struct regcache''.
4025 * valops.c (hand_function_call): Change type of retbuf to ``struct
4026 regcache''. Allocate using regcache_xmalloc, clean using
4027 make_cleanup_regcache_xfree.
4028 * infcmd.c (run_stack_dummy): Update. Use
4029 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4030
4031 * regcache.c (do_regcache_xfree): New function.
4032 (make_cleanup_regcache_xfree): New function.
4033 * regcache.h (make_cleanup_regcache_xfree): Declare.
4034
4035 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4036
4037 * event-top.c (command_line_handler): Don't read past
4038 beginning of buffer.
4039
4040 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4041
4042 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4043 struct frame_id.
4044 (varobj_create): Store frame_id for root.
4045 (varobj_gen_name): Use xasprintf.
4046 (varobj_update): Save and restore frame using get_frame_id() and
4047 frame_find_by_id().
4048 (create_child): Use xasprintf.
4049 (new_root_variable): Initialize frame_id.
4050 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4051 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4052 to prevent memory leak.
4053
4054 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4055
4056 * valops.c (hand_function_call): Move declaration of retbuf to
4057 start of function, allocate using malloc, add a cleanup but before
4058 the inf_status cleanup, cleanup the buffer. Rename local variable
4059 old_chain to inf_status_cleanup.
4060
4061 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4062
4063 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4064
4065 * cli/cli-decode.c (cmd_func_p): New function.
4066 (cmd_func): New function.
4067
4068 * command.h: Add cmd_func() and cmd_func_p().
4069
4070 2002-07-03 Grace Sainsbury <graces@redhat.com>
4071
4072 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4073 (REGISTER_SIZE): Remove.
4074 (MAX_REGISTER_RAW_SIZE): Remove.
4075 (REGISTER_VIRTUAL_TYPE): Remove.
4076 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4077 (REGISTER_NAME): Remove.
4078 (USE_GENERIC_DUMMY_FRAMES): Remove.
4079 (CALL_DUMMY): Remove.
4080 (CALL_DUMMY_START_OFFSET): Remove.
4081 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4082 (CALL_DUMMY_LOCATION): Remove.
4083 (FIX_CALL_DUMMY): Remove.
4084 (CALL_DUMMY_ADDRESS): Remove.
4085 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4086 (SAVE_DUMMY_FRAME_TOS): Remove.
4087 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4088 (mcore_register_virtual_type): New function.
4089 (mcore_register_byte): New function.
4090 (mcore_register_size): New function.
4091 (mcore_register_name): New function.
4092 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4093 macros removed from tm-mcore.h.
4094 (mcore_dump_tdep): Add.
4095 (_initialize_mcore_tdep): Add gdbarch_register call.
4096
4097 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4098
4099 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4100 frameless_look_for_prologue, such that we actually call this
4101 function.
4102
4103 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4104
4105 * frame.h (frame_address_in_block): New function.
4106
4107 * blockframe.c (frame_address_in_block): New function extracted
4108 from get_frame_block().
4109 (get_frame_block): Use frame_address_in_block().
4110 (block_innermost_frame): Use frame_address_in_block() to match
4111 the frame pc address against the block boundaries rather than
4112 the frame pc directly. This prevents a failure when a frame pc
4113 is actually a return-address pointing immediately after the end
4114 of the given block.
4115
4116 2002-07-02 Grace Sainsbury <graces@redhat.com>
4117
4118 * MAINTAINERS: Add self under write after approval.
4119
4120 2002-07-02 Grace Sainsbury <graces@redhat.com>
4121
4122 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4123 used in architecture vector. The default is
4124 m68k_local_breakpoint_from_pc.
4125 (m68k_local_breakpoint_from_pc): Add.
4126 (enum): Add register numbers from tm-m68k.h.
4127 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4128 vector.
4129 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4130 GDB_MULTI_ARCH_PARTIAL.
4131 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4132 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4133 m68k-tdep.c.
4134 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4135 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4136 to enum in m68k-tdep.c
4137
4138 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4139
4140 * solib-osf.c (open_map): Compute the list of shared libraries
4141 loaded by the inferior, rather than the list of libraries loaded
4142 by GDB itself. Otherwise, GDB ends up reading the symbols from
4143 the wrong shared libraries...
4144
4145 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4146
4147 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4148 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4149 macros.
4150 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4151 Remove functions.
4152 (FRAMELESS_SIGNAL): Remove function.
4153 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4154 i386_linux_saved_pc_after_call): Removed.
4155 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4156 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4157 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4158
4159 * i386-tdep.c (i386_frameless_signal_p): New function.
4160 (i386_frame_chain): Deal with frameless signals.
4161 (i386_sigtramp_saved_sp): New function.
4162 (i386_frame_saved_pc): Deal with frameless signals.
4163 (i386_saved_pc_after_call): Make sure the correct value is
4164 returned just after entry into a sigtramp.
4165 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4166 i386fbsd4_sc_sp_offset): New variables.
4167 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4168 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4169 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4170 similiar to what we already did for sc_pc_offset.
4171 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4172 tdep->sc_sp_offset.
4173
4174 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4175
4176 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4177
4178 * config/i386/tm-x86-64linux.h: New.
4179 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4180 definitions.
4181 * config/i386/nm-x86-64.h: Rename to ...
4182 * config/i386/nm-x86-64linux.h: ... this one.
4183 * config/i386/x86-64linux.mh: Reflect the above change.
4184
4185 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4186
4187 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4188 with sigcontext_addr. Add sc_sp_offset.
4189 (i386bsd_sigtramp_saved_pc): Remove prototype.
4190 (i386bsd_sicontext_addr): Add prototype.
4191 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4192 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4193 (i386_svr4_sigtramp_saved_pc): Removed.
4194 (i386_svr4_sigcontext_addr): New function.
4195 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4196 Initialize tdep->sigcontext_addr instead. Initialize
4197 tdep->sc_pc_offset and tdep->sc_sp_offset.
4198 (i386_gdbarch_init): Likewise.
4199 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4200 any more.
4201 (i386bsd_sigtramp_saved_pc): Remove function.
4202 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4203 Initialize tdep->sigcontext_addr instead. Initialize
4204 tdep->sc_pc_offset.
4205 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4206 of tdep->sigtramp_saved_pc.
4207 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4208 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4209 instead.
4210
4211 * i386-tdep.c (i386_frameless_function_invocation,
4212 i386_frame_num_args, i386_frame_init_saved_regs,
4213 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4214 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4215 i386_extract_return_value, i386_store_return_value,
4216 i386_extract_struct_value_address, i386_register_virtual_type,
4217 i386_register_convertible, i386_register_convert_to_virtual,
4218 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4219 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4220 static.
4221
4222 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4223
4224 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4225
4226 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4227 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4228 this macro. Include "value.h".
4229
4230 2002-06-30 Aidan Skinner <aidan@velvet.net>
4231
4232 * ada-exp.tab.c: remove as it's a generated file
4233 * ada-lex.c: remove as it's a generated file
4234
4235 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4236
4237 * config/i386/tm-i386.h (struct frame_info, struct
4238 frame_saved_regs, struct value, struct type): Remove forward
4239 declarations.
4240
4241 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4242 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4243 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4244 (FILL_FPXREGSET): Define.
4245
4246 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4247
4248 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4249 i[3456]86-*-netbsd* case.
4250 * config/i386/tm-obsd.h: Removed.
4251 * config/i386/obsd.mt: Removed.
4252 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4253 core-aout.o.
4254 (MH_CFLAGS): Add -DYYDEBUG=0.
4255
4256 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4257 i386nbsd_sc_pc_offset on OpenBSD too.
4258
4259 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4260 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4261 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4262 define.
4263 * i386bsd-tdep.c: Include "arch-utils.h".
4264 (i386bsd_aout_in_solib_call_trampoline): New function.
4265 (i386bsd_init_abi): Set in_solib_call_trampoline to
4266 i386bsd_aout_in_solib_call_trampoline.
4267 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4268 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4269
4270 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4271
4272 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4273 (struct obstack, struct bcache): Add opaque declarations.
4274 * Makefile.in (macrotab_h): Update
4275
4276 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4277
4278 * blockframe.c (generic_find_dummy_frame): Change return type to
4279 ``struct regcache''.
4280 (struct dummy_frame): Replace field ``registers'' with regcache, a
4281 struct regcache object.
4282 (generic_find_dummy_frame): Update.
4283 (generic_push_dummy_frame): Update. Use regcache_xfree,
4284 regcache_xmalloc and regcache_cpy.
4285 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4286 regcache_xfree.
4287 (deprecated_generic_find_dummy_frame): Update.
4288 (generic_read_register_dummy): Update. Use
4289 regcache_read_as_address.
4290 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4291 (generic_get_saved_register): Update. Use regcache_read.
4292
4293 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4294
4295 * Makefile.in (objfiles_h): Add $(bcache_h).
4296 * objfiles.h: Include "bcache.h".
4297
4298 * Makefile.in (symtab_h): Remove $(bcache_h).
4299 * symtab.h: Do not include "bcache.h".
4300
4301 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4302
4303 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4304 generic_func_frame_chain_valid.
4305
4306 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4307
4308 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4309 * config/i386/tm-fbsd.h: Likewise.
4310
4311 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4312
4313 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4314 generic_unwind_get_saved_register.
4315
4316 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4317
4318 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4319 * regcache.c (supply_register): Add missing argument to
4320 register_buffer call.
4321
4322 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4323
4324 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4325 Solaris /bin/grep does not not like it. From Peter Schauer.
4326
4327 2002-06-26 Tom Tromey <tromey@redhat.com>
4328
4329 * command.h (add_setshow_cmd): Declare.
4330 (add_setshow_cmd_full): Declare.
4331 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4332 returns void. Use add_setshow_cmd_full.
4333 (add_setshow_cmd_full): New function.
4334 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4335 (add_setshow_boolean_cmd): Likewise.
4336
4337 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4338
4339 * config/vax/tm-vax.h: Protect from multiple inclusion.
4340 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4341 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4342 * config/vax/tm-vaxbsd.h: ...here. New file.
4343 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4344
4345 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4346
4347 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4348 (BELIEVE_PCC_PROMOTION): Remove.
4349 (AP_REGNUM): Move to...
4350 * config/vax/nm-vax.h: ...here.
4351 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4352 (vax_breakpoint_from_pc): New function.
4353 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4354 and gdbarch_believe_pcc_promotion.
4355
4356 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4357
4358 * Makefile.in (vax_tdep_h): Define.
4359 (vax-tdep.o): Use $(vax_tdep_h).
4360 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4361 (vax_dump_tdep): New function.
4362 (_initialize_vax_tdep): Register vax_dump_tdep.
4363 * vax-tdep.h: Include osabi.h.
4364 (struct gdbarch_tdep): New.
4365
4366 2002-06-26 Andrew Cagney <cagney@redhat.com>
4367
4368 * frame.h (deprecated_generic_find_dummy_frame): Rename
4369 generic_find_dummy_frame.
4370 * blockframe.c (generic_find_dummy_frame): Make static.
4371 (deprecated_generic_find_dummy_frame): New function.
4372 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4373 generic_find_dummy_frame with deprecated_find_dummy_frame.
4374 (sh64_nofp_frame_init_saved_regs): Ditto.
4375 (sh_fp_frame_init_saved_regs): Ditto.
4376 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4377 (s390_frame_chain): Ditto.
4378 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4379
4380 2002-06-26 Grace Sainsbury <graces@redhat.com>
4381
4382 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4383 gdbarch vector are at the top.
4384 (NUM_REGS): Remove.
4385 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4386 (FRAME_ARGS_ADDRESS): Remove.
4387 (FRAME_LOCALS_ADDRESS): Remove.
4388 (FRAME_NUM_ARGS): Remove.
4389 (FRAME_ARGS_SKIP): Remove.
4390 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4391 (m68k_gdbarch_init): Add gdbarch initializations for macros
4392 undefined in tm-m68k.h
4393
4394 2002-06-26 Grace Sainsbury <graces@redhat.com>
4395
4396 * monitor.h: Add the function regname to monitor_ops
4397 structure. This way NUM_REGS does not have to be a constant.
4398 * monitor.c (monitor_fetch_register): Added support for regname
4399 function. The function is called if the array regnames is NULL.
4400 (monitor_store_register): Same.
4401 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4402 regnames array.
4403 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4404 cpu32bug_cmds.regname to point to new function.
4405 * abug-rom.c (abug_regname): Same as above.
4406 (init_abug_cmds): Same.
4407 * dbug-rom.c (dbug_regname): Same as above.
4408 (init_dbug_cmds): Same.
4409 * remote-est.c (est_regname): Same.
4410 (init_est_cmds): Same.
4411 * rom68k-rom.c (rom68k_regname): Same.
4412 (init_rom68k_cmds): Same.
4413
4414 2002-06-25 Tom Tromey <tromey@redhat.com>
4415
4416 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4417
4418 2002-06-25 Andrew Cagney <cagney@redhat.com>
4419
4420 * infrun.c (stop_registers): Change variable's type to ``struct
4421 regcache'''.
4422 (xmalloc_inferior_status): Delete function.
4423 (free_inferior_status): Delete function.
4424 (normal_stop): Use regcache_cpy.
4425 (struct inferior_status): Change type of fields ``stop_registers''
4426 and ``registers'' to ``struct regcache''.
4427 (write_inferior_status_register): Use regcache_write.
4428 (save_inferior_status): Instead of calling
4429 xmalloc_inferior_status, allocate the inf_status buffer directly.
4430 Use regcache_dup_no_passthrough and regcache_dup to save the
4431 buffers.
4432 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4433 Replace the stop_registers regcache instead of overriding it. Use
4434 regcache_xfree. Instead of calling free_inferior_status, xfree
4435 the buffer directly.
4436 (discard_inferior_status): Use regcache_xfree. Instead of calling
4437 free_inferior_status, xfree the buffer directly.
4438 (build_infrun): Use regcache_xmalloc.
4439 (_initialize_infrun): Delete redundant call to build_infrun.
4440
4441 * Makefile.in (infcmd.o): Add $(regcache_h).
4442
4443 * infcmd.c: Include "regcache.h".
4444 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4445 obtain the address of `stop_registers' register buffer.
4446 (print_return_value): Ditto.
4447
4448 * inferior.h (struct regcache): Add opaque declaration.
4449 (stop_registers): Change variable's declared type to ``struct
4450 regcache''.
4451
4452 2002-06-24 Tom Tromey <tromey@redhat.com>
4453
4454 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4455 * target.c (initialize_targets): Fixed typo in
4456 trust-readonly-sections `show' documentation.
4457
4458 * main.c: Marked all strings with _().
4459
4460 2002-06-24 Don Howard <dhoward@redhat.com>
4461
4462 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4463 that means max CORE_ADDR+1.
4464 (lookup_mem_region): Ditto.
4465 (mem_info_command): Ditto.
4466
4467 2002-06-24 Grace Sainsbury <graces@redhat.com>
4468
4469 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4470 (REGISTER_BYTES_OK): Remove.
4471 (REGISTER_BYTES): Remove.
4472 (STORE_STRUCT_RETURN): Remove.
4473 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4474 (STORE_RETURN_VALUE): Remove.
4475 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4476 (FRAME_CHAIN): Remove.
4477 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4478 (FRAME_SAVED_PC): Remove.
4479 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4480 (m68k_store_struct_return): Add.
4481 (m68k_deprecated_extract_return_value): Add.
4482 (m68k_deprecated_extract_struct_value_address): Add.
4483 (m68k_store_return_value): Add.
4484 (m68k_frame_chain): Add.
4485 (m68k_frameless_function_invocation): Add.
4486 (m68k_frame_saved_pc): Add.
4487 (m68k_gdbarch_init): added set_gdbarch calls for new
4488 functions and deleted macros.
4489
4490 2002-06-23 Tom Tromey <tromey@redhat.com>
4491
4492 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4493 (ALLDEPFILES): Likewise.
4494 (udiheaders): Removed.
4495 (udip2soc.o): Likewise.
4496 (udi2go32.o): Likewise.
4497 (udr.o): Likewise.
4498 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4499
4500 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4501
4502 * infrun.c (_initialize_infrun): Delete unnecessary call to
4503 build_infrun.
4504
4505 * regcache.h: Update comments describing the regcache_cpy family
4506 of functions.
4507 (regcache_save, regcache_restore): Delete declaration.
4508 (regcache_save_no_passthrough): Delete declaration.
4509 (regcache_restore_no_passthrough): Delete declaration.
4510 * regcache.c (regcache_save): Delete function.
4511 (regcache_save_no_passthrough): Delete function.
4512 (regcache_restore): Delete function.
4513 (regcache_restore_no_passthrough): Delete function.
4514
4515 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4516
4517 * config/m68k/tm-m68k.h: Fix typo.
4518 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4519 (m68k_frame_init_saved_regs): Declare.
4520
4521 2002-06-21 Jim Blandy <jimb@redhat.com>
4522
4523 Remove some vestiges of Harris 88k support.
4524 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4525 register numbering quirk.
4526 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4527 odd symbols occurring in Harris 88k ELF targets.
4528
4529 2002-06-21 Tom Tromey <tromey@redhat.com>
4530
4531 * gdb_locale.h: New file.
4532 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4533 (defs_h): Added gdb_locale.h.
4534 * configure, config.in: Rebuilt.
4535 * configure.in (PACKAGE): Define.
4536 * defs.h: Include gdb_locale.h.
4537 * main.c (captured_main): Call setlocale, bindtextdomain,
4538 textdomain.
4539
4540 2002-06-21 Dave Brolley <brolley@redhat.com>
4541
4542 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4543 * config/frv/frv.mt: New file.
4544 * config/frv/tm-frv.h: New file.
4545 * configure.tgt: Support frv-*-*.
4546 * Makefile.in (frv-tdep.o): New target.
4547 * frv-tdep.c: New file.
4548 * NEWS: Mention frv.
4549
4550 2002-06-21 Dave Brolley <brolley@redhat.com>
4551
4552 * MAINTAINERS: Add self to "Write After Approval" list.
4553
4554 2002-06-21 Grace Sainsbury <graces@redhat.com>
4555
4556 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4557 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4558 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4559 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4560 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4561
4562 * m68k-tdep.c: Include arch-utils.h
4563 (m68k_register_raw_size): Add.
4564 (m68k_register_virtual_size): Add.
4565 (m68k_register_virtual_type): Add.
4566 (m68k_register_name): Add.
4567 (m68k_stack_align): Add.
4568 (m68k_register_byte): Add.
4569 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4570 tm-m68k.h.
4571
4572 2002-06-21 Grace Sainsbury <graces@redhat.com>
4573
4574 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4575 m68k_find_saved_regs.
4576 (m68k_pop_frame): Removed saved_regs structure, and replaced
4577 references to it with frame->saved_regs.
4578 (m68k_gdbarch_init): Added function calls to initialize the
4579 gdbarch structure.
4580 (m68k_fix_call_dummy): Add.
4581 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4582 (CALL_DUMMY): Remove.
4583 (CALL_DUMMY_LENGTH): Remove.
4584 (CALL_DUMMY_START_OFFSET): Remove.
4585 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4586 (FIX_CALL_DUMMY): Remove.
4587 (PUSH_DUMMY_FRAME): Remove.
4588 (POP_FRAME): Remove.
4589
4590 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4591
4592 * parse.c (parse_fprintf): New function used to avoid calls to
4593 fprintf in bison parser generated debug code.
4594 * parser-defs.h: Declaration of new parse_fprintf function.
4595 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4596 Set YYDEBUG to 1 by default.
4597 Set YYFPRINTF as parse_fprintf.
4598
4599 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4600
4601 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4602 encoding anymore.
4603 (pointer_encoding, enum ptr_encoding): New.
4604 (execute_cfa_program): Take care about pointer encoding.
4605 (dwarf2_build_frame_info): Only call parse_frame_info for
4606 .debug_frame and .eh_frame.
4607 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4608 fixed augmentation handling, added relative addressing,
4609 ignore duplicate FDEs. Added comments.
4610 * dwarf2cfi.c: Reindented.
4611
4612 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4613
4614 * event-top.c (command_handler): Don't use space_at_cmd_start
4615 unless there is sbrk() on the host. Assign time and space data
4616 to union fields of the appropriate length.
4617
4618 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4619
4620 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4621 x86_64_register_name. Return type changed to 'const char *'.
4622 (x86_64_register_name2nr): Rename to x86_64_register_number.
4623 (x86_64_gdbarch_init): Update to reflect the change.
4624 * x86-64-tdep.h: Ditto.
4625 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4626 (supply_fpregset): Ditto.
4627
4628 2002-06-19 Andrew Cagney <cagney@redhat.com>
4629
4630 * regcache.h: Update copyright.
4631 (struct regcache, struct gdbarch): Add opaque declarations.
4632 (current_regcache): Declare global variable.
4633 (regcache_read, regcache_write): Add gdbarch parameter.
4634 (regcache_save, regcache_save_no_passthrough)
4635 (regcache_restore, regcache_restore_no_passthrough)
4636 (regcache_dup, regcache_dup_no_passthrough)
4637 (regcache_cpy, regcache_cpy_no_passthrough)
4638 (deprecated_grub_regcache_for_registers)
4639 (deprecated_grub_regcache_for_register_valid)
4640 (regcache_valid_p): Add function declarations.
4641
4642 * regcache.c: Update copyright.
4643 (regcache_descr_handle): New global variable.
4644 (struct regcache_descr): Define.
4645 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4646 (regcache_descr, xfree_regcache_descr): New functions.
4647 (struct regcache): Define.
4648 (regcache_xmalloc, regcache_xfree): New functions.
4649 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4650 (regcache_dup, regcache_dup_no_passthrough): New functions.
4651 (regcache_valid_p, regcache_read_as_address): New functions.
4652 (deprecated_grub_regcache_for_registers): New function.
4653 (deprecated_grub_regcache_for_register_valid): New function.
4654 (current_regcache): New global variable.
4655 (register_buffer): Add regcache parameter. Update calls.
4656 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4657 (read_register_gen, write_register_gen): Update register_buffer
4658 call. Test for legacy_p instead of gdbarch_register_read_p or
4659 gdbarch_register_write_p.
4660 (regcache_collect): Update register_buffer call.
4661 (build_regcache): Rewrite. Use deprecated grub functions.
4662 (regcache_save, regcache_save_no_passthrough): New functions.
4663 (regcache_restore, regcache_restore_no_passthrough): New
4664 functions.
4665 (_initialize_regcache): Create the regcache_data_handle. Swap
4666 current_regcache global variable.
4667
4668 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4669 parameter to regcache_read and regcache_write calls.
4670 (sh4_register_read): Ditto.
4671 (sh64_pseudo_register_read): Ditto.
4672 (sh64_register_read): Ditto.
4673 (sh_pseudo_register_write): Ditto.
4674 (sh4_register_write): Ditto.
4675 (sh64_pseudo_register_write): Ditto.
4676 (sh64_register_write): Ditto.
4677
4678 * defs.h (XCALLOC): Define.
4679
4680 2002-06-19 Grace Sainsbury <graces@redhat.com>
4681
4682 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4683 * m68k-tdep.c (m68k_gdbarch_init): Added.
4684 (m68k_dump_tdep): Added.
4685
4686 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4687
4688 * ada-lang.c (fill_in_ada_prototype): Update comment.
4689
4690 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4691
4692 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4693 MIPS_ABI_LAST.
4694 (mips_abi_string, mips_abi_strings): New.
4695 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4696 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4697 tdep->mips_abi_string. Honor mips_abi_string. Default to
4698 O32 if no ABI is found.
4699 (mips_dump_tdep): Use mips_abi_strings.
4700 (mips_abi_update): New function.
4701 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4702 ``set mips abi'' and ``show mips abi''. Check the size of
4703 mips_abi_strings.
4704
4705 2002-06-19 Andrew Cagney <cagney@redhat.com>
4706
4707 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4708 constant.
4709
4710 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4711
4712 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4713 current frame using only the first stack size adjustment. All
4714 subsequent size adjustments are not considered to be part of
4715 the "static" part of the current frame.
4716 Compute the address of the saved registers relative to the
4717 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4718 in use in this frame.
4719
4720 2002-06-18 Don Howard <dhoward@redhat.com>
4721
4722 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4723 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4724 suggesting this solution.
4725
4726 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4727
4728 * config/romp/xm-rtbsd.h: Delete file.
4729 * config/romp/rtbsd.mh: Delete file.
4730
4731 2002-06-18 Keith Seitz <keiths@redhat.com>
4732
4733 * breakpoint.c (condition_command): Post breakpoint_modify
4734 when a condition is added to an existing breakpoint.
4735 (commands_command): Likewise for commands.
4736 (set_ignore_count): Likewise for ignore counts.
4737 If no tty, do not simply return, still need to send event
4738 notification.
4739 (ignore_command): Only print a newline if the command came
4740 from a tty.
4741 Don't call breakpoints_changed, since this is now properly
4742 handled by set_ignore_count.
4743
4744 2002-06-18 Andrew Cagney <cagney@redhat.com>
4745
4746 * MAINTAINERS: Note that cris-elf target can be compiled with
4747 -Werror.
4748 * cris-tdep.c (cris_register_name): Make return type constant.
4749 (cris_breakpoint_from_pc): Ditto.
4750
4751 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4752
4753 * frame.h (struct frame_info): Change type of context to
4754 'struct context'.
4755
4756 2002-06-17 Andrew Cagney <cagney@redhat.com>
4757
4758 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4759 pointer.
4760 * gdbarch.h, gdbarch.c: Regenerate.
4761 * config/mips/tm-mips.h (mips_register_name): Update.
4762 * i386-tdep.h (i386_register_name): Update.
4763 * mips-tdep.c (mips_register_name): Update
4764 * alpha-tdep.c (alpha_register_name): Update.
4765 * arch-utils.c (legacy_register_name): Update.
4766 * arch-utils.h (legacy_register_name): Update.
4767 * avr-tdep.c (avr_register_name): Update.
4768 * ia64-tdep.c (ia64_register_name): Update.
4769 * i386-tdep.c (i386_register_name): Update.
4770 * sparc-tdep.c (sparc32_register_name): Update.
4771 (sparc64_register_name): Update.
4772 (sparclite_register_name): Update.
4773 (sparclet_register_name): Update.
4774 * sh-tdep.c (sh_generic_register_name): Update.
4775 (sh_sh_register_name): Update.
4776 (sh_sh3_register_name): Update.
4777 (sh_sh3e_register_name): Update.
4778 (sh_sh_dsp_register_name): Update.
4779 (sh_sh3_dsp_register_name): Update.
4780 (sh_sh4_register_name): Update.
4781 (sh_sh64_register_name): Update.
4782 * s390-tdep.c (s390_register_name): Update.
4783 * rs6000-tdep.c (rs6000_register_name): Update.
4784 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4785 (ns32k_register_name_32382): Update.
4786 * d10v-tdep.c (d10v_ts2_register_name): Update.
4787 (d10v_ts3_register_name): Update.
4788 * xstormy16-tdep.c (xstormy16_register_name): Update.
4789 * vax-tdep.c (vax_register_name): Update.
4790 * v850-tdep.c (v850_register_name): Update.
4791 * m68hc11-tdep.c (m68hc11_register_name): Update.
4792 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4793 (am33_register_name): Update.
4794
4795 2002-06-17 Grace Sainsbury <graces@redhat.com>
4796
4797 * m68k-tdep.c: Reindented.
4798
4799 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4800
4801 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4802 list of predefined types.
4803
4804 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4805
4806 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4807 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4808 REGISTER_CONVERT_TO_RAW): Remove defines.
4809 (i386_register_virtual_type, i386_register_convertible,
4810 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4811 Remove prototypes.
4812 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4813 macros mentioned above.
4814
4815 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4816 (i386lynx_saved_pc_after_call): Remove prototype.
4817 * i386ly-tdep.c: Include "i386-tdep.h".
4818 (i386lynx_saved_pc_after_call): Make static. Use
4819 read_memory_nobpt instead of read_memory. Use
4820 read_memory_unsigned_integer instead of read_memory_integer.
4821 (i386lynx_init_abi): New function.
4822 (i386lynx_coff_osabi_sniffer): New function.
4823 (_initialize_i386bsd_tdep): New function.
4824
4825 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4826 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4827 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4828 (i386_fix_call_dummy): Remove prototype.
4829 * i386-tdep.c (i386_call_dummy_words): New variable.
4830 (i386_gdbarch_init): Adjust for removal of the
4831 macros mentioned above.
4832
4833 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4834
4835 * command.h (add_setshow_auto_boolean_cmd): Replace
4836 add_set_auto_boolean_cmd.
4837 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4838 add_set_auto_boolean_cmd.
4839 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4840 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4841 mask-address'' command.
4842 (show_mask_address): Add cmd parameter.
4843 * remote.c (add_packet_config_cmd): Update. Change type of
4844 set_func and show_func to cmd_sfunc_ftype.
4845 (_initialize_remote): Update `set remote Z-packet'
4846 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4847 (show_remote_protocol_e_packet_cmd): Ditto.
4848 (show_remote_protocol_E_packet_cmd): Ditto.
4849 (show_remote_protocol_P_packet_cmd): Ditto.
4850 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4851 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4852 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4853 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4854 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4855 (show_remote_protocol_Z_packet_cmd): Ditto.
4856 (show_remote_protocol_binary_download_cmd): Ditto.
4857 (show_remote_cmd): Pass NULL to all of above.
4858
4859 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4860
4861 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4862 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4863 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4864 POP_FRAME): Remove defines.
4865 (i386_push_arguments, i386_store_struct_return,
4866 i386_extract_return_value, i386_store_return_value,
4867 i386_extract_struct_value_address, i386_push_dummy_frame,
4868 i386_pop_frame): Renove prototypes.
4869 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4870 macros mentioned above.
4871
4872 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4873
4874 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4875 add_set_boolean_cmd.
4876 (add_setshow_cmd): New function.
4877 * command.h (add_setshow_boolean_cmd): Replace
4878 add_set_boolean_cmd.
4879 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4880 and ``set rdiromatzero''.
4881 * maint.c (_initialize_maint_cmds): Update commented out code.
4882 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4883 * target.c (initialize_targets): Update `set
4884 trust-readonly-sections'.
4885 * remote.c (_initialize_remote): Update `set remotebreak'.
4886
4887 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4888
4889 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4890 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4891 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4892 fit into multi-arch framework.
4893 (i386_breakpoint_from_pc): New function.
4894 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4895 above.
4896
4897 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4898 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4899 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4900 (i386_frameless_function_invocation, i386_frame_num_args,
4901 i386_frame_init_saved_regs): Remove prototypes.
4902 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4903 macros mentioned above.
4904
4905 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4906
4907 * cli/cli-decode.c (set_cmd_cfunc): Update.
4908 (set_cmd_sfunc): Update.
4909 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4910 (set_cmd_sfunc, set_cmd_cfunc): Update.
4911 * cli/cli-decode.h: Update.
4912
4913 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4914
4915 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4916 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4917
4918 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4919
4920 * defs.h (auto_boolean): Declare enum.
4921 * command.h (cmd_auto_boolean): Delete enum.
4922 * mips-tdep.c (mask_address_var): Update.
4923 (mips_mask_address_p): Update.
4924 (show_mask_address): Update.
4925 * remote.c (struct packet_config): Update.
4926 (update_packet_config): Update.
4927 (show_packet_config_cmd): Update.
4928 (packet_ok): Update.
4929 (add_packet_config_cmd): Update.
4930 (_initialize_remote):
4931 * command.h: Update.
4932 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4933 (do_setshow_command): Update.
4934 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4935 * cli/cli-decode.h: Update.
4936
4937 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4938
4939 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4940 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4941 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4942 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4943 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4944 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4945
4946 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4947 list of DJGPP COFF targets.
4948
4949 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4950 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4951 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4952 (FP0_REGNUM): Remove define.
4953 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4954 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4955 (i386_register_virtual_size): Remove protoype.
4956 * i386-tdep.c (i386_register_virtual_size): Removed.
4957 (i386_extract_return_value, i386_store_return_value): Use
4958 FP0_REGNUM instead of NUM_FREGS to determine whether the
4959 floating-point registers are available.
4960 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4961 Adjust for removal of macros mentioned above.
4962
4963 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4964
4965 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4966 comments.
4967 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4968 Remove prototypes.
4969 (supply_gregset, fill_gregset): Remove use of register keyword and
4970 remove declaration for regmap. Use I386_NUM_GREGS instead of
4971 NUM_REGS and NUM_FREGS.
4972 (FPREGSET_FSAVE_OFFSET): Remove.
4973 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4974 NUM_FREGS to determine whether the floating-point registers are
4975 available.
4976
4977 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4978 gnu_store_registers): Replace usage of NUM_GREGS with
4979 I386_NUM_GREGS.
4980
4981 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4982 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4983 usage of NUM_GREGS with I386_NUM_GREGS.
4984
4985 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4986
4987 * i386bsd-nat.c: Include "i386-tdep.h".
4988 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4989 I386_NUM_GREGS.
4990
4991 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4992 and associated comment. They no longer make any sense, since we
4993 don't use this file anymore on Linux.
4994
4995 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4996 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4997 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4998 elements in these arrays.
4999 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5000 MAX_NUM_REGS.
5001
5002 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5003
5004 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5005 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5006
5007 2002-06-14 Andrew Cagney <cagney@redhat.com>
5008
5009 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5010 EXTRACT_RETURN_VALUE.
5011 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5012 EXTRACT_STRUCT_VALUE_ADDRESS.
5013 * gdbarch.h, gdbarch.c: Regenerate.
5014
5015 * values.c (value_being_returned): Handle
5016 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5017 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5018
5019 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5020 * arm-tdep.c (arm_gdbarch_init): Update.
5021 * avr-tdep.c (avr_gdbarch_init): Update.
5022 * cris-tdep.c (cris_gdbarch_init): Update.
5023 * d10v-tdep.c (d10v_gdbarch_init): Update.
5024 * ia64-tdep.c (ia64_gdbarch_init): Update.
5025 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5026 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5027 * s390-tdep.c (s390_gdbarch_init): Update.
5028 * sh-tdep.c (sh_gdbarch_init): Update.
5029 * s390-tdep.c (s390_gdbarch_init): Update.
5030 * sparc-tdep.c (sparc_gdbarch_init): Update.
5031 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5032 * v850-tdep.c (v850_gdbarch_init): Update.
5033 * vax-tdep.c (vax_gdbarch_init): Update.
5034 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5036
5037 * config/arc/tm-arc.h: Update.
5038 * config/d30v/tm-d30v.h: Update.
5039 * config/fr30/tm-fr30.h: Update.
5040 * config/h8300/tm-h8300.h: Update.
5041 * config/h8500/tm-h8500.h: Update.
5042 * config/i386/tm-i386.h: Update.
5043 * config/i386/tm-ptx.h: Update.
5044 * config/i386/tm-symmetry.h: Update.
5045 * config/i960/tm-i960.h: Update.
5046 * config/m32r/tm-m32r.h: Update.
5047 * config/m68k/tm-delta68.h: Update.
5048 * config/m68k/tm-linux.h: Update.
5049 * config/m68k/tm-m68k.h: Update.
5050 * config/m88k/tm-m88k.h: Update.
5051 * config/mcore/tm-mcore.h: Update.
5052 * config/mips/tm-mips.h: Update.
5053 * config/mn10200/tm-mn10200.h: Update.
5054 * config/pa/tm-hppa.h: Update.
5055 * config/pa/tm-hppa64.h: Update.
5056 * config/sparc/tm-sp64.h: Update.
5057 * config/sparc/tm-sparc.h: Update.
5058 * config/sparc/tm-sparclet.h: Update.
5059 * config/z8k/tm-z8k.h: Update.
5060
5061 2002-06-14 Andrew Cagney <cagney@redhat.com>
5062
5063 * Makefile.in (i386_linux_tdep_h): Define.
5064 (i386_tdep_h, i387_tdep_h): Define.
5065 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5066 $(i386_tdep_h) and $(i387_tdep_h).
5067 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5068
5069 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5070
5071 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5072 Already covered by the default.
5073
5074 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5075 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5076 (i386_gdbarch_init): Initialize long_double_format and long_double
5077 bit.
5078
5079 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5080 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5081 Move these to ...
5082 * config/i386/i386sol2.mh: ... here.
5083 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5084 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5085 (SIGCONTEXT_PC_OFFSET): Remove define.
5086 (IN_SIGTRAMP): Remove define.
5087 * i386-sol2-tdep.c: New file.
5088
5089 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5090 * config/i386/tm-i386nw.h: Removed.
5091
5092 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5093 USE_STRUCT_CONVENTION): Remove defines.
5094 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5095 (get_longjmp_target): Remove prototype.
5096 (IN_SIGTRAMP): Remove define.
5097 (i386bsd_in_sigtramp): Remove prototype.
5098 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5099 function. Update comment accordingly
5100 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5101 (FRAME_SAVED_PC): Remove define.
5102 (i386bsd_frame_saved_pc): Remove prototype.
5103 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5104 GET_LONGJMP_TARGET): Remove defines.
5105 (get_longjmp_target): Remove prototype.
5106 (IN_SIGTRAMP): Remove define.
5107 (i386bsd_in_sigtramp): Remove prototype.
5108 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5109 function. Update comment accordingly
5110 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5111 (FRAME_SAVED_PC): Remove define.
5112 (i386bsd_frame_saved_pc): Remove prototype.
5113 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5114 Remove prototype.
5115 (USE_STRUCT_CONVENTION): Remove prototype.
5116 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5117 declaration.
5118 (_initialize_i386bsd_nat): Revise logic to determine some
5119 constants at compile time when compiling a native GDB. Warn if
5120 things don't match up with what we expect.
5121 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5122 Remove variables.
5123 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5124 to use date stored in `struct gdbarch_tdep'.
5125 (i386bsd_sigcontext_offset): Remove varaible.
5126 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5127 stored in `struct gdbarch_tdep'.
5128 (i386bsd_frame_saved_pc): Make static.
5129 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5130 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5131 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5132 i386fbsd4_sc_pc_offset): New variables.
5133 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5134 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5135 functions.
5136 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5137 functions.
5138 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5139 Modify the value of i386fbsd_sigtramp_start and
5140 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5141 i386fbsd_sigtramp_end.
5142 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5143 function.
5144
5145 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5146 define to i386-linux-tdep.h.
5147 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5148 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5149 defines.
5150 (i386_linux_register_name, i386_linux_register_byte,
5151 i386_linux_register_raw_size): Remove prototypes.
5152 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5153 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5154 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5155 TARGET_WRITE_PC): Remove defines.
5156 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5157 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5158 i386_linux_write_pc): Remove prototypes.
5159 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5160 (get_longjmp_target): Remove prototype.
5161 * i386-linux-tdep.h: New file.
5162 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5163 * i386-linux-tdep.c: Include "i386-tdep.h" and
5164 "i386-linux-tdep.h".
5165 (i386_linux_register_name, i386_linux_register_byte,
5166 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5167 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5168 Make static.
5169 (i386_linux_init_abi): New function.
5170 (_initialize_i386_linux_tdep): New function.
5171
5172 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5173 (i386_saved_pc_after_call): Remove prototype.
5174 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5175 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5176 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5177 (i386_register_name, i386_stab_reg_to_regnum,
5178 i386_dwarf_reg_to_regnum): Remove prototypes.
5179 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5180 SIZEOF_SSE_REGS): Remove defines.
5181 (REGISTER_BYTES): Remove define.
5182 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5183 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5184 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5185 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5186 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5187 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5188 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5189 (get_longjmp_target): Remove prototype.
5190 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5191 (sigtramp_saved_pc): Remove define.
5192 (i386v4_sigtramp_saved_pc): Remove prototype.
5193 * config/i386/tm-go32.h (FRAME_CHAIN,
5194 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5195 (i386go32_frame_saved_pc): Remove prototype.
5196 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5197 (get_longjmp_target): Remove prototype.
5198 * i386-tdep.h: Include "osabi.h".
5199 (enum i386_abi): Removed.
5200 (enum struct_return): New enum.
5201 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5202 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5203 sc_pc_offset members.
5204 (i386_gdbarch_register_os_abi): Remove prototype.
5205 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5206 I386_SSE_NUM_REGS): New defines.
5207 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5208 I386_SSE_SIZEOF_REGS): New defines.
5209 (i386_register_name, i386_register_byte, i386_register_raw_size):
5210 New prototypes.
5211 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5212 (i386bsd_sigtramp_saved_pc): New prototype.
5213 * i386-tdep.c: Don't include "elf-bfd.h".
5214 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5215 i386_frame_chain, i386_saved_pc_after_call): Make static.
5216 (i386_frame_saved_pc): Rewrite to call architecture dependent
5217 function to deal with signal handlers. Make static.
5218 (i386go32_frame_saved_pc): Removed.
5219 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5220 Removed.
5221 (i386_get_longjmp_target): New function.
5222 (default_struct_convention, pcc_struct_convention,
5223 reg_struct_convention, valid_conventions, struct_convention): New
5224 variables.
5225 (i386_use_struct_convention): New function.
5226 (i386v4_sigtramp_saved_pc): Renamed to
5227 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5228 (i386_pc_in_sigtramp): New function.
5229 (i386_abi_names): Removed.
5230 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5231 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5232 Removed.
5233 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5234 i386_gdbarch_register_os_abi): Removed.
5235 (struct i386_abi_handler): Removed.
5236 (i386_abi_handler_list): Removed.
5237 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5238 functions.
5239 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5240 i386_nw_init_abi): New functions.
5241 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5242 Use set_gdbarch_xxx() calls instead of relying on macros for a
5243 number of calls.
5244 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5245 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5246 Register the various architecture variants defined in this file.
5247
5248 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5249
5250 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5251 (struct main_type): Remove arg_types member. Update comments for
5252 struct field.
5253 (TYPE_ARG_TYPES): Remove.
5254 (TYPE_FN_FIELD_ARGS): Update.
5255 (smash_to_method_type): Update prototype.
5256
5257 * c-typeprint.c (cp_type_print_method_args): Take method type
5258 instead of argument list. Use new argument layout. Simplify.
5259 (c_type_print_args): Use new argument layout. Simplify.
5260 (c_type_print_base): Update call to cp_type_print_method_args.
5261 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5262 argument; use die->type instead. Update call to
5263 smash_to_method_type.
5264 (read_structure_scope): Update call to dwarf2_add_member_fn.
5265 * gdbtypes.c (allocate_stub_method): Update comment.
5266 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5267 Use new argument layout.
5268 (check_stub_method): Use new argument layout. Don't count
5269 void as an argument.
5270 (print_arg_types): Update comments. Use new argument layout.
5271 (recursive_dump_type): Don't print arg_types member.
5272 * hpread.c (hpread_read_struct_type): Use new argument layout.
5273 (fixup_class_method_type): Likewise.
5274 (hpread_type_lookup): Likewise.
5275 * stabsread.c (read_type): Update calls to read_args and
5276 smash_to_method_type.
5277 (read_args): Use new argument layout. Simplify.
5278 * valops.c (typecmp): Use new argument layout. Update parameters
5279 and comments. Simplify.
5280 (hand_function_call): Use new argument layout.
5281 (search_struct_method): Update call to typecmp.
5282 (find_overload_match): Use new argument layout.
5283
5284 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5285
5286 * NEWS: Mention multithreaded debug support for gdbserver.
5287
5288 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5289
5290 * MAINTAINERS: Mention NEWS.
5291
5292 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5293
5294 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5295 (struct mips_objfile_private, compare_pdr_entries): New.
5296 (non_heuristic_proc_desc): Read the ".pdr" section if it
5297 is present.
5298
5299 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5300
5301 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5302 (arm_debug): New static variable.
5303 (_initialize_arm_tdep): Add ``set debug arm'' command.
5304
5305 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5306
5307 * Makefile.in (sim_arm_h): Define.
5308 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5309 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5310 (arm_register_sim_regno): New function, map an internal REGNUM
5311 onto a simulator register number.
5312 (arm_gdbarch_init): Set register_sim_regno.
5313
5314 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5315
5316 * MAINTAINERS: Add self.
5317
5318 2002-06-11 Jim Blandy <jimb@redhat.com>
5319
5320 * source.c (source_info): Mention whether the symtab has
5321 information about preprocessor macros.
5322
5323 Call the command `info macro', not `show macro'.
5324 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5325 Fix error message.
5326 (_initialize_macrocmd): Register `info_macro_command' in
5327 `infolist', not `showlist'.
5328
5329 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5330
5331 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5332 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5333 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5334 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5335 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5336 unconditionally.
5337 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5338 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5339 (_initialize_mips_tdep): Remove dead code.
5340 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5341 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5342 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5343 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5344 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5345 MIPS_LAST_FP_ARG_REGNUM): Remove.
5346
5347 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5348
5349 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5350 (unwind_tmp_obstack_free, parse_frame_info)
5351 (update_context, cfi_read_fp, cfi_write_fp)
5352 (cfi_frame_chain, cfi_init_extra_frame_info)
5353 (cfi_virtual_frame_pointer): Use the above function.
5354 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5355
5356 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5357
5358 * v850-tdep.c (v850_type_is_scalar): New function.
5359 (v850_use_struct_convention): Match current gcc implementation
5360 as close as possible.
5361 (v850_push_arguments): Fix stack_offset handling. Don't write
5362 struct_addr into register. This is done by v850_store_struct_return.
5363 (v850_extract_return_value): Care for structs.
5364 (v850_store_return_value): Ditto.
5365 (v850_store_struct_return): Actually write address.
5366
5367 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5368
5369 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5370 without debug information too.
5371
5372 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5373
5374 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5375 Make multi-arch pure.
5376 * gdbarch.h, gdbarch.c: Re-generate.
5377 * arm-tdep.c (arm_print_float_info): Update.
5378 * arch-utils.h (default_print_float_info): Update.
5379 * arch-utils.c (default_print_float_info): Update.
5380 * infcmd.c (float_info): Update call.
5381
5382 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5383
5384 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5385 the front of the initialize list.
5386
5387 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5388
5389 * infrun.c (struct inferior_status): Replace fields
5390 selected_frame_address and selected_level with field
5391 selected_frame_id.
5392 (save_inferior_status): Update. Use get_frame_id.
5393 (struct restore_selected_frame_args): Delete.
5394 (restore_selected_frame): Update. Use frame_find_by_id.
5395 (restore_inferior_status): Update.
5396
5397 * breakpoint.h (struct breakpoint): Change type of
5398 watchpoint_frame to frame_id.
5399 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5400 call to get_current_frame.
5401 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5402 get_current_frame.
5403 (watchpoint_check): Use frame_find_by_id.
5404
5405 * frame.h (record_selected_frame): Delete declaration.
5406 * stack.c (record_selected_frame): Delete function.
5407
5408 * frame.h (struct frame_id): Define.
5409 (get_frame_id): Declare.
5410 (frame_find_by_id): Declare.
5411 * frame.c (frame_find_by_id): New function.
5412 (get_frame_id): New function.
5413
5414 2002-06-10 Andrey Volkov <avolkov@transas.com>
5415
5416 * ser-e7kpc.c: Fix duplicated define and call of
5417 _initialize_ser_e7000pc
5418
5419 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5420
5421 * signals/signals.c (target_signal_from_host): Fix #ifdef
5422 SIGRTMIN case.
5423 (do_target_signal_to_host): Likewise.
5424
5425 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5426
5427 * mips-tdep.c (mips_find_abi_section): New function.
5428 (mips_gdbarch_init): Call it.
5429
5430 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5431
5432 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5433 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5434 after Andrew's 2002-06-08 gdbarch change.
5435
5436 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5437
5438 * i386-linux-nat.c (suppy_gregset): Don't supply
5439 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5440 register cache.
5441 (fill_gregset): Don't fetch it under the same circumstances.
5442
5443 2002-06-09 Andrew Cagney <cagney@redhat.com>
5444
5445 * Makefile.in (callback_h): Define.
5446 (remote_sim_h): Update path to remote-sim.h.
5447 (remote-rdp.o): Add $(callback_h).
5448 (remote-sim.o): Use $(callback_h).
5449 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5450 * remote-rdp.c: Include "gdb/callback.h".
5451
5452 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5453
5454 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5455 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5456
5457 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5458
5459 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5460 * rdi-share/serpardr.c: Ditto.
5461 * rdi-share/unixcomm.c: Ditto.
5462 * rdi-share/serdrv.c: Ditto.
5463 * rdi-share/hostchan.h: Ditto.
5464 * rdi-share/hostchan.c: Ditto.
5465 * rdi-share/host.h: Ditto.
5466 * rdi-share/devsw.c: Ditto.
5467
5468 * objfiles.h: Change type of obj_private to void pointer.
5469 * pa64solib.c: Update copyright. Don't include "assert.h", use
5470 strcmp instead of STREQ, use LONGEST, do not use PTR
5471 * somsolib.c: Ditto.
5472
5473 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5474 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5475 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5476
5477 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5478
5479 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5480 (default_get_saved_register): Delete function.
5481 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5482 generic_unwind_get_saved_register.
5483 * gdbarch.h, gdbarch.c: Re-generate.
5484
5485 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5486
5487 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5488 generic_func_frame_chain_valid.
5489 * gdbarch.h, gdbarch.c: Re-generate.
5490 * blockframe.c (generic_func_frame_chain_valid): Only check
5491 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5492 passing FP to PC_IN_CALL_DUMMY.
5493 Fix PR gdb/360.
5494
5495 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5496
5497 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5498 (register_gdbarch_data): Initialize init_p.
5499 (gdbarch_data): Initialize data pointer using the init function.
5500 (init_gdbarch_data): Delete function.
5501 (gdbarch_update_p): Update.
5502 (initialize_non_multiarch): Update.
5503 (struct gdbarch): Add field initialized_p.
5504 * gdbarch.h, gdbarch.c: Re-generate.
5505
5506 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5507
5508 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5509 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5510 better do the things actually here.
5511 * x86-64-tdep.c (x86_64_register_name2nr): New.
5512 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5513 (x86_64_gdbarch_init): Respect the above change.
5514 * x86-64-tdep.h (x86_64_register_name2nr)
5515 (x86_64_register_nr2name): Add prototypes.
5516 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5517
5518 2002-06-06 Michael Snyder <msnyder@redhat.com>
5519
5520 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5521 Delete extra braces and re-indent.
5522 (d10v_store_return_value): Char return values
5523 must be shifted over by one byte in R0.
5524 (d10v_extract_return_value): Delete extra braces, re-indent.
5525
5526 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5527
5528 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5529 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5530 (d10v_integer_to_address): Rewrite.
5531 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5532 the d10v specific functions which take care of converting to the
5533 correct space.
5534
5535 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5536
5537 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5538 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5539
5540 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5541
5542 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5543 includes.
5544 * config/tm-linux.h: Ditto.
5545 * config/alpha/tm-alphalinux.h: Ditto.
5546 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5547 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5548 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5549 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5550 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5551 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5552 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5553 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5554 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5555 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5556 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5557 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5558 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5559 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5560 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5561 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5562 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5563 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5564 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5565 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5566 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5567 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5568 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5569 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5570 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5571 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5572 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5573 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5574 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5575 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5576 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5577 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5578 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5579 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5580 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5581 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5582 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5583
5584 2002-05-04 Aidan Skinner <aidan@velvet.net>
5585
5586 * ada-exp.tab.c: New file
5587 * ada-exp.y: New file
5588 * ada-lang.c: New file
5589 * ada-lang.h: New file
5590 * ada-lex.c: New file
5591 * ada-lex.l: New file
5592 * ada-tasks.c: New file
5593 * ada-typeprint.c: New file
5594 * ada-valprint.c: New file
5595
5596 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5597
5598 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5599 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5600
5601 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5602
5603 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5604 insetead of ppc-linux-tdep.o.
5605 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5606 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5607
5608 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5609
5610 2002-05-07 Christian Groessler <chris@groessler.org>
5611 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5612 bit register contents for little endian hosts.
5613
5614 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5615
5616 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5617 any maintainer.
5618
5619 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5620
5621 * gdbarch.h: Regenerate.
5622
5623 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5624
5625 * MAINTAINERS: Add everyone to write-after-approval list.
5626
5627 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5628
5629 * stack.c (frame_info): Use frame_register_unwind instead of
5630 saved_regs. Mention when the SP is on the stack or in a register.
5631
5632 * frame.h (frame_register_unwind_ftype): Define. Document.
5633 (struct frame_info): Add field register_unwind and
5634 register_unwind_cache.
5635 (frame_register_unwind): Declare.
5636 (generic_unwind_get_saved_register): Declare.
5637
5638 * frame.c (frame_register_unwind): New function.
5639 (generic_unwind_get_saved_register): New function.
5640
5641 * blockframe.c (generic_call_dummy_register_unwind): New function.
5642 (frame_saved_regs_register_unwind): New function.
5643 (set_unwind_by_pc): New function.
5644 (create_new_frame): New function.
5645 (get_prev_frame): New function.
5646
5647 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5648
5649 * a29k-share/: Delete directory.
5650 * remote-vx29k.c: Delete file.
5651
5652 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5653
5654 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5655 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5656
5657 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5658
5659 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5660 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5661 (sparc64nbsd-nat.o)
5662 (sparcnbsd-nat.o)
5663 (sparcnbsd-tdep.o): New dependency lists.
5664 * NEWS: Note new UltraSPARC NetBSD native configuration.
5665 * configure.host (sparc64-*-netbsd*): New host.
5666 * configure.tgt (sparc-*-netbsdelf*)
5667 (sparc-*-netbsd*): Set gdb_target to nbsd.
5668 (sparc64-*-netbsd*): New target.
5669 * sparc64nbsd-nat.c: New file.
5670 * sparcnbsd-nat.c: New file.
5671 * sparcnbsd-tdep.c: New file.
5672 * sparcnbsd-tdep.h: New file.
5673 * config/sparc/nbsd.mt: New file.
5674 * config/sparc/nbsd64.mh: New file.
5675 * config/sparc/nbsd64.mt: New file.
5676 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5677 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5678 (HOST_IPC): Remove.
5679 * config/sparc/nbsdaout.mt: Remove.
5680 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5681 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5682 (HOST_IPC): Remove.
5683 * config/sparc/nbsdelf.mt: Remove.
5684 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5685 sparc-nat.c compatiblity defines.
5686 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5687 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5688 * config/sparc/tm-nbsd64.h: New file.
5689 * config/sparc/tm-nbsdaout.h: Remove.
5690 * config/sparc/xm-nbsd.h: Remove.
5691
5692 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5693
5694 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5695 * sparc-tdep.c: Include osabi.h.
5696 (gdbarch_tdep): Add osabi member.
5697 (_initialize_sparc_tdep): Use gdbarch_register.
5698 (sparc_gdbarch_init): Use generic OS ABI framework.
5699 (sparc_dump_tdep): New function.
5700
5701 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5702
5703 * corefile.c (do_captured_read_memory_integer): Return non-zero
5704 result.
5705 (safe_read_memory_integer): Copy result of memory read when
5706 status is non-zero. Also, add comments.
5707
5708 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5709
5710 * Makefile.in (ppc_tdep_h): Define.
5711 (ppc-linux-nat.o)
5712 (ppc-linux-tdep.o)
5713 (rs6000-tdep.o): Use $(ppc_tdep_h).
5714 (ppc-sysv-tdep.o)
5715 (ppcnbsd-nat.o)
5716 (ppcnbsd-tdep.o): New dependency lists.
5717 * ppc-tdep.h: Use generic OS ABI framework.
5718 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5719 (ppc_linux_init_abi): New functions.
5720 (ppc_sysv_abi_broken_use_struct_convention)
5721 (ppc_sysv_abi_use_struct_convention)
5722 (ppc_sysv_abi_push_arguments): Move to...
5723 * ppc-sysv-tdep.c: ...here.
5724 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5725 * rs6000-tdep.c (process_note_abi_tag_sections)
5726 (get_elfosabi): Remove.
5727 (rs6000_gdbarch_init): Use generic OS ABI framework.
5728 (rs6000_dump_tdep): New function.
5729 (_initialize_rs6000_tdep): Use gdbarch_register.
5730 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5731 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5732 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5733 of ppc-linux-tdep.o.
5734 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5735 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5736 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5737 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5738 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5739 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5740
5741 2002-05-29 Jim Blandy <jimb@redhat.com>
5742
5743 * macroscope.c (default_macro_scope): Put `void' in empty argument
5744 list.
5745
5746 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5747
5748 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5749 * arch-utils.c: Include "sim-regno.h".
5750 * gdbarch.sh: Don't include "sim-regno.h".
5751 * gdbarch.h, gdbarch.c: Regenerate.
5752 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5753 here.
5754 * arch-utils.h (legacy_register_sim_regno): To here.
5755 * remote-sim.c (legacy_register_sim_regno): Move function from
5756 here.
5757 * arch-utils.c (legacy_register_sim_regno): To here.
5758
5759 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5760
5761 * sim-regno.h: New file.
5762 * Makefile.in (sim_regno_h): Define.
5763 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5764 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5765 (legacy_register_sim_regno): New function.
5766 (one2one_register_sim_regno): New function.
5767 (gdbsim_fetch_register): Rewrite.
5768 (gdbsim_store_register): Only store a register when
5769 REGISTER_SIM_REGNO is valid.
5770 * d10v-tdep.c: Include "sim-regno.h".
5771 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5772 (d10v_ts3_register_sim_regno): Ditto.
5773 * gdbarch.sh: Include "sim-regno.h".
5774 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5775 * gdbarch.h, gdbarch.c: Regenerate.
5776 * arch-utils.h (default_register_sim_regno): Delete declaration.
5777 * arch-utils.c (default_register_sim_regno): Delete function.
5778
5779 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5780
5781 * ppcnbsd-nat.c: Rewrite.
5782 * ppcnbsd-tdep.c: New file.
5783 * ppcnbsd-tdep.h: New file.
5784 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5785 solib.o, and solib-svr4.o.
5786 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5787 nbsd-tdep.o, and corelow.o.
5788
5789 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5790
5791 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5792 `tr' and `sed'. Mention that `broken' targets are not expected to
5793 build.
5794
5795 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5796
5797 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5798 Let PC point right after the prologue before looking up symbols.
5799
5800 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5801
5802 * i386-tdep.c (i386_register_virtual_type): Return
5803 builtin_type_vec128i for SSE registers.
5804
5805 * gdbtypes.h (builtin_type_vec128i): Declare.
5806
5807 * gdbtypes.c (build_builtin_type_vec128i): New function.
5808 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5809 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5810 (build_gdbtypes): Initialize new builtin vector types.
5811 (_initialize_gdbtypes): Register new vector types with gdbarch.
5812
5813 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5814
5815 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5816 since it has been multi-arch'd.
5817 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5818 Move Alpha and VAX multi-arch news entries to same section
5819 as other multi-arch news.
5820
5821 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5822
5823 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5824 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5825 static. Rename some register numbers to put them in ns32k-tdep
5826 private namespace.
5827 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5828 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5829 functions.
5830 (_initialize_ns32k_tdep): Use gdbarch_register.
5831 * ns32k-tdep.h: New file.
5832 * ns32knbsd-tdep.c: New file.
5833 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5834 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5835 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5836 REGISTER_BYTES, REGISTER_BYTE): Remove.
5837 * config/ns32k/tm-ns32k.h: New file.
5838 * config/ns32k/tm-umax.h: Remove.
5839
5840 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5841
5842 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5843 ns32k_store_struct_return, ns32k_extract_return_value,
5844 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5845 functions.
5846 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5847 ns32k_saved_pc_after_call.
5848 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5849 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5850 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5851 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5852 ns32k_extract_struct_value_address.
5853
5854 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5855
5856 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5857 ns32k_fix_call_dummy): New.
5858 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5859 ns32k_call_dummy_words.
5860 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5861 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5862 CALL_DUMMY_NARGS): Remove.
5863 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5864
5865 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5866
5867 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5868 ns32k_frame_saved_pc, ns32k_frame_args_address,
5869 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5870 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5871 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5872 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5873 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5874 (BREAKPOINT): Remove..
5875 (FRAME_CHAIN): Define as ns32k_frame_chain.
5876 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5877 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5878 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5879 (FRAME_FIND_SAVED_REGS): Remove.
5880 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5881 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5882 (POP_FRAME): Define as ns32k_pop_frame.
5883
5884 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5885
5886 * ns32k-tdep.c (ns32k_register_byte_32082,
5887 ns32k_register_byte_32382, ns32k_register_raw_size,
5888 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5889 functions.
5890 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5891 ns32k_register_byte_32382.
5892 * config/ns32k/tm-umax.h: Update copyright years.
5893 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5894 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5895 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5896 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5897 (ns32k_get_enter_addr): Fix prototype.
5898
5899 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5900
5901 * ns32k-tdep.c: Update copyright years.
5902 (ns32k_register_name_32082): New function.
5903 (ns32k_register_name_32382): Ditto.
5904 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5905 (REGISTER_NAME): Define as ns32k_register_name_32382.
5906 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5907 (REGISTER_NAME): Define as ns32k_register_name_32082.
5908
5909 2002-05-24 Jim Blandy <jimb@redhat.com>
5910
5911 * dwarf2read.c (free_line_header): Use xfree, not free.
5912
5913 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5914
5915 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5916 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5917
5918 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5919
5920 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5921
5922 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5923
5924 From Ross Alexander at NEC Europe:
5925 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5926
5927 2002-05-23 Michael Snyder <msnyder@redhat.com>
5928
5929 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5930 for input, rather than parse_and_eval_address.
5931
5932 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5933
5934 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5935 * Makefile.in (sim_d10v_h): Update definition.
5936
5937 2002-05-24 Andrew Cagney <cagney@redhat.com>
5938
5939 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5940 change `2002-05-22 Michael Snyder' below.
5941 (d10v_push_arguments): Ditto.
5942 (d10v_extract_return_value): Ditto.
5943
5944 2002-05-23 Jim Blandy <jimb@redhat.com>
5945
5946 * macrotab.c (check_for_redefinition): Don't complain if the new
5947 definition is the same as the previous one. Take more arguments
5948 to allow the comparison.
5949 (macro_define_object, macro_define_function): Pass more arguments
5950 to check_for_redefinition.
5951
5952 2002-05-22 Michael Snyder <msnyder@redhat.com>
5953
5954 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5955 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5956 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5957 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5958 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5959 Add a temp variable to save a call (and a memory read).
5960 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5961 if possible (so that PC_IN_CALL_DUMMY will work).
5962
5963 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5964
5965 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5966
5967 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5968
5969 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5970 fde->cie_ptr.
5971 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5972 (dwarf2_build_frame_info): Add offset to fde->initial_location
5973 so that frames of shared libraries are mapped correctly.
5974 (execute_stack_op): Change type of 'result' from ULONGEST to
5975 CORE_ADDR.
5976
5977 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5978
5979 * config/alpha/tm-nbsd.h: Include solib.h.
5980
5981 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5982
5983 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5984 assumptions about the host's byte order.
5985
5986 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5987
5988 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5989 to dependency list.
5990 * alphanbsd-tdep.c: Include solib-svr4.h.
5991 * shnbsd-tdep.c: Ditto.
5992
5993 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5994
5995 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5996 nbsd-tdep.h to dependency list.
5997 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5998 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5999 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6000 nbsdaout.mh and nbsdelf.mh consistently.
6001 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6002 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6003 nbsdaout.mt and nbsdelf.mh consistently.
6004 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6005 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6006 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6007 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6008 a.out shared library stuff from here...
6009 * config/nm-nbsdaout.h: ...to here.
6010 * config/tm-nbsd.h: Remove.
6011 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6012 * config/arm/nbsd.mh: Remove.
6013 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6014 nbsd-tdep.o.
6015 * config/arm/nbsdaout.mh: New file.
6016 * config/arm/nbsdelf.mh: New file.
6017 * config/arm/nm-nbsdaout.h: New file.
6018 * config/i386/nbsd.mh: Remove.
6019 * config/i386/nbsd.mt: Remove.
6020 * config/i386/nbsdaout.mh: New file.
6021 * config/i386/nbsdaout.mt: New file.
6022 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6023 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6024 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6025 i386_register_u_addr): Remove.
6026 * config/i386/nm-nbsdaout.h: New file.
6027 * config/i386/nm-nbsdelf.h: Remove.
6028 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6029 (USE_STRUCT_CONVENTION): Remove.
6030 * config/i386/tm-nbsdaout.h: New file.
6031 * config/i386/tm-nbsdelf.h: Remove.
6032 * config/m68k/nbsd.mh: Remove.
6033 * config/m68k/nbsd.mt: Remove.
6034 * config/m68k/nbsdaout.mh: New file.
6035 * config/m68k/nbsdaout.mt: New file.
6036 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6037 * config/m68k/nm-nbsdaout.h: New file.
6038 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6039 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6040 * config/ns32k/nbsd.mh: Remove.
6041 * config/ns32k/nbsd.mt: Remove.
6042 * config/ns32k/nbsdaout.mh: New file.
6043 * config/ns32k/nbsdaout.mt: New file.
6044 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6045 * config/ns32k/nm-nbsdaout.h: New file.
6046 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6047 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6048 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6049 (SVR4_SHARED_LIBS): Remove.
6050 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6051 * config/sparc/nbsd.mh: Remove.
6052 * config/sparc/nbsd.mt: Remove.
6053 * config/sparc/nbsdaout.mh: New file.
6054 * config/sparc/nbsdaout.mt: New file.
6055 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6056 * config/sparc/nbsdelf.mt: New file.
6057 * config/sparc/nm-nbsdaout.h: New file.
6058 * config/sparc/nm-nbsdelf.h: Remove.
6059 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6060 * config/sparc/tm-nbsdaout.h: New file.
6061
6062 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6063
6064 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6065 mipsnbsd-tdep.c
6066 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6067
6068 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6069
6070 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6071 shnbsd-nat.c.
6072 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6073
6074 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6075
6076 * NEWS: Note new MIPS NetBSD native configuration.
6077 * configure.host (mips*-*-netbsd*): New host.
6078 * configure.tgt (mips*-*-netbsd*): New target.
6079 * mipsnbsd-nat.c: New file.
6080 * mipsnbsd-tdep.c: New file.
6081 * mipsnbsd-tdep.h: New file.
6082 * config/mips/nbsd.mh: New file.
6083 * config/mips/nbsd.mt: New file.
6084 * config/mips/nm-nbsd.h: New file.
6085 * config/mips/tm-nbsd.h: New file.
6086
6087 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6088
6089 * Makefile.in (SFILES): Add osabi.c.
6090 (COMMON_OBS): Add osabi.o.
6091 (osabi.o): New dependency list.
6092 * osabi.c: New file.
6093 * osabi.h: New file.
6094 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6095
6096 * Makefile.in (alpha_tdep_h): Define and use instead of
6097 alpha-tdep.h.
6098 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6099 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6100 Remove.
6101 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6102 * alpha-tdep.h: Include osabi.h.
6103 (alpha_abi): Remove.
6104 (gdbarch_tdep): Use generic OS ABI framework.
6105 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6106 gdbarch_register_osabi.
6107 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6108 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6109 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6110
6111 * Makefile.in (sh_tdep_h): Add osabi.h.
6112 * sh-tdep.h (sh_osabi): Remove.
6113 (gdbarch_tdep): Use generic OS ABI framework.
6114 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6115 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6116 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6117 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6118
6119 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6120 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6121 gdbarch_register_osabi.
6122 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6123 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6124 (get_elfosabi): Rename to...
6125 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6126 ABI framework support routines.
6127 (arm_gdbarch_init): Use generic OS ABI framework.
6128 (arm_dump_tdep): Likewise.
6129 (_initialize_arm_tdep): Likewise.
6130 * arm-tdep.h: Include osabi.h.
6131 (arm_abi): Remove.
6132 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6133 osabi member.
6134 (arm_gdbarch_register_os_abi): Remove prototype.
6135 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6136 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6137
6138 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6139 * mips-tdep.c: Include osabi.h.
6140 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6141 OS ABI framework.
6142
6143 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6144
6145 * h8300-tdep.c: Fix formatting.
6146
6147 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6148
6149 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6150 printing vector registers.
6151
6152 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6153
6154 From Fernando Nasser:
6155 * remote.c (remote_async_open_1): Re-throw the exception when the
6156 connection fails.
6157 (remote_cisco_open): Ditto.
6158 (remote_open_1): Ditto.
6159
6160 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6161
6162 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6163 (remote_start_remote): Add uiout parameter. Pass through to
6164 remote_start_remote_dummy.
6165 (remote_open_1): Use catch_exception instead of catch_errors.
6166 (remote_async_open_1): Ditto.
6167 (remote_cisco_open): Ditto.
6168
6169 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6170
6171 * remote.c (remote_start_remote): Replace PTR with void pointer.
6172 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6173 static.
6174
6175 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6176
6177 * gdb_indent.sh: Allow the script to be run in the sim directory.
6178
6179 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6180
6181 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6182 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6183
6184 * corelow.c (core_open): Only call set_gdbarch_from_file if
6185 exec_bfd is NULL.
6186
6187 2002-05-17 Andrey Volkov <avolkov@transas.com>
6188
6189 * h8300-tdep.c: Add support of EXR register
6190 * config/h8300/tm-h8300.h: Ditto.
6191
6192 2002-05-17 Andrey Volkov <avolkov@transas.com>
6193
6194 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6195
6196 2002-05-17 Andrey Volkov <avolkov@transas.com>
6197
6198 * h8300-tdep.c: Change literal regnums to REGNO.
6199
6200 2002-05-17 Jim Blandy <jimb@redhat.com>
6201
6202 * NEWS: Note addition of macro support.
6203
6204 Expand preprocessor macros in C expressions.
6205 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6206 (scan_macro_expansion, scanning_macro_expansion,
6207 finished_macro_expansion): New function declarations.
6208 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6209 variable declarations.
6210 * parser-defs.h (expression_context_pc): New declaration.
6211 * parse.c (expression_context_pc): New variable.
6212 (parse_exp_1): Set expression_context_pc, as well as
6213 expression_context_block.
6214 * c-exp.y (yylex): If we're not already reading the result of a
6215 macro expansion, try to macro-expand the next token. When we're
6216 done scanning a macro expansion, switch back to the mainline text.
6217 Commas and `if's in a macro's expansion don't terminate the input.
6218 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6219 (macro_original_text, macro_expanded_text,
6220 expression_macro_lookup_func, expression_macro_lookup_baton): New
6221 variables.
6222 (scan_macro_expansion, scanning_macro_expansion,
6223 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6224 c_preprocess_and_parse): New functions.
6225 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6226 c_preprocess_and_parse, instead of c_parse.
6227 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6228 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6229
6230 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6231
6232 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6233 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6234 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6235
6236 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6237
6238 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6239
6240 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6241
6242 * Makefile.in (sh_tdep_h): Define and use.
6243 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6244 register enum): Move to...
6245 * * sh-tdep.h: ...here.
6246 * sh-tdep.c: Include sh-tdep.h.
6247 * sh3-rom.c: Likewise.
6248 * shnbsd-tdep.c: Likewise.
6249
6250 2002-05-16 Michael Snyder <msnyder@redhat.com>
6251
6252 * arm-tdep.c: Spelling fix in comment.
6253
6254 2002-05-16 Jim Blandy <jimb@redhat.com>
6255
6256 Add commands for manually expanding macros and showing their
6257 definitions.
6258 * macrocmd.c, macroscope.c, macroscope.h: New files.
6259 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6260 (macroscope_h): New variable.
6261 (HFILES_NO_SRCDIR): Add macroscope.h.
6262 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6263 (macroscope.o, macrocmd.o): New rules.
6264
6265 Teach the Dwarf 2 reader to read macro information.
6266 * dwarf2read.c: #include "macrotab.h".
6267 (dwarf_macinfo_buffer): New variable.
6268 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6269 dwarf_macinfo_size.
6270 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6271 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6272 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6273 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6274 dwarf2_macro_spaces_in_definition): New complaints.
6275 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6276 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6277 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6278 the partial symbol table.
6279 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6280 from what's recorded in the partial symbol table.
6281 (read_file_scope): If the compilation unit has a
6282 `DW_AT_macro_info' attribute, read its macro information.
6283 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6284
6285 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6286
6287 Fix PR gdb/546
6288 * ser-tcp.c: Don't include <netinet/udp.h>.
6289
6290 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6291
6292 * MAINTAINERS: Update my email address.
6293
6294 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6295
6296 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6297 include file of the same name.
6298
6299 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6300
6301 * configure.tgt: Mark v850 as multi-arched.
6302 * config/v850/tm-v850.h: Remove file.
6303 * config/v850/v850.mt: Eliminate TM_FILE.
6304
6305 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6306
6307 * v850-tdep.c: Full multi-arch.
6308 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6309 Define GDB_MULTI_ARCH to 2.
6310
6311 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6312
6313 * p-exp.y (current_type): New static variable.
6314 Carries the type of the expression at the position that is parsed.
6315 (push_current_type, pop_current_type): Two new functions. Used
6316 to store/restore current_type in expression on specific tokens.
6317 (search_field): New static variable. Set to one after parsing a point
6318 as at that point only a FIELDNAME token should be searched.
6319 (FIELDNAME): New token. After a point only a token belonging to
6320 current_type type definition is allowed.
6321 (all over token rules): reset and change current_type according
6322 to rules.
6323 (exp '[' rule): insert implicit array index field if
6324 exp is a pascal string type.
6325
6326 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6327
6328 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6329 frame info. Use frame_info's saved_regs instead of matching member
6330 in extra_frame_info throughout.
6331 (v850_frame_init_saved_regs): New function.
6332 (v850_init_extra_frame_info): Move most functionality into
6333 v850_frame_init_saved_regs().
6334 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6335 (v850_frame_find_saved_regs): Remove declaration.
6336 (FRAME_FIND_SAVED_REGS): Remove definition.
6337 (v850_frame_init_saved_regs): Add declaration.
6338 (FRAME_INIT_SAVED_REGS): Add definition.
6339
6340 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6341
6342 * v850-tdep.c: Begin multi-arch'ing v850.
6343 (v850_target_architecture_hook): Remove function.
6344 (v850_gdbarch_init): New function. Add code previously in
6345 v850_target_architecture_hook().
6346 (_initialize_v850_tdep): Don't set target_architecture_hook.
6347 Call register_gdbarch_init() instead.
6348
6349 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6350
6351 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6352 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6353 (fixup_class_method_type): Likewise.
6354
6355 2002-05-15 Jim Blandy <jimb@redhat.com>
6356
6357 Add macro structures to GDB's symbol tables. Nobody puts anything
6358 in them yet.
6359 * symtab.h (struct symtab): New member: `macro_table'.
6360 * buildsym.h (pending_macros): New global variable.
6361 * buildsym.c: #include "macrotab.h".
6362 (buildsym_init): Initialize `pending_macros'.
6363 (end_symtab): If we found macro information while reading a CU's
6364 debugging info, do build a symtab structure for it. Make the
6365 symtab point to the macro information, and clear the
6366 `pending_macros' pointer which held it while we were reading the
6367 debug info.
6368 (really_free_pendings): Free any pending macro table.
6369 * objfiles.h (struct objfile): New member: `macro_cache'.
6370 * objfiles.c (allocate_objfile): Set allocate and free functions
6371 for the macro cache's objstack.
6372 (free_objfile): Empty the macro cache's obstack.
6373 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6374 set new allocate and free functions for it.
6375 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6376 free functions for the macro cache's objstack. (Why is this
6377 function building its own objfile?)
6378 * symmisc.c (print_objfile_statistics): Print statistics on the
6379 macro bcache.
6380 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6381
6382 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6383
6384 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6385 (REGISTER_U_ADDR): Delete definition.
6386 (arm_register_u_addr): Delete declaration.
6387
6388 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6389
6390 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6391 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6392
6393 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6394
6395 * regcache.c (register_valid): Revise comments refering to "Not
6396 available" and "unavailable".
6397 * frame.c (frame_register_read): Ditto.
6398 * findvar.c (value_of_register): Ditto.
6399
6400 2002-05-15 Andrew Cagney <cagney@redhat.com>
6401
6402 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6403 (remote-sim.o): Update dependencies.
6404 (d10v-tdep.o): Specify dependencies.
6405 (sim_d10v_h): Define.
6406
6407 2002-05-14 Jim Blandy <jimb@redhat.com>
6408
6409 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6410 * macrotab.c (macro_lookup_inclusion, find_definition,
6411 new_macro_table): Same.
6412
6413 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6414 not `! strcmp ()'. This is a dubious improvement.
6415 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6416
6417 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6418 although it's not necessary, to avoid a warning.
6419
6420 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6421
6422 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6423 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6424 TYPE_INSTANCE_FLAGS.
6425 (struct main_type): New.
6426 (struct type): Move most members to struct main_type. Change
6427 cv_type and as_type to new type_chain member. Add instance_flags.
6428 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6429 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6430 (finish_cv_type): Remove prototype.
6431 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6432 Set TYPE_CHAIN.
6433 (alloc_type_instance): New function.
6434 (smash_type): New function.
6435 (make_pointer_type, make_reference_type, make_function_type)
6436 (smash_to_member_type, smash_to_method_type): Call smash_type.
6437 (make_qualified_type): New function.
6438 (make_type_with_address_space): Call make_qualified_type.
6439 (make_cv_type): Likewise.
6440 (finish_cv_type): Remove unnecessary function.
6441 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6442 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6443 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6444 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6445 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6446 * hpread.c (hpread_read_struct_type): Likewise.
6447 * stabsread.c (read_struct_type): Likewise.
6448
6449 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6450
6451 * configure.tgt: Add a catch all sh* target, for cases like
6452 sh[2,3,4]-elf and sh-hms.
6453
6454 2002-05-14 Keith Seitz <keiths@redhat.com>
6455
6456 * event-loop.c (create_file_handler): Don't do anything but
6457 update data when we are given a fd which we are already
6458 monitoring.
6459
6460 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6461
6462 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6463 (update_context): Use __func__ in warnings.
6464
6465 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6466
6467 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6468 and tcp_close to net_open and net_close.
6469 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6470 using UDP if requested. Don't try to disable Nagle on UDP
6471 sockets.
6472 * remote.c (remote_serial_open): New function. Warn about UDP.
6473 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6474
6475 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6476
6477 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6478
6479 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6480
6481 * configure.tgt: Remove sh-hms target.
6482 * MAINTAINERS: Don't list sh-hms as a separate target.
6483
6484 2002-05-13 Jim Blandy <jimb@redhat.com>
6485
6486 Add first preprocessor macro-expansion files.
6487 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6488 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6489 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6490 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6491 (COMMON_OBS): Add macrotab.o, macroexp.o.
6492 (macroexp.o, macrotab.o): New rules.
6493
6494 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6495
6496 * config/m88k/tm-m88k.h: Update copyright.
6497 (m88k_target_write_pc): Declare
6498 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6499 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6500 (SHIFT_INST_REGS): Update definition.
6501 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6502 using old definition of TARGET_WRITE_PC.
6503 * regcache.c (generic_target_write_pc): Delete code handling
6504 NNPC_REGNUM.
6505 * gdbarch.sh (NNPC_REGNUM): Delete.
6506 * gdbarch.h, gdbarch.c: Regenerate.
6507
6508 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6509
6510 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6511 builtin reg number.
6512
6513 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6514
6515 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6516 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6517 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6518 access macros.
6519 * c-typeprint.c (cp_type_print_method_args): Likewise.
6520 (c_type_print_args): Likewise.
6521 * d10v-tdep.c (d10v_push_arguments): Likewise.
6522 (d10v_extract_return_value): Likewise.
6523 * expprint.c (print_subexp): Likewise.
6524 * gdbtypes.c (lookup_primitive_typename): Likewise.
6525 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6526 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6527 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6528 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6529 (TYPE_VECTOR): Likewise.
6530 * hpread.c (hpread_read_struct_type)
6531 (fix_static_member_physnames, fixup_class_method_type)
6532 (hpread_type_lookup): Likewise.
6533 * mdebugread.c (parse_symbol, parse_type): Likewise.
6534 * p-lang.c (is_pascal_string_type): Likewise.
6535 * valops.c (hand_function_call): Likewise.
6536 * x86-64-tdep.c (classify_argument): Likewise.
6537
6538 * hpread.c (hpread_read_function_type)
6539 (hpread_read_doc_function_type): Call replace_type.
6540 * dstread.c (create_new_type): Delete.
6541 (decode_dst_structure, process_dst_function): Call alloc_type.
6542 Use type access macros.
6543
6544 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6545
6546 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6547 the're not supported by the current architecture.
6548 (i387_fill_fxsave): Likewise.
6549
6550 2002-05-12 Fred Fish <fnf@redhat.com>
6551
6552 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6553 sect_index_xxx members to index the first slot in section_offsets
6554 if all of the section_offsets are zero.
6555
6556 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6557
6558 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6559 checked in with last change.
6560
6561 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6562
6563 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6564 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6565 config.sub.
6566
6567 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6568
6569 * Makefile.in: Update dependencies.
6570
6571 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6572
6573 * language.c (local_hex_string_custom): Simplify. Do not depend
6574 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6575
6576 * memattr.c (mem_info_command): Replace calls to
6577 longest_local_hex_string and longest_local_hex_string_custom.
6578 * buildsym.c (make_blockvector): Ditto.
6579 * solib.c (info_sharedlibrary_command): Ditto.
6580 * tracepoint.c (tracepoints_info): Ditto.
6581 * symtab.c (print_msymbol_info): Ditto.
6582
6583 * language.c (local_hex_string): Delete.
6584 (local_hex_string_custom): Delete.
6585 (longest_local_hex_string): Rename to local_hex_string.
6586 (longest_local_hex_string_custom): Rename to
6587 local_hex_string_custom.
6588 * language.h (local_hex_string): Change parameter type to LONGEST.
6589 (local_hex_string_custom): Ditto.
6590 (longest_local_hex_string): Delete declaration.
6591 (longest_local_hex_string_custom): Ditto.
6592
6593 * solib.c: Update copyright.
6594 * memattr.c: Update copyright.
6595
6596 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6597
6598 * arch-utils.h (legacy_register_to_value): Declare.
6599 (legacy_value_to_register): Declare.
6600 (legacy_convert_register_p): Declare.
6601 * arch-utils.c (legacy_register_to_value): New function.
6602 (legacy_value_to_register): New function.
6603 (legacy_convert_register_p): New function.
6604
6605 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6606 (VALUE_TO_REGISTER): Define.
6607 (CONVERT_REGISTER_P): Define.
6608 * gdbarch.h, gdbarch.c: Regenerate.
6609
6610 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6611 VALUE_TO_REGISTER.
6612 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6613 CONVERT_REGISTER_P.
6614
6615 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6616 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6617
6618 * Makefile.in: Update dependencies for valops.c.
6619 * valops.c: Include "gdb_assert.h".
6620 (typecmp): Skip THIS parameter to methods.
6621 (find_method_list): Remove static_memfuncp argument,
6622 update callers. Check for stub methods.
6623 (find_value_oload_method_list): Don't set *static_memfuncp.
6624 (find_overload_match): Don't check for stub methods. Assert
6625 that methods are not stubbed. Handle static methods.
6626 (value_find_oload_method_list): Remove static_memfuncp argument.
6627 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6628 to the argument list for static stub methods.
6629 * value.h (value_find_oload_method_list): Update prototype.
6630
6631 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6632
6633 * arch-utils.h (generic_register_size): Declare.
6634 (generic_register_raw_size, generic_register_virtual_size): Delete
6635 declarations.
6636 * arch-utils.c (generic_register_raw_size): Delete.
6637 (generic_register_size): New function.
6638 (generic_register_virtual_size): Delete.
6639
6640 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6641 default generic_register_size.
6642 * gdbarch.h, gdbarch.c: Re-generate.
6643
6644 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6645 register_virtual_size.
6646 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6647 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6648
6649 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6650
6651 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6652 * gdbarch.h, gdbarch.c: Regenerate.
6653 * gnu-v3-abi.c: Update copyright.
6654 (vtable_address_point_offset): Update.
6655 (gnuv3_rtti_type): Update.
6656 (gnuv3_baseclass_offset): Update.
6657 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6658 (init_fetch_link_map_offsets): Update.
6659 * remote.c (get_remote_state): Update.
6660
6661 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6662
6663 * TODO: Remove value_headof/value_from_vtable_info comment.
6664 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6665 * values.c (value_headof, value_from_vtable_info): Delete.
6666 * value.h (value_from_vtable_info): Delete prototype.
6667
6668 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6669
6670 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6671 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6672 $(gdb_regex_h).
6673 (gdb_assert_h): Define.
6674 (gdb_wait_h): Define.
6675 (gdb_regex_h): Define.
6676
6677 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6678
6679 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6680 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6681
6682 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6683
6684 * nbsd-tdep.c: Fix comment.
6685
6686 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6687
6688 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6689 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6690 (nbsd-tdep.o): New dependency list.
6691 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6692 nbsd-tdep.h.
6693 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6694 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6695 * nbsd-tdep.c: New file.
6696 * nbsd-tdep.h: New file.
6697 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6698 nbsd-tdep.h.
6699 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6700 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6701 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6702 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6703
6704 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6705
6706 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6707 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6708 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6709 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6710 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6711 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6712
6713 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6714
6715 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6716 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6717 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6718 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6719 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6720 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6721 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6722
6723 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6724
6725 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6726 fetch_elfcore_registers to...
6727 * i386nbsd-tdep.c: ...here.
6728 (i386nbsd_use_struct_convention): Rename to...
6729 (i386nbsd_aout_use_struct_convention): ...this.
6730 (i386nbsd_supply_reg): New function.
6731 (i386nbsd_fill_reg): New function.
6732 (fetch_core_registers): Use i386nbsd_supply_reg.
6733 (fetch_elfcore_registers): Likewise.
6734 (_initialize_i386nbsd_tdep): New function.
6735 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6736 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6737 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6738 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6739 (i386nbsd_aout_use_struct_convention): ...this.
6740
6741 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6742
6743 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6744 (store_inferior_registers): Use shnbsd_fill_reg.
6745 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6746 sh_nbsd_supply_register): Collapse into...
6747 (shnbsd_supply_reg): ...this.
6748 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6749 (shnbsd_fill_reg): ...this.
6750 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6751 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6752 (fetch_core_registers): Use shnbsd_supply_reg.
6753 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6754 (sh_nbsd_core_fns): Rename to...
6755 (shnbsd_core_fns): ...this.
6756 (sh_nbsd_elfcore_fns): Rename to...
6757 (shnbsd_elfcore_fns): ...this.
6758 (sh_nbsd_init_abi): Rename to...
6759 (shnbsd_init_abi): ...this.
6760 (_initialize_sh_nbsd_tdep): Rename to...
6761 (_initialize_shnbsd_tdep): ...this.
6762 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6763 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6764 sh_nbsd_fill_register): Remove prototypes.
6765 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6766
6767 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6768
6769 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6770 (i387-nat.o): Delete dependency list.
6771 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6772 (x86-64-linux-nat.o): Likewise.
6773 * i387-nat.c: Delete file, moving contents to...
6774 * i387-tdep.c: ...here.
6775 * i387-nat.h: Rename...
6776 * i387-tdep.h: ...to this.
6777 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6778 * i386-linux-nat.c: Likewise.
6779 * i386bsd-nat.c: Likewise.
6780 * i386gnu-nat.c: Likewise.
6781 * i386nbsd-nat.c: Likewise.
6782 * i386v4-nat.c: Likewise.
6783 * x86-64-linux-nat.c: Likewise.
6784 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6785 * config/i386/go32.mh (NATDEPFILES): Likewise.
6786 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6787 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6788 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6789 * config/i386/linux.mh (NATDEPFILES): Likewise.
6790 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6791 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6792 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6793 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6794
6795 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6796
6797 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6798 (alphanbsd-nat.o): Remove dependency list.
6799 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6800 * alphanbsd-nat.c: Delete. Contents moved to...
6801 * alphanbsd-tdep.c: ...here.
6802 (_initialize_alphanbsd_tdep): Register core functions.
6803 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6804
6805 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6806
6807 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6808 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6809 (alphanbsd-nat.o): Likewise.
6810 (alphabsd-tdep.o): New dependency list.
6811 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6812 (fill_gregset): Use alphabsd_fill_reg.
6813 (supply_fpregset): Use alphabsd_supply_fpreg.
6814 (fill_fpregset): Use alphabsd_fill_fpreg.
6815 (fetch_inferior_registers): Use struct reg and struct fpreg
6816 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6817 and alphabsd_supply_fpreg.
6818 (store_inferior_registers): Use struct reg and struct fpreg
6819 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6820 and alphabsd_fill_fpreg.
6821 * alphabsd-tdep.c: New file.
6822 * alphabsd-tdep.h: New file.
6823 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6824 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6825 alphabsd_supply_fpreg.
6826 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6827 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6828
6829 2002-05-11 Eric Christopher <echristo@redhat.com>
6830
6831 * mips-tdep.c (mips_double_register_type): Fix thinko.
6832 (mips_single_register_type): Ditto.
6833 * MAINTAINERS: Add self.
6834
6835 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6836
6837 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6838 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6839 right thing on architectures with different endianness and/or
6840 integer sizes.
6841
6842 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6843
6844 From Christian Limpach <chris@Pin.LU>
6845 * configure.in: Change sed expression which comments out
6846 NATDEPFILES to also comment out continuation lines.
6847 * configure: Regenerate.
6848
6849 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6850
6851 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6852 big patch.
6853
6854 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6855
6856 * sh-tdep.c: Include correct file.
6857
6858 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6859
6860 New support for sh64-elf (sh5) target.
6861
6862 * configure.tgt: For sh64-elf target, default to sh-elf.
6863
6864 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6865 (struct gdbarch_tdep): Add new fields for new registers and ABI
6866 info.
6867
6868 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6869 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6870 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6871 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6872 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6873 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6874 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6875 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6876 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6877 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6878 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6879 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6880 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6881 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6882 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6883 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6884 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6885 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6886 sign_extend, sh64_nofp_frame_init_saved_regs,
6887 sh64_init_extra_frame_info, sh64_get_saved_register,
6888 sh64_extract_struct_value_address, sh64_pop_frame,
6889 sh64_push_arguments, sh64_extract_return_value,
6890 sh64_store_return_value, sh64_show_media_regs,
6891 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6892 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6893 sh_sh64_register_virtual_type,
6894 sh_sh64_register_convert_to_virtual,
6895 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6896 sh64_register_read, sh64_pseudo_register_write,
6897 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6898 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6899 sh64_do_pseudo_register, sh_compact_do_registers_info,
6900 sh64_do_registers_info, sh_gdbarch_init): New functions.
6901
6902 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6903
6904 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6905
6906 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6907
6908 * linespec.c (decode_line_1): Check for a double quote after
6909 a filename correctly.
6910
6911 2002-05-10 Jim Blandy <jimb@redhat.com>
6912
6913 Properly track the size of the current objfile's .debug_line section.
6914 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6915 (DWARF_LINE_SIZE): New macro.
6916 (dwarf2_build_psymtabs_hard): Record the line section's size in
6917 the partial symbol table.
6918 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6919 symbol table.
6920
6921 2002-05-10 Petr Sorfa <petrs@caldera.com>
6922
6923 * ia64-tdep.c: Handle breakpoints on L instruction type
6924 in MLX instruction bundle by moving the breakpoint to
6925 the third slot (X instruction type) as L holds only data.
6926
6927 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6928
6929 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6930 (process_one_symbol): Complain about discarding local symbols
6931 due to a misplaced N_LBRAC entry.
6932
6933 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6934
6935 From Daniel Berlin <dan@cgsoftware.com>
6936 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6937 decrease the depth we are at, in the case of templates.
6938
6939 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6940
6941 * mips-tdep.c (mips_float_register_type): New function.
6942 (mips_double_register_type): New function.
6943 (mips_print_register): Use them.
6944 (do_fp_register_row): Likewise.
6945
6946 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6947
6948 * signals/signals.c (signals): Remove conditional compilation around
6949 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6950 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6951
6952 2002-05-09 Michael Snyder <msnyder@redhat.com>
6953
6954 * remote-rdp.c (remote_rdp_can_run): Remove.
6955
6956 2002-05-09 Tom Tromey <tromey@redhat.com>
6957
6958 * jv-valprint.c (java_val_print): Handle `char' as a special case
6959 of TYPE_CODE_INT.
6960
6961 2002-05-09 Michael Snyder <msnyder@redhat.com>
6962
6963 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6964 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6965 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6966 str r(0123),[sp,#nn].
6967 (arm_skip_prologue): Ditto. Also make disassembly
6968 order-independent by placing it in a loop.
6969
6970 2002-05-06 Michael Snyder <msnyder@redhat.com>
6971
6972 * stabsread.c (read_type): Add recognition for new attribute:
6973 "@V;" means that an array type is actually a vector.
6974 This is analogous to the vector flag that's been added to dwarf2.
6975
6976 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6977
6978 * i386-tdep.h (i386_abi): New enum.
6979 (struct gdbarch_tdep): Replace os_ident member with abi.
6980 (i386_gdbarch_register_os_abi): New prototype.
6981 * i386-tdep.c (i386_abi_names): New array.
6982 (process_note_abi_tag_sections): Removed.
6983 (process_note_sections): New function.
6984 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6985 (struct i386_abi_handler): New struct.
6986 (i386_abi_handler_list): New variable.
6987 (i386_gdbarch_register_os_abi): New function.
6988 (i386_gdbarch_init): Adapt for the changes given above.
6989
6990 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6991
6992 * gregset.h: Say "GNU/Linux".
6993
6994 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6995
6996 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6997 (build_gdbtypes): Build builtin_type_v2_float.
6998 (_initialize_gdbtypes): Register new builtin type.
6999
7000 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7001
7002 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7003 (clear_gdbarch_swap): New function.
7004 (initialize_non_multiarch): Call.
7005 (gdbarch_update_p): Before calling init(), swap out and clear the
7006 existing architecture.
7007 * gdbarch.c: Regenerate.
7008
7009 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7010
7011 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7012 alphanbsd-tdep.c.
7013
7014 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7015
7016 * sh-nbsd-nat.c: Rename to...
7017 * shnbsd-nat.c: ...this.
7018 * sh-nbsd-tdep.c: Rename to...
7019 * shnbsd-tdep.c: ...this.
7020 * sh-nbsd-tdep.h: Rename to...
7021 * shnbsd-tdep.h: ...this.
7022 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7023 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7024
7025 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7026
7027 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7028 concatenation for command help messages.
7029
7030 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7031
7032 * NEWS: Note new sh*-*-netbsdelf* configuration.
7033 * configure.host: Set gdb_host_cpu to sh for all sh*.
7034 (sh*-*-netbsdelf*): New host.
7035 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7036 (sh*-*-netbsdelf*): New target.
7037 * sh-nbsd-nat.c: New file.
7038 * sh-nbsd-tdep.c: New file.
7039 * sh-nbsd-tdep.h: New file.
7040 * config/sh/nbsd.mh: New file.
7041 * config/sh/nbsd.mt: New file.
7042 * config/sh/nm-nbsd.h: New file.
7043 * config/sh/tm-nbsd.h: New file.
7044
7045 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7046
7047 * sh-tdep.c (sh_osabi_names): Declare.
7048 (process_note_abi_tag_sections): New function.
7049 (get_elfosabi): Ditto.
7050 (sh_gdbarch_register_os_abi): Ditto.
7051 (sh_dump_tdep): Ditto.
7052 _initialize_sh_tdep): Use gdbarch_register to register
7053 sh_gdbarch_init and sh_dump_tdep.
7054 * config/sh/tm-sh.h (sh_osabi): Declare.
7055 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7056
7057 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7058
7059 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7060 (thumb_scan_prologue): Ditto.
7061 (arm_find_callers_reg): Ditto.
7062 (arm_frame_chain): Ditto.
7063 (arm_init_extra_frame_info): Ditto.
7064 (arm_frame_saved_pc): Ditto.
7065 (arm_pop_frame): Ditto.
7066 (arm_push_return_address): New function.
7067 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7068 call_dummy_location, call_dummy_breakpoint_offset_p,
7069 call_dummy_breakpoint_offset, call_dummy_p,
7070 call_dummy_stack_adjust_p, call_dummy_words,
7071 sizeof_call_dummy_words, call_dummy_start_offset,
7072 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7073 call_dummy_address, push_return_address and push_dummy_frame for
7074 generic dummy frames.
7075
7076 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7077
7078 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7079 size computation for alloca.
7080 (sh_fp_frame_init_saved_regs): Likewise.
7081
7082 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7083
7084 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7085 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7086 * arm-tdep.c (arm_store_return_value): Use them.
7087 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7088 * remote-rdp.c (remote_rdp_fetch_register): Use
7089 ARM_MAX_REGISTER_RAW_SIZE.
7090 (remote_rdp_store_register): Likewise.
7091
7092 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7093
7094 * dwarf2cfi.c: Code cleanup, removed unused variables,
7095 added default labels to switch {} statements.
7096 * x86-64-tdep.c: Ditto.
7097 * x86-64-linux-nat.c: Ditto.
7098
7099 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7100
7101 * solib.h: Protect against multiple inclusion.
7102
7103 2002-05-06 Jim Blandy <jimb@redhat.com>
7104
7105 Add first preprocessor macro-expansion files.
7106 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7107 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7108 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7109 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7110 (COMMON_OBS): Add macrotab.o, macroexp.o.
7111 (macroexp.o, macrotab.o): New rules.
7112
7113 Separate the job of reading the line number info statement program
7114 header (...expialidocious) out into its own function.
7115 * dwarf2read.c (struct line_head, struct filenames, struct
7116 directories): Replace with...
7117 (struct line_header): New structure, containing the full
7118 contents of the statement program header, including the
7119 include directory and file name tables.
7120 (read_file_scope): If we have line number info, instead of just
7121 calling dwarf_decode_lines to do all the work, call
7122 dwarf_decode_line_header first to get a `struct line_header'
7123 containing the data in the statement program header, and then
7124 pass that to dwarf_decode_lines, which will pick up where that
7125 left off. Be sure to clean up the `struct line_header' object.
7126 (dwarf_decode_line_header, free_line_header, add_include_dir,
7127 add_file_name): New functions.
7128 (dwarf_decode_lines): Move all the code to read the statement
7129 program header into dwarf_decode_line_header. Take the line
7130 header it built as the first argument, instead of the offset to
7131 the compilation unit's line number info. Use the new `struct
7132 line_header' type instead of the old structures. No need to do
7133 cleanups here now, since we don't allocate anything.
7134 (dwarf2_statement_list_fits_in_line_number_section,
7135 dwarf2_line_header_too_long): New complaints.
7136
7137 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7138
7139 * gdbtypes.c (init_vector_type): New function.
7140 (build_builtin_type_vec128): Simplify the representation of SIMD
7141 registers.
7142 (build_gdbtypes): Initialize new builtin vector types.
7143 (_initialize_gdbtypes): Register new vector types with gdbarch.
7144 (builtin_type_v4_float, builtin_type_v4_int32,
7145 builtin_type_v8_int16, builtin_type_v16_int8,
7146 builtin_type_v2_int32, builtin_type_v4_int16,
7147 builtin_type_v8_int8): New (renamed) SIMD types.
7148
7149 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7150
7151 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7152 (i387_fill_fxsave): Likewise.
7153
7154 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7155
7156 * alpha-tdep.c (alpha_extract_return_value): Don't use
7157 non-constant array size in prototype.
7158
7159 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7160
7161 From Brian Taylor <briant at model dot com>:
7162 * ui-out.c (ui_out_field_core_addr): Use the function
7163 longest_local_hex_string_custom'to format addresses > 32 bits
7164 wide.
7165
7166 * ui-out.c (ui_out_field_core_addr): Update comment.
7167
7168 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7169
7170 * stack.c (select_and_print_frame): Make static. Delete the
7171 parameter `level'.
7172 (func_command): Update call.
7173 (select_frame_command): Delete code computing the frame level.
7174 * frame.h (select_and_print_frame): Delete declaration.
7175
7176 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7177
7178 * sparc-tdep.c (sparc_get_saved_register): Comment why
7179 get_prev_frame call is safe.
7180
7181 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7182
7183 * frame.h (select_frame): Delete level parameter.
7184 * stack.c (select_frame): Update. Use frame_relative_level to
7185 obtain the frame's level.
7186 (select_and_print_frame): Update call.
7187 (select_frame_command): Ditto.
7188 (up_silently_base): Ditto.
7189 (down_silently_base): Ditto.
7190 * ocd.c (ocd_start_remote): Ditto.
7191 * remote-rdp.c (remote_rdp_open): Ditto.
7192 * remote-mips.c (mips_initialize): Ditto.
7193 (common_open): Ditto.
7194 * remote-e7000.c (e7000_start_remote): Ditto.
7195 * m3-nat.c (select_thread): Ditto.
7196 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7197 (child_get_current_exception_event): Ditto.
7198 * varobj.c (varobj_create): Ditto.
7199 (varobj_update): Ditto.
7200 (c_value_of_root): Ditto.
7201 * tracepoint.c (finish_tfind_command): Ditto.
7202 * corelow.c (core_open): Ditto.
7203 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7204 * thread.c (info_threads_command): Ditto.
7205 (switch_to_thread): Ditto.
7206 * infrun.c (normal_stop): Ditto.
7207 (restore_selected_frame): Ditto.
7208 (restore_inferior_status): Ditto.
7209 * breakpoint.c (insert_breakpoints): Ditto.
7210 (watchpoint_check): Ditto.
7211 (bpstat_stop_status): Ditto.
7212 (do_enable_breakpoint): Ditto.
7213 * blockframe.c (flush_cached_frames): Ditto.
7214 (reinit_frame_cache): Ditto.
7215
7216 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7217
7218 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7219 maintainer.
7220
7221 2002-05-04 Jim Blandy <jimb@redhat.com>
7222
7223 * gdbtypes.c (replace_type): Doc fix.
7224
7225 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7226
7227 * valprint.c (strcat_longest): Delete commented out function.
7228 Update copyright.
7229
7230 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7231
7232 * MAINTAINERS: Mark a29k as deleted.
7233 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7234 Move new configurations to the top.
7235 * configure.tgt: Remove a29k.
7236 * config/a29k/tm-vx29k.h: Delete.
7237 * config/a29k/vx29k.mt: Delete.
7238 * config/a29k/tm-a29k.h: Delete.
7239 * config/a29k/a29k-udi.mt: Delete.
7240 * config/a29k/a29k.mt: Delete.
7241 * a29k-tdep.c: Delete.
7242 * remote-udi.c: Delete.
7243 * remote-mm.c: Delete.
7244 * remote-eb.c: Delete.
7245 * remote-adapt.c: Delete.
7246 * Makefile.in: Remove obsolete code.
7247 * config/s390/s390x.mt: Ditto.
7248 * config/s390/s390.mt: Ditto.
7249 * config/sparc/sparclynx.mh: Ditto.
7250 * config/sparc/linux.mh: Ditto.
7251 * config/pa/hppaosf.mh: Ditto.
7252 * config/pa/hppabsd.mh: Ditto.
7253 * config/ns32k/nbsd.mt: Ditto.
7254 * config/mips/vr5000.mt: Ditto.
7255 * config/m68k/sun3os4.mh: Ditto.
7256 * config/m68k/nbsd.mt: Ditto.
7257 * config/m68k/m68klynx.mh: Ditto.
7258 * config/m32r/m32r.mt: Ditto.
7259 * config/i386/x86-64linux.mt: Ditto.
7260 * config/i386/nbsdelf.mt: Ditto.
7261 * config/i386/nbsd.mt: Ditto.
7262 * config/i386/i386lynx.mh: Ditto.
7263
7264 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7265
7266 * target.c (debug_print_register): New function. Handle oversize
7267 registers.
7268 (debug_to_fetch_registers): Call.
7269 (debug_to_store_registers): Call.
7270
7271 2002-05-03 Jim Blandy <jimb@redhat.com>
7272
7273 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7274 (read_type): Doc fix.
7275 * gdbtypes.c (replace_type): Doc fix.
7276
7277 * stabsread.c (multiply_defined_struct): New complaint.
7278 (read_struct_type): If the type we were passed isn't empty, or
7279 incomplete, don't read the new struct type into it; complain,
7280 and return the original type unchanged. Take a new `type_code'
7281 argument, which is the type code for the new type.
7282 (read_type): Rather than storing the type's type code here, pass
7283 it as an argument to read_struct_type, and let that take care of
7284 storing it. That way, we don't overwrite the original type code,
7285 so read_struct_type can use it to decide whether we're overwriting
7286 something we shouldn't.
7287 (complain_about_struct_wipeout): New function.
7288
7289 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7290
7291 * gdbarch.sh: Assert that gdbarch is non-NULL.
7292 * gdbarch.c: Regenerate.
7293
7294 2002-05-03 Jason Merrill <jason@redhat.com>
7295
7296 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7297 and return NULL.
7298
7299 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7300
7301 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7302 (x86_64_dwarf2gdb_regno_map_length),
7303 (x86_64_dwarf2_reg_to_regnum): Added.
7304 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7305 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7306 (_initialize_x86_64_tdep): Synced with the change above.
7307 (x86_64_skip_prologue): Reformulated message.
7308
7309 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7310
7311 * f-exp.y: Also use new prev_lexptr variable
7312 to improve error reporting. Based on Michael Snyder
7313 2002-04-24 dated patch to c-exp.y.
7314 * jv-exp.y: Likewise.
7315 * m2-exp.y: Likewise.
7316
7317 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7318
7319 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7320 we are dealing with vectors.
7321
7322 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7323
7324 * config/m68k/tm-nbsd.h: Obvious fix,
7325 correct machine name.
7326
7327 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7328
7329 * p-typeprint.c (pascal_type_print_base): Add support
7330 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7331
7332 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7333
7334 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7335 for fondamental pascal 'char' type.
7336
7337 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7338
7339 * p-lang.h (is_pascal_string_type): Declaration changed,
7340 new sixth argument of type char ** added.
7341 * p-lang.c (is_pascal_string_type): Implementation
7342 changed. Args length_pos, length_size, string_pos, char_size
7343 can now be NULL. New argument arrayname set to the field
7344 name of the char array. Return value set to char array
7345 field index plus one.
7346 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7347 is_pascal_string_type function.
7348
7349 2002-05-02 Andrew Cagney <cagney@redhat.com>
7350
7351 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7352 <cagney@redhat.com> change.
7353 * gdbarch.c: Regenerate.
7354
7355 2002-05-02 Andrew Cagney <cagney@redhat.com>
7356
7357 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7358 before probing for a new one. Detect errorenous gdbarch_init
7359 functions.
7360 * gdbarch.c: Regenerate.
7361
7362 2002-05-01 Andrew Cagney <cagney@redhat.com>
7363
7364 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7365 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7366 * config/v850/tm-v850.h: Ditto. Update copyright.
7367
7368 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7369
7370 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7371 current_gdbarch.
7372
7373 2002-04-30 Michael Snyder <msnyder@redhat.com>
7374
7375 * arm-tdep.c: Whitespace clean-ups.
7376 (arm_skip_prologue): Fix thinko; two lines
7377 should have been removed as part of 4/24 change.
7378
7379 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7380
7381 * rs6000-tdep.c: Added comment describing how fpscr register
7382 numbers were chosen.
7383
7384 2002-04-30 Michael Snyder <msnyder@redhat.com>
7385
7386 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7387
7388 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7389
7390 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7391 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7392 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7393
7394 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7395
7396 From Louis Hamilton <hamilton@redhat.com>:
7397 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7398 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7399 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7400 not bfd-private xcoff data, to determine wordsize.
7401 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7402
7403 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7404
7405 GDB 5.2 released from 5.2 branch.
7406
7407 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7408
7409 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7410 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7411 (x86_64_register_info_table): Added comments with register numbers.
7412
7413 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7414
7415 * rs6000-tdep.c (rs6000_extract_return_value,
7416 rs6000_store_return_value): Handle returning vectors.
7417 (rs6000_gdbarch_init): Use
7418 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7419 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7420 New function.
7421 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7422 vectors.
7423 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7424 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7425
7426 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7427
7428 * hpread.c (hpread_psymtab_to_symtab_1,
7429 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7430 with fprintf_unfiltered (gdb_stderr,...).
7431
7432 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7433
7434 * remote-array.c (printf_monitor, write_monitor,
7435 array_insert_breakpoint, array_remove_breakpoint ):
7436 Replace fprintf (stderr,...
7437 with fprintf_unfiltered (gdb_stderr,....
7438 * remote-es.c: Likewise.
7439 * remote-os9k.c: Likewise.
7440 * remote-st.c: Likewise.
7441
7442 2002-04-28 Andreas Schwab <schwab@suse.de>
7443
7444 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7445 linux-proc.o and gcore.o.
7446
7447 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7448
7449 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7450 code without frame pointers.
7451
7452 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7453
7454 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7455 ON_STACK is needed.
7456
7457 2002-04-26 Ben Elliston <bje@redhat.com>
7458
7459 * target.c (do_xfer_memory): Correct reference to the new option
7460 "trust-readonly-sections".
7461
7462 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7463
7464 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7465 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7466 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7467 vectors.
7468 (read_array_type): Record the fact that this array type is really a
7469 vector (i.e. are passed in by value).
7470
7471 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7472
7473 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7474 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7475 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7476 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7477 * alpha-linux-tdep.c: Include frame.h.
7478 (alpha_linux_sigcontext_addr): New function.
7479 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7480 alpha_linux_sigcontext_addr.
7481 * alpha-osf1-tdep.c: Include gdbcore.h.
7482 (alpha_osf1_sigcontext_addr): New function.
7483 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7484 alpha_osf1_sigcontext_addr.
7485 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7486 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7487
7488 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7489
7490 * stack.c (selected_frame_level):
7491 (select_frame): Do not set selected_frame_level.
7492 * frame.h (selected_frame_level): Delete declaration.
7493
7494 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7495
7496 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7497 convert_from_func_ptr-addr when AIX / PowerOpen.
7498
7499 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7500
7501 * valops.c (hand_function_call): Call
7502 generic_save_call_dummy_addr.
7503 * frame.h (generic_save_call_dummy_addr): Declare.
7504 * blockframe.c (struct dummy_frame): Add fields call_lo and
7505 call_hi.
7506 (generic_find_dummy_frame): Check for PC in range call_lo to
7507 call_hi instead of entry_point_address.
7508 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7509 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7510 (generic_save_call_dummy_addr): New function.
7511
7512 2002-04-24 David S. Miller <davem@redhat.com>
7513
7514 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7515 sparc_skip_prologue.
7516 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7517 information to find prologue when possible.
7518 (sparc_prologue_frameless_p): Call examine_prologue directly.
7519 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7520 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7521 second argument.
7522 (SKIP_PROLOGUE): Likewise.
7523
7524 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7525
7526 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7527 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7528 indicate that the condition it was testing is always true.
7529 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7530 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7531 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7532
7533 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7534
7535 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7536 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7537 tdep->jb_pc and tdep->jb_elt_size.
7538 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7539 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7540 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7541 * alpha-nat.c (get_longjmp_target): Remove.
7542 (JB_ELEMENT_SIZE): Ditto.
7543 (JB_PC): Ditto.
7544 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7545 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7546 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7547 to alpha_get_longjmp_target.
7548 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7549 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7550 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7551
7552 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7553
7554 * README: Update to GDB 5.2.
7555
7556 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7557
7558 * gdbarch.sh (LC_ALL): Set to `c'.
7559
7560 2002-04-25 Theodore A. Roth <troth@verinet.com>
7561
7562 * avr-tdep.c: Ran through gdb_indent.sh.
7563
7564 2002-04-25 Theodore A. Roth <troth@verinet.com>
7565
7566 * MAINTAINERS: Add myself as AVR maintainer.
7567 * NEWS: Note new target avr.
7568
7569 2002-04-25 Theodore A. Roth <troth@verinet.com>
7570
7571 * Makefile.in: Add support for AVR target.
7572 * configure.tgt: Add support for AVR target.
7573 * avr-tdep.c: New file
7574 * config/avr/avr.mt: New file.
7575
7576 2002-04-25 Theodore A. Roth <troth@verinet.com>
7577
7578 * MAINTAINERS: Add myself to write-after-approval.
7579
7580 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7581
7582 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7583 with fprintf_unfiltered (gdb_stderr,....
7584
7585 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7586
7587 Fix PR gdb/508.
7588 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7589
7590 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7591
7592 * p-exp.y: Also use new prev_lexptr variable
7593 to improve error reporting. Based on Michael Snyder
7594 2002-04-24 dated patch to c-exp.y.
7595
7596 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7597
7598 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7599 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7600 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7601 to 0.
7602 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7603 and struct value.
7604 (FUNCTION_START_OFFSET): Remove.
7605 (BREAKPOINT): Ditto.
7606
7607 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7608
7609 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7610 * NEWS: Ditto.
7611
7612 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7613
7614 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7615 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7616 alpha_linux_pc_in_sigtramp.
7617 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7618 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7619 alpha_osf1_pc_in_sigtramp.
7620 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7621 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7622 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7623 alphafbsd_pc_in_sigtramp.
7624 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7625 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7626 alphanbsd_pc_in_sigtramp.
7627 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7628 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7629
7630 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7631
7632 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7633
7634 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7635
7636 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7637 alphanbsd-tdep.c.
7638 (alphanbsd-nat.o): New dependency list.
7639 (alphanbsd-tdep.o): Ditto.
7640 * NEWS: Note new native NetBSD/alpha configuration.
7641 * alphanbsd-nat.c: New file.
7642 * alphanbsd-tdep.c: Ditto.
7643 * configure.host (alpha*-*-netbsd*): New host.
7644 * configure.tgt (alpha*-*-netbsd*): New target.
7645 * config/alpha/nbsd.mh: New file.
7646 * config/alpha/nbsd.mt: Ditto.
7647 * config/alpha/nm-nbsd.h: Ditto.
7648 * config/alpha/tm-nbsd.h: Ditto.
7649
7650 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7651
7652 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7653 (alpha-osf1-tdep.o): New dependency list.
7654 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7655 and skip_sigtramp_frame members.
7656 * alpha-linux-tdep.c: Include gdbcore.h.
7657 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7658 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7659 * alpha-osf1-tdep.c: New file.
7660 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7661 alpha-osf1-dep.c.
7662 (alpha_frame_past_sigtramp_frame): New function.
7663 (alpha_dynamic_sigtramp_offset): Ditto.
7664 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7665 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7666 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7667 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7668 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7669 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7670 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7671 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7672 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7673 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7674 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7675 to find_solib_trampoline_target.
7676 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7677 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7678 (SKIP_TRAMPOLINE_CODE): Remove.
7679 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7680 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7681 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7682 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7683 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7684 (PROC_SIGTRAMP_MAGIC): Ditto.
7685 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7686 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7687 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7688 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7689 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7690
7691 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7692
7693 * NEWS: Note that Alpha targets are now multi-arch.
7694
7695 2002-04-24 Michael Snyder <msnyder@redhat.com>
7696
7697 * parser-defs.h (prev_lexptr): New external variable.
7698 * parse.c (parse_exp_1): Set prev_lexptr to null before
7699 calling the language-specific parser.
7700 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7701 (yyerror): Use prev_lexptr in error reporting.
7702
7703 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7704
7705 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7706 * gregset.h: If FILL_FPXREGSET is defined, provide
7707 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7708 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7709 is defined, call fill_fpxregset.
7710
7711 2002-04-24 Roland McGrath <roland@frob.com>
7712
7713 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7714 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7715 (supply_gregset, supply_fpregset): New functions.
7716
7717 * gnu-nat.c (gnu_find_memory_regions): New function.
7718 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7719 (gnu_xfer_memory): Add a cast.
7720
7721 2002-04-24 Michael Snyder <msnyder@redhat.com>
7722
7723 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7724 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7725 of argument regs ("str r(0123), [r11, #-nn"]).
7726 (arm_skip_prologue): Better handling for frameless functions.
7727 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7728 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7729
7730 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7731
7732 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7733 NUM_PSEUDO_REGS can be used.
7734
7735 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7736
7737 * arch-utils.h: Update copyright.
7738
7739 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7740 * gdbarch.h, gdbarch.c: Re-generate.
7741
7742 * inferior.h (IN_SIGTRAMP): Delete definition.
7743 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7744 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7745
7746 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7747 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7748 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7749 (find_proc_framesize): Ditto.
7750 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7751 (alpha_init_extra_frame_info): Ditto.
7752 * infrun.c (handle_inferior_event): Ditto.
7753 (handle_inferior_event): Ditto.
7754 (check_sigtramp2): Ditto.
7755 * blockframe.c (create_new_frame): Ditto.
7756 (get_prev_frame): Ditto.
7757 * ppc-linux-tdep.c: Update comments.
7758 * i386-linux-tdep.c: Update comments.
7759 * breakpoint.c (bpstat_what): Update comment.
7760
7761 2002-04-24 David S. Miller <davem@redhat.com>
7762
7763 * i960-tdep.c (register_in_window_p): New function.
7764 (i960_find_saved_register): Use it instead of
7765 REGISTER_IN_WINDOW_P.
7766 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7767
7768 * symtab.h (find_stab_function_addr): Kill extern.
7769 * minsyms.c (find_stab_function_addr): Remove from here...
7770 * dbxread.c: ... to here, and mark it static.
7771
7772 2002-04-20 David S. Miller <davem@redhat.com>
7773
7774 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7775 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7776
7777 2002-04-21 David S. Miller <davem@redhat.com>
7778
7779 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7780 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7781 (vx_write_register): Likewise.
7782
7783 2002-04-23 J. Brobecker <brobecker@gnat.com>
7784
7785 * source.c (is_regular_file): New function.
7786 (openp): Check wether file to open is a regular file
7787 to avoid opening directories.
7788
7789 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7790
7791 * findvar.c (extract_signed_integer): Cast printf argument
7792 to suppress format warning.
7793 (extract_unsigned_integer): Likewise.
7794 * infcmd.c (registers_info): Likewise.
7795 * top.c (get_prompt_1): Likewise.
7796 * valops.c (value_assign): Likewise.
7797 * valprint.c (print_decimal): Likewise.
7798
7799 2002-04-22 H.J. Lu (hjl@gnu.org)
7800
7801 * c-exp.y (typebase): Support
7802
7803 [long|long long|short] [signed|unsigned] [int|]
7804
7805 and
7806
7807 signed [long|long long|short] int
7808
7809 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7810
7811 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7812 and vax-tdep.h.
7813 * vax-tdep.h: New file.
7814 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7815 Make several routines static.
7816 (vax_get_saved_register): New function.
7817 (vax_gdbarch_init): New function.
7818 (_initialize_vax_tdep): Register vax_gdbarch_init.
7819 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7820 Remove macros now under the control of gdbarch.
7821
7822 2002-04-22 Michael Snyder <msnyder@redhat.com>
7823
7824 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7825 Some whitespace and coding standards tweaks.
7826
7827 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7828
7829 * vax-tdep.c: Include regcache.h.
7830 (vax_call_dummy_words): New.
7831 (sizeof_vax_call_dummy_words): New.
7832 (vax_fix_call_dummy): New function.
7833 (vax_saved_pc_after_call): Ditto.
7834 * config/vax/tm-vax.h: Don't include regcache.h.
7835 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7836 (CALL_DUMMY): Remove.
7837 (CALL_DUMMY_WORDS): Define.
7838 (SIZEOF_CALL_DUMMY_WORDS): Define.
7839 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7840
7841 2002-04-18 Michael Snyder <msnyder@redhat.com>
7842
7843 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7844
7845 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7846
7847 * vax-tdep.c (vax_frame_chain): New function.
7848 (vax_push_dummy_frame): Ditto.
7849 (vax_pop_frame): Ditto.
7850 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7851 (FRAMELESS_FUNCTION_INVOCATION): Use
7852 generic_frameless_function_invocation_not.
7853 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7854 (POP_FRAME): Use vax_pop_frame.
7855
7856 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7857
7858 * vax-tdep.c (vax_store_struct_return): New function.
7859 (vax_extract_return_value): Ditto.
7860 (vax_store_return_value): Ditto.
7861 (vax_extract_struct_value_address): Ditto.
7862 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7863 vax_store_struct_return.
7864 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7865 (STORE_RETURN_VALUE): Use vax_store_return_value.
7866 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7867
7868 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7869
7870 * vax-tdep.c (vax_frame_saved_pc): New function.
7871 (vax_frame_args_address_correct): Ditto.
7872 (vax_frame_args_address): Ditto.
7873 (vax_frame_locals_address): Ditto.
7874 (vax_frame_num_args): Move code to be in proximity to
7875 other frame-related functions.
7876 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7877 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7878 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7879 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7880 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7881
7882 2002-04-22 H.J. Lu (hjl@gnu.org)
7883
7884 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7885 includedir.
7886
7887 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7888
7889 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7890 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7891 (FRAME_INIT_SAVED_REGS): New macro.
7892
7893 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7894
7895 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7896
7897 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7898
7899 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7900 where needed.
7901 (fetch_osf_core_registers): Likewise.
7902 (supply_gregset): Likewise.
7903
7904 2002-04-22 J. Brobecker <brobecker@gnat.com>
7905
7906 * symfile.h (get_section_index): Define.
7907 * symfile.c (get_section_index): New function.
7908 * mdebugread.c (SC_IS_SBSS): New macro.
7909 (SC_IS_BSS): Return true for the scBss storage class only, as
7910 the scSBss storage class refers to the .sbss section.
7911 (parse_partial_symbols): Discard the symbols which associated
7912 section does not exist.
7913 Make sure to use the .sbss section index for symbols which
7914 storage class is scBss, rather than using the .bss section index.
7915
7916 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7917
7918 * vax-tdep.c: Update copyright years.
7919 (vax_register_name): New function.
7920 (vax_register_byte): Ditto.
7921 (vax_register_raw_size): Ditto.
7922 (vax_register_virtual_size): Ditto.
7923 (vax_register_virtual_type): Ditto.
7924 * config/vax/tm-vax.h: Update copyright years.
7925 (REGISTER_NAMES): Remove.
7926 (REGISTER_NAME): Define.
7927 (REGISTER_BYTE): Use vax_register_byte.
7928 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7929 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7930 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7931
7932 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7933
7934 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7935 declaration
7936 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7937
7938 2002-04-21 David S. Miller <davem@redhat.com>
7939
7940 * arch-utils.c (generic_prologue_frameless_p): Kill
7941 SKIP_PROLOGUE_FRAMELESS_P code.
7942 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7943 references.
7944 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7945 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7946 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7947 references.
7948 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7949 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7950 (sparc_gdbarch_init): Pass it to
7951 set_gdbarch_prologue_frameless_p.
7952
7953 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7954
7955 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7956 (alphabsd-nat.o): New dependency list.
7957
7958 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7959
7960 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7961 alphafbsd-tdep.c.
7962 (alpha-linux-tdep.o): New dependency list.
7963 (alphafbsd-tdep.o): Likewise.
7964
7965 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7966
7967 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7968 to here...
7969 * alpha-tdep.c: ...from here.
7970 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7971
7972 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7973
7974 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7975 prototype from here...
7976 * alpha-tdep.h: ...to here.
7977
7978 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7979
7980 * frame.h (selected_frame_level): Document as deprecated.
7981 (frame_relative_level): Declare.
7982 * stack.c (frame_relative_level): New function.
7983 (selected_frame_level): Document as deprecated.
7984 (select_frame): Do not set the selected_frame_level.
7985
7986 * stack.c (frame_info, record_selected_frame): Update.
7987 (frame_command, current_frame_command): Update.
7988 (up_silently_base, up_command, down_silently_base): Update.
7989 (down_command): Update.
7990 * inflow.c (kill_command): Update.
7991 * tracepoint.c (finish_tfind_command): Update.
7992 * corelow.c (core_open): Update.
7993 * thread.c (info_threads_command): Update.
7994 (do_captured_thread_select): Update.
7995 * infcmd.c (finish_command): Update.
7996 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7997
7998 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7999
8000 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8001
8002 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8003
8004 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8005 type const.
8006
8007 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8008
8009 * alphafbsd-tdep.c: Update copyright years. Include
8010 alpha-tdep.h.
8011 (alphafbsd_use_struct_convention): Make static.
8012 (alphafbsd_init_abi): New function.
8013 (_initialize_alphafbsd_tdep): New function.
8014 * config/alpha/tm-fbsd.h: Update copyright years.
8015 (USE_STRUCT_CONVENTION): Remove.
8016
8017 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8018
8019 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8020 an Alpha ABI variant.
8021 (alpha_abi_handler_list): Declare.
8022 (alpha_gdbarch_register_os_abi): New function.
8023 (alpha_gdbarch_init): Give registered ABI variant handlers a
8024 chance to tweak the gdbarch once we have set up defaults.
8025 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8026
8027 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8028
8029 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8030 to standard_coerce_float_to_double.
8031 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8032
8033 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8034
8035 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8036 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8037 from gdbarch_tdep rather than a constant.
8038 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8039 the default text address for all Alpha Unix ABIs.
8040 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8041 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8042
8043 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8044
8045 * alpha-tdep.h: New file. Includes several Alpha target constants
8046 taken from...
8047 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8048 let gdbarch deal with.
8049 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8050 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8051 to dependency list.
8052 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8053 Alpha target register names.
8054 * alphabsd-nat.c: Likewise.
8055 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8056 Alpha target register names. Make serveral routines static.
8057 (alpha_get_saved_register): New function.
8058 (alpha_abi_names): New.
8059 (process_note_abi_tag_sections): New function.
8060 (get_elfosabi): New function.
8061 (alpha_gdbarch_init): New function.
8062 (alpha_dump_tdep): New function.
8063 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8064
8065 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8066
8067 * frame.c (find_saved_register): Delete #ifdef
8068 HAVE_REGISTER_WINDOWS code.
8069 * config/sparc/tm-sparc.h: Update comments.
8070 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8071
8072 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8073
8074 * i960-tdep.c (i960_find_saved_register): New function.
8075 (i960_get_saved_register): New function.
8076 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8077 (i960_get_saved_register): Declare.
8078 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8079
8080 2002-04-20 David S. Miller <davem@redhat.com>
8081
8082 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8083
8084 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8085
8086 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8087 instead of NUM_PSEUDO_REGS.
8088
8089 2002-04-20 David S. Miller <davem@redhat.com>
8090
8091 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8092 GDB_MULTI_ARCH_PARTIAL
8093 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8094 define, let tm-sp64.h do it.
8095
8096 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8097
8098 * frame.c (find_saved_register): Avoid a NULL pointer
8099 dereference and actually walk the frame list.
8100
8101 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8102
8103 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8104 sorted in most most-recent-used order. Document.
8105 * gdbarch.h, gdbarch.c: Regenerate.
8106
8107 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8108
8109 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8110 instead of ->prev.
8111 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8112 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8113 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8114 instead of ->prev.
8115
8116 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8117
8118 Fix PR gdb/471.
8119 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8120 (build_builtin_type_vec128): Ditto.
8121 (append_composite_type_field): Fix calculation of type length in
8122 union case.
8123
8124 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8125
8126 * config/djgpp/README: Update.
8127
8128 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8129 compiler warnings.
8130
8131 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8132
8133 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8134 (alpha_setup_arbitrary_frame): ...to this.
8135 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8136 for alpha_setup_arbitrary_frame.
8137
8138 2002-04-18 Andrew Cagney <cagney@redhat.com>
8139
8140 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8141 * gdbarch.h, gdbarch.c: Regenerate.
8142
8143 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8144 * target.h (memory_breakpoint_from_pc): Update declaration.
8145 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8146
8147 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8148 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8149 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8150 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8151 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8152 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8153 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8154 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8155 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8156 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8157 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8158 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8159
8160 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8161 const pointer.
8162 * monitor.c (monitor_insert_breakpoint): Ditto.
8163 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8164
8165 * config/mcore/tm-mcore.h: Update copyright.
8166 * mem-break.c: Ditto.
8167 * xstormy16-tdep.c: Ditto.
8168
8169 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8170
8171 * p-exp.y: Add precedence rule for '^' token.
8172 This removes the shift/reduce conflicts.
8173 Remove the comment concerning these shift/reduce conflicts.
8174
8175 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8176
8177 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8178 (registers_powerpc_nofp): New register set for processors
8179 without floating point unit.
8180
8181 2002-04-18 David S. Miller <davem@redhat.com>
8182
8183 * MAINTAINERS: Add myself to write-after-approval.
8184
8185 2002-04-17 Michael Snyder <msnyder@redhat.com>
8186
8187 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8188
8189 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8190
8191 * rs6000-tdep.c (frame_initial_stack_address): Use
8192 frame_register_read to read the alloca_reg.
8193
8194 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8195
8196 * frame.c (find_saved_register): Find saved registers in the next
8197 not prev frame.
8198 Fix PR gdb/365.
8199
8200 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8201
8202 * gdbarch.sh (LANG): Set to ``c''.
8203
8204 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8205
8206 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8207
8208 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8209
8210 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8211 Update copyright.
8212
8213 * hpread.c (hpread_get_lntt): Add declaration.
8214 Also fix PR gdb/391.
8215
8216 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8217
8218 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8219 * aclocal.m4, configure: Re-generate.
8220 Fix PR gdb/391.
8221
8222 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8223
8224 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8225 instead of tm_print_insn.
8226
8227 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8228
8229 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8230
8231 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8232
8233 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8234 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8235 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8236
8237 2002-04-12 Don Howard <dhoward@redhat.com>
8238
8239 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8240 max_user_call_depth.
8241 (init_cmd_lists): Initialize the new value;
8242 * cli/cli-script.c (execute_user_command): Limit the call depth of
8243 user defined commands. This avoids a core-dump when user commands
8244 are infinitly recursive.
8245
8246 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8247
8248 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8249 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8250 from tdep struct instead of DEFAULT_LR_SAVE.
8251 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8252 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8253 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8254
8255 2002-04-12 Michael Snyder <msnyder@redhat.com>
8256
8257 * Remote.c: Spelling fix.
8258 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8259 If no symbol found for "sbrk", try "_sbrk".
8260 (make_output_phdrs): Use bfd_section_name.
8261 (gcore_copy_callback): Use bfd_section_name.
8262 * eval.c: Indentation fix-ups.
8263 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8264 in case it gets applied to an address that is already
8265 in the instruction space.
8266 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8267 * symfile.c: Fix indentation, long lines.
8268 * source.c: White space fix-up.
8269
8270 2002-04-12 Andrew Cagney <cagney@redhat.com>
8271
8272 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8273 * frame.c (frame_register_read): New function. Return non-zero on
8274 success.
8275 (read_relative_register_raw_bytes_for_frame): Delete.
8276 (read_relative_register_raw_bytes): Delete.
8277 * frame.h (frame_register_read): Declare.
8278 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8279 * sh-tdep.c: Ditto.
8280 * infcmd.c (do_registers_info): Ditto.
8281 * hppa-tdep.c: Ditto.
8282 * rs6000-tdep.c: Ditto.
8283 * h8500-tdep.c: Ditto.
8284 * mips-tdep.c: Ditto.
8285 * h8300-tdep.c: Ditto.
8286 * z8k-tdep.c: Ditto.
8287
8288 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8289
8290 From Jimi X <jimix@watson.ibm.com>:
8291 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8292 64-bit SysV ABI.
8293
8294 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8295
8296 From Jimi X <jimix@watson.ibm.com>:
8297 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8298 bfd info.
8299
8300 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8301
8302 From Jimi X <jimix@watson.ibm.com>:
8303 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8304 register sets for these processor variants.
8305
8306 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8307
8308 * regformats/reg-ppc.dat: Support FPSCR.
8309
8310 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8311
8312 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8313 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8314 Add fpscr as an invalid/unfetchable register.
8315 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8316 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8317 (fill_fpregset): Add support for register fpscr.
8318 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8319 (fill_gregset): Account for the fact that register ``mq'' might
8320 not exist.
8321 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8322 (registers_power): Add fpscr to register set at slot 71.
8323 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8324 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8325
8326 2002-04-11 Michael Snyder <msnyder@redhat.com>
8327
8328 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8329 * configure: Regenerate.
8330 * config.in: Regenerate.
8331 * acconfig.h: Add define for _SYSCALL32.
8332 * core-sol2.c: Remove #define _SYSCALL32.
8333 * solib-legacy.c: Remove #define _SYSCALL32.
8334
8335 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8336
8337 * stack.c (select_frame): Cleanup internal error message, do not
8338 use %p.
8339
8340 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8341
8342 * stack.c (select_frame): Check that selected_frame and the
8343 specified level are as expected.
8344 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8345 Update copyright.
8346 * frame.h (struct frame_info): Add field `level'. Update
8347 copyright.
8348 Work-in-progress PR gdb/464.
8349
8350 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8351
8352 * maint.c (maint_print_section_info): Rename print_section_info.
8353 (print_bfd_section_info, print_objfile_section_info): Update.
8354 * inferior.h (struct gdbarch): Add opaque declaration.
8355 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8356 * gdbarch.h: Regenerate.
8357
8358 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8359
8360 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8361 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8362 (kernel_u_size): Added.
8363 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8364 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8365
8366 2002-04-04 Jim Ingham <jingham@apple.com>
8367
8368 * valarith.c (find_size_for_pointer_math): New function, either returns
8369 the size for a pointer's target, returns 1 for void *, or errors for
8370 incomplete types.
8371 (value_add, value_sub): use find_size_for_pointer_math.
8372
8373 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8374
8375 * linux-low.c (linux_look_up_symbols): New hook.
8376 (linux_target_ops): Add linux_look_up_symbols.
8377 * remote-utils.c (decode_address): New function.
8378 (look_up_one_symbol): New function.
8379 * server.c (handle_query): Call target look_up_symbols hook.
8380 * server.h (look_up_one_symbol): Add prototype.
8381 * target.h (struct target_ops): Add look_up_symbols hook.
8382
8383 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8384
8385 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8386 override FP_REGNUM with frame->fp. Update copyright.
8387 * parse.c (num_std_regs, std_regs): Delete.
8388 (target_map_name_to_register): Do not search std_regs. Update
8389 function description.
8390 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8391 declarations. Update copyright.
8392 Fix PR gdb/251.
8393
8394 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8395
8396 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8397 after the last symbol in a block.
8398
8399 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8400
8401 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8402 is non zero as a found symbol.
8403
8404 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8405
8406 * findvar.c: Include "builtin-regs.h".
8407 (value_of_register): Call value_of_builtin_reg when applicable.
8408 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8409 (target_map_name_to_register): Call
8410 builtin_reg_map_name_to_regnum.
8411 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8412 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8413 (builtin_regs_h): Define.
8414 (builtin-regs.o): New target.
8415 (findvar.o): Add $(builtin_regs_h).
8416 * builtin-regs.c, builtin-regs.h: New files.
8417 * std-regs.c: New file.
8418 Partial fix for PR gdb/251.
8419
8420 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8421
8422 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8423 it's no longer required.
8424
8425 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8426
8427 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8428
8429 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8430
8431 From Jimi X <jimix@watson.ibm.com>:
8432 * rs6000-tdep.c (rs6000_software_single_step): Use
8433 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8434 and size. Use target_insert_breakpoint() and
8435 target_remove_breakpoint() to insert and remove breakpoints
8436 instead of explicit memory reads and writes.
8437
8438 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8439
8440 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8441 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8442 ELF_OBJECT_FORMAT ifdef.
8443
8444 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8445
8446 From Jimi X <jimix@watson.ibm.com>:
8447 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8448
8449 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8450
8451 From Jimi X <jimix@watson.ibm.com>:
8452 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8453 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8454
8455 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8456
8457 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8458 s/asprintf/xasprintf/.
8459 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8460
8461 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8462
8463 I believe Jeff Law denies responsability for this one:
8464 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8465 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8466 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8467 Work-around for PR gdb/366.
8468
8469 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8470
8471 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8472 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8473 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8474
8475 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8476
8477 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8478 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8479 information.
8480
8481 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8482
8483 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8484 maintainer.
8485
8486 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8487
8488 * README (Reporting Bugs in GDB): Document the bug web page as the
8489 prefered way of submitting bugs.
8490 Fix PR gdb/402.
8491
8492 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8493
8494 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8495 -1. Update comment.
8496 * gdbarch.h, gdbarch.c: Re-generate.
8497
8498 2002-04-07 Andreas Schwab <schwab@suse.de>
8499
8500 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8501 buffer to regcache_collect.
8502
8503 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8504
8505 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8506 * gdbarch.c, gdbarch.h: Re-generate.
8507
8508 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8509
8510 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8511 declaration. Fix -Werror.
8512
8513 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8514
8515 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8516 * gdbarch.c: Regenerate.
8517
8518 2002-04-05 Michael Snyder <msnyder@redhat.com>
8519
8520 * breakpoint.c (clear_command): Rewrite middle section to
8521 combine two loops with identical control conditions.
8522 Add a cleanup to eliminate a memory leak.
8523 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8524
8525 2002-04-05 H.J. Lu (hjl@gnu.org)
8526
8527 * solib-svr4.c (bkpt_names): Add "__start".
8528
8529 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8530
8531 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8532 as test for 64 bit target.
8533
8534 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8535
8536 * h8500-tdep.c (h8500_write_fp): Delete function.
8537 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8538 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8539 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8541 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8542 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8543 (s390_write_fp):
8544 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8545 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8546 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8547 (d10v_write_fp): Delete function.
8548 * inferior.h (write_fp, generic_target_write_fp): Delete
8549 declarations.
8550 * regcache.c (generic_target_write_fp): Delete function.
8551 (write_fp): Delete function.
8552 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8553 * gdbarch.h, gdbarch.c: Regenerate.
8554 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8555 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8556 (sparc64_write_fp): Delete declaration.
8557 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8558 (h8500_write_fp): Delete declaration.
8559
8560 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8561
8562 * sparc-tdep.c (sparc64_write_fp): Delete.
8563 (sparc_push_dummy_frame): Replace write_fp call with code to store
8564 the FP directly.
8565 (sparc_gdbarch_init): Do not initialize write_fp.
8566
8567 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8568
8569 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8570 clause.
8571
8572 2002-03-29 Jim Blandy <jimb@redhat.com>
8573
8574 * stack.c (get_selected_block): Add new argument `addr_in_block',
8575 used to return the exact code address we used to select the block,
8576 not just the block.
8577 * blockframe.c (get_frame_block, get_current_block): Same.
8578 * frame.h (get_frame_block, get_current_block,
8579 get_selected_block): Update declarations.
8580 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8581 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8582
8583 2002-04-05 Michael Snyder <msnyder@redhat.com>
8584
8585 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8586 warning message.
8587
8588 2002-04-05 J. Brobecker <brobecker@gnat.com>
8589
8590 * utils.c (xfullpath): New function.
8591 * defs.h (xfullpath): Add declaration.
8592 * source.c (openp): Use xfullpath in place of gdb_realpath to
8593 avoid resolving the basename part of filenames when the
8594 associated file is a symbolic link. This fixes a potential
8595 inconsistency between the filenames known to GDB and the
8596 filenames it prints in the annotations.
8597 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8598 to be able to match a filename with either the real filename, or
8599 the name of any symbolic link to this file.
8600 (lookup_partial_symtab): Ditto.
8601
8602 2002-04-04 Michael Snyder <msnyder@redhat.com>
8603
8604 * breakpoint.c: Add support for hardware breakpoints in overlays.
8605 (overlay_events_enabled): New state variable.
8606 (insert_breakpoints): Use overlay_events_enabled to decide
8607 whether to attempt to set a breakpoint at the overlay load addr.
8608 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8609 (remove_breakpoint): Use overlay_events_enabled to decide
8610 whether breakpoints need to be removed from overlay load addr.
8611 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8612 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8613 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8614 disable_overlay_breakpoints): Update overlay_events_enabled.
8615
8616 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8617
8618 * dwarf2read.c (struct function_range): New.
8619 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8620 (check_cu_functions): New.
8621 (read_file_scope): Initialize global function lists.
8622 Call dwarf_decode_line after processing children.
8623 (read_func_scope): Add to global function list.
8624 (dwarf_decode_lines): Call check_cu_functions everywhere
8625 record_line is called. Call record_line with a linenumber
8626 of 0 to mark sequence ends.
8627
8628 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8629
8630 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8631 change sync with glibc.
8632
8633 2002-04-03 Jim Blandy <jimb@redhat.com>
8634
8635 * configure.in: Call AC_C_INLINE.
8636 * configure: Regenerated.
8637
8638 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8639
8640 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8641 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8642
8643 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8644
8645 * NEWS: Mention gcore support on FreeBSD/i386.
8646
8647 * fbsd-proc.c: New file.
8648 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8649 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8650
8651 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8652 while statement.
8653
8654 2002-03-29 Jim Blandy <jimb@redhat.com>
8655
8656 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8657 unescaped newlines in string literals, but newer ones don't. So
8658 escape them.
8659
8660 2002-03-26 Michael Snyder <msnyder@redhat.com>
8661 Andrew Cagney <cagney@redhat.com>
8662
8663 * cli/cli-dump.c: New file. Dump memory to file,
8664 restore file to memory.
8665 * cli/cli-dump.h: New file.
8666 * Makefile.in: Add rules, dependencies for cli-dump.o.
8667 * NEWS: Mention new commands.
8668
8669 2002-03-28 Michael Snyder <msnyder@redhat.com>
8670
8671 * symfile.c (symbol_file_add): Move test for null symbols to later.
8672
8673 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8674
8675 From veksler at il.ibm.com:
8676 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8677 the xstrduped original path.
8678 Fix PR gdb/417.
8679
8680 2002-03-27 Michael Snyder <msnyder@redhat.com>
8681
8682 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8683 * infcmd.c (_initialize_infcmd): Ditto.
8684 * language.c (_initialize_language): Ditto.
8685 * symfile.c (_initialize_symfile): Ditto.
8686 * top.c (_init_main): Ditto.
8687 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8688
8689 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8690
8691 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8692 vector registers handling.
8693 (skip_prologue): Handle new AltiVec instructions. Fill in new
8694 fields of frame data.
8695 (frame_get_saved_regs): Fill in information for AltiVec registers.
8696
8697 2002-03-27 Jim Blandy <jimb@redhat.com>
8698
8699 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8700 a function; leave this macro here to invoke that function.
8701 (symbol_init_mangled_name): Declaration for that function.
8702 * symtab.c (symbol_init_mangled_name): New function.
8703
8704 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8705
8706 * valarith.c: Replace strerror with safe_strerror.
8707 * tracepoint.c: Ditto.
8708 * lin-lwp.c: Ditto.
8709 * go32-nat.c: Ditto.
8710 * inflow.c: Ditto.
8711 * gnu-nat.c: Ditto.
8712
8713 2002-03-27 Andreas Schwab <schwab@suse.de>
8714
8715 * event-top.c (command_line_handler): Remove useless if.
8716
8717 2002-03-27 Andreas Jaeger <aj@suse.de>
8718
8719 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8720 comment.
8721
8722 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8723
8724 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8725 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8726 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8727 (x86_64_linux_dr_get_status, supply_gregset),
8728 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8729 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8730 (x86_64_register_info_table): Add.
8731 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8732 (x86_64_register_raw_size, x86_64_register_virtual_type),
8733 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8734 general x86_64_register_info_table.
8735 (i386_gdbarch_init): gdbarch_register_bytes is now set
8736 dynamicaly during initialization.
8737 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8738 * gdbserver/linux-x86-64-low.c: Ditto.
8739
8740 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8741
8742 * gdbserver/server.c (main): Call target_signal_to_host_p
8743 and target_signal_to_host on signals received from the remote.
8744 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8745 target_signal_from_host on signals sent to the remote.
8746 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8747 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8748
8749 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8750
8751 * signals/signals.c: Include "server.h" in gdbserver build.
8752 (target_signal_from_name): Don't use STREQ.
8753 (_initialize_signals): Likewise. Don't include function in
8754 gdbserver build.
8755
8756 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8757
8758 * signals.c: Moved to...
8759 * signals/signals.c: Here.
8760 * Makefile (signals.o): Update.
8761
8762 2002-03-26 Jeff Law (law@redhat.com)
8763
8764 * somread.c (som_symtab_read): Remove some commented out code and
8765 updated related comments. Do not set the minimal symbol table to
8766 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8767 in a dynamic executable.
8768 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8769 where we are unable to find the minimal symbol for the given
8770 PC value.
8771
8772 2002-03-25 Jeff Law (law@redhat.com)
8773
8774 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8775
8776 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8777
8778 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8779
8780 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8781
8782 * command.h: Update copyright.
8783 (struct cmd_list_element): Replace definition with opaque
8784 declaration.
8785 (enum cmd_types): Document that it will eventually be moved to
8786 cli/cli-decode.h
8787 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8788 (MALLOCED_REPLACEMENT): Delete macro.
8789 * Makefile.in (cli_decode_h): Add $(command_h).
8790 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8791 * top.c: Include "cli/cli-decode.h".
8792 * completer.c: Include "cli/cli-decode.h".
8793 * maint.c: Include "cli/cli-decode.h".
8794 * cli/cli-decode.h: Include "command.h".
8795 (enum command_class): Delete.
8796 (enum cmd_types): Comment out.
8797 (enum cmd_auto_boolean): Delete.
8798 (enum var_types): Delete.
8799
8800 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8801
8802 * cli/cli-decode.c: Include "gdb_assert.h".
8803 (add_set_or_show_cmd): New static function.
8804 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8805 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8806 all fields, such as func, from the set command.
8807
8808 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8809
8810 * MAINTAINERS (sh-elf): Change warning flag to -w.
8811
8812 2002-03-23 Andrew Cagney <cagney@redhat.com>
8813
8814 * defs.h (error): Add printf format attribute.
8815 * thread-db.c (thread_from_lwp): Fix error format string.
8816 * stack.c (parse_frame_specification): Ditto.
8817 * cli/cli-decode.c (undef_cmd_error): Ditto.
8818 * scm-lang.c (scm_lookup_name): Ditto.
8819 * tracepoint.c (trace_error): Ditto.
8820 * remote-utils.c (usage): Ditto.
8821 * remote.c (compare_sections_command): Ditto.
8822 Fix PR gdb/328.
8823
8824 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8825
8826 * gdbtypes.c (append_composite_type_field): New function.
8827 (init_composite_type): New function.
8828 * gdbtypes.h (append_composite_type_field): Declare.
8829 (init_composite_type): Ditto.
8830
8831 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8832
8833 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8834 function.
8835 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8836 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8837 structure returning convention for SYSV ABI case, but not
8838 for GNU/Linux, FreeBSD, or NetBSD.
8839
8840 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8841
8842 * symtab.h (lookup_block_symbol): Add mangled_name argument
8843 to prototype.
8844
8845 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8846 with new mangled_name argument.
8847 * linespec.c (decode_line_1): Likewise.
8848 * valops (value_of_this): Likewise.
8849 * symtab.c (lookup_transparent_type): Likewise.
8850 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8851 (lookup_symbol): If we are given a mangled name, pass it down
8852 to lookup_symbol_aux.
8853 (lookup_block_symbol): If we are given a mangled name to check
8854 against, only return symbols which match it.
8855
8856 2002-03-22 Christopher Faylor <cgf@redhat.com>
8857
8858 * win32-nat.c (child_create_inferior): Check for proper shell to use
8859 here, in case the user changes it on the fly.
8860 (_initialize_inftarg): Remove shell path considerations.
8861
8862 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8863
8864 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8865 for gdbarch_max_register_raw_size and max_register_virtual_size.
8866 Adjust copyright year.
8867
8868 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8869
8870 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8871 in a function to cover the entire beginning of the function
8872 as well if it does not already.
8873
8874 2002-03-21 Tom Rix <trix@redhat.com>
8875
8876 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8877 (rs6000_ptrace64): Renamed from ptrace64.
8878
8879 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8880
8881 * gdbserver/remote-utils.c (remote_open): Don't call
8882 getprotobyname, we're all using TCP here so just use
8883 IPPROTO_TCP.
8884 * gdbserver/gdbreplay.c (remote_open): Ditto.
8885
8886 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8887
8888 * regcache.c (_initialize_regcache): No need to call
8889 build_regcache() at this time; it gets called whenever
8890 the gdbarch changes.
8891
8892 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8893
8894 * sparc-nat.c: Include sys/param.h where possible.
8895
8896 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8897
8898 Fix PR gdb/422.
8899 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8900 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8901 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8902 complex types.
8903 * stabsread.c (rs6000_builtin_type): Likewise.
8904 (read_sun_floating_type): Likewise.
8905
8906 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8907
8908 * stabsread.c (read_member_functions): Remove skip code for duplicate
8909 constructor/destructor methods. Use standard parsing for these
8910 methods and just do not chain them to the list of methods after
8911 parsing.
8912
8913 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8914
8915 * coffread.c: Remove redundant static declarations. Replace
8916 occurrences of `PTR' with `void *'.
8917 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8918 * top.h (quit_cover): Likewise.
8919 * defs.h (catch_errors): Likewise.
8920
8921 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8922
8923 * defs.h (XMALLOC): Define.
8924 * gdb-events.sh (XMALLOC): Delete macro.
8925 * gdb-events.c, gdb-events.h: Regenerate.
8926 * gdbarch.sh (XMALLOC): Delete macro.
8927 * gdbarch.c: Regenerate.
8928 * serial.c (XMALLOC): Delete macro.
8929 * ui-file.c (XMALLOC): Ditto.
8930 * ser-unix.h (XMALLOC): Ditto.
8931 * sh-tdep.c (XMALLOC): Ditto.
8932 * ui-out.c (XMALLOC): Ditto.
8933 * utils.c (XMALLOC): Ditto.
8934 * i386-tdep.c (XMALLOC): Ditto.
8935 * gdb-events.c (XMALLOC): Ditto.
8936 * d10v-tdep.c (XMALLOC): Ditto.
8937 * cli-out.c (XMALLOC): Ditto.
8938
8939 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8940 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8941 * ui-file.c, ui-out.c: Ditto.
8942
8943 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8944
8945 * command.h (struct cmd_list_element): Add field context.
8946 (set_cmd_context, get_cmd_context): Declare.
8947 * cli/cli-decode.h: Ditto.
8948 * cli/cli-decode.c (get_cmd_context): New function.
8949 (set_cmd_context): New function.
8950 (add_cmd): Initialize context.
8951 Part of fixing PR gdb/145 and PR gdb/146.
8952
8953 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8954
8955 * cli/cli-decode.c (cmd_type): New function.
8956 * command.h (cmd_type): Declare.
8957 * infrun.c (set_schedlock_func): Call function cmd_type.
8958 * kod.c (kod_set_os): Call cmd_type.
8959 * cris-tdep.c (cris_version_update): Use function cmd_type.
8960 (cris_mode_update, cris_abi_update): Ditto.
8961
8962 * command.h: (execute_cmd_post_hook): Declare.
8963 (execute_cmd_pre_hook): Declare.
8964 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8965 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8966 functions. Execute pre/post hook while ensuring that afterwords
8967 hook_in is cleared.
8968 * top.c (execute_command): Use execute_cmd_post_hook, and
8969 execute_cmd_pre_hook to execute pre/post commands.
8970 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8971 hook_stop_stub.
8972 (hook_stop_stub): Call execute_cmd_pre_hook.
8973
8974 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8975
8976 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8977 set'' and this leads to a core dump. Move xstrdup of
8978 operating_system to after check that it is not NULL.
8979
8980 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8981
8982 * kod.c (kod_set_os): Remove unnecessary check that
8983 ``command->type'' is set_cmd.
8984
8985 * valprint.c (set_input_radix): Use input_radix.
8986 (set_output_radix): Use output_radix.
8987 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8988 isn't reverted.
8989
8990 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8991
8992 * value.h (struct value): Delete field ``substring_addr''. Change
8993 aligner fields to force_doublest_align, force_longest_align,
8994 force_core_addr_align and force_pointer_aligh.
8995
8996 * value.h (struct value): Fix typo in above change.
8997
8998 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8999
9000 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9001 to fix internal_error from ``maintenance print architecture''.
9002
9003 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9004
9005 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9006 for gcc versions after gcc-2.8.1.
9007
9008 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9009
9010 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9011 for method resolution. Restore adjustment of ``this'' pointer after
9012 calling value_struct_elt, which was accidentally removed during the
9013 HP merge.
9014
9015 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9016
9017 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9018 value_of_register.
9019 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9020 get_saved_register.
9021 * value.h (value_of_register): Update.
9022
9023 2002-03-14 Richard Henderson <rth@redhat.com>
9024
9025 * configure.in: Detect declaration for canonicalize_file_name.
9026 * utils.c (canonicalize_file_name): Declare, if needed.
9027 (gdb_realpath): Prefer realpath if available and usable.
9028 * config.in, configure: Rebuild.
9029
9030 2002-03-14 Richard Henderson <rth@redhat.com>
9031
9032 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9033 a constant array bound.
9034
9035 * MAINTAINERS: Add myself to write-after-approval.
9036
9037 2002-03-14 Michael Snyder <msnyder@redhat.com>
9038
9039 * symfile.c (syms_from_objfile): Return immediately if no syms.
9040 (symbol_file_add): Return immediately if no syms.
9041 (find_sym_fns): Return immediately if no syms.
9042
9043 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9044
9045 * gdbserver/remote-util.c (remote_open): Print remote-side's
9046 IP address when remote debugging over the network.
9047
9048 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9049
9050 * config/sparc/fbsd.mh: Fix copyright.
9051 * config/sparc/fbsd.mt: Likewise.
9052
9053 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9054
9055 * MAINTAINERS: Fix typo in name of gdb warnings option.
9056 (x86-64): Fix formating so that this can be parsed by awk.
9057
9058 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9059
9060 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9061 * defs.h: Include "gdb/signals.h".
9062 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9063
9064 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9065
9066 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9067 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9068 from x86-64-tdep.h
9069
9070 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9071 Don Howard <dhoward@redhat.com>
9072
9073 * mips-tdep.c (ST0_FR): Define.
9074 (mips2_fp_compat): New function, temporarily disabled.
9075 (mips_read_fp_register_single): New function.
9076 (mips_read_fp_register_double): New function.
9077 (mips_print_register): Use them.
9078 (do_fp_register_row): Likewise.
9079
9080 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9081
9082 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9083 approval''.
9084
9085 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9086
9087 * stabsread.c (read_member_functions): Fix is_stub test for
9088 static member functions, improve comment.
9089
9090 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9091
9092 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9093 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9094 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9095 commands that set boolean values.
9096 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9097 (arm_rdi_resume): Always initialize PC.
9098 (arm_rdi_open): Don't use rslt as a boolean.
9099 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9100 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9101 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9102 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9103
9104 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9105
9106 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9107 * configure: Rebuilt.
9108
9109 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9110
9111 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9112 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9113
9114 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9115
9116 * cli/cli-decode.c (set_cmd_completer): New function.
9117 * command.h (set_cmd_completer): Declare.
9118 * cli/cli-decode.h (set_cmd_completer): Ditto.
9119
9120 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9121 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9122 * win32-nat.c (_initialize_inftarg): Ditto.
9123 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9124 * proc-api.c (_initialize_proc_api): Ditto.
9125 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9126 * source.c (_initialize_source): Ditto.
9127 * exec.c (_initialize_exec): Ditto.
9128 * solib.c (_initialize_solib): Ditto.
9129 * top.c (init_main): Ditto.
9130 * tracepoint.c (_initialize_tracepoint): Ditto.
9131 * symfile.c (_initialize_symfile): Ditto.
9132 * printcmd.c (_initialize_printcmd): Ditto.
9133 * infcmd.c (_initialize_infcmd): Ditto.
9134 * corefile.c (_initialize_core): Ditto.
9135
9136 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9137
9138 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9139
9140 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9141
9142 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9143
9144 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9145
9146 * NEWS: Update headings, 5.2 has branched.
9147
9148 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9149
9150 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9151 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9152 (register_addr, REGISTER_RAW_SIZE): Likewise.
9153 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9154 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9155
9156 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9157
9158 * MAINTAINERS (x86-64): Add myself.
9159 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9160 changed value_ptr -> struct value *
9161
9162 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9163
9164 * configure.host (sparc64-*-freebsd): Add.
9165 * configure.tgt: Likewise.
9166 * config/sparc/fbsd.mh: New file.
9167 * config/sparc/fbsd.mt: Likewise.
9168 * config/sparc/nm-fbsd.h: Likewise.
9169 * config/sparc/tm-fbsd.h: Likewise.
9170
9171 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9172
9173 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9174 regformats/reg-s390x.dat.
9175
9176 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9177
9178 * utils.c: Add FIXME explaining true/false problem.
9179
9180 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9181
9182 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9183
9184 2002-02-28 Michael Chastain <mec@shout.net>
9185
9186 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9187
9188 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9189
9190 * gdbserver/linux-s390-low.c: New file.
9191 * regformats/reg-s390.dat: New file.
9192 * regformats/reg-s390x.dat: New file.
9193 * gdbserver/configure.srv: Add S/390.
9194 * gdbserver/Makefile.in: Add S/390.
9195 * configure.tgt: Enable gdbserver for S/390.
9196
9197 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9198
9199 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9200 first line of the doc string for "info dos", except at the end of
9201 the sentence, since the short help stops at the first period.
9202
9203 2002-02-28 Jason Merrill <jason@redhat.com>
9204
9205 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9206
9207 2002-02-27 Fred Fish <fnf@redhat.com>
9208
9209 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9210 comment (dumy -> dummy).
9211
9212 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9213
9214 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9215
9216 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9217
9218 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9219
9220 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9221
9222 * gdbserver/acconfig.h: New file.
9223 * gdbserver/i387-fp.c: New file.
9224 * gdbserver/i387-fp.h: New file.
9225 * gdbserver/linux-x86-64.c: New file.
9226 * regformats/reg-x86-64.dat: New file.
9227 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9228 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9229 * gdbserver/configure.in: Add support for regsets.
9230 * gdbserver/config.in: Regenerate.
9231 * gdbserver/configure: Regenerate.
9232 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9233 * gdbserver/linux-low.h: New file.
9234 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9235 for regsets.
9236 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9237 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9238 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9239 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9240 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9241 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9242 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9243 "i387-fp.h". Add PTRACE_GETREGS and friends.
9244 * gdbserver/regcache.c (supply_register): New function.
9245 (supply_register_by_name): New function.
9246 (collect_register): New function.
9247 (collect_register_by_name): New function.
9248
9249 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9250
9251 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9252 (config.status): Add configure.srv dependency.
9253 (server_h): Add config.h dependency.
9254
9255 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9256
9257 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9258 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9259 * gdbserver/configure.srv: Change i386-*-linux* to use
9260 reg-i386-linux.o.
9261
9262 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9263
9264 * x86-64-tdep.c: Re-indent. Update copyright date.
9265
9266 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9267
9268 From Michal Ludvig <mludvig@suse.cz>:
9269 * x86-64-tdep.c (value.h): Delete.
9270 (gdb_assert.h): Include.
9271 (x86_64_register_convert_to_virtual,
9272 x86_64_register_convert_to_raw ): Add check which lets only
9273 floating-point values to be converted.
9274 (value_push): Delete.
9275 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9276 (i386_gdbarch_init): Number of register_bytes fixed.
9277
9278 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9279
9280 * MAINTAINERS: Add x86-64 target.
9281
9282 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9283
9284 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9285 * osfsolib.c (solib_map_sections): Ditto.
9286 * irix5-nat.c (solib_map_sections): Ditto.
9287 * corelow.c (gdb_check_format): Ditto.
9288 * symfile.c (symfile_bfd_open): Ditto.
9289 * solib.c (solib_map_sections): Ditto.
9290 Fix PR gdb/354.
9291
9292 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9293
9294 * remote.c (_initialize_remote): By default, disable ``e'' and
9295 ``E'' step out-of-range packets.
9296
9297 2002-02-26 Andreas Schwab <schwab@suse.de>
9298
9299 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9300 m68k_linux_frame_saved_pc.
9301 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9302 in_sigtramp.
9303 (SIGCONTEXT_PC_OFFSET): Remove.
9304 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9305 m68k_linux_sigtramp_saved_pc): New functions.
9306 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9307 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9308 (UCONTEXT_PC_OFFSET): Define.
9309 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9310 non-RT and RT signal trampolines.
9311
9312 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9313
9314 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9315 (TARGET_NBPG, STACK_END_ADDR): Delete
9316 (VARIABLES_INSIDE_BLOCK): Delete.
9317
9318 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9319
9320 * utils.c (perror_with_name): Make string parameter constant.
9321 (print_sys_errmsg): Ditto.
9322 (query): Ditto.
9323 * defs.h (perror_with_name): Update.
9324 (print_sys_errmsg): Update.
9325 (query): Update.
9326
9327 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9328
9329 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9330 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9331
9332 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9333
9334 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9335 if it already matches the current architecture from the exec file.
9336 Include arch-utils.h for gdbarch_info_init prototype.
9337 * Makefile.in (rs6000-nat.o): Update dependencies.
9338
9339 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9340
9341 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9342 list of exported variables.
9343
9344 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9345
9346 * gdbserver/configure.srv: New file.
9347 * gdbserver/configure.in: Use configure.srv instead
9348 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9349 from it.
9350 * gdbserver/configure: Regenerated.
9351 * gdbserver/terminal.h: New file.
9352 * gdbserver/Makefile.in: Update for configure changes. Remove
9353 more unneeded include paths.
9354
9355 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9356
9357 From wiz at danbala:
9358 * config/sparc/tm-sp64.h: Fix grammar and typos.
9359 Fix PR gdb/287.
9360
9361 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9362
9363 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9364 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9365 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9366 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9367 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9368 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9369 * s390-tdep.c: Ditto.
9370 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9371 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9372 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9373 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9374 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9375 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9376 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9377 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9378 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9379 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9380 Fix PR gdb/378.
9381
9382 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9383
9384 * lin-thread.c: Delete file.
9385 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9386 to gdb_proc_service.h.
9387 * configure: Re-generate.
9388
9389 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9390 * serial.c (serial_open): Delete check for "ocd".
9391 Fix PR gdb/349.
9392
9393 * Makefile.in (linux-thread.o): Delete target.
9394 * linux-thread.c: Delete file.
9395
9396 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9397 renamed SH files to be consistent.
9398
9399 * symtab.c (sort_search_symbols): Use xfree.
9400
9401 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9402
9403 * arm-linux-tdep.c (arm_linux_init_abi): Register
9404 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9405 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9406 definition with undef, since we don't want the sysvr4 definition.
9407 (SKIP_TRAMPOLINE_CODE): Likewise.
9408
9409 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9410
9411 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9412
9413 * configure.in: (AC_CHECK_FUNCS) Added test for
9414 canonicalize_file_name Regenerated.
9415 * config.in, configure: Regenerated.
9416 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9417 defined use canonicalize_file_name.
9418
9419 2002-02-23 Michael Chastain <mec@shout.net>
9420
9421 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9422
9423 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9424
9425 * README: Remove references to cygnus.com.
9426 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9427 dot com'' form. Remove references to cygnus.com and sourceware.
9428
9429 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9430
9431 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9432 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9433 1003.1-2001 no longer allows "head -1".
9434 * gdb/Makefile.in (version.c): Likewise.
9435 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9436 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9437 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9438
9439 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9440
9441 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9442 * command.h (cmd_cfunc_eq): Declare.
9443 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9444
9445 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9446 ``struct cmd_list_element *''.
9447 * cli/cli-cmds.c (is_complete_command): Update. Use
9448 cmd_cfunc_eq.
9449 * top.c (execute_command): Pass the command to
9450 is_complete_command.
9451 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9452
9453 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9454
9455 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9456 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9457 architecture defines.
9458 * s390-tdep.c (s390_gdbarch_init): Likewise.
9459
9460 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9461
9462 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9463 (arm_linux_push_arguments): Likewise.
9464 (arm_linux_init_abi): Register them. Also register linux-specific
9465 call_dummy_words.
9466 (find_minsym_and_objfile): Use strcmp, not STREQ.
9467 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9468 (arm_linux_call_dummy_words): Delete declaration.
9469 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9470 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9471 declarations.
9472 (LOWEST_PC): Delete.
9473
9474 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9475
9476 * maint.c (print_section_info): Do not prepend `0x' to filepos
9477 output, it will be handled by local_hex_string_custom.
9478
9479 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9480
9481 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9482 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9483 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9484
9485 2002-02-22 Jim Blandy <jimb@redhat.com>
9486
9487 Indicate that the bcache functions don't change the strings
9488 they're passed.
9489 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9490 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9491
9492 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9493
9494 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9495
9496 2002-02-21 Christopher Faylor <cgf@redhat.com>
9497
9498 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9499 find the complete path to a loaded DLL.
9500
9501 2002-02-21 Fred Fish <fnf@redhat.com>
9502
9503 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9504 that marks the end of the range of a function, enter a line number
9505 entry that has a line number of zero and a PC offset that matches
9506 the end of the function. This starts a range of PC's for which no
9507 line number information is known.
9508 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9509 PC's for which no line number info is found (line number is zero)
9510 then we didn't find any valid line information.
9511 * symtab.h: Document use of zero line number entry.
9512
9513 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9514
9515 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9516 (have_ptrace_getvrregs): Define for run time checks.
9517 (gdb_vrregset_t): New type for Altivec register handling.
9518 (fetch_register, store_register): Fetch/store altivec register
9519 when needed.
9520 (fetch_altivec_register, store_altivec_register): New functions.
9521 (supply_vrregset, fill_vrregset): New functions.
9522 (fetch_altivec_registers, store_altivec_registers): New functions.
9523 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9524 registers as well.
9525
9526 2002-02-21 Jiri Smid <smid@suse.cz>
9527
9528 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9529
9530 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9531
9532 * Makefile.in (armnbsd-nat.o): Update dependencies.
9533 * armnbsd-nat.c (supply_gregset): New function. Common code to
9534 supply the integer register set.
9535 (supply_fparegset): New function. Similar for FPA registers.
9536 (fetch_regs, fetch_fp_regs): Use them.
9537 (fetch_core_registers): Likewise.
9538 (fetch_elfcore_registers): New function.
9539 (arm_netbsd_elfcore_fns): New core-file type specification.
9540 (_initialize_arm_netbsd_nat): Register it.
9541
9542 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9543
9544 * armnbsd-nat.c: Include gdbcore.h.
9545 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9546 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9547 'void' to declaration, to shut up ARI.
9548 (fetch_core_registers): Make static. Rewrite using supply_register.
9549 (arm_netbsd_core_fns): New core-file type specification.
9550 (_initialize_arm_netbsd_nat): New function.
9551
9552 2002-02-21 Christopher Faylor <cgf@redhat.com>
9553
9554 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9555 value.
9556
9557 2002-02-20 Christopher Faylor <cgf@redhat.com>
9558
9559 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9560 fails.
9561
9562 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9563
9564 * jv-exp.y (parse_number): Change type of implicit longs
9565 to builtin_type_uint64.
9566
9567 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9568
9569 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9570 to be an integer instead of a `union wait'.
9571
9572 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9573
9574 * mips-linux-nat.c: Call the operating system GNU/Linux.
9575 * mips-linux-tdep.c: Likewise.
9576 * mips-tdep.c: Likewise.
9577
9578 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9579
9580 Fix PR gdb/265.
9581 * jv-exp.y (parse_number): Handle 64-bit integers.
9582
9583 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9584
9585 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9586 AC_STDC_HEADERS to AC_HEADER_STDC.
9587 * gdbserver/configure: Regenerated.
9588
9589 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9590
9591 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9592 is defined.
9593 * sparc-tdep.c (get_longjmp_target): Likewise.
9594
9595 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9596
9597 * News: Add news about ARM and Multi-arch. Mention the new target
9598 arm*-*-netbsd*.
9599
9600 2002-02-19 Jim Blandy <jimb@redhat.com>
9601
9602 * stabsread.c (error_type_complaint): Improve error message.
9603
9604 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9605
9606 * gdbserver/README: Update documentation.
9607 * gdbserver/configure.in: Update configury to match documentation.
9608 * gdbserver/Makefile.in: Likewise.
9609 * gdbserver/configure: Regenerated.
9610 * gdbserver/aclocal.m4: New file, generated by aclocal.
9611 * gdbserver/config.in: New file, generated by autoheader.
9612
9613 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9614
9615 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9616 armnbsd-nat.c.
9617
9618 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9619
9620 * arm-tdep.h (enum arm_float_model): New enum.
9621 (struct gdbarch_tdep): Add fp_model.
9622 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9623 up floating-point conversions until we know the floating-point model
9624 in use by the inferior. Don't complain about being unable to
9625 determine the ABI of the inferior when we don't have one.
9626 (arm_extract_return_value): Support different floating-point models.
9627 (arm_store_return_value): Likewise.
9628 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9629 ARM_FLOAT_SOFT.
9630 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9631
9632 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9633
9634 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9635 of ``current_gdbarch''.
9636
9637 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9638
9639 * armnbsd-nat.c : ANSIfy all function declarations.
9640 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9641 (fetch_inferior_registers): Re-implement in terms of above.
9642 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9643 (store_inferior_registers): Re-implement in terms of above.
9644
9645 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9646
9647 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9648 kernel.
9649 * arm-linux-tdep.c: Likewise.
9650 * config/arm/tm-linux.h: Likewise.
9651
9652 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9653
9654 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9655 * config/arm/nbsd.mt (TM_FILE): Delete.
9656 * config/arm/tm-nbsd.h: Delete.
9657
9658 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9659
9660 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9661 Initialize CALL_DUMMY_LENGTH.
9662
9663 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9664
9665 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9666 function.
9667 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9668 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9669 defines one thing and that is incorrect for this port.
9670 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9671
9672 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9673
9674 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9675
9676 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9677
9678 * win32-nat.c (display_selector): New function. Displays information
9679 about the information returned by GetThreadSelectorEntry API function.
9680 (display_selectors): New function. Displays the infomation of
9681 the selector given as argument, or of CS, DS ans FS selectors
9682 if no argument is given.
9683 ( _initialize_inftarg): Add "w32" as info prefix command.
9684 Add "info w32 selector" as command calling display_selectors.
9685
9686 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9687
9688 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9689 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9690 if not defined.
9691
9692 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9693
9694 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9695
9696 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9697
9698 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9699 (arm_fix_call_dummy): Call it.
9700 (arm_call_dummy_breakpoint_offset): Delete.
9701 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9702 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9703
9704 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9705
9706 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9707 Default to func_frame_chain_valid.
9708 * gdbarch.h, gdbarch.c: Re-generate.
9709 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9710
9711 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9712
9713 * ppc-linux-nat.c: Update copyright.
9714 (fetch_register, store_register): Add tid parameter, don't compute
9715 tid here.
9716 (fetch_ppc_registers, store_ppc_registers): Add tid
9717 parameter. Pass it along to callees.
9718 (fetch_inferior_registers, store_inferior_registers): Compute tid
9719 here, and pass it to calleed functions.
9720 (fill_gregset, supply_fpregset): Clean up formatting.
9721
9722 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9723
9724 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9725 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9726
9727 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9728
9729 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9730 * gdbarch.c gdbarch.h: Regenerate.
9731 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9732 function.
9733 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9734 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9735 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9736
9737 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9738 * arm-tdep.c (arm_get_longjmp_target): New function.
9739 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9740 this to a positive value register arm_get_longjmp_target as the
9741 longjmp handler.
9742 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9743 (arm_linux_init_abi): Set up longjmp description in tdep.
9744 * armnbsd-nat.c (get_longjmp_target): Delete.
9745 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9746 description in tdep.
9747 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9748 (get_longjmp_target): Delete declaration.
9749 (GET_LONGJMP_TARGET): Delete.
9750 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9751 (GET_LONGJMP_TARGET): Delete.
9752
9753 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9754
9755 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9756 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9757 of ``current_gdbarch''.
9758
9759 2002-02-17 Tom Tromey <tromey@redhat.com>
9760
9761 * cli/cli-cmds.c (compare_strings): New function.
9762 (complete_command): Only print each unique item once.
9763 * completer.h (complete_line): Declare.
9764 * completer.c (complete_line): New function.
9765 (line_completion_function): Use it.
9766
9767 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9768
9769 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9770 * gdbarch.h, gdbarch.c: Re-generate.
9771
9772 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9773
9774 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9775
9776 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9777
9778 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9779 * valops.c (value_arg_coerce): Don't take the address of a reference
9780 to convert an argument to a reference.
9781
9782 2002-02-15 Christopher Faylor <cgf@redhat.com>
9783
9784 * win32-nat.c (get_image_name): New function.
9785 (handle_load_dll): Use get_image_name function.
9786 (get_child_debug_event): Avoid registering debug events until possibly
9787 execed process is started.
9788 (child_create_inferior): Allow invocation via shell so that command
9789 line redirection, etc. works ok.
9790 (_initialize_inftarg): Add new command: "set shell" to control whether
9791 a shell is used to start a process.
9792
9793 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9794
9795 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9796 instead of find_register_by_number.
9797 (cannot_store_register): Likewise.
9798
9799 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9800
9801 * dwarf2read.c: Replace fprintf (stderr, ...) by
9802 fprintf_unfiltered (gdb_stderr, ...).
9803
9804 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9805
9806 * gdbserver/gdbserver.1: Document --attach.
9807
9808 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9809
9810 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9811 descriptions.
9812 * arm-tdep.c (arm_default_arm_le_breakpoint)
9813 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9814 (arm_default_thumb_be_breakpoint): New. Initialize them from
9815 traditional breakpoint defines.
9816 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9817 (arm_gdbarch_init): Initialize new breakpoint variables.
9818 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9819 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9820 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9821 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9822 code out to ...
9823 (arm_netbsd_init_abi_common): ... here; new function.
9824 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9825 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9826 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9827 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9828
9829 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9830
9831 * arm-tdep.h (enum arm_abi): New enum.
9832 (struct gdbarch_tdep): New structure.
9833 (LOWEST_PC): Provide a default.
9834 (arm_gdbarch_register_os_abi): Declare new function.
9835 * arm-tdep.c (arm_abi_names): New array.
9836 (process_note_abi_tag_sections): New function.
9837 (get_elfosabi): New function.
9838 (arm_gdbarch_register_os_abi): New function.
9839 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9840 support for that ABI has been built in, then call the appropriate
9841 configuration routine. Use gdbarch_num_regs() to get the number
9842 of registers.
9843 (arm_dump_tdep): New function.
9844 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9845 place-holder functions.
9846 (_initialize_arm_tdep): Register them.
9847 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9848
9849 * armnbsd-tdep.c: New file.
9850 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9851 * config/arm/nbsd.mt (TDEPFILES): Add it.
9852 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9853
9854 * armnbsd-nat.c: Include regcache.h.
9855 * Makefile.in (armnbsd-nat.o): Update dependency list.
9856
9857 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9858
9859 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9860
9861 * gdbserver/Makefile.in: Fix typos in target rules.
9862
9863 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9864
9865 Fix part of PR gdb/267.
9866 * linespec.c (find_methods): Handle constructors specially for now.
9867
9868 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9869
9870 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9871 handling.
9872 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9873 standard_coerce_float_to_double().
9874
9875 2002-02-14 Christopher Faylor <cgf@redhat.com>
9876
9877 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9878 GDBINIT_FILENAME.
9879
9880 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9881
9882 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9883 find_variant_by_name, because it confuses the multiarch
9884 framework. Return NULL if there isn't an architecture with the
9885 user supplied name, instead of forcing a different one without
9886 recording the change with the multiarch machinery.
9887 (find_variant_by_name): Delete.
9888
9889 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9890
9891 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9892 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9893
9894 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9895
9896 * stack.c (print_frame_info_base): When calling
9897 print_frame_info_listing_hook, set current_source_symtab.
9898
9899 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9900
9901 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9902 and remove unused $(INCLUDE_DIR).
9903 Add regcache.c to OBS.
9904 Add generated register protocol files to clean target.
9905 Update dependencies for new objects, obsolete old target code.
9906
9907 * gdbserver/linux-low.c: Remove all platform-specific code to
9908 new files. Remove various dead code. Update to use regcache
9909 functionality.
9910 * gdbserver/remote-utils.c (fromhex): Add return statement
9911 to quiet warning.
9912 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9913 constant.
9914 (input_interrupt): Add integer parameter to match prototype
9915 of a signal handler.
9916 (outreg): Use register_data ().
9917 (prepare_resume_reply): Use gdbserver_expedite_regs.
9918 * gdbserver/server.c (main): Dynamically allocate own_buf because
9919 PBUFSIZ is no longer constant. Use registers_to_string () and
9920 registers_from_string ().
9921 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9922 for error (), fatal (), and warning (). Update definition of
9923 PBUFSIZ to use regcache functionality. Add include guard.
9924 * gdbserver/utils.c (fatal): Add missing ``const''.
9925 (warning): New function.
9926
9927 * regformats/regdat.sh: Include "regcache.h" in generated files.
9928 Provide init_registers () function.
9929 * regformats/regdef.h: Add prototype for set_register_cache ().
9930 Add include guard.
9931
9932 * gdbserver/linux-arm-low.c: New file.
9933 * gdbserver/linux-i386-low.c: New file.
9934 * gdbserver/linux-ia64-low.c: New file.
9935 * gdbserver/linux-m68k-low.c: New file.
9936 * gdbserver/linux-mips-low.c: New file.
9937 * gdbserver/linux-ppc-low.c: New file.
9938 * gdbserver/linux-sh-low.c: New file.
9939
9940 * gdbserver/regcache.c: New file.
9941 * gdbserver/regcache.h: New file.
9942
9943 * gdbserver/low-linux.c: Removed obsolete file.
9944
9945 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9946
9947 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9948 * config/i386/linux.mt: Likewise.
9949 * config/ia64/linux.mt: Likewise.
9950 * config/m68k/linux.mh: Likewise.
9951 * config/powerpc/linux.mh: Likewise.
9952 * config/mips/linux.mt: Likewise.
9953
9954 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9955
9956 * config/i386/i386lynx.mh: Mark gdbserver variables
9957 as (currently) obsolete for this target.
9958 * config/i386/nbsd.mt: Likewise.
9959 * config/i386/nbsdelf.mt: Likewise.
9960 * config/m32r/m32r.mt: Likewise.
9961 * config/m68k/m68klynx.mh: Likewise.
9962 * config/m68k/nbsd.mt: Likewise.
9963 * config/m68k/sun3os4.mh: Likewise.
9964 * config/mips/vr5000.mt: Likewise.
9965 * config/ns32k/nbsd.mt: Likewise.
9966 * config/pa/hppabsd.mh: Likewise.
9967 * config/pa/hppaosf.mh: Likewise.
9968 * config/powerpc/nbsd.mt: Likewise.
9969 * config/rs6000/rs6000lynx.mh: Likewise.
9970 * config/s390/s390.mt: Likewise.
9971 * config/s390/s390x.mt: Likewise.
9972 * config/sparc/sparclynx.mh: Likewise.
9973 * config/sparc/sun4os4.mh: Likewise.
9974 * config/i386/x86-64linux.mt: Likewise.
9975 * config/sparc/linux.mh: Likewise.
9976
9977 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9978
9979 * configure.tgt: Configure gdbserver only for known working
9980 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9981 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9982 SUBDIRS if it is configured. Update comment for ${nativefile}.
9983 * configure: Regenerated.
9984
9985 2002-02-13 Michael Snyder <msnyder@redhat.com>
9986
9987 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9988
9989 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9990 (default_gcore_mach): Just return 0, work around a problem in bfd.
9991 (default_gcore_target): OK to return NULL if exec_bfd is null.
9992 (make_mem_sec): Use a cast, avoid a warning.
9993
9994 * procfs.c (find_memory_regions_callback): Use a cast instead of
9995 calling host_pointer_to_address (which complains if
9996 sizeof (host pointer) != sizeof (target pointer)).
9997 (procfs_make_note_section): Avoid overflow in psargs string.
9998
9999 * procfs.c (procfs_make_note_section): Make the default
10000 implementation return an error.
10001
10002 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10003
10004 * procfs.c (procfs_make_note_section): Provide a default definition
10005 (for alpha-dec-osf4.0f). Fix typos.
10006
10007 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10008
10009 * linux-proc.c: Add include of regcache.h.
10010 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10011
10012 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10013
10014 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10015 * memattr.c (create_mem_region): Disallow useless empty region.
10016 Regions are half-open intervals, so allow [A..B) [B..C) as
10017 non-overlapping.
10018
10019 2002-02-13 Michael Chastain <mec@shout.net>
10020
10021 * defs.h: Kill CONST_PTR.
10022 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10023 * c-lang.c (c_builtin_types): Likewise.
10024 * ch-lang.c (ch_builtin_types): Likewise.
10025 * f-lang.c (f_builtin_types): Likewise.
10026 * language.c (unknown_builtin_types): Likewise.
10027 * m2-lang.c (m2_builtin_types): Likewise.
10028 * p-lang.c (pascal_builtin_types): Likewise.
10029 * scm-lang.c (c_builtin_types): Likewise.
10030
10031 2002-02-13 Keith Seitz <keiths@redhat.com>
10032
10033 * arm-tdep.h (arm_get_next_pc): Add declaration.
10034
10035 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10036
10037 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10038 with other related struct-returning functions.
10039 (arm_extract_struct_value_address): New function.
10040 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10041 initialize float_format, double_format and long_double_format as
10042 appropriate to the endianness of the target.
10043 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10044 (arm_use_struct_convention): Delete declaration.
10045 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10046
10047 2002-02-13 Keith Seitz <keiths@redhat.com>
10048
10049 * defs.h (core_addr_to_string_nz): New function.
10050
10051 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10052
10053 Apply missing bits of 2002-01-15 patch.
10054 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10055 (fill_fpregset): Use i387_fill_fsave.
10056
10057 2002-02-12 Keith Seitz <keiths@redhat.com>
10058
10059 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10060 (core_addr_to_string_nz): New function.
10061
10062 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10063
10064 * arm-linux-nat.c: Really include arm-tdep.h.
10065 * config/arm/tm-linux.h (struct type, struct value): Declare.
10066
10067 2002-02-11 Michael Snyder <msnyder@redhat.com>
10068
10069 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10070 (gcore section): Ifdef for Solaris and Unixware only.
10071 (procfs_do_thread_registers): Unixware needs one lwpstatus
10072 per thread (not one prstatus or pstatus).
10073 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10074 not over all gdb threads. For unixware, call elfcore_write_pstatus
10075 once before iterating over threads.
10076
10077 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10078
10079 * arm-tdep.h: New file.
10080 * arm-tdep.c: Include arm-tdep.h.
10081 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10082 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10083 (arm_print_float_info, arm_register_type, convert_to_extended)
10084 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10085 (arm_extract_return_value, arm_register_name): Make static.
10086 (arm_software_single_step): Similarly. Fix types in declaration.
10087 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10088 (arm_store_return_value, arm_store_struct_return): New functions.
10089 (arm_gdbarch_init): Register the above functions. Also register
10090 call_dummy_start_offset, sizeof_call_dummy_words,
10091 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10092 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10093 max_register_virtual_size, register_size. Set up
10094 prologue_cache.saved_regs here, rather than ...
10095 (_initialize_arm_tdep): ... here.
10096 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10097 declarations.
10098 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10099 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10100 (arm_print_float_info, arm_register_type, convert_to_extended)
10101 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10102 (arm_extract_return_value, arm_register_name): Delete declarations.
10103 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10104 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10105 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10106 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10107 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10108 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10109 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10110 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10111 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10112 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10113 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10114 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10115 interface.
10116 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10117 * remote-rdi.c remote-rdp.c: Likewise.
10118 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10119 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10120 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10121 definition.
10122
10123 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10124 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10125 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10126 from non-ARM_ prefixed definitions.
10127 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10128 all uses of above.
10129 * remote-rdi.c remote-rdp.c: Likewise.
10130 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10131
10132 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10133
10134 * arm-tdep.c (arm_frameless_function_invocation)
10135 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10136 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10137 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10138 (arm_pop_frame, arm_get_next_pc): Make static.
10139 (arm_gdbarch_init): Register above in gdbarch structure.
10140 (arm_read_fp): Renamed from arm_target_read_fp.
10141 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10142 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10143 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10144 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10145 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10146 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10147 (arm_pc_is_thumb_dummy): Delete declarations.
10148 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10149 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10150 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10151 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10152
10153 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10154
10155 * symtab.c (compare_search_syms): New function.
10156 (sort_search_symbols): New function.
10157 (search_symbols): Sort symbols after searching rather than
10158 before.
10159
10160 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10161
10162 * NEWS: Linux -> GNU/Linux.
10163
10164 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10165
10166 * gdbarch.sh: For for level one methods, disallow a definition
10167 when partially multi-arched. Add comments explaining rationale.
10168 * gdbarch.h: Re-generate.
10169
10170 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10171
10172 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10173 multi-arch partial.
10174
10175 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10176
10177 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10178 field. Use diff -u.
10179 * gdbarch.c: Re-generate.
10180
10181 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10182
10183 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10184 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10185 partial.
10186
10187 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10188
10189 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10190 multi-arch partial.
10191 (PUSH_ARGUMENTS): Switch to using predefault.
10192 * gdbarch.c: Regenerate.
10193
10194 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10195
10196 * valops.c (PUSH_ARGUMENTS): Delete definition.
10197 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10198 partial. Default to default_push_arguments.
10199 * gdbarch.h, gdbarch.c: Regenerate.
10200
10201 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10202
10203 * defs.h (throw_exception): Rename return_to_top_level. Update
10204 comments.
10205 * utils.c (error_stream, internal_verror, quit): Ditto.
10206 * top.c (throw_exception, catcher): Ditto.
10207 * sparclet-rom.c (sparclet_load): Ditto.
10208 * remote.c (interrupt_query, minitelnet): Ditto.
10209 * remote-sds.c (interrupt_query): Ditto.
10210 * remote-mips.c (mips_error, mips_kill): Ditto.
10211 * ocd.c (interrupt_query): Ditto.
10212 * monitor.c (monitor_interrupt_query): Ditto.
10213 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10214 * target.h: Update comment.
10215
10216 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10217
10218 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10219
10220 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10221 default_double_format.
10222 * gdbarch.h, gdbarch.c: Re-generate.
10223 * findvar.c (floatformat_unknown): Delete variable definition.
10224 * doublest.h (floatformat_unknown): Delete variable declaration.
10225
10226 2002-02-09 Jim Blandy <jimb@redhat.com>
10227
10228 * stabsread.c (read_type): Add code to parse Sun's syntax for
10229 prototyped function types.
10230
10231 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10232
10233 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10234 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10235
10236 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10237
10238 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10239 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10240 now _initialize_xcoffsolib gets called again and overrides the
10241 commands from solib.c in a native configuration.
10242
10243 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10244
10245 * doublest.c (store_typed_floating): Don't try to return a value.
10246 Fixes PR gdb/290.
10247
10248 2002-02-08 Jim Blandy <jimb@redhat.com>
10249
10250 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10251 is prototyped and has no arguments, print its argument list as
10252 `(void)'.
10253
10254 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10255
10256 * MAINTAINERS (write-after-approval): Add myself.
10257 (paper-trail): I've escaped!
10258
10259 2002-02-08 Christopher Faylor <cgf@redhat.com>
10260
10261 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10262 changes.
10263 (_initialize_check_for_gdb_ini): Ditto.
10264
10265 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10266
10267 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10268 xaprintf -> xasprintf.
10269
10270 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10271
10272 * win32-nat.c: Remove use of printf and sprintf functions.
10273
10274 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10275
10276 * arm-tdep.c (arm_frame_chain_valid): Make static.
10277 (arm_push_arguments): Likewise.
10278 (arm_gdbarch_init): New function.
10279 (_initialize_arm_tdep): Call it.
10280 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10281 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10282 (FRAME_CHAIN_VALID): Delete.
10283 (arm_frame_chain_valid): Delete declaration.
10284 (PUSH_ARGUMENTS): Delete.
10285 (arm_push_arguments): Delete declaration.
10286 (CALL_DUMMY_P): Delete.
10287
10288 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10289 Corinna Vinschen <vinschen@redhat.com>
10290
10291 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10292 on builtin float types.
10293
10294 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10295
10296 * utils.c: Include <curses.h> before "bfd.h".
10297 * tui/tui-hooks.c: Likewise.
10298 * tui/tui.c: Likewise.
10299 * tui/tuiCommand.c: Likewise.
10300 * tui/tuiData.c: Likewise.
10301 * tui/tuiDataWin.c: Likewise.
10302 * tui/tuiDisassem.c: Likewise.
10303 * tui/tuiGeneralWin.c: Likewise.
10304 * tui/tuiIO.c: Likewise.
10305 * tui/tuiLayout.c: Likewise.
10306 * tui/tuiRegs.c: Likewise.
10307 * tui/tuiSource.c: Likewise.
10308 * tui/tuiSourceWin.c: Likewise.
10309 * tui/tuiStack.c: Likewise.
10310 * tui/tuiWin.c: Likewise.
10311
10312 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10313
10314 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10315 to include space for pseudoregs as well. Update loops accordingly.
10316 (sh_fp_frame_init_saved_regs): Ditto.
10317 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10318
10319 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10320
10321 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10322 Add Richard Earnshaw to Arm maintainers.
10323
10324 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10325
10326 * defs.h (warning_begin): Delete declaration.
10327
10328 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10329 Delete macro.
10330
10331 2002-02-07 Michael Snyder <msnyder@redhat.com>
10332
10333 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10334 Logic bug, remove misplaced else.
10335
10336 2002-02-07 Klee Dienes <klee@apple.com>
10337
10338 * fork-inferior.c (fork_inferior): Add '!' to the list of
10339 characters that need to be quoted when building a string for the
10340 shell. Quote '!' specifically with a backslash, since CSH chokes
10341 when trying to evaluate "str!str".
10342
10343 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10344
10345 * rdi-share/host.h: Only provide a typedef for bool if it is not
10346 defined.
10347
10348 2002-02-04 Michael Snyder <msnyder@redhat.com>
10349
10350 * breakpoint.h (enum bptype): Add new overlay event bp type.
10351 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10352
10353 * breakpoint.c (create_internal_breakpoint): New function.
10354 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10355 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10356 (create_thread_event_breakpoint): Ditto.
10357 (create_solib_event_breakpoint): Ditto.
10358 (create_overlay_event_breakpoint): New function.
10359 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10360 (update_breakpoints_after_exec): Delete and re-initialize
10361 overlay event breakpoints after an exec. Add FIXME comment
10362 about longjmp breakpoint.
10363 (print_it_typical): Ignore overlay event breakpoints.
10364 (print_one_breakpoint): Ditto.
10365 (mention): Ditto.
10366 (bpstat_what): Do not stop for overlay event breakpoints.
10367 (delete_breakpoint): Don't delete overlay event breakpoints.
10368 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10369 (breakpoint_re_set): Re-create overlay event breakpoint.
10370
10371 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10372 (overlay_manual_command): Disable overlay breakpoints.
10373 (overlay_off_command): Disable overlay breakpoints.
10374
10375 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10376
10377 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10378 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10379 to here from config/tm-arm.h.
10380 (coff_sym_is_thumb): Make static.
10381 (arm_elf_make_msymbol_special): New function.
10382 (arm_coff_make_msymbol_special): New function.
10383 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10384 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10385 (coff_sym_is_thumb): Delete declaration.
10386 (arm_elf_make_msymbol_special): Declare.
10387 (arm_coff_make_msymbol_special): Declare.
10388 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10389 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10390
10391 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10392
10393 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10394
10395 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10396
10397 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10398 * gdbarch.c gdbarch.h: Regenerate.
10399 * arch-utils.c (default_print_float_info): New function.
10400 * arch-utils.h (default_print_float_info): Prototype it.
10401 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10402 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10403 (PRINT_FLOAT_INFO): Document it.
10404
10405 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10406 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10407 (PRINT_FLOAT_INFO): Define.
10408
10409 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10410
10411 * win32-nat.c (_initialize_check_for_gdb_ini):
10412 Add typecast to sprintf argument to suppress a warning.
10413
10414 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10415
10416 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10417 to allow easier handling of pass state.
10418 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10419 that gives exception name and address.
10420 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10421 and set last_sig value to ourstatus->value.sig. Some missing
10422 exceptions added.
10423 (child_continue): Correctly report continue_status.
10424 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10425 TARGET_SIGNAL_0 (new default value).
10426 (child_resume): consider sig argument passed to decide if
10427 the exception should be passed to debuggee or not.
10428
10429 2002-02-05 Michael Snyder <msnyder@redhat.com>
10430
10431 * regcache.c (fetch_register): Call target_fetch_register
10432 only if we don't call FETCH_PSEUDO_REGISTER.
10433 (store_register): Call target_store_register only if we
10434 don't call STORE_PSEUDO_REGISTER.
10435
10436 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10437
10438 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10439 ELF_MAKE_MSYMBOL_SPECIAL.
10440 * gdbarch.c, gdbarch.h: Regenerate.
10441 * arch-utils.c (default_make_msymbol_special): New function.
10442 * arch-utils.h (default_make_msymbol_special): Export.
10443 * elfread.c (elf_symtab_read): Compile use of
10444 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10445 multiarched.
10446 * coffread.c (coff_symtab_read): Ditto, for
10447 COFF_MAKE_MSYMBOL_SPECIAL.
10448
10449 2002-02-05 Jim Blandy <jimb@redhat.com>
10450
10451 * solib-svr4.c (svr4_truncate_ptr): New function.
10452 (svr4_relocate_section_addresses): Do the address arithmetic with
10453 the appropriate truncation for target addresses, even when
10454 CORE_ADDR is larger than a target address.
10455
10456 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10457
10458 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10459 to (int *).
10460
10461 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10462
10463 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10464 code.
10465
10466 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10467
10468 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10469
10470 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10471
10472 * gdbserver/linux-low.c: Remove unused include files.
10473
10474 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10475
10476 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10477 (read_inferior_memory): Use it.
10478 (write_inferior_memory): Likewise.
10479
10480 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10481
10482 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10483 grubbing through sys_errlist.
10484
10485 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10486
10487 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10488
10489 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10490 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10491
10492 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10493
10494 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10495 (do_sfunc, set_cmd_sfunc): New functions.
10496
10497 * command.h (struct cmd_list_element): Add field func.
10498 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10499 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10500 * cli/cli-decode.h: Ditto.
10501
10502 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10503 (help_all, help_cmd_list): Ditto.
10504 (find_cmd, complete_on_cmdlist): Ditto.
10505 * top.c (execute_command): Ditto.
10506
10507 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10508 function.sfunc.
10509
10510 * infcmd.c (notice_args_read): Fix function signature.
10511
10512 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10513 * cli/cli-decode.c (add_set_cmd): Ditto.
10514 * utils.c (initialize_utils): Ditto.
10515 * maint.c (_initialize_maint_cmds): Ditto.
10516 * infrun.c (_initialize_infrun): Ditto.
10517 * demangle.c (_initialize_demangler): Ditto.
10518 * remote.c (add_packet_config_cmd): Ditto.
10519 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10520 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10521 * proc-api.c (_initialize_proc_api): Ditto.
10522 * kod.c (_initialize_kod): Ditto.
10523 * valprint.c (_initialize_valprint): Ditto.
10524 * top.c (init_main): Ditto.
10525 * infcmd.c (_initialize_infcmd): Ditto.
10526 * corefile.c (_initialize_core): Ditto.
10527 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10528 * arch-utils.c (initialize_current_architecture): Ditto.
10529 (_initialize_gdbarch_utils): Ditto.
10530 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10531
10532 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10533 * wince.c (_initialize_inftarg): Ditto.
10534 * symfile.c (_initialize_symfile): Ditto.
10535 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10536 * language.c (_initialize_language): Ditto.
10537 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10538
10539 2002-02-04 Michael Snyder <msnyder@redhat.com>
10540
10541 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10542
10543 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10544
10545 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10546 Add rules for building the register data files.
10547
10548 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10549
10550 * regformats/regdat.sh: Add braces to the definition of
10551 expedite_regs_${arch}.
10552
10553 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10554
10555 * regformats/regdef.h (struct reg): Add comment describing the
10556 requirements for offset and size fields.
10557
10558 2002-02-04 Andreas Schwab <schwab@suse.de>
10559
10560 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10561 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10562
10563 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10564
10565 * gdbarch.sh (copyright): Update years in generated header.
10566 (SMASH_TEXT_ADDRESS): Add rule.
10567 * gdbarch.h, gdbarch.c: Re-generate.
10568 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10569 * dbxread.c: Likewise.
10570 * dwarfread.c: Likewise.
10571 * elfread.c: Likewise.
10572 * somread.c: Likewise.
10573
10574 * arm-tdep.c (arm_smash_text_address): New function.
10575 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10576
10577 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10578
10579 Add support for hardware watchpoints on win32 native.
10580 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10581 CONTEXT_DEBUG_REGISTERS.
10582 (dr variable): New variable. Static array containing a local copy
10583 of debug registers.
10584 (debug_registers_changed): New variable. Reflects when debug registers
10585 are changed and need to be written to inferior.
10586 (debug_registers_used): New variable. Reflects when any debug register
10587 was set, used when new threads are created.
10588 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10589 i386-nat code.
10590 (thread_rec): Set dr array if id is the thread of current_event .
10591 (child_continue, child_resume): Change the debug registers for all
10592 threads if debug_registers_changed.
10593 (child_add_thread): Change the debug registers if debug_registers_used.
10594 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10595 Link nm.h to new nm-cygwin.h file.
10596 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10597 of hardware registers.
10598
10599 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10600
10601 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10602 Restore behavour broken by 2002-01-20 Andrew Cagney
10603 <ac131313@redhat.com> IEEE_FLOAT removal.
10604
10605 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10606
10607 * c-valprint.c (c_val_print): Pass a proper valaddr to
10608 cp_print_class_method.
10609 * valops.c (search_struct_method): If there is only one method
10610 and args is NULL, return that method.
10611
10612 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10613
10614 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10615 accessing tag_name directly.
10616
10617 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10618
10619 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10620 of accessing tag_name directly.
10621
10622 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10623
10624 PR gdb/280
10625 * gdbtypes.c (replace_type): New function.
10626 * gdbtypes.h (replace_type): Add prototype.
10627 * stabsread.c (read_type): Use replace_type.
10628
10629 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10630
10631 * Makefile.in (memattr.o): Add missing dependencies rule.
10632
10633 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10634
10635 * breakpoint.c (break_at_finish_command): Really export.
10636 (break_at_finish_at_depth_command): Ditto.
10637 (tbreak_at_finish_command): Ditto.
10638 * hppa-tdep.c: Include completer.h.
10639 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10640 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10641
10642 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10643
10644 * utils.c (do_write): New function.
10645 (error_stream): Rewrite combining the code from error_begin and
10646 verror.
10647 (verror): Rewrite using error_stream.
10648 (error_begin): Delete function.
10649
10650 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10651
10652 * utils.c (error_begin): Make static.
10653 * defs.h (error_begin): Delete declaration.
10654
10655 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10656 (decode_line_1): Use cplusplus_error instead of error_begin,
10657 cplusplus_hint and return_to_top_level.
10658 * coffread.c (coff_symfile_read): Use error instead of error_begin
10659 and return_to_top_level.
10660 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10661
10662 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10663
10664 * language.h (type_error, range_error): Make string parameter
10665 constant.
10666 * language.c (warning_pre_print): Delete extern declaration.
10667 * dwarfread.c (warning_pre_print): Ditto.
10668 * language.c (type_error, range_error): Rewrite to use verror and
10669 vwarning instead of warning_begin.
10670
10671 2002-02-01 Michael Snyder <msnyder@redhat.com>
10672
10673 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10674 (set_ignore_count): Move misplaced comment back where it belongs.
10675
10676 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10677
10678 * command.h (NO_FUNCTION): Delete macro.
10679 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10680 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10681 * tracepoint.c (_initialize_tracepoint): Ditto.
10682 * cli/cli-decode.c (add_set_cmd): Ditto.
10683 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10684
10685 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10686
10687 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10688 Update ``this'' pointer when calling virtual functions.
10689
10690 2002-02-01 Michael Snyder <msnyder@redhat.com>
10691
10692 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10693 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10694
10695 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10696
10697 * regformats/reg-arm.dat: New file.
10698 * regformats/reg-i386.dat: New file.
10699 * regformats/reg-ia64.dat: New file.
10700 * regformats/reg-m68k.dat: New file.
10701 * regformats/reg-mips.dat: New file.
10702 * regformats/reg-ppc.dat: New file.
10703 * regformats/reg-sh.dat: New file.
10704 * regformats/regdef.h: New file.
10705 * regformats/regdat.sh: New file.
10706
10707 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10708
10709 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10710 (arm_frame_args_address, arm_frame_locals_address): New functions.
10711 (arm_frame_num_args): New function.
10712 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10713 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10714 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10715
10716 2002-01-31 Michael Snyder <msnyder@redhat.com>
10717
10718 * breakpoint.c (break_at_finish_command): Export.
10719 (break_at_finish_at_depth_command): Export.
10720 (tbreak_at_finish_command): Export.
10721 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10722 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10723 "txbreak" commands, which are HPPA specific.
10724
10725 * printcmd.c (disassemble_command): Remove an ancient
10726 artifact of an old merge.
10727
10728 * symfile.h (enum overlay_debugging_state):
10729 Define enum constant values for overlay mode.
10730 * symfile.c (overlay_debugging): Use enums instead of literals.
10731 (overlay_is_mapped, overlay_auto_command,
10732 overlay_manual_command): Ditto.
10733
10734 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10735 breakpoint_here_p, breakpoint_inserted_here_p,
10736 breakpoint_thread_match, bpstat_stop_status,
10737 describe_other_breakpoints, check_duplicates, clear_command):
10738 Coding standard fixes.
10739
10740 * target.c (target_xfer_memory): Add spaces, coding standard.
10741 (do_xfer_memory): Add missing line to trust-readonly
10742 code: check bfd SEC_READONLY flag for section.
10743
10744 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10745
10746 * PROBLEMS: Fix typo, 5.1->5.1.1.
10747
10748 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10749
10750 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10751 data symbols, since we search based on textlow and texthigh.
10752 (find_pc_sect_symtab): Likewise.
10753
10754 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10755
10756 * defs.h (vwarning): Declare.
10757 * utils.c (vwarning): New function.
10758 (warning): Call vwarning.
10759 (warning_begin): Delete function.
10760
10761 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10762 the warning message.
10763 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10764 warning_begin.
10765
10766 2002-01-30 Michael Snyder <msnyder@redhat.com>
10767
10768 * NEWS: Mention "set trust-readonly-sections" command.
10769 Mention generate-core-file command.
10770
10771 2002-01-15 Michael Snyder <msnyder@redhat.com>
10772
10773 * target.c: New command, "set trust-readonly-sections on".
10774 (do_xfer_memory): Honor the suggestion to trust readonly sections
10775 by reading them from the object file instead of from the target.
10776 (initialize_targets): Register command "set trust-readonly-sections".
10777
10778 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10779
10780 * parse.c (target_map_name_to_register): Simplify, search regs and
10781 pseudo-regs using a single loop.
10782
10783 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10784
10785 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10786
10787 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10788
10789 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10790 * config/i386/i386v42mp.mh: Add i387-nat.o .
10791 * i386v4-nat.c: Include i387-nat.h.
10792 (supply_fpregset): Use i387_supply_fsave.
10793 (fill_fpregset): Use i387_fill_fsave.
10794
10795 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10796
10797 * arm-tdep.c (arm_call_dummy_words): Define.
10798 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10799 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10800 (CALL_DUMMY_WORDS): Define.
10801 (arm_call_dummy_words): Declare.
10802 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10803 (arm_linux_call_dummy_words): Declare.
10804
10805 2002-01-30 Andreas Schwab <schwab@suse.de>
10806
10807 * m68klinux-nat.c: Fix last change to use regcache_collect
10808 instead of referencing registers[] directly.
10809
10810 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10811
10812 * parse.c (target_map_name_to_register): Delete code wrapped in
10813 #ifdef REGISTER_NAME_ALIAS_HOOK.
10814
10815 2002-01-28 Michael Snyder <msnyder@redhat.com>
10816
10817 * regcache.c (legacy_read_register_gen): Need to be able to
10818 read pseudo-register as well as real register.
10819 (legacy_write_register_gen): Ditto.
10820
10821 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10822
10823 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10824 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10825 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10826 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10827 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10828 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10829 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10830 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10831 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10832 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10833 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10834 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10835 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10836 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10837 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10838 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10839 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10840 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10841 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10842 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10843
10844 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10845
10846 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10847 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10848 (initialize_current_architecture): Update target_byte_order using
10849 information from BFD.
10850 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10851 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10852
10853 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10854
10855 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10856 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10857
10858 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10859 #ifdef INVALID_FLOAT.
10860 * infcmd.c (do_registers_info): Ditto.
10861 * values.c (unpack_double): Ditto. Add comment.
10862
10863 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10864 already commented out.
10865
10866 2002-01-26 Andreas Schwab <schwab@suse.de>
10867
10868 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10869 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10870 registers and add support for PTRACE_GETREGS.
10871
10872 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10873
10874 GDB 5.1.1 released from 5.1 branch.
10875 * NEWS: Add 5.1.1 news.
10876 * README: Sync with 5.1 branch.
10877
10878 2002-01-23 Fred Fish <fnf@redhat.com>
10879
10880 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10881 stabstring on initial malloc. Reallocing will copy it for us,
10882 if necessary.
10883
10884 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10885
10886 * Makefile.in (hpread_h): Delete.
10887 (HFILES_NO_SRCDIR): Remove hpread.h.
10888 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10889 (hpread.o): Update dependencies.
10890 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10891
10892 * hp-psymtab-read.c: Remove file.
10893 * hp-symtab-read.c: Remove file.
10894 * hpread.h: Remove file.
10895
10896 * hpread.c: Merge all contents of hp-psymtab-read.c,
10897 hp-symtab-read.c and hpread.h into this file, as it was prior to
10898 January 1999.
10899
10900 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10901 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10902 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10903 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10904
10905 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10906
10907 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10908 fill_gregset): Call gdbarch_tdep() just once, assign result to
10909 variable and use that, instead of calling the function several
10910 times.
10911
10912 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10913
10914 * configure.host: Accept sparcv9 as alias for sparc64.
10915 * configure.tgt: Likewise.
10916
10917 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10918
10919 * solib-aix5.c (build_so_list_from_mapfile)
10920 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10921 arguments is not reversed.
10922 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10923 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10924
10925 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10926
10927 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10928 modified version of obsolete sh_fetch_pseudo_register.
10929 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10930 (sh4_register_read): New function.
10931 (sh_pseudo_register_write): New function. Renamed and modified
10932 version of obsolete sh_store_pseudo_register.
10933 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10934 (sh4_register_write): New function.
10935 (sh_gdbarch_init): Remove setting of gdbarch function
10936 fetch_pseudo_register and store_pseudo_register. Remove setting of
10937 register_convert_to_raw, register_convert_to_virtual,
10938 register_convertible.
10939 (sh_sh4_register_convertible): Delete. No longer needed. All is
10940 taken care by architecture specific functions
10941 register_read/register_write.
10942 (sh_sh4_register_convert_to_virtual): Make static.
10943 (sh_sh4_register_convert_to_raw): Ditto.
10944
10945 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10946
10947 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10948 (floatformat_is_nan, floatformat_mantissa): Ditto.
10949
10950 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10951 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10952 builtin_type_ieee_double_little,
10953 builtin_type_ieee_double_littlebyte_bigword,
10954 builtin_type_m68881_ext, builtin_type_i960_ext,
10955 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10956 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10957 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10958 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10959
10960 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10961
10962 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10963 parameter. Set frameless flag if it exists and depended of
10964 whether the scanned function is frameless or not.
10965 (xstormy16_skip_prologue): If function is frameless, return
10966 result of xstormy16_scan_prologue().
10967 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10968 call.
10969
10970 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10971
10972 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10973 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10974 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10975 sh_sh4_register_byte, sh_sh4_register_raw_size,
10976 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10977 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10978 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10979 sh_store_pseudo_register, sh_do_pseudo_register): Call
10980 gdbarch_tdep() just once, assign result to variable and use that,
10981 instead of calling the function several times.
10982
10983 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10984
10985 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10986 macros instead of LAST_FPU_CTRL_REGNUM.
10987 (store_register): Likewise.
10988
10989 2002-01-21 Jim Blandy <jimb@redhat.com>
10990
10991 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10992 is up-to-date before running the program, not just when a program
10993 exits.
10994
10995 2002-01-21 Fred Fish <fnf@redhat.com>
10996
10997 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10998 when we have found all instructions we are looking for.
10999
11000 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11001
11002 * arm-tdep.c (arm_register_name): New function.
11003 (arm_registers_names): Make static.
11004 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11005 (arm_register_name): Declare.
11006 (REGISTER_NAME): Use it.
11007
11008 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11009 Kevin Buettner <kevinb@redhat.com>
11010
11011 Convert arm targets to new FRAME interface.
11012 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11013 (arm_frame_find_save_regs): Delete.
11014 (arm_frame_init_saved_regs): New.
11015 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11016 Allocate extra_info as required. Convert all uses of fsr.regs
11017 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11018 to use extra_info.
11019 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11020 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11021 (check_prologue_cache, save_prologue_cache): Likewise.
11022 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11023 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11024 (FRAME_FIND_SAVED_REGS): Delete.
11025 (arm_frame_find_saved_regs): Delete prototype.
11026 (arm_frame_init_saved_regs): New prototype.
11027 (FRAME_INIT_SAVED_REGS): Define.
11028
11029 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11030
11031 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11032
11033 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11034
11035 From Jeff Law <law@redhat.com>:
11036 * infttrace.c: Include <sys/pstat.h>.
11037 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11038 exec file if the ttrace equivalent fails.
11039
11040 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11041
11042 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11043 (closeLogFile): Ditto.
11044
11045 2002-01-20 Michael Chastain <mec@shout.net>
11046
11047 * top.c (print_gdb_version): Bump copyright year to 2002.
11048
11049 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11050
11051 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11052 Zannoni and Eli Zaretskii.
11053
11054 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11055
11056 * buildsym.c: Update copyright years.
11057 * c-typeprint.c: Likewise.
11058 * dwarf2read.c: Likewise.
11059 * f-typeprint.c: Likewise.
11060 * gdbtypes.c: Likewise.
11061 * gdbtypes.h: Likewise.
11062 * hp-symtab-read.c: Likewise.
11063 * hpread.c: Likewise.
11064 * mdebugread.c: Likewise.
11065 * p-typeprint.c: Likewise.
11066
11067 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11068
11069 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11070 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11071 byte-order selectable.
11072 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11073 * arch-utils.c: Ditto.
11074 (set_endian): Ditto.
11075 (set_endian_from_file): Ditto.
11076 * gdbserver/low-sim.c (create_inferior): Ditto.
11077 * gdbarch.sh: Ditto.
11078 * gdbarch.h: Re-generate.
11079 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11080 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11081 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11082 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11083 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11084 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11085 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11086 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11087 macro definition.
11088 * config/mips/tm-wince.h: Remove #undef of macro
11089 TARGET_BYTE_ORDER_SELECTABLE.
11090 * config/sh/tm-wince.h: Ditto.
11091
11092 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11093
11094 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11095 member function fields. Add accessor macro
11096 TYPE_FN_FIELD_ARTIFICIAL.
11097 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11098 * c-typeprint.c (c_type_print_base): Skip artificial member
11099 functions.
11100
11101 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11102
11103 * f-typeprint.c: Delete unused function f_type_print_args.
11104 * p-typeprint.c: Delete unused function pascal_type_print_args.
11105
11106 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11107
11108 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11109 comment. Add ``artificial'' to ``union field_location''.
11110
11111 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11112
11113 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11114 * mdebugread.c (parse_symbol): Likewise.
11115 * stabsread.c (define_symbol): Likewise.
11116 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11117 initializing TYPE_FIELD_BITPOS to n (obsolete).
11118 (hpread_doc_function_type): Likewise.
11119 * hpread.c (hpread_function_type): Likewise.
11120
11121 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11122
11123 * configure.in (host_makefile_frag): Only require a host makefile
11124 fragment when a native build.
11125 * configure: Re-generate.
11126
11127 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11128
11129 * doublest.h (floatformat_from_type): Declare.
11130 * doublest.c (floatformat_from_type): New function.
11131 (convert_typed_floating): Use.
11132
11133 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11134 call to function floatformat_from_type.
11135
11136 * gdbarch.sh (IEEE_FLOAT): Delete.
11137 * gdbarch.h, gdbarch.c: Re-generate.
11138 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11139 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11140 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11141 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11142 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11143 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11144 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11145 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11146 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11147 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11148 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11149 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11150
11151 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11152 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11153 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11154 * sh-tdep.c (sh_gdbarch_init): Ditto.
11155 * mips-tdep.c (mips_gdbarch_init): Ditto.
11156 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11157 * cris-tdep.c (cris_gdbarch_init): Ditto.
11158
11159 2002-01-20 Jiri Smid <smid@suse.cz>
11160
11161 * configure.host, configure.tgt: Support x86-64.
11162 * NEWS: Note new target x86-64.
11163
11164 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11165 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11166 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11167 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11168 x86-64-linux-nat.o): Fix dependencies.
11169
11170 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11171
11172 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11173 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11174 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11175 * config/sparc/xm-sun4os4.h: Delete file.
11176 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11177
11178 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11179
11180 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11181 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11182 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11183 * config/i386/i386lynx.mh (XM_FILE): Delete.
11184 * config/rs6000/xm-rs6000ly.h: Delete file.
11185 * config/sparc/xm-sparclynx.h: Delete file.
11186 * config/m68k/xm-m68klynx.h: Delete file.
11187 * config/i386/xm-i386lynx.h: Delete file.
11188 * config/xm-lynx.h: Delete file.
11189 * config/djgpp/fnchange.lst: Update.
11190
11191 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11192
11193 * alpha-tdep.c (alpha_register_byte): New function.
11194 (alpha_register_raw_size): Ditto.
11195 (alpha_register_virtual_size): Ditto.
11196 (alpha_skip_prologue_internal): Renamed from
11197 alpha_skip_prologue.
11198 (alpha_skip_prologue): New version that calls
11199 alpha_skip_prologue_internal.
11200 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11201 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11202 second argument from alpha_skip_prologue.
11203 (REGISTER_BYTE): Use alpha_register_byte.
11204 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11205 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11206 (FRAMELESS_FUNCTION_INVOCATION): Use
11207 generic_frameless_function_invocation_not.
11208 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11209 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11210
11211 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11212
11213 * config/mips/xm-news-mips.h: Delete file.
11214 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11215
11216 * config/m88k/xm-m88k.h: Delete file.
11217 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11218 * config/m88k/xm-delta88v4.h: Ditto.
11219 * config/m88k/xm-delta88.h: Ditto.
11220
11221 * config/alpha/xm-fbsd.h: Delete file.
11222 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11223
11224 * config/sparc/xm-sparc.h: Delete file.
11225 * Makefile.in (xm-sun4os4.h): Delete dependency.
11226 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11227 * config/sparc/xm-sun4os4.h: Ditto.
11228 * config/sparc/xm-linux.h: Ditto.
11229
11230 * config/i386/xm-windows.h: Delete file.
11231
11232 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11233
11234 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11235 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11236
11237 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11238
11239 * alpha-tdep.c (alpha_call_dummy_words): New.
11240 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11241 (CALL_DUMMY_P): Define.
11242 (CALL_DUMMY_WORDS): Define.
11243 (SIZEOF_CALL_DUMMY_WORDS): Define.
11244
11245 2002-01-19 Per Bothner <per@bothner.com>
11246
11247 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11248 isn't NULL, which can happen with some gcj-3.x-produced code.
11249
11250 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11251
11252 * alpha-tdep.c (alpha_register_virtual_type): New function.
11253 (alpha_init_frame_pc_first): Ditto.
11254 (alpha_fix_call_dummy): Ditto.
11255 (alpha_store_struct_return): Ditto.
11256 (alpha_extract_struct_value_address): Ditto.
11257 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11258 alpha_register_virtual_type.
11259 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11260 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11261 alpha_extract_struct_value_address.
11262 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11263 (INIT_FRAME_PC): Use init_frame_pc_noop.
11264 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11265
11266 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11267
11268 * i386gnu-nat.c: Include "i386-tdep.h".
11269 (fetch_fpregs): Simplify code dealing with uninitialized floating
11270 point states such that it doesn't require FP7_REGNUM.
11271
11272 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11273
11274 * alpha-tdep.c (frame_extra_info): New.
11275 (alpha_find_saved_regs): Make static. Use
11276 frame->extra_info.
11277 (alpha_frame_init_saved_regs): New function.
11278 (alpha_frame_saved_pc): Use frame->extra_info.
11279 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11280 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11281 (init_extra_frame_info): Rename to...
11282 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11283 (alpha_print_extra_frame_info): New function.
11284 (alpha_frame_locals_address): Ditto.
11285 (alpha_frame_args_address): Ditto.
11286 (alpha_pop_frame): Use frame->extra_info.
11287 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11288 alpha_frame_args_address.
11289 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11290 (alpha_find_saved_regs): Remove prototype.
11291 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11292 (EXTRA_FRAME_INFO): Remove.
11293 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11294 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11295
11296 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11297
11298 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11299 (alpha_cannot_fetch_register): Ditto.
11300 (alpha_cannot_store_register): Ditto.
11301 (alpha_register_convertible): Ditto.
11302 (alpha_use_struct_convention): Ditto.
11303 * config/alpha/tm-alpha.h: Update copyright years.
11304 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11305 (INNER_THAN): Use core_addr_lessthan.
11306 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11307 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11308 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11309 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11310 (FRAME_CHAIN): Remove unnecessary cast.
11311
11312 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11313
11314 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11315 obsolete.
11316
11317 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11318
11319 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11320 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11321 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11322 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11323 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11324 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11325 * x86-64-linux-nat.c: Ditto.
11326
11327 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11328
11329 * alpha-tdep.c (alpha_register_name): New function.
11330 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11331 (REGISTER_NAME): Define.
11332
11333 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11334
11335 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11336
11337 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11338
11339 * alpha-tdep.c: Update copyright years.
11340 (alpha_next_pc): New function.
11341 (alpha_software_single_step): Ditto.
11342 * config/alpha/tm-alpha.h: Add prototype for
11343 alpha_software_single_step.
11344
11345 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11346
11347 * alphabsd-nat.c: Update copyright years.
11348 (fill_gregset): Use regcache_collect.
11349 (fill_fpregset): Likewise.
11350 (fetch_inferior_registers): Only fetch integer registers
11351 if requested to do so.
11352 (store_inferior_registers): Only store integer registers
11353 if requested to do so.
11354
11355 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11356
11357 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11358 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11359 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11360 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11361 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11362 * config/arm/linux.mh (XDEPFILES): Delete.
11363 * config/arm/nbsd.mh (XDEPFILES): Delete.
11364 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11365 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11366 * config/i386/i386m3.mh (XDEPFILES): Delete.
11367 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11368 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11369 * config/i386/fbsd.mh (XDEPFILES): Delete.
11370 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11371 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11372 * config/i386/i386v4.mh (XDEPFILES): Delete.
11373 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11374 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11375 * config/i386/i386aix.mh (XDEPFILES): Delete.
11376 * config/i386/go32.mh (XDEPFILES): Delete.
11377 * config/i386/cygwin.mh (XDEPFILES): Delete.
11378 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11379 * config/i386/i386mach.mh (XDEPFILES): Delete.
11380 * config/i386/i386v32.mh (XDEPFILES): Delete.
11381 * config/i386/linux.mh (XDEPFILES): Delete.
11382 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11383 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11384 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11385 * config/i386/i386sco.mh (XDEPFILES): Delete.
11386 * config/i386/i386v.mh (XDEPFILES): Delete.
11387 * config/i386/nbsd.mh (XDEPFILES): Delete.
11388 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11389 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11390 * config/i386/symmetry.mh (XDEPFILES): Delete.
11391 * config/i386/obsd.mh (XDEPFILES): Delete.
11392 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11393 * config/ia64/linux.mh (XDEPFILES): Delete.
11394 * config/ia64/aix.mh (XDEPFILES): Delete.
11395 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11396 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11397 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11398 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11399 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11400 * config/m68k/linux.mh (XDEPFILES): Delete.
11401 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11402 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11403 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11404 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11405 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11406 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11407 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11408 * config/m88k/delta88.mh (XDEPFILES): Delete.
11409 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11410 * config/m88k/m88k.mh (XDEPFILES): Delete.
11411 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11412 * config/mips/linux.mh (XDEPFILES): Delete.
11413 * config/mips/irix6.mh (XDEPFILES): Delete.
11414 * config/mips/irix5.mh (XDEPFILES): Delete.
11415 * config/mips/irix4.mh (XDEPFILES): Delete.
11416 * config/mips/irix3.mh (XDEPFILES): Delete.
11417 * config/mips/decstation.mh (XDEPFILES): Delete.
11418 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11419 (NATDEPFILES): Move core-aout.o to here.
11420 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11421 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11422 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11423 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11424 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11425 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11426 * config/pa/hpux11.mh (XDEPFILES): Delete.
11427 * config/powerpc/aix.mh (XDEPFILES): Delete.
11428 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11429 * config/powerpc/linux.mh (XDEPFILES): Delete.
11430 * config/romp/rtbsd.mh: Rename XDEPFILES.
11431 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11432 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11433 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11434 * config/s390/s390.mh (XDEPFILES): Delete.
11435 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11436 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11437 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11438 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11439 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11440 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11441 * config/sparc/linux.mh (XDEPFILES): Delete.
11442 * config/vax/vaxult.mh (XDEPFILES): Delete.
11443 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11444 * Makefile.in (DEPFILES): Remove XDEPFILES.
11445
11446 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11447
11448 * utils.c (internal_verror): Fix comments, default is yes not no.
11449 Update queries to match. Default to quit and dump core.
11450
11451 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11452
11453 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11454 copyright.
11455 * defs.h, event-top.c, gdbcmd.h: Ditto.
11456 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11457 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11458 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11459 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11460 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11461 * mi/mi-main.c:Ditto.
11462
11463 * stack.c, symfile.c: Update copyright.
11464
11465 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11466
11467 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11468 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11469 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11470 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11471
11472 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11473
11474 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11475 * gdbserver/low-lynx.c (myattach): Likewise.
11476 * gdbserver/low-nbsd.c (myattach): Likewise.
11477 * gdbserver/low-sim.c (myattach): Likewise.
11478 * gdbserver/low-sparc.c (myattach): Likewise.
11479 * gdbserver/low-sun3.c (myattach): Likewise.
11480
11481 * gdbserver/low-linux.c (myattach): New function.
11482
11483 * gdbserver/server.c (attach_inferior): New function.
11484 (main): Handle "--attach".
11485
11486 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11487
11488 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11489 maintainer.
11490
11491 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11492
11493 * c-typeprint.c (is_type_conversion_operator): Add additional
11494 check for non-conversion operators.
11495
11496 2002-01-15 Michael Snyder <msnyder@redhat.com>
11497
11498 * linux-proc.c: Add "info proc" command, a la procfs.c.
11499 (read_mapping): New function, abstract and re-use code.
11500 (linux_find_memory_regions): Use new func read_mapping.
11501 (linux_info_proc_cmd): New function, implement "info proc".
11502 (_initialize_linux_proc): Add new command "info proc".
11503
11504 2002-01-15 Michael Snyder <msnyder@redhat.com>
11505
11506 * symfile.c (generic_load): Use bfd_map_over_sections method
11507 instead of manipulating bfd structure members directly.
11508 (add_section_size_callback): New function, bfd sections callback
11509 used by generic_load.
11510 (load_sections_callback): New function, bfd sections callback
11511 used by generic_load.
11512
11513 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11514
11515 [Based on work by Jim Blandy]
11516 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11517 (builtin_type_vec128): Export.
11518 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11519 types.
11520 (builtin_type_vec128): New builtin type for 128 bit vector
11521 registers.
11522 (build_gdbtypes): Initialize builtin_type_v16qi and
11523 builtin_type_v8hi. Create the vec128 register builtin type
11524 structure.
11525 (build_builtin_type_vec128): New function.
11526 (_initialize_gdbtypes): Register builtin_type_v16qi and
11527 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11528 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11529 AltiVec register to new builtin type.
11530
11531 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11532
11533 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11534 to make_cv_type.
11535
11536 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11537
11538 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11539 CLEAN_UP_REGISTER_VALUE.
11540 * regcache.c (supply_register): Update only call.
11541
11542 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11543
11544 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11545 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11546 a29k-*-vxworks* targets as obsolete.
11547
11548 2002-01-14 Michael Snyder <msnyder@redhat.com>
11549
11550 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11551 until we can resolve portability issues.
11552 * gregset.h: Remove references to fpxregs.
11553 * gcore.c (gcore_command): Initialize note_sec to NULL.
11554
11555 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11556
11557 * signals.c (target_signal_to_name): Rewrite. Only use
11558 signals[].name when in bounds and non-NULL.
11559
11560 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11561
11562 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11563 * signals.c (target_signal_to_name): Verify that SIG is within the
11564 bounds of the signals array.
11565
11566 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11567
11568 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11569
11570 2002-01-13 Keith Seitz <keiths@redhat.com>
11571
11572 * stack.c (print_frame_info_base): Print the frame's pc
11573 only if when print_frame_info_listing_hook is not defined.
11574
11575 2002-01-13 Keith Seitz <keiths@redhat.com>
11576
11577 * varobj.c (varobj_set_value): Make sure that there were no
11578 errors evaluating the object before attempting to set its
11579 value.
11580 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11581 so this offset adjustment is no longer necessary.
11582 (create_child): Don't set the error flag if the child is
11583 a CPLUS_FAKE_CHILD.
11584 (value_of_child): If value_fetch_lazy fails, return NULL
11585 so that callers will be notified that an error occurred.
11586 (c_value_of_variable): Delay check of variable's validity
11587 until later. We actually want all structs and unions to have
11588 the value "{...}".
11589 Do not return "???" for variables which could not be evaluated.
11590 This error condition must be returned to the caller so that it
11591 can get the error condition from gdb.
11592 (cplus_name_of_child): Adjust index for vptr before figuring
11593 out the name of the child.
11594 (cplus_value_of_child): If a child's (real) parent is not valid,
11595 don't even bother trying to give a value for it. Just return
11596 an error. Change all instances in this function.
11597 (cplus_type_of_child): If our parent is one of the "fake"
11598 parents, we need to get at the type of the real parent, and
11599 derive the child's true type using this information.
11600
11601 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11602
11603 From 2002-01-09 John Marshall <johnm@falch.net>:
11604 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11605 sources.redhat.com, and tweak some related URLs which had
11606 suffered from linkrot.
11607
11608 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11609
11610 From Jeff law:
11611 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11612 structures passed in registers.
11613
11614 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11615
11616 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11617 white space which prevented compilation. Reported by DSK
11618 <dsk@student.unsw.edu.au>.
11619
11620 2002-01-11 Michael Snyder <msnyder@redhat.com>
11621
11622 * symfile.c (build_section_addr_info_from_section_tab):
11623 Use bfd access method instead of manipulating bfd directly.
11624 (syms_from_objfile): Ditto.
11625 (simple_overlay_update_1): Ditto.
11626 (simple_overlay_update): Ditto.
11627 (generic_load): Ditto.
11628 (overlay_unmapped_address): FIXME comment, bfd access methods.
11629 (sections_overlap): FIXME comment, bfd access methods.
11630 (pc_in_mapped_range): FIXME comment, bfd access methods.
11631 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11632 (section_is_mapped): FIXME comment, bfd access methods.
11633 (section_is_overlay): FIXME comment, bfd access methods.
11634
11635 * symfile.c (generic_load): Whitespace and long line cleanups.
11636 Remove duplicate variable, change several local variables to
11637 more appropriate data types.
11638 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11639
11640 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11641
11642 From Peter Schauer:
11643 * language.c (longest_local_hex_string_custom): Use phex_nz to
11644 convert NUM to a hex string.
11645
11646 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11647
11648 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11649 the function.
11650 Update Copyright year.
11651
11652 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11653
11654 * language.c (longest_raw_hex_string): Delete unused function.
11655
11656 2002-01-11 Petr Sorfa <petrs@caldera.com>
11657
11658 * MAINTAINERS (write-after-approval): Add myself.
11659 * dwarf2read.c (read_tag_string_type): Handling of
11660 DW_AT_byte_size.
11661 (read_tag_string_type): FORTRAN fix to prevent propagation of
11662 first string size.
11663 (set_cu_language): Handling of DW_LANG_Fortran95
11664
11665 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11666
11667 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11668 GETPID(inferior_ptid).
11669 (store_inferior_registers): Likewise.
11670
11671 2002-01-10 Jason Merrill <jason@redhat.com>
11672
11673 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11674 Fix DW_OP_minus.
11675
11676 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11677
11678 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11679 and bfd/elf32-sh-nbsd.c.
11680
11681 2002-01-10 Michael Snyder <msnyder@redhat.com>
11682
11683 * NEWS: Mention --pid and corefile/proc-id behavior change.
11684
11685 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11686 * gcore.c: Include cli/cli-decode.h instead of command.h.
11687
11688 * main.c (captured_main): Add new command line option "--pid".
11689 If the second command line argument (following the symbol-file)
11690 begins with a digit, try to attach to it before trying to open
11691 it as a corefile.
11692 (print_gdb_help): Document the "--pid" argument.
11693
11694 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11695
11696 * completer.c (command_completer): New function.
11697
11698 * completer.h <command_completer>: Add prototype.
11699
11700 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11701 completer for the "help" command.
11702
11703 2002-01-09 Jason Merrill <jason@redhat.com>
11704
11705 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11706
11707 2002-01-09 Michael Snyder <msnyder@redhat.com>
11708
11709 * i386-linux-nat.c (fill_fpxregset): Make global.
11710 (store_fpxregset): Ditto.
11711
11712 * gregset.h (gdb_fpxregset_t): Define.
11713 (supply_fpxregset): Prototype.
11714 (fill_fpxregset): Prototype.
11715
11716 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11717
11718 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11719
11720 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11721 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11722 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11723
11724 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11725
11726 * MAINTAINERS: Update target maintainer rules so that any
11727 Maintainer can approve a tested patch for a maintenance-only
11728 target.
11729
11730 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11731
11732 * MAINTAINERS (write-after-approval): Add myself.
11733
11734 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11735 IN_SIGTRAMP.
11736
11737 2002-01-08 Michael Snyder <msnyder@redhat.com>
11738
11739 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11740 real name of the executable, rather than the /proc name.
11741
11742 2002-01-03 Michael Snyder <msnyder@redhat.com>
11743
11744 Implement a "generate-core-file" command in gdb, save target state.
11745 * gcore.c: New file. Implement new command 'generate-core-file'.
11746 Save a corefile image of the current state of the inferior.
11747 * linux-proc.c: Add linux-specific code for saving corefiles.
11748 * target.h (struct target_ops): Add new target vectors for saving
11749 corefiles; to_find_memory_regions and to_make_corefile_notes.
11750 (target_find_memory_regions): New macro.
11751 (target_make_corefile_notes): New macro.
11752 * target.c (update_current_target): Inherit new target methods.
11753 (dummy_find_memory_regions): New place-holder method.
11754 (dummy_make_corefile_notes): New place-holder method.
11755 (init_dummy_target): Initialize new dummy target vectors.
11756 * exec.c (exec_set_find_memory_regions): New function.
11757 Allow the exec_ops vector for memory regions to be taken over.
11758 (exec_make_note_section): New function, target vector method.
11759 * defs.h (exec_set_find_memory_regions): Export prototype.
11760 * procfs.c (proc_find_memory_regions): New function, corefile method.
11761 (procfs_make_note_section): New function, corefile method.
11762 (init_procfs_ops): Set new target vector pointers.
11763 (find_memory_regions_callback): New function.
11764 (procfs_do_thread_registers): New function.
11765 (procfs_corefile_thread_callback): New function.
11766 * sol-thread.c (sol_find_memory_regions): New function.
11767 (sol_make_note_section): New function.
11768 (init_sol_thread_ops): Initialize new target vectors.
11769 * inftarg.c (inftarg_set_find_memory_regions): New function.
11770 Allow to_find_memory_regions vector to be taken over.
11771 (inftarg_set_make_corefile_notes): New function.
11772 Allow to_make_corefile_notes vector to be taken over.
11773 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11774 interface layer if not target_has_execution (may be a corefile).
11775 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11776 * config/sparc/sun4sol2.mh: Ditto.
11777 * config/alpha/alpha-linux.mh: Ditto.
11778 * config/arm/linux.mh: Ditto.
11779 * config/i386/x86-64linux.mh: Ditto.
11780 * config/ia64/linux.mh: Ditto.
11781 * config/m68k/linux.mh: Ditto.
11782 * config/mips/linux.mh: Ditto.
11783 * config/powerpc/linux.mh: Ditto.
11784 * config/sparc/linux.mh: Ditto.
11785
11786 2002-01-07 Michael Snyder <msnyder@redhat.com>
11787
11788 * arm-linux-nat.c: Remove references to regcache.c internal data
11789 (registers[] and register_valid[]).
11790
11791 2002-01-07 Michael Snyder <msnyder@redhat.com>
11792
11793 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11794 so that attaching to a pid will automatically read the process's
11795 symbol file and shlibs.
11796 * Makefile.in: Add rule for linux-proc.o.
11797 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11798 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11799 * config/arm/linux.mh: Ditto.
11800 * config/i386/linux.mh: Ditto.
11801 * config/i386/x86-64linux.mh: Ditto.
11802 * config/ia64/linux.mh: Ditto.
11803 * config/m68k/linux.mh: Ditto.
11804 * config/mips/linux.mh: Ditto.
11805 * config/powerpc/linux.mh: Ditto.
11806 * config/sparc/linux.mh: Ditto.
11807
11808 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11809
11810 * win32-nat.c: Add i386-tdep.h dependency.
11811
11812 2002-01-07 Michael Snyder <msnyder@redhat.com>
11813
11814 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11815 instead of bfd_get_arch_size. Don't bail out just because
11816 there's no exec_bfd.
11817
11818 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11819 * p-valprint.c (pascal_object_print_value): Ditto.
11820 * somread.c (som_symtab_read): Ditto.
11821 * symfile.c (simple_free_overlay_region_table): Ditto.
11822 * valops.c (value_assign): Ditto.
11823
11824 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11825 use tilde_expand and strerror for opening save-tracepoints file.
11826
11827 * thread-db.c (thread_db_new_objfile): Indendation fix.
11828
11829 * infptrace.c (GDB_MAX_ALLOCA): New define.
11830 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11831 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11832 can be overridden with whatever value is appropriate to the host).
11833 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11834 alloca to allocate potentially large buffer.
11835 * rs6000-nat.c (child_xfer_memory): Ditto.
11836 * symm-nat.c (child_xfer_memory): Ditto.
11837 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11838
11839 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11840
11841 From Nick Clifton <nickc@redhat.com>
11842 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11843
11844 2002-01-07 Michael Snyder <msnyder@redhat.com>
11845
11846 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11847 Don't use exec_bfd if it's NULL.
11848
11849 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11850
11851 * valops.c (value_arg_coerce): Fix formatting.
11852
11853 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11854
11855 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11856 * gnu-nat.c: Ditto.
11857
11858 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11859
11860 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11861 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11862 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11863 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11864 z8k-coff have not been multi-arched. Update z8k-coff build
11865 status.
11866
11867 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11868
11869 * MAINTAINERS: Mark a29k target as obsolete.
11870 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11871 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11872 comments.
11873 * NEWS: Note that a29k targets are obsolete.
11874 * a29k-tdep.c: Mark as obsolete.
11875 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11876 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11877 a29k-*-vxworks* targets as obsolete.
11878 * remote-adapt.c: Obsolete.
11879 * remote-eb.c: Obsolete.
11880 * remote-mm.c: Obsolete.
11881 * remote-udi.c: Obsolete.
11882 * config/a29k/a29k-udi.mt: Obsolete.
11883 * config/a29k/a29k.mt: Obsolete.
11884 * config/a29k/tm-a29k.h: Obsolete.
11885 * config/a29k/tm-vx29k.h: Obsolete.
11886 * config/a29k/vx29k.mt: Obsolete.
11887
11888 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11889
11890 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11891 with BFD_ENDIAN_BIG.
11892
11893 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11894
11895 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11896 * configure, config.in: Re-generate.
11897 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11898 * defs.h: Do not include <endian.h>.
11899
11900 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11901
11902 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11903 * config.in: Regenerate.
11904 * configure.in: Update copyright years.
11905 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11906 * configure: Regenerate.
11907 * i386bsd-nat.c: Update copyright years.
11908 (fill_gregset): Use regcache_collect.
11909 (fetch_inferior_registers): Only fetch integer registers
11910 if requested to do so. Add support for XMM registers
11911 using PT_GETXMMREGS.
11912 (store_inferior_registers): Only store integer registers
11913 if requested to do so. Add support for XMM registers
11914 using PT_SETXMMREGS.
11915 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11916 (store_inferior_registers): Remove.
11917 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11918 (fetch_elfcore_registers): New function.
11919 (i386nbsd_elfcore_fns): New.
11920 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11921 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11922 i386bsd-nat.o.
11923 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11924 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11925 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11926 * config/i386/tm-nbsd.h: Update copyright years.
11927 (HAVE_SSE_REGS): Define.
11928 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11929 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11930 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11931 (SIGCONTEXT_PC_OFFSET): Remove.
11932 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11933
11934 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11935
11936 * configure.tgt: Remove powerpc-*-macos* target.
11937 * config/m68k/xm-mpw.h: Delete file.
11938 * config/xm-mpw.h: Delete file.
11939 * ser-mac.c: Delete file.
11940 * mpw-make.sed: Delete file.
11941 * mpw-config.in: Delete file.
11942 * mac-xdep.c: Delete file.
11943 * mac-gdb.r: Delete file.
11944 * mac-defs.h: Delete file.
11945 * mac-nat.c: Delete file.
11946 * config/powerpc/macos.mh: Delete file.
11947 * config/powerpc/macos.mt: Delete file.
11948 * config/powerpc/nm-macos.h: Delete file.
11949 * config/powerpc/tm-macos.h: Delete file.
11950 * source.c (openp, open_source_file): Remove obsolete code.
11951 * top.c (gdb_readline): Ditto.
11952 * utils.c (query): Ditto.
11953 * event-top.c (display_gdb_prompt): Ditto.
11954 * Makefile.in (ser-mac.o): Delete obsolete target.
11955 * NEWS: Update.
11956
11957 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11958
11959 * defs.h (BIG_ENDIAN): Delete macro definition.
11960 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11961 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11962 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11963 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11964 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11965 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11966 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11967 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11968 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11969 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11970 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11971 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11972 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11973 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11974 * gdbarch.c: Re-generate.
11975
11976 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11977
11978 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11979 for core files.
11980
11981 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11982
11983 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11984
11985 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11986
11987 * value.h (value_ptr): Delete typedef.
11988
11989 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11990
11991 * i386nbsd-nat.c: Update copyright years.
11992 Include i386-tdep.h.
11993
11994 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11995
11996 * stabsread.c: Update copyright years.
11997
11998 From Debashis Mahata <debashis.mahata@wipro.com>:
11999 (read_struct_fields): Deal with Sun C compiler erroneous stab
12000 output for structs and unions.
12001 Fix PR gdb/269.
12002
12003 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12004
12005 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12006 prototype.
12007
12008 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12009
12010 * cp-abi.c: Fix whitespace.
12011 (baseclass_offset): New wrapper function.
12012 * cp-abi.h (baseclass_offset): Add prototype.
12013 (struct cp_abi_ops): Add baseclass_offset pointer.
12014
12015 * valops.c (vb_match): Move to...
12016 * gnu-v2-abi.c (vb_match): here.
12017 * valops.c (baseclass_offset): Move to...
12018 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12019
12020 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12021
12022 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12023 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12024 * hpacc-abi.c (init_hpacc_ops): Likewise.
12025
12026 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12027
12028 * valops.c (find_overload_match): Accept obj as a
12029 reference parameter. Update it before returning.
12030 * value.h (find_overload_match): Update prototype.
12031 * eval.c (evaluate_subexp_standard): Pass object to
12032 find_overload_match by reference.
12033
12034 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12035
12036 * valarith.c: Replace value_ptr with struct value pointer. Remove
12037 register attribute from value declarations.
12038 * valops.c: Ditto.
12039 * value.h: Ditto.
12040 * scm-lang.c (scm_lookup_name): Ditto.
12041
12042 2002-01-03 Michael Snyder <msnyder@redhat.com>
12043
12044 Abstract the functionality of iterating over mapped memory
12045 regions into a general purpose iterator function.
12046 * procfs.c (iterate_over_mappings): New function, general purpose
12047 iterator for memory sections.
12048 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12049 (solib_mappings_callback): New function, callback for above.
12050 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12051 (info_mappings_callback): New function, callback for above.
12052
12053 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12054
12055 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12056
12057 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12058 * i386-tdep.c: Include "elf-bfd.h".
12059 (process_note_abi_tag_sections): New function.
12060 (i386_gdbarch_init): Add code to recognize various OS/ABI
12061 combinations.
12062
12063 * maint.c (_initialize_maint_cmds): Add missing \ in
12064 string-literal.
12065
12066 For older changes see ChangeLog-2001
12067 \f
12068 Local Variables:
12069 mode: change-log
12070 left-margin: 8
12071 fill-column: 74
12072 version-control: never
12073 End: