2002-10-23 Michael Snyder <msnyder@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-23 Michael Snyder <msnyder@redhat.com>
2
3 * printcmd.c (address_info): Restore quotes in output.
4 * valops.c (value_of_local): Restore quotes in error message.
5
6 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
7
8 * symtab.c (symbol_demangled_name): New function.
9 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
10 turning most of it into a function.
11 (symbol_demangled_name): Export.
12
13 2002-10-23 Michael Snyder <msnyder@redhat.com>
14
15 * valops.c (value_of_local): Restore quotes in error message.
16
17 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
18
19 * symtab.c (symbol_init_language_specific): New function.
20 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
21 turning most of it into a function.
22 (symbol_init_language_specific): Export.
23
24 2002-10-23 David Carlton <carlton@math.stanford.edu>
25
26 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
27 (dwarf_attr_name): Ditto.
28 (dwarf_type_encoding_name): Ditto.
29 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
30 (process_die): Handle DW_TAG_namespace,
31 DW_TAG_imported_declaration, DW_TAG_imported_module.
32 (read_namespace): New function.
33
34 2002-10-22 Joel Brobecker <brobecker@gnat.com>
35
36 * configure.in: Define NEW_PROC_API on Interix too.
37 * configure: Regenerate.
38
39 2002-10-21 Joel Brobecker <brobecker@gnat.com>
40
41 * configure: Regenerate using the proper version of autoconf.
42
43 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
44
45 * findvar.c (read_var_value): Temporarily disable TLS code, until
46 complete TLS support is added.
47
48 2002-10-21 Jim Blandy <jimb@redhat.com>
49 Elena Zannoni <ezannoni@redhat.com>
50
51 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
52 for thread local storage locations.
53 (struct symbol): Add objfile field.
54 (SYMBOL_OBJFILE): Define.
55 * dwarf2read.c (is_thread_local): New static variable.
56 (new_symbol): If variable is in thread local fill in address class
57 and objfile appropriately.
58 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
59 stack operation.
60 * printcmd.c (address_info): Print the information for thread
61 local storage variable.
62 * findvar.c (read_var_value): In case of thread local variable,
63 defer to the target vector code to compute address.
64
65 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
66
67 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
68 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
69
70 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
71
72 * symtab.h (address_class): Rename
73 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
74 * hpread.c (hpread_process_one_debug_symbol): Ditto.
75 * printcmd.c (address_info): Ditto.
76 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
77
78 2002-10-20 Mark Kettenis <kettenis@gnu.org>
79
80 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
81 DBREG_DRX macro to acces debug registers.
82
83 * Makefile.in (i386obsd-tdep.o): New target.
84
85 * solib-sunos.c: Include "bcache.h" and "regcache.h".
86 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
87
88 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
89 * config/i386/obsd.mt: New file.
90 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
91 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
92 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
93 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
94 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
95 * i386obsd-tdep.c: New file.
96
97 2002-10-19 Adam Fedor <fedor@gnu.org>
98
99 * objc-exp.y (name_not_typename): Fix invalid comment.
100
101 2002-10-20 Mark Kettenis <kettenis@gnu.org>
102
103 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
104 to allocate partial syms and macro byte caches.
105
106 2002-10-18 David Carlton <carlton@math.stanford.edu>
107
108 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
109
110 2002-10-18 Adam Fedor <fedor@gnu.org>
111
112 * stabsread.c (find_name_end): New function.
113 (define_symbol): Use it.
114
115 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
116
117 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
118 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
119 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
120 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
121
122 2002-10-17 David Carlton <carlton@math.stanford.edu>
123
124 * symfile.h: Add opaque declaration for struct obstack.
125 Declare obsavestring to take a const char *.
126 * symfile.c (obsavestring): Make first argument a const char *.
127
128 2002-10-16 Adam Fedor <fedor@gnu.org>
129
130 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
131 names when matching breakpoints in current file.
132
133 2002-10-16 Kevin Buettner <kevinb@redhat.com>
134
135 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
136 (read_tag_pointer_type): Add address class support.
137 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
138 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
139 New methods.
140 * gdbarch.h, gdbarch.c: Regenerate.
141 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
142 (make_type_with_address_space, recursive_type_dump): Add address
143 class support.
144 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
145 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
146 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
147
148 2002-10-16 Klee Dienes <kdienes@apple.com>
149
150 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
151 to get the last character of a char[] buffer, not
152 name[sizeof(vptr_name)-1].
153
154 2002-10-14 Adam Fedor <fedor@gnu.org>
155
156 * symtab.h: New objc_specific struct.
157 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
158 (SYMBOL_DEMANGLED_NAME): Likewise.
159
160 2002-10-14 Adam Fedor <fedor@gnu.org>
161
162 * symfile.c (init_filename_language_table): Add ObjC file extension.
163
164 2002-10-14 Adam Fedor <fedor@gnu.org>
165
166 * utils.c (puts_filtered_tabular): New function.
167 (fprintf_symbol_filtered): Get ObjC demangled name.
168 * defs.h (puts_filtered_tabular): Declared.
169
170 2002-10-14 Kevin Buettner <kevinb@redhat.com>
171
172 * c-lang.h (c_type_print_varspec_prefix): Delete.
173 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
174 ``need_post_space'' parameter. Adjust all callers.
175
176 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
177
178 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
179 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
180 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
181 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
182
183 2002-10-13 Adam Fedor <fedor@gnu.org>
184
185 * source.c (print_source_lines): Update comments.
186
187 2002-10-13 Adam Fedor <fedor@gnu.org>
188
189 * valops.c (value_of_local): New function.
190 (value_of_this): Use it.
191 * value.h (value_of_local): Declared.
192
193 2002-10-13 Adam Fedor <fedor@gnu.org>
194
195 * parse.c: (length_of_subexp, prefixify_subexp): Handle
196 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
197
198 2002-10-12 Adam Fedor <fedor@gnu.org>
199
200 * language.c (binop_result_type): Add language_objc to case.
201 (integral_type): Likewise.
202 (character_type): Likewise.
203 (string_type): Likewise.
204 (boolean_type): Likewise.
205 (structured_type): Likewise.
206 (binop_type_check): Likewise.
207
208 2002-10-11 Adam Fedor <fedor@gnu.org>
209
210 * printcmd.c (address_info): Print 'self' for ObjC.
211
212 2002-10-11 Adam Fedor <fedor@gnu.org>
213
214 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
215 OP_SELF.
216
217 2002-10-11 Adam Fedor <fedor@gnu.org>
218
219 * language.h (CAST_IS_CONVERSION): Add language_objc.
220
221 2002-10-11 Adam Fedor <fedor@gnu.org>
222
223 * defs.h (enum language): Add language_objc.
224
225 2002-10-11 Klee Dienes <kdienes@apple.com>
226
227 * findvar.c (read_memory_typed_address): New function.
228 * gdbcore.h (read_memory_typed_address): Add prototype.
229 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
230 to read a value destined for a CORE_ADDR, not read_memory_integer.
231 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
232 (f77_get_dynamic_lowerbound): Ditto.
233
234 2002-10-11 Martin M. Hunt <hunt@redhat.com>
235
236 * utils.c (string_to_core_addr): After turning string into
237 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
238 which will do necessary sign-extension, etc.
239
240 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
241
242 * c-exp.y (THIS): Delete token and grammar rule.
243 (yylex): Don't return THIS.
244 * cp-valprint.c (vtbl_ptr_name_old): Delete.
245 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
246 * demangle.c (cplus_markers): Update comment. Put '$'
247 first. Remove CPLUS_MARKER.
248 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
249 * jv-exp.y (THIS): Delete token and grammar rule.
250 (yylex): Don't return THIS.
251 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
252 * objc-exp.y (THIS): Delete token and grammar rule.
253 (yylex): Don't return THIS.
254 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
255 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
256 (read_member_functions): Likewise for opname.
257 (read_tilde_fields): Use is_cplus_marker.
258
259 * defs.h (CPLUS_MARKER): Don't define.
260 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
261 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
262 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
263 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
264 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
265
266 * config/i386/tm-i386v4.h: Delete file.
267 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
268 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
269 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
270 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
271 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
272 * config/i386/i386sco5.mt (TM_FILE): Likewise.
273 * config/i386/i386v4.mt (TM_FILE): Likewise.
274 * config/i386/ncr3000.mt (TM_FILE): Likewise.
275
276 2002-10-10 Marko Mlinar <markom@opencores.org>
277
278 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
279 accidentially not commited 2002-10-09
280 * gdbarch.h, gdbarch.c: Re-generate.
281
282 2002-10-09 Marko Mlinar <markom@opencores.org>
283
284 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
285 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
286 * gdbarch.h, gdbarch.c: Re-generate.
287
288 2002-10-08 Petr Sorfa <petrs@caldera.com>
289
290 Revised and re-submitted by John Wolfe <jlw@caldera.com>
291
292 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
293 so we can work on more than one compilation unit at a time. This
294 helps prepare GDB to handle inter-CU die references.
295 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
296 the code to be defined before struct comp_unit_head.
297 (comp_unit_head): Added new members - offset, cu_head,
298 begin_die, next and dwarf2_abbrevs.
299 (dwarf2_abbrevs): Removed single static var; now member of
300 struct comp_unit_head.
301 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
302 members.
303 (psymtab_to_symtab_1): Changed to work with the new
304 struct comp_unit_head.
305 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
306 constructs the dwarf2_abbrevs[] inside the cu_header.
307 (dwarf2_empty_abbrev_table): Now expects a ptr to a
308 dwarf2_abbrev table to clean up.
309 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
310 handling of dwarf2_abbrevs inside the cu_header.
311 (read_partial_die): Now supports the call to the new
312 dwarf2_lookup_abbrev.
313 (read_full_die): Now supports the call to the new
314 dwarf2_lookup_abbrev.
315
316 2002-10-06 Christopher Faylor <cgf@redhat.com>
317
318 * Makefile.in (install-gdbtk): Add missing continuation backslash to
319 insure that shell variables, such as "transformed_name" are propagated
320 to later shell statements in rule.
321
322 2002-10-06 Mark Kettenis <kettenis@gnu.org>
323
324 * config/i386/nm-i386sco.h: Add protection against
325 multiple-inclusion. Include "i386/nm-i386v.h".
326 (REGISTER_U_ADDR): Remove define.
327 (i386_register_u_addr): Remove prototype.
328
329 2002-10-04 Michael Snyder <msnyder@redhat.com>
330
331 * m32r-stub.c (handle_exception): Make sure exception is "trap"
332 before treating it as a single-step event.
333
334 2002-10-03 Adam Fedor <fedor@gnu.org>
335
336 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
337 (objc_demangle): Remove assignment in if statements, Replace
338 free with xfree.
339 (add_msglist): Likewise.
340 (end_msglist): Likewise.
341 (complare_selectors): Likewise.
342 (selectors_info): Likewise.
343 (compare_classes): Likewise.
344 (classes_info): Likewise.
345 (print_object_command): Likewise.
346 (find_objc_msgcall_submethod): Replace PTR with void *.
347 * objc-lang.h: Remove check for __STDC__.
348
349 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
350
351 * ui-out.h (ui_out_field_fmt_int): New prototype.
352 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
353 of field width and alignment.
354 * stack.c (print_frame_info_base): When printing frame level, use
355 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
356 PR gdb/192
357
358 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
359
360 * MAINTAINERS: Add self to Write After Approval list.
361
362 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
363
364 * infcmd.c (interrupt_target_command_wrapper): Delete.
365 (interrupt_target_command): Make non static.
366 (nofp_registers_info): Make static.
367 * stack.c (return_command_wrapper): Delete.
368 (return_command): Make non static.
369
370 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
371
372 * event-top.c (gdb_setup_readline): New function. Code moved from
373 _initialize_event_loop().
374 (_initialize_event_loop): Call gdb_setup_readline().
375
376 2002-10-02 Andrew Cagney <ac131313@redhat.com>
377
378 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
379 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
380 * gdbarch.h, gdbarch.c: Re-generate.
381
382 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
383
384 Fix PR gdb/778
385 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
386 before recursing.
387 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
388 of fill_in_vptr_fieldno.
389
390 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
391
392 * inferior.h (registers_info, stepi_command, nexti_command,
393 continue_command, interrupt_target_command): Export from infcmd.c.
394 * frame.h (args_info, selected_frame_level_changed_hook,
395 return_command): Export from stack.c.
396 * v850ice.c (stepi_command, nexti_command, continue_command): use
397 prototypes from inferior.h.
398 * tracepoint.c (registers_info, args_info, locals_info): Use
399 prototypes from frame.h and inferior.h.
400 * Makefile.in (mi-main.o): Add dependency on frame.h.
401
402 2002-10-02 Andrew Cagney <ac131313@redhat.com>
403
404 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
405 value in register 3 adjusted by ppc_gp0_regnum.
406
407 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
408
409 2002-10-02 Marko Mlinar <markom@opencores.org>
410
411 * MAINTAINERS: Add myself to the Write After Approval list.
412
413 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
414
415 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
416 of the section for the N64 ABI, fixed.
417
418 * config/mips/tm-irix6.h: Include solib.h.
419
420 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
421
422 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
423 GNU operators.
424
425 2002-10-01 Andrew Cagney <ac131313@redhat.com>
426
427 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
428 and that "mi0" syntax has been removed.
429
430 2002-09-30 David Carlton <carlton@math.stanford.edu>
431
432 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
433 * ppc-sysv-tdep.c: #include "gdb_string.h".
434 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
435 pacify GCC.
436
437 2002-10-01 Andrew Cagney <ac131313@redhat.com>
438
439 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
440 "vrsave"'s register number.
441
442 2002-09-30 Andrew Cagney <ac131313@redhat.com>
443
444 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
445 use frame_unwind_signed_register to obtain the PC.
446 (mips_frame_chain): Handle a generic dummy frame.
447 (mips_init_extra_frame_info): When a generic dummy frame, don't
448 re-compute the frame base.
449 (mips_pop_frame): Handle generic dummy frames.
450 (mips_gdbarch_init): When generic dummy frames, set
451 use_generic_dummy_frames, push_dummy_frame to
452 generic_push_dummy_frame, pc_in_call_dummy to
453 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
454 generic_save_dummy_frame_tos.
455
456 2002-09-30 Andrew Cagney <ac131313@redhat.com>
457
458 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
459 against TOP when TOP was explictly set.
460 (generic_push_dummy_frame): Set TOP to zero.
461
462 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
463
464 * event-loop.c (start_event_loop): Rename variable 'result' to
465 'gdb_result', to avoid conflicts with upcoming intepreters changes.
466
467 2002-09-30 Keith Seitz <keiths@redhat.com>
468
469 * gdb-events.sh (selected_thread_changed): New event.
470 * gdb-events.c: Regenerated.
471 * gdb-events.h: Regenerated.
472
473 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
474
475 * MAINTAINERS: Add self to Write After Approval list.
476
477 2002-09-30 Fernando Nasser <fnasser@redhat.com>
478
479 * disasm.c: New file.
480 * disasm.h: New file.
481 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
482 (compare_lines): Ditto.
483 (dump_insns): Ditto.
484 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
485 argument.
486 (do_assembly_only): Ditto.
487 (do_disassembly): Renamed to gdb_disassembly and moved to
488 disasm.c. Sdded uiout argument.
489 * Makefile.in: Add new files. Reorder SFILES list. Update
490 dependencies. Include libgdb.a later in the insight executable.
491
492 2002-09-29 Andrew Cagney <ac131313@redhat.com>
493
494 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
495 bfd/elf64-alpha-fbsd.c.
496
497 2002-09-29 Andrew Cagney <ac131313@redhat.com>
498
499 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
500 i386gnu-tdep.c.
501
502 2002-09-29 Andrew Cagney <ac131313@redhat.com>
503
504 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
505 __FUNCTION__.
506 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
507 function name.
508 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
509 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
510 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
511 (S_msg_sig_post_reply): Ditto.
512
513 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
514
515 * sh-tdep.c (sh_use_struct_convention): Use definition according
516 to ABI.
517 (sh_push_arguments): Store in register with correct endianess.
518 (sh_default_store_return_value): Ditto.
519 (sh_gdbarch_init): Set sizeof long double to 8.
520
521 2002-09-27 Mark Kettenis <kettenis@gnu.org>
522
523 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
524 Fix some whitespace problems.
525
526 2002-09-27 David Carlton <carlton@math.stanford.edu>
527
528 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
529 (mcore-tdep.o): Ditto.
530 (ns32k-tdep.o): Ditto.
531 (ns32knbsd-tdep.o): Ditto.
532 (sh3-rom.o): Ditto.
533 (vax-tdep.o): Ditto.
534 * cris-tdep.c: #include "gdb_string.h"
535 * mcore-tdep.c: Ditto.
536 * ns32k-tdep.c: Ditto.
537 * ns32knbsd-tdep.c: Ditto.
538 * sh3-rom.c: Ditto.
539 * vax-tdep.c: Ditto.
540
541 2002-09-27 David Carlton <carlton@math.stanford.edu>
542
543 * config/djgpp/fnchange.lst: Add entries for
544 gdb/testsuite/gdb.c++/m-static files.
545
546 2002-09-27 Jim Wilson <wilson@redhat.com>
547
548 * MAINTAINERS: Add myself to the Write After Approval list.
549
550 2002-09-26 Martin M. Hunt <hunt@redhat.com>
551
552 * mips-tdep.c (find_proc_desc): Initialize startaddr.
553
554
555 2002-09-26 Andrew Cagney <ac131313@redhat.com>
556
557 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
558 frame.
559
560 2002-09-26 Andrew Cagney <ac131313@redhat.com>
561
562 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
563 (rs6000_struct_return_address): Delete variable.
564 (rs6000_store_struct_return): Update.
565 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
566 deprecated_extract_struct_value_address.
567 (rs6000_frame_align): New function.
568 (rs6000_gdbarch_init): Set frame_align.
569
570 2002-09-26 Andrew Cagney <ac131313@redhat.com>
571
572 From Grace Sainsbury <graces@redhat.com>:
573 * Makefile.in (gdbtk-main.o): New target.
574 (gdb.o): New target.
575 (main_h): Define.
576 (main.o): Update dependencies.
577 (gdb$(EXEEXT)): Add gdb.o.
578 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
579 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
580 (SUBDIR_GDBTK_CLEAN): Set.
581 (install-gdbtk): Install the insight binary.
582 (uninstall-gdbtk): New target.
583 (all-gdbtk, clean-gdbtk): New rule.
584 * top.c (use_windows): Default to zero.
585 * main.c: Include "main.h".
586 (main): Delete.
587 (struct captured_main_args): Delete.
588 (gdb_main): New function.
589 * main.h: New file.
590 * gdb.c: New File.
591
592 2002-09-25 Andrew Cagney <cagney@redhat.com>
593
594 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
595 (frame_map_regnum_to_name): New function.
596 (frame_map_name_to_regnum): New function.
597 * frame.h (frame_map_name_to_regnum): Declare.
598 (frame_map_regnum_to_name): Declare.
599 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
600 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
601 * parse.c: Do not include "builtin-regs.h".
602 (target_map_name_to_register): Delete function.
603 (write_dollar_variable): Use frame_map_name_to_regnum.
604 * parser-defs.h (target_map_name_to_register): Delete declaration.
605 * expprint.c: Include "frame.h".
606 (print_subexp): Use frame_map_regnum_to_name.
607 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
608 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
609
610 2002-09-25 Andrew Cagney <ac131313@redhat.com>
611
612 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
613 wasn't saved, and the next innermost frame is a dummy, return the
614 dummy frame's link register.
615
616 2002-09-24 Jim Blandy <jimb@redhat.com>
617
618 Fix from Paul Breed:
619 * main.c (captured_main): Add a `break' after the case for 'b'.
620
621 2002-09-24 Keith Seitz <keiths@redhat.com>
622
623 * varobj.c (c_type_of_child): Use get_target_type instead
624 of TYPE_TARGET_TYPE.
625
626 2002-09-22 Fernando Nasser <fnasser@redhat.com>
627
628 * source.c (get_current_or_default_source_symtab_and_line): Remove
629 function.
630 (set_default_source_symtab_and_line): New function. Attempts to
631 determine a source file to list lines from if one is not currently
632 defined.
633 (get_current_source_symtab_and_line): Initialize sal.pc and
634 sal.end fields.
635 (set_current_source_symtab_and_line): Mark argument as const.
636 * source.h: Update declarations and comments.
637 * linespec.c (decode_line_1): Replace call to removed routine above.
638 * stack.c (print_frame_info_base): Ditto.
639 * cli/cli-cmds.c (edit_command): Ditto.
640 (list_command): Ditto.
641
642 2002-09-22 Fernando Nasser <fnasser@redhat.com>
643
644 * source.c (get_current_or_default_source_symtab_and_line): Initialize
645 sal.pc and sal.end fields.
646 (get_current_or_default_source_symtab_and_line): Ditto.
647 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
648 so we do not cause a new source symtab to be searched for (reverting an
649 unintentional change from the 2002-09-20 patch).
650 * scm-lang.c (scm_unpac): Ditto.
651
652 2002-09-21 Andrew Cagney <cagney@redhat.com>
653
654 * complaints.c (symfile_explanations): Remove new-line from
655 ``isolated_message''.
656 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
657 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
658
659 2002-09-20 Nick Clifton <nickc@redhat.com>
660
661 * NEWS: Announce that V850EA ISA is no longer supported.
662 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
663
664 2002-09-20 David Carlton <carlton@math.stanford.edu>
665
666 * Makefile.in (c-lang.o): Correct dependencies.
667 (utils.o): Gather dependencies.
668 (charset.o): Move.
669 * c-lang.c: #include "gdb_string.h"
670
671 2002-09-20 Fernando Nasser <fnasser@redhat.com>
672
673 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
674 * cli/cli-cmds.c (list_command): New function. Implements the new
675 cli edit command.
676 (_init_cli_cmds): Add new command definition.
677 * gdb.1: Document edit command.
678 * doc/gdb.texinfo: Document edit command.
679
680 2002-09-20 Fernando Nasser <fnasser@redhat.com>
681
682 * source.c: Make global variables current_source_symtab and
683 current_source_line static.
684 (list_command): Moved to cli/cli-cmds.c.
685 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
686 (get_first_line_listed): New accessor function.
687 (get_lines_to_list): New accessor function.
688 (get_current_source_symtab_and_line): New function. Retrieves the
689 position in the source code that we consider current.
690 (get_current_or_default_source_symtab_and_line): New function.
691 Like the above but attempts to determine a default position if one
692 is not currently defined.
693 (set_current_source_symtab_and_line): New function. Sets the source
694 code position considered current and returns the previously set one.
695 (clear_current_source_symtab_and_line): Reset stored information about
696 a current source line.
697 (_initialize_source): Remove registration for the "list" command and
698 its alias.
699 * source.h: Add declarations for the new functions above.
700 * symtab.h: Remove declarations for the global variables mentioned
701 above.
702 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
703 obtain current source line.
704 * linespec.c (decode_line_1): Ditto.
705 * macroscope.c (default_macro_scope): Ditto.
706 * scm-lang.c (scm_unpac): Ditto.
707 * stack.c (print_frame_info_base): Ditto.
708 * symfile.c (clear_symtab_users): Ditto.
709 * symtab.c (decode_line_spec): Ditto.
710 * cli/cli-cmds.c (list_command): Moved here from source.c.
711 (ambiguous_line_spec): Moved here from source.c.
712 (_init_cli_cmds): Add definition for "list" and its alias.
713 * Makefile.in: Update dependencies.
714
715 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
716
717 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
718 with what gcc thinks is correct.
719
720 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
721
722 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
723 multiple register push instruction.
724
725 2002-09-19 Jim Blandy <jimb@redhat.com>
726
727 Add support for distinct host and target character sets.
728 * charset.c, charset.h: New files.
729 * c-exp.y: #include "charset.h".
730 (yylex): Convert character and string literals to the target
731 character set, before returning them as the semantic value of the
732 token.
733 * c-lang.c: #include "charset.h".
734 (c_emit_char): Use charset-specific methods to recognize
735 characters with backslash escape forms, to decide which characters
736 to print literally and which to print using numeric escape
737 sequences, and to convert target characters to host characters
738 before printing.
739 * utils.c: #include "charset.h".
740 (no_control_char_error): New function.
741 (parse_escape): Use charset-specific methods to recognize
742 backslash escapes, parse `control character' notation, and convert
743 characters from the host character set to the target character set.
744 * configure.in: Set the default host character set.
745 Check where to find iconv, and what its argument types might be.
746 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
747 * Makefile.in (SFILES): List charset.c.
748 (COMMON_OBS): List charset.o.
749 (charset.o): New rule.
750 (charset_h): New header dependency variable.
751 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
752 (LIBICONV): New variable, set by configure.
753 (CLIBS): Include $(LIBICONV) here.
754 * aclocal.m4, config.in, configure: Regenerated.
755
756 2002-09-19 Joel Brobecker <brobecker@gnat.com>
757
758 * ada-exp.y: Add missing semicolons to end rules. Fixes a
759 bison 1.35 warning.
760
761 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
762
763 * gdb_mbuild.sh: New file.
764
765 2002-09-19 Andrew Cagney <ac131313@redhat.com>
766
767 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
768
769 2002-09-18 Andrew Cagney <ac131313@redhat.com>
770
771 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
772 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
773 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
774 valops.c, value.h: Revert previous change.
775
776 2002-09-18 Michael Snyder <msnyder@redhat.com>
777
778 Preliminary support for Objective-C:
779 * defs.h (language_objc): New enum value.
780 (puts_filtered_tabular): Declaration only, exported from utils.c.
781 (skip_quoted): Delete, declared in completer.h.
782 * c-exp.y: Include completer.h.
783 * p-exp.y: Ditto.
784 * jv-exp.y: Ditto.
785 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
786 New operator enum values.
787 * language.h (CAST_IS_CONVERSION): Test for language_objc.
788 * language.c (binop_result_type): Handle language_objc case.
789 (integral_type, character_type, string_type, boolean_type,
790 structured_type, binop_type_check): Ditto.
791 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
792 (struct objc_specific): Add to general_symbol_info.
793 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
794 (SYMBOL_DEMANGLED_NAME): Handle objc case.
795 * parser-defs.h (struct objc_class_str): New struct type.
796 (start_msglist, end_msglist, add_msglist): Declaration only,
797 exported from objc-lang.c.
798 * value.h (value_of_local, value_nsstring,
799 call_function_by_hand_expecting_type): Exported from valops.c.
800 * valops.c (find_function_addr): Export.
801 (call_function_by_hand_expecting_type): New function.
802 (value_of_local): New function.
803 * symfile.c (init_filename_language_table): Add ".m" extension
804 for Objective-C.
805 * utils.c (puts_filtered_tabular): New function.
806 (fprintf_symbol_filtered): Add objc demangling support (disabled).
807 (set/show demangle): Extend help-string to refer to ObjC.
808 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
809 * stabsread.c (symbol_reference_defined): Objective-C symbols
810 may contain colons: make allowances when scanning stabs strings
811 for colons.
812 (objc_find_colon): New function.
813 * printcmd.c (address_info): If language == objc then print
814 "self" instead of "this".
815 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
816 OP_NSSTRING, and OP_SELF.
817 (prefixify_subexp): Ditto.
818 * source.c (print_source_lines): Mention objc in comment.
819 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
820 method names.
821
822 2002-09-18 Andrew Cagney <ac131313@redhat.com>
823
824 * complaints.h: Update copyright.
825 (struct complaints): Declare.
826 (struct complaint): Make `message' constant.
827 (internal_complaint): Declare.
828 (complaint): Declare.
829 (complaint_root): Delete declaration.
830 (symfile_complaints): Delete declaration.
831 (struct complaints): Add opaque declaration.
832 (clear_complaints): Add a complaints parameter.
833 * complaints.c: Update copyright.
834 (enum complaint_series): Define.
835 (complaint_root): Delete.
836 (struct complaints): Define.
837 (complaint_sentinel, symfile_complaint_book): New variables.
838 (symfile_explanations, symfile_complaints): New variables.
839 New variables.
840 (get_complaints): New function.
841 (vcomplaint): New function.
842 (complaint): New function.
843 (internal_complaint): New function.
844 (complain): Call vcomplain with symfile_complaint.
845 (clear_complaints): Rewrite.
846 (_initialize_complaints): Use add_setshow_command.
847 * Makefile.in (complaints.o): Update dependencies.
848 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
849 to call to clear_complaints.
850 (new_symfile_objfile, reread_symbols): Ditto.
851 (oldsyms_complaint): Delete.
852 (empty_symtab_complaint, unknown_option_complaint): Delete.
853 (free_named_symtabs): Use complaint instead of complain.
854
855 2002-09-18 Michael Snyder <msnyder@redhat.com>
856
857 Contributed by Apple Computer, Inc. Merged with current sources
858 by Adam Fedor <fedor@doc.com> [cagney].
859
860 * objc-lang.c: First clean-up round: comments, indentation.
861 * objc-lang.h: Ditto.
862 * objc-lang.y: Ditto.
863
864 2002-09-18 Andrew Cagney <ac131313@redhat.com>
865
866 * maint.c (maintenance_internal_error): Print the parameter as the
867 error message.
868 (maintenance_internal_warning): New function.
869 (_initialize_maint_cmds): Add command `maint internal-warning'.
870
871 * defs.h (internal_warning, internal_vwarning): Declare.
872 * utils.c (struct internal_problem): Define.
873 (internal_vproblem): New function.
874 (internal_warning): New function.
875 (internal_vwarning): New function.
876 (internal_warning_problem, internal_error_problem): New variables.
877 (internal_verror): Just call internal_vproblem.
878
879 2002-09-18 Michael Snyder <msnyder@redhat.com>
880
881 * objc-lang.c: New file, support for Objective-C.
882 Preliminary check-in, not yet integrated into gdb.
883 * objc-lang.h: New file.
884 * objc-exp.y: New file.
885
886 2002-09-18 Andrew Cagney <ac131313@redhat.com>
887
888 * infrun.c (signal_stop_update): Convert definition to ISO C.
889 (signal_print_update): Ditto.
890 (signal_pass_update): Ditto.
891 * inflow.c (terminal_save_ours): Ditto.
892
893 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
894 comments.
895
896 * config/djgpp/fnchange.lst: Handle name clashes between
897 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
898 bfd/coff-tic80.c.
899
900 * i386-linux-tdep.h: Fix tipo.
901
902 2002-09-18 Adam Fedor <fedor@gnu.org>
903
904 * MAINTAINERS: Add myself to the Write After Approval list.
905
906 2002-09-18 Jim Blandy <jimb@redhat.com>
907
908 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
909 texthigh and textlow to reader-specific structs caused
910 objfile_relocate to miss them. This is fixable, but the work that
911 the change was supposed to prepare GDB for never got done anyway.
912
913 2002-09-18 David Carlton <carlton@math.stanford.edu>
914
915 * MAINTAINERS: Alphabetize Write After Approval list.
916
917 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
918
919 Fix PR gdb/709
920 * values.c (value_static_field): Call read_var_value.
921
922 2002-09-18 Andrew Cagney <ac131313@redhat.com>
923
924 * valops.c (hand_function_call): Align the initial stack pointer
925 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
926 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
927 return value.
928 * mips-tdep.c (mips_frame_align): New function.
929 (mips_gdbarch_init): Set frame_align.
930 * gdbarch.sh (FRAME_ALIGN): New method.
931 * gdbarch.h, gdbarch.c: Re-generate.
932
933 2002-09-18 Michal Ludvig <mludvig@suse.cz>
934
935 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
936 registers.
937
938 2002-09-17 Andrew Cagney <ac131313@redhat.com>
939
940 * NEWS: Mention that MIPS $fp behavior changed.
941 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
942 reference to FP_REGNUM.
943 (mipsnbsd_cannot_store_register): Ditto.
944 * mips-linux-nat.c: Update copyright.
945 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
946 (mips_linux_cannot_store_register): Ditto.
947 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
948 * config/mips/tm-mips.h: Update copyright.
949 (FP_REGNUM): Delete macro.
950 (MIPS_REGISTER_NAMES): Replace "fp" with "".
951 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
952 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
953 (mips_r3041_reg_names, mips_r3051_reg_names)
954 (mips_r3081_reg_names): Replace "fp" with "".
955 Fix PR gdb/480.
956
957 2002-09-17 Theodore A. Roth <troth@verinet.com>
958
959 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
960 generic_read_register_dummy() (PR gdb/703).
961 (avr_push_return_address): #if 0 out unused vars.
962 (avr_gdbarch_init): Enable use of avr_push_return_address().
963
964 2002-09-17 Michael Snyder <msnyder@redhat.com>
965
966 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
967 RTE will take care of it.
968
969 2002-09-17 Andrew Cagney <ac131313@redhat.com>
970
971 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
972 invalid, return SP_REGNUM.
973
974 2002-09-17 Michael Snyder <msnyder@redhat.com>
975
976 * mips-tdep.c (mips_pop_frame): Read saved values of floating
977 point registers without sign extension.
978
979 2002-09-17 Andrew Cagney <cagney@redhat.com>
980
981 * blockframe.c (deprecated_read_register_dummy): Rename
982 generic_read_register_dummy.
983 * frame.c (frame_unwind_signed_register): New function.
984 (frame_unwind_unsigned_register): New function.
985 * frame.h (frame_unwind_signed_register): Declare.
986 (frame_unwind_unsigned_register): Declare.
987 (deprecated_read_register_dummy): Rename
988 generic_read_register_dummy.
989
990 * h8300-tdep.c (h8300_frame_chain): Update.
991 (h8300_frame_saved_pc): Update.
992 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
993 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
994 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
995 (s390_frame_chain): Update.
996 * v850-tdep.c (v850_find_callers_reg): Update.
997 (v850_frame_saved_pc): Update.
998 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
999 (m32r_find_callers_reg): Update.
1000 (m32r_frame_saved_pc): Update.
1001 * sh-tdep.c (sh_find_callers_reg): Update.
1002 (sh64_get_saved_pr): Update.
1003 (sh_init_extra_frame_info): Update.
1004 (sh_init_extra_frame_info): Update.
1005 (sh64_init_extra_frame_info): Update.
1006 (sh64_init_extra_frame_info): Update.
1007 * mcore-tdep.c (mcore_find_callers_reg): Update.
1008 (mcore_frame_saved_pc): Update.
1009 (mcore_init_extra_frame_info): Update.
1010 * i386-tdep.c (i386_frame_saved_pc): Update.
1011 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1012 (ia64_init_extra_frame_info): Update.
1013 (ia64_init_extra_frame_info): Update.
1014 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1015 * cris-tdep.c (cris_init_extra_frame_info): Update.
1016 * avr-tdep.c (avr_frame_chain): Update.
1017 (avr_init_extra_frame_info): Update.
1018 (avr_frame_saved_pc): Update.
1019 * arm-tdep.c (arm_find_callers_reg): Update.
1020 (arm_init_extra_frame_info): Update.
1021 (arm_frame_saved_pc): Update.
1022
1023 2002-09-17 Tom Tromey <tromey@redhat.com>
1024
1025 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1026 is "'".
1027
1028 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1029
1030 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1031 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1032 NEXT_PROLOGUE_INSN.
1033 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1034 NEXT_PROLOGUE_INSN.
1035
1036 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1037
1038 * osfsolib.c: Remove file, replaced by solib-osf.c.
1039 * Makefile.in: Remove compilation rules for osfsolib.c.
1040
1041 2002-09-16 David Carlton <carlton@math.stanford.edu>
1042
1043 * cp-valprint.c (cp_print_class_method): Correct args to
1044 check_stub_method_group.
1045
1046 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1047
1048 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1049 `set architecture'. Unify naming convention of functions.
1050 (h8300_skip_prologue): Improve prologue analysis.
1051 (h8300_push_arguments): Rewritten to more closely match GCC's
1052 bizarre argument-passing behavior, along with the comment describing
1053 said behavior.
1054 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1055 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1056 sim, remote-e7000.c, remote-hms.c and remote.c
1057
1058 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1059
1060 * i386-tdep.c (gdb_print_insn_i386): Removed.
1061 (i386_print_insn): New function.
1062 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1063 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1064 tm_print_insn_info.
1065
1066 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1067
1068 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1069 zero.
1070
1071 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1072
1073 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1074 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1075 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1076
1077 2002-09-13 Christopher Faylor <cgf@redhat.com>
1078
1079 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1080
1081 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1082
1083 * gdbtypes.c (check_stub_method): Make static.
1084 (check_stub_method_group): New function.
1085 * gdbtypes.h: Update prototypes.
1086 * cp-support.c: New file.
1087 * cp-support.h: New file.
1088
1089 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1090 (update_method_name_from_physname): New function.
1091 (read_member_functions): Correct method names for operators
1092 and v3 constructors/destructors. Separate v2 constructors and
1093 destructors.
1094 * Makefile.in (stabsread.o): Update dependencies.
1095 (SFILES): Add cp-support.c.
1096 (COMMON_OBS): Add cp-support.o.
1097 (cp_support_h, cp-support.o): Add.
1098
1099 * cp-valprint.c (cp_print_class_method): Call
1100 check_stub_method_group instead of check_stub_method. Remove
1101 extraneous QUITs.
1102 * p-valprint.c (pascal_object_print_class_method): Likewise.
1103 * valops.c (search_struct_method): Likewise.
1104 (find_method_list, value_struct_elt_for_reference): Likewise.
1105
1106 2002-09-13 Andrew Cagney <cagney@redhat.com>
1107
1108 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1109 * gdbarch.h, gdbarch.c: Regenerate.
1110
1111 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1112
1113 * frame.c (find_saved_register): Delete function.
1114 * frame.h (find_saved_register): Delete declaration.
1115 Fix PR gdb/631.
1116
1117 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1118
1119 * mips-tdep.c (read_next_frame_reg): Re-hack using
1120 frame_register_unwind.
1121
1122 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1123
1124 * mips-tdep.c (mips_get_saved_register): Re-hack using
1125 frame_register_unwind.
1126
1127 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1128
1129 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1130 vector. Will be useful for Interix.
1131 * gdbarch.h, gdbarch.c: Regenerate.
1132
1133 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1134 name of the malloc function by NAME_OF_MALLOC.
1135
1136 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1137
1138 * value.h (find_function_in_inferior): Add const keyword to
1139 one of the parameters. Allows us to invoke this function with
1140 a const char *.
1141 * valops.c (find_function_in_inferior): Likewise.
1142
1143 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1144
1145 * exec.c (xfer_memory): Fix compilation warning with old versions
1146 of GCC.
1147 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1148
1149 2002-09-12 David Carlton <carlton@math.stanford.edu>
1150
1151 * symtab.h: Run through gdb_indent.h.
1152 Add 2002 to Copyright year list.
1153
1154 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1155
1156 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1157 mach constants.
1158 * MAINTAINERS: Add myself to write after approval list.
1159
1160 2002-09-11 J. Brobecker <brobecker@gnat.com>
1161
1162 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1163
1164 2002-09-11 J. Brobecker <brobecker@gnat.com>
1165
1166 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1167 Interix.
1168
1169 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1170
1171 * procfs.c (do_detach): Clear current signal, not just fault.
1172 Corrects problem with breakpoint trap signal leaking to detached
1173 process on Tru64.
1174
1175 2002-09-10 Michael Snyder <msnyder@redhat.com>
1176
1177 * buildsym.c (finish_block): Protect against null pointer.
1178
1179 2002-09-10 Andrew Cagney <cagney@redhat.com>
1180
1181 * infcmd.c (default_print_registers_info): Send all output to
1182 ``file'' instead of ``gdb_stdout''.
1183
1184 2002-09-10 Michael Snyder <msnyder@redhat.com>
1185
1186 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1187 LONGEST, and use signed register read (addresses are sign-
1188 extended for mips).
1189
1190 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1191
1192 * event-loop.c (gdb_do_one_event): Make public.
1193 * event-loop.h (gdb_do_one_event): Declare.
1194
1195 2002-09-10 Jeff Law <law@redhat.com>
1196
1197 * infttrace.c (child_resume): Simplify and rework to avoid
1198 TT_PROC_CONTINUE.
1199
1200 2002-09-09 Fred Fish <fnf@intrinsity.com>
1201
1202 * printcmd.c (print_scalar_formatted): "len" is the number of
1203 target bytes, NOT the number of target bits.
1204
1205 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1206
1207 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1208 * top.c (init_main): Set rl_terminal_name.
1209
1210 2002-09-08 Aidan Skinner <aidan@velvet.net>
1211
1212 * ada-lang.c (ada_array_bound, ada_type_match,
1213 _initialize_ada_language): Fix K&R definitions.
1214 * ada-tasks.c (get_current_task): Fix K&R definitions.
1215 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1216
1217 2002-09-07 Christopher Faylor <cgf@redhat.com>
1218
1219 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1220 Add XP.
1221
1222 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1223
1224 * i386-tdep.c (i386_register_virtual_type,
1225 i386_register_convertible, i386_register_convert_to_virtual,
1226 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1227 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1228 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1229 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1230 Don't set push_arguments twice.
1231
1232 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1233 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1234 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1235 sigtramp_end to NULL.
1236 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1237 defines.
1238 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1239
1240 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1241 whitespace.
1242
1243 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1244 * gdbarch.h, gdbarch.c: Re-generate.
1245 * blockframe.c (find_pc_sect_partial_function): Convert to use
1246 SIGTRAMP_START_P predicate.
1247
1248 2002-09-05 Michael Snyder <msnyder@redhat.com>
1249
1250 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1251 generic_dummy_frame method and old method. Also distinguish
1252 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1253 (arm_extract_return_value): Use new regcache method.
1254
1255 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1256 adjustment that doesn't conform to the ABI.
1257 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1258 saved regcache, not from current regcache.
1259
1260 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1261
1262 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1263 * README: Update.
1264
1265 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1266
1267 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1268 if arm_apcs_32 is false.
1269
1270 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1271
1272 GDB 5.3 branch created.
1273
1274 2002-09-03 Theodore A. Roth <troth@verinet.com>
1275
1276 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1277 generic_unwind_get_saved_register.
1278
1279 2002-09-03 David Carlton <carlton@math.stanford.edu>
1280
1281 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1282 argument (PR gdb/653). Update call to smash_to_method_type.
1283 (read_structure_scope): Update call to dwarf2_add_member_fn.
1284
1285 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1286
1287 * x86-64-linux-tdep.c: Include gdb_string.h
1288 * x86-64-linux-nat.c: Ditto.
1289
1290 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1291
1292 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1293 when YYDEBUG is set to 1.
1294 * c-exp.y: Likewise.
1295 * f-exp.y: Likewise.
1296 * jv-exp.y: Likewise.
1297 * m2-exp.y: Likewise.
1298 * p-exp.y: Likewise.
1299
1300 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1301
1302 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1303 dependency list.
1304 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1305 solib_svr4_fetch_link_map_offsets to
1306 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1307 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1308 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1309 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1310 solib-svr4.o, and solib-legacy.o.
1311 * config/i386/tm-nbsd.h: Include solib.h.
1312
1313 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1314
1315 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1316 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1317 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1318 comment noting that this needs its own target configuration.
1319 * config/i386/nbsd.mt: New file.
1320 * config/i386/nbsdaout.mt: Remove.
1321 * config/i386/nbsdelf.mt: Ditto.
1322 * config/i386/tm-nbsdaout.h: Ditto.
1323
1324 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1325
1326 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1327 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1328 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1329 tdep->sigtramp_end.
1330 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1331 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1332 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1333
1334 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1335
1336 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1337 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1338 * i386-tdep.h (i386bsd_init_abi): New prototype.
1339 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1340 function declaration.
1341 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1342 for NetBSD-a.out or NetBSD-ELF.
1343 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1344 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1345 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1346 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1347 and nbsd-tdep.h.
1348 (i386nbsd_pc_in_sigtramp): New function.
1349 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1350 i386nbsd_pc_in_sigtramp.
1351 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1352 and i386nbsdelf_init_abi OS ABI handlers.
1353 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1354 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1355
1356 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1357
1358 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1359 registers if the target really has them.
1360
1361 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1362
1363 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1364 than nbsd-tdep.h.
1365
1366 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1367
1368 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1369 list.
1370 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1371 (alphanbsd_skip_sigtramp_frame): New functions.
1372 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1373 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1374 to alphanbsd_sigcontext_addr.
1375
1376 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1377
1378 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1379 list.
1380 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1381 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1382 nbsd_pc_in_sigtramp.
1383 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1384 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1385 * nbsd-tdep.c: Include gdb_string.h.
1386 (nbsd_pc_in_sigtramp): New function.
1387 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1388 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1389 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1390 ppcnbsd_pc_in_sigtramp.
1391 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1392 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1393 shnbsd_pc_in_sigtramp.
1394 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1395 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1396 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1397
1398 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1399
1400 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1401 watchpoints to NULL.
1402 (insert_breakpoints): set val field of watchpoints if NULL.
1403
1404
1405 2002-08-29 Jim Blandy <jimb@redhat.com>
1406
1407 * symtab.c (lookup_symbol_aux): In the cases where we find a
1408 minimal symbol of an appropriate name and use its address to
1409 select a symtab to read and search, use `name' (as passed to us)
1410 as the demangled name when searching the symtab's global and
1411 static blocks, not the minsym's name.
1412
1413 2002-08-29 Keith Seitz <keiths@redhat.com>
1414
1415 * stack.c (print_frame_info_base): Always set current_source_symtab
1416 and current_source_line.
1417
1418 2002-08-29 Donn Terry <donnte@microsoft.com>
1419
1420 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1421
1422 2002-08-28 Keith Seitz <keiths@redhat.com>
1423
1424 * stack.c (select_frame): Add FIXME concerning selected-frame
1425 events.
1426 (select_frame_command): Send selected-frame-level-changed
1427 event notification, but only if the level actually changed.
1428 (up_silently_base): Add selected-frame-level-changed event
1429 notification.
1430 (down_silently_base): Likewise.
1431
1432 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1433
1434 * Makefile.in: Update dependencies for all gdb/*.c files.
1435
1436 2002-08-27 Tom Tromey <tromey@redhat.com>
1437
1438 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1439 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1440 Update dependencies.
1441 * i387-tdep.c: Include gdb_string.h.
1442 * osabi.c: Likewise.
1443 * i386-linux-nat.c: Likewise.
1444 * lin-lwp.c: Likewise.
1445 * ax-gdb.c: Likewise.
1446 * signals/signals.c: Likewise.
1447 * jv-valprint.c: Likewise.
1448 * p-lang.c: Likewise.
1449 * c-valprint.c: Likewise.
1450 * cp-abi.c: Likewise.
1451
1452 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1453
1454 * cli/cli-script.h (copy_command_lines): Export.
1455 * breakpoint.c: Include cli/cli-script.h.
1456 * Makefile.in (breakpoint.o): Update dependencies.
1457
1458 2002-08-26 Michael Snyder <msnyder@redhat.com>
1459
1460 * breakpoint.c (insert_breakpoints): Protect all references
1461 to 'process_warning'. Shorten long lines.
1462
1463 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1464
1465 * cli/cli-script.c (copy_command_lines): New function.
1466 * defs.h (copy_command_lines): Export.
1467 * testsuite/gdb.base/commands.exp: New tests for commands
1468 attached to a temporary breakpoint, and for commands that
1469 delete the breakpoint they are attached to.
1470
1471 2002-08-26 Michael Snyder <msnyder@redhat.com>
1472
1473 * breakpoint.c (bpstat_stop_status): Instead of copying the
1474 pointer to the breakpoint commands struct, make a new copy
1475 of the struct and point to that.
1476 (bpstat_clear): Free the commands struct.
1477 (bpstat_clear_actions): Free the commands struct.
1478 (bpstat_do_actions): Free the command actions. Also execute
1479 the local cleanups, instead of deleting them.
1480 (delete_breakpoint): Leave the commands field of the bpstat
1481 chain alone -- it will be freed later.
1482
1483 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1484
1485 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1486 deleted in 2002-08-20 commit. This function is still used by
1487 ppc-linux-nat.c.
1488
1489 2002-08-26 Keith Seitz <keiths@redhat.com>
1490
1491 * gdb-events.sh: Add selected-frame-level-changed event.
1492 * gdb-events.c: Regenerated.
1493 * gdb-events.h: Regenerated.
1494
1495 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1496
1497 Fix PR gdb/393:
1498 * inflow.c (terminal_save_ours): New function to save terminal
1499 settings.
1500 * inferior.h (terminal_save_ours): Declare.
1501 * target.c (debug_to_terminal_save_ours): New function.
1502 (cleanup_target): Defaults to_terminal_save_ours.
1503 (update_current_target): Inherit to_terminal_save_ours.
1504 (setup_target_debug): Set to_terminal_save_ours.
1505 * target.h (target_terminal_save_ours): New to save terminal settings.
1506 (target_ops): New member to_terminal_save_ours.
1507 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1508 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1509 * inftarg.c (init_child_ops): Likewise.
1510 * m3-nat.c (init_m3_ops): Likewise.
1511 * procfs.c (init_procfs_ops): Likewise.
1512 * wince.c (init_child_ops): Likewise.
1513 * win32-nat.c (init_child_ops): Likewise.
1514 * sol-thread.c (init_sol_thread_ops): Likewise.
1515
1516 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1517
1518 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1519 use regcache_* functions.
1520 (i386_gdbarch_init): Set store_return_value instead of
1521 deprecated_store_return_value.
1522
1523 * regcache.c (regcache_raw_write_signed,
1524 regcache_raw_write_unsigned): New functions.
1525 * regcache.h (regcache_raw_write_signed,
1526 regcache_raw_write_unsigned): New prototypes.
1527
1528 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1529
1530 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1531 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1532 source file dependencies. Cleanup corresponding generator rules.
1533
1534 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1535
1536 * regcache.h (register_offset_hack): Declare.
1537 (regcache_cooked_read_using_offset_hack): Declare.
1538 (regcache_cooked_write_using_offset_hack): Declare.
1539
1540 * regcache.c (register_offset_hack): New function.
1541 (regcache_cooked_read_using_offset_hack): New function.
1542 (regcache_cooked_write_using_offset_hack): New function.
1543 (regcache_dump): Check that the registers, according to their
1544 offset, are packed hard against each other.
1545 (cooked_xfer_using_offset_hack): New function.
1546
1547 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1548
1549 * regcache.c (struct regcache_descr): Add field register_type.
1550 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1551 in as a parameter
1552 (init_regcache_descr): Initialize register_type. Pass the descr
1553 to init_legacy_regcache_descr. Use register_type instead of
1554 REGISTER_VIRTUAL_TYPE.
1555 (register_type): New function.
1556 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1557 * regcache.h (register_type): Declare.
1558
1559 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1560
1561 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1562 instead of deprecated_store_return_value. Fix fallout from
1563 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1564
1565 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1566
1567 * regcache.c (max_register_size): New function.
1568 (init_legacy_regcache_descr): Ensure that max_register_size is
1569 large enough for REGISTER_VIRTUAL_SIZE.
1570 * regcache.h (max_register_size): Declare.
1571
1572 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1573
1574 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1575 store_return_value.
1576 (e500_extract_return_value): Change type of valbuf pointer to
1577 void.
1578
1579 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1580
1581 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1582 workaround.
1583
1584 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1585 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1586 long long) to prevent compiler warning on 64-bit systems.
1587
1588 2002-08-23 Andrew Cagney <cagney@redhat.com>
1589
1590 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1591 (DEPRECATED_STORE_RETURN_VALUE): New method.
1592 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1593 * gdbarch.h, gdbarch.c: Re-generate.
1594
1595 * values.c (set_return_value): Pass current_regcache to
1596 STORE_RETURN_VALUE.
1597 * arch-utils.h (legacy_store_return_value): Declare.
1598 * arch-utils.c (legacy_store_return_value): New function.
1599 (legacy_extract_return_value): Update parameters.
1600
1601 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1602 STORE_RETURN_VALUE.
1603 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1604 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1605 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1606 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1607 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1608 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1609 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1610 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1611 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1612 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1613
1614 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1615 * i386-tdep.c (i386_extract_return_value): Update.
1616 * arch-utils.c (legacy_extract_return_value): Update.
1617 * frv-tdep.c (frv_gdbarch_init): Update.
1618 * cris-tdep.c (cris_gdbarch_init): Update.
1619 * d10v-tdep.c (d10v_gdbarch_init): Update.
1620 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1621 * m68k-tdep.c (m68k_gdbarch_init): Update.
1622 * mcore-tdep.c (mcore_gdbarch_init): Update.
1623 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1624 * s390-tdep.c (s390_gdbarch_init): Update.
1625 * sparc-tdep.c (sparc_gdbarch_init): Update.
1626 * sh-tdep.c (sh_gdbarch_init): Update.
1627 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1628 * v850-tdep.c (v850_gdbarch_init): Update.
1629 * avr-tdep.c (avr_gdbarch_init): Update.
1630 * ia64-tdep.c (ia64_gdbarch_init): Update.
1631 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1632 * vax-tdep.c (vax_gdbarch_init): Update.
1633 * alpha-tdep.c (alpha_gdbarch_init): Update.
1634 * arm-tdep.c (arm_gdbarch_init): Update.
1635 * mips-tdep.c (mips_gdbarch_init): Update.
1636 * i386-tdep.c (i386_gdbarch_init): Update.
1637
1638 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1639
1640 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1641 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1642
1643 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1644
1645 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1646 problems.
1647
1648 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1649
1650 * infrun.c (handle_inferior_event): Move a comment outside of a
1651 function call, in order to avoid indent reformatting this part
1652 of the code in an unreadable way.
1653
1654 2002-08-23 Grace Sainsbury <graces@redhat.com>
1655
1656 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1657 when breakpoints fail. Move general breakpoint error messages to
1658 insert_breakpoints.
1659 * breakpoint.c (insert_breakpoints): Change warnings when
1660 breakpoints are nto inserted to specify the type. Remove call to
1661 memory_error when hardware breakpoints can't be inserted. Remove
1662 multiple calls to warning so all messages are sent to the user at
1663 once.
1664 (delete_breakpoints): Make insert error messsages more explicit.
1665
1666 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1667
1668 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1669 gdbserver/ChangeLog.
1670
1671 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1672
1673 * i386-tdep.c: Include "objfiles.h".
1674 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1675 skip_trampoline_code.
1676 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1677 (CPLUS_MARKER): Define to '.'.
1678
1679 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1680 member.
1681 (linux_corefile_thread_callback): Increase args->num_notes.
1682 (linux_make_note_section): Initialize thread_args.num_notes, and
1683 use it to determine whether notes for any threads were created.
1684
1685 2002-08-23 Donn Terry <donnte@microsoft.com>
1686
1687 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1688 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1689 and PCUNKILL.
1690 (write_with_trace): Conditionalize out the switch branch handling
1691 PCSHOLD if the corresponding macro is not defined. Likewise for
1692 PRSABORT and PRSTOP.
1693 This change will be needed by the Interix port.
1694
1695 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1696
1697 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1698 write_register wherever possible instead of manipulating the
1699 register bytes directly.
1700 Assign VALUE_CONTENTS to a variable and use that.
1701 The GPR numbers are now dependent on the architecture.
1702
1703 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1704
1705 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1706 ev_offset fields.
1707 (skip_prologue): Add support for BookE/e500 instructions.
1708 (e500_extract_return_value): New function.
1709 (frame_get_saved_regs): Add support for saving ev registers and
1710 pseudo gpr's.
1711 (e500_store_return_value): New function.
1712 (rs6000_gdbarch_init): Move up default intializations of
1713 deprecated_extract_return_value and store_return_value. Overwrite
1714 init of store_return_value with e500 specific version.
1715 Set extract_return_value for e500.
1716
1717 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1718
1719 * blockframe.c (generic_call_dummy_register_unwind): Use
1720 regcache_cooked_read to catch cases in which the variable is
1721 stored in a pseudo register.
1722
1723 2002-08-22 Andrew Cagney <cagney@redhat.com>
1724
1725 * NEWS: Mention that the i960 has been made obsolete.
1726 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1727 i960-tdep.c
1728 (remote-nrom.o): Obsolete target.
1729 (remote-nindy.o, i960-tdep.o): Ditto.
1730 * remote-nrom.c: Make file obsolete.
1731 * remote-nindy.c, remote-vx960.c: Ditto.
1732 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1733 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1734 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1735 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1736 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1737 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1738 i960-*-vxworks* obsolete.
1739 * MAINTAINERS: Note that the i960 is obsolete.
1740
1741 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1742
1743 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1744 detach to allow reinitialization.
1745
1746 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1747
1748 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1749 attempt).
1750
1751 2002-08-22 Jim Blandy <jimb@redhat.com>
1752
1753 * coffread.c (coff_symfile_read): Don't try to read the line
1754 number table from disk if the image file doesn't have a symbol
1755 table; we'll never actually look at the info anyway, and Windows
1756 ships DLL's with bogus file offsets for the line number data.
1757
1758 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1759
1760 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1761 an e500 executable.
1762
1763 2002-08-21 Michael Snyder <msnyder@redhat.com>
1764
1765 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1766 (MSYMBOL_SIZE): Replace macro with function.
1767 (DEFAULT_MIPS_TYPE): Delete unused macro.
1768 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1769 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1770
1771 2002-08-21 Jim Blandy <jimb@redhat.com>
1772
1773 * valops.c (value_cast): Simplify and correct logic for doing a
1774 static cast from a pointer to a base class to a pointer to a
1775 derived class.
1776
1777 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1778
1779 * infcmd.c (default_print_registers_info): Replace
1780 do_registers_info.
1781 (registers_info): Use gdbarch_print_registers_info instead of
1782 DO_REGISTERS_INFO.
1783 * inferior.h (default_print_registers_info): Replace
1784 do_registers_info.
1785 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1786 (DO_REGISTERS_INFO): Change to a predicate function.
1787 * gdbarch.h, gdbarch.c: Regenerate.
1788
1789 2002-08-21 Keith Seitz <keiths@redhat.com>
1790
1791 * gdb-events.sh: Add target-changed event.
1792 * gdb-events.c: Regenerated.
1793 * gdb-events.c: Regenerated.
1794 * valops.c (value_assign): Add target-changed event notification
1795 to inlval_register, lval_memory, and lval_reg_frame_relative.
1796
1797 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1798
1799 * NEWS: Add an entry regarding the improvement of the next/step
1800 operation on Alpha Tru64 multi-processor machines.
1801
1802 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1803
1804 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1805 directores.
1806 * Makefile.in: Update all _h macro definitions.
1807 * Makefile.in (install-gdbtk): Move to install section.
1808 (rdi-share/libangsd.a): Move to end of file.
1809
1810 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1811
1812 * frame.c (frame_register_unwind): When a register, set addrp to
1813 the register's byte.
1814
1815 2002-08-20 Michael Snyder <msnyder@redhat.com>
1816
1817 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1818 used locally, so move them from the target machine header to here.
1819 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1820 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1821 Make static.
1822 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1823
1824 2002-08-20 Andrew Cagney <cagney@redhat.com>
1825
1826 * NEWS: Mention that the Apollo line was made obsolete.
1827 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1828 m68*-hp-hpux* obsolete.
1829 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1830 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1831 * buildsym.c (make_blockvector): Make static.
1832 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1833 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1834 (ALLDEPFILES): Remove dstread.c.
1835 (dstread.o): Obsolete make rule.
1836 * dstread.c: Makefile obsolete.
1837 * dst.h: Ditto.
1838 * config/m68k/hp300hpux.mt: Ditto.
1839 * config/m68k/hp300hpux.mh: Ditto.
1840 * config/m68k/hp300bsd.mt: Ditto.
1841 * config/m68k/hp300bsd.mh: Ditto.
1842 * config/m68k/apollo68b.mt: Ditto.
1843 * config/m68k/apollo68v.mh: Ditto.
1844 * config/m68k/apollo68b.mh: Ditto.
1845
1846 2002-08-20 Michael Snyder <msnyder@redhat.com>
1847
1848 * mips-tdep.c (mips_in_return_stub): Make static.
1849 (mips_gdbarch_init): Set in_solib_return_trampoline.
1850 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1851
1852 2002-08-20 Michael Snyder <msnyder@redhat.com>
1853
1854 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1855 * gdbarch.c, gdbarch.h: Regenerate.
1856 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1857 Add.
1858 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1859
1860 2002-08-20 Michael Snyder <msnyder@redhat.com>
1861
1862 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1863 (mips_gdbarch_init): Set skip_trampoline_code,
1864 in_solib_call_trampoline.
1865 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1866 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1867
1868 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1869
1870 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1871
1872 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1873 vector type for ev registers.
1874 (e500_pseudo_register_read): New function.
1875 (e500_pseudo_register_write): New function.
1876 (e500_dwarf2_reg_to_regnum): New function.
1877 (PPC_UISA_NOFP_SPRS): New macro.
1878 (PPC_EV_REGS): New macro.
1879 (PPC_GPRS_PSEUDO_REGS): New macro.
1880 (registers_e500): New register set for e500.
1881 (variants): Add e500 variant.
1882 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1883 before setting architectural dependent variations. Initialize ev
1884 registers numbers. Add case for e500 architecture. Set the
1885 number of pseudo registers.
1886
1887 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1888
1889 * rs6000-tdep.c: Clean up comments.
1890
1891 2002-08-20 Andrew Cagney <cagney@redhat.com>
1892
1893 * h8300-tdep.c: Re-indent file.
1894
1895 2002-08-20 Jim Blandy <jimb@redhat.com>
1896
1897 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1898 default for this.
1899
1900 2002-08-20 Keith Seitz <keiths@redhat.com>
1901
1902 * breakpoints.c (watch_command_1): Use internal breakpoint
1903 when setting a watchpoint_scope breakpoint.
1904
1905 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1906
1907 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1908 (build_builtin_type_vec64i): Ditto.
1909 (build_builtin_type_vec128): Ditto.
1910 (build_builtin_type_vec128i): Ditto.
1911
1912 2002-08-19 Michael Snyder <msnyder@redhat.com>
1913
1914 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1915 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1916 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1917 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1918 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1919 CALL_DUMMY_ADDRESS): Delete.
1920 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1921 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1922 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1923 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1924 push_return_address.
1925 (mips_register_raw_size, mips_eabi_use_struct_convention,
1926 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1927 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1928 mips_init_extra_frame_info, mips_eabi_push_arguments,
1929 mips_n32n64_push_arguments, mips_push_return_address,
1930 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1931 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1932
1933 2002-08-19 Michael Snyder <msnyder@redhat.com>
1934
1935 * mips-tdep.c (mips_frame_num_args): New function.
1936 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1937 frame_saved_pc, frame_args_address, frame_locals_address,
1938 frame_num_args, and frame_args_skip.
1939 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1940 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1941 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1942 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1943
1944 2002-08-20 Michael Snyder <msnyder@redhat.com>
1945
1946 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1947 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1948 * mips-tdep.c (mips_store_struct_return): New function.
1949 (mips_extract_struct_value_address): New function.
1950 (mips_gdbarch_init): Set store_struct_return and
1951 extract_struct_value_address.
1952
1953 2002-08-20 David Carlton <carlton@math.stanford.edu>
1954
1955 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1956 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1957 (read_file_scope): Check that line_header is nonzero before
1958 decoding macro information.
1959
1960 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1961
1962 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1963 flag the general-purpose registers as floating-point on targets
1964 that don't support the floating-point registers.
1965
1966 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1967
1968 * rs6000-tdep.c (altivec_register_p): Delete.
1969 (rs6000_do_altivec_registers): Delete.
1970 (rs6000_altivec_registers_info): Delete.
1971 (rs6000_do_registers_info): Delete.
1972 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1973 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1974
1975 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1976
1977 * infcmd.c (do_registers_info): Print vector registers in hex
1978 format only.
1979 (print_vector_info): Check that printing registers
1980 makes sense.
1981 (print_float_info): Ditto.
1982
1983 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1984
1985 * mips-tdep.c (mips_gdbarch_init): Update.
1986 (mips_o32_extract_return_value): Rewrite.
1987 (mips_o32_store_return_value): Rewrite.
1988 (mips_o32_xfer_return_value): New function.
1989 (mips_xfer_register): Tweak debug print message. Allow for
1990 buf_offset when dumping the value transfered.
1991
1992 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1993
1994 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1995 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1996 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1997 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1998 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1999
2000 2002-08-14 Michael Snyder <msnyder@redhat.com>
2001
2002 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2003
2004 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2005
2006 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2007 register.
2008 (P): New macro to define a register as a pseudo register.
2009 (R, R4, R8, R16, FR32, R64, R0): Updated.
2010 (struct variant): Add new fields for number of pseudo registers
2011 and number of total registers.
2012 (tot_num_registers): New macro replacing....
2013 (num_registers): ...deleted macro.
2014 (num_registers): New function.
2015 (num_pseudo_registers): New function.
2016 (variants): Update all variants to intialize new fields correctly.
2017 Postpone initialization of number of pseudo regs and real regs.
2018 (init_variants): New function.
2019 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2020 registers offsets.
2021
2022 2002-08-19 David Carlton <carlton@math.stanford.edu>
2023
2024 * valops.c (search_struct_field): Change error message to treat
2025 return value of 0 from value_static_field as meaning that field is
2026 optimized out.
2027 (value_struct_elt_for_reference): Ditto.
2028 * values.c (value_static_field): Treat an unresolved location the
2029 same as a nonexistent symbol. Fix PR gdb/635.
2030 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2031 enclosed. Fix PR gdb/574.
2032 * MAINTAINERS: Add self to Write After Approval list.
2033
2034 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2035
2036 * mips-tdep.c (mips_xfer_register): New function.
2037 (mips_n32n64_extract_return_value): Rewrite.
2038 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2039 instead of deprecated_extract_return_value.
2040
2041 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2042
2043 * rs6000-tdep.c (TDEP): Delete macro.
2044 (branch_dest): Replace use of TDEP macro with its body.
2045 (rs6000_pop_frame): Ditto.
2046 (rs6000_push_arguments): Ditto.
2047 (rs6000_skip_trampoline_code): Ditto.
2048 (rs6000_frame_saved_pc): Ditto.
2049 (rs6000_frame_chain): Ditto.
2050 (rs6000_register_name): Ditto.
2051 (rs6000_register_byte): Ditto.
2052 (rs6000_register_raw_size): Ditto.
2053 (rs6000_register_virtual_type): Ditto.
2054 (rs6000_register_convertible): Ditto.
2055 (rs6000_convert_from_func_ptr_addr): Ditto.
2056
2057 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2058
2059 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2060 conditionally.
2061 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2062 MIPS_LINUX_JB_ELEMENT_SIZE.
2063 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2064 for MAX_REGISTER_RAW_SIZE arrays.
2065 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2066 MIPS_LINUX_JB_ELEMENT_SIZE.
2067
2068 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2069
2070 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2071
2072 2002-08-19 Aidan Skinner <aidan@velvet.net>
2073
2074 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2075 ada-valprint.c ada-tasks.c.
2076 (YYFILES): Add ada-exp.y.
2077 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2078 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2079 (ada-exp.tab.o): New target.
2080
2081 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2082
2083 * regcache.c (regcache_xfer_part): New function.
2084 (regcache_raw_read_part): New function.
2085 (regcache_raw_write_part): New function.
2086 (regcache_cooked_read_part): New function.
2087 (regcache_cooked_write_part): New function.
2088 * regcache.h (regcache_raw_read_part): Declare.
2089 (regcache_raw_write_part): Declare.
2090 (regcache_cooked_read_part): Declare.
2091 (regcache_cooked_write_part): Declare.
2092
2093 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2094
2095 * remote.c (remote_open_1): Add async_p.
2096 (remote_async_open_1): Delete.
2097 (open_remote_target): Delete.
2098 (remote_open, extended_remote_open): Update calls to remote_open_1.
2099 (remote_async_open, extended_remote_async_open): Call
2100 remote_open_1 instead of remote_async_open_1.
2101
2102 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2103
2104 * blockframe.c: Fix a few coding standard violations.
2105
2106 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2107
2108 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2109 here from ...
2110 * config/i386/tm-i386sco5.h: ... here. File removed.
2111 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2112
2113 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2114 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2115 (TM_FILE): Set to tm-i386.h.
2116 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2117 * config/i386/tm-i386v.h: Remove file.
2118 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2119 instead of "i386/tm-i386v.h".
2120 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2121 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2122 "i386/tm-i386v.h".
2123 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2124 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2125 "i386/tm-i386.h".
2126
2127 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2128
2129 * config/i386/nm-i386v.h: Add protection against
2130 multiple-inclusion.
2131 (i386_register_u_addr): Remove prototype.
2132 (register_u_addr): New prototype.
2133 (REGISTER_U_ADDR): Redefine accordingly.
2134 * i386v-nat.c: Improve several comments.
2135 (i386_register_u_addr): Change signature and rename to
2136 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2137 ubase variable.
2138
2139 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2140
2141 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2142 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2143 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2144 deprecated_extract_return_value.
2145 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2146 rename mips_o32o64_push_arguments.
2147 (mips_gdbarch_init): Update.
2148 (mips_extract_return_value): Delete.
2149 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2150 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2151 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2152 (mips_n32n64_extract_return_value): Clone
2153 mips_extract_return_value.
2154 (mips_store_return_value): Delete.
2155 (mips_o32_store_return_value): Clone mips_store_return_value.
2156 (mips_o64_store_return_value): Clone mips_store_return_value.
2157 (mips_eabi_store_return_value): Clone mips_store_return_value.
2158 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2159
2160 2002-08-18 Aidan Skinner <aidan@velvet.net>
2161
2162 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2163 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2164
2165 2002-08-18 Aidan Skinner <aidan@velvet.net>
2166
2167 * ada-lang.c: Run through gdb_indent.sh.
2168 * ada-lang.h: Run through gdb_indent.sh.
2169 * ada-tasks.c: Run through gdb_indent.sh.
2170 * ada-typeprint.c: Run through gdb_indent.sh.
2171 * ada-valprint.c: Run through gdb_indent.sh.
2172
2173 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2174
2175 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2176 ABI.
2177
2178 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2179
2180 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2181
2182 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2183 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2184
2185 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2186 write_register_gen instead of write_register_bytes.
2187
2188 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2189 i[3456]-*-osf1mk* configurations have been made obsolete.
2190 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2191 i[3456]86-*-osf1mk* hosts obsolete.
2192 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2193 targets obsolete.
2194 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2195 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2196 config/i386/i386m3.mt, config/i386/nm-m3.h,
2197 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2198 config/i386/i386mk.mh, config/i386/i386mk.mt,
2199 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2200 obsolete.
2201 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2202 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2203 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2204
2205 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2206
2207 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2208 (hppa_value_returned_from_stack): Declare.
2209 (hppa_extract_return_value): Declare.
2210 * config/pa/hppa.mt: New file.
2211 * configure.tgt: Recognize hppa*-*-*.
2212 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2213
2214 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2215
2216 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2217 comment.
2218
2219 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2220
2221 * top.c (gdb_rl_operate_and_get_next): Make sure
2222 operate-and-get-next functions correctly even when the history
2223 list is completely filled.
2224
2225 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2226
2227 * MAINTAINERS (Target Instruction Set Architectures): Rename
2228 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2229 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2230 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2231 already listed under Host/Native.
2232
2233 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2234 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2235 mips*-*-*.
2236
2237 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2238
2239 * config/ia64/ia64.mt: New file.
2240 * config/alpha/alpha.mt: New file.
2241 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2242 ia64-linux-gnu. Mention that ia64-elf is broken.
2243 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2244
2245 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2246
2247 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2248 generic_func_frame_valid instead of func_frame_valid.
2249
2250 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2251
2252 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2253 procfs appears to be broken when debugging on multi-processor
2254 machines. So enable software single stepping in order to avoid
2255 using the procfs interface to do next/step operations, using
2256 internal breakpoints instead.
2257
2258 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2259 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2260 make this pc address equal to the value it would have if the
2261 system stepping capability was used. Also set a new flag used
2262 to ensure that we don't readjust the PC one more time later.
2263
2264 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2265 address by DECR_PC_AFTER_BREAK when software single step is
2266 in use for this architecture, as this has already been taken
2267 care of in handle_inferior_event().
2268
2269 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2270
2271 * infrun.c (handle_inferior_event): Minor reformatting, to make
2272 a rather long condition expression easier to read.
2273
2274 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2275
2276 * Makefile.in (gdbtk.o): Move to end of file.
2277 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2278 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2279 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2280 (gdbtk-wrapper.o, gdbres.o): Ditto.
2281
2282 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2283
2284 * Makefile.in (copying.o): Separate out compile rule.
2285 (hpux-thread.o, procfs.o, signals.o): Ditto.
2286 (v850ice.o, z8k-tdep.o): Ditto.
2287 (tui-file.o): Move to TUI section.
2288 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2289 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2290
2291 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2292
2293 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2294 skip_trampoline_code, for better namespace-proofing.
2295
2296 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2297
2298 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2299
2300 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2301
2302 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2303
2304 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2305 signal, check whether we hit a breakpoint before checking for a
2306 single step breakpoint. Otherwise, GDB fails to notice that a
2307 breakpoint has been hit when stepping onto a breakpoint.
2308
2309 2002-08-16 Keith Seitz <keiths@redhat.com>
2310
2311 * gdb-events.sh (clear_gdb_event_hooks): New function.
2312 * gdb-events.c: Regenerate.
2313 * gdb-events.h: Regenerate.
2314
2315 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2316
2317 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2318 not_a_sw_breakpoint.
2319 * breakpoint.h (bpstat_stop_status): Add parameter names.
2320
2321 2002-08-16 Grace Sainsbury <graces@redhat.com>
2322
2323 * remote.c (remote_insert_hw_breakpoint)
2324 (remote_remove_hw_breakpoint): Fix calculation of length field
2325 for Z-packet.
2326
2327 2002-08-15 Michael Snyder <msnyder@redhat.com>
2328
2329 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2330 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2331 (supply_fpregset): Ditto.
2332
2333 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2334 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2335 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2336 (TARGET_READ_SP): Delete.
2337 (DO_REGISTERS_INFO): Delete.
2338 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2339 Delete.
2340 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2341 from macros to functions.
2342
2343 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2344 (mips_register_convertible, mips_register_convert_to_virtual,
2345 mips_register_convert_to_raw): Make static.
2346 (mips_read_sp): New function.
2347 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2348 (mips_do_registers_info): Make static.
2349 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2350 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2351 (mips_register_convert_from_type, mips_register_convert_to_type):
2352 New functions.
2353 (mips_gdbarch_init): Set up function_start_offset,
2354 register_virtual_size, pc_in_sigtramp.
2355
2356 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2357
2358 * infcmd.c (vector_info): New function.
2359 (_initialize_infcmd): Add command "info vector".
2360 (print_vector_info): New function.
2361
2362 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2363 * gdbarch.h, gdbarch.c: Regenerate.
2364
2365 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2366
2367 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2368 ``print_all''. Only print vector registers when ``print_all''.
2369
2370 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2371
2372 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2373 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2374
2375 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2376 Add `args' parameter.
2377 * gdbarch.h, gdbarch.c: Regenerate.
2378
2379 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2380
2381 * infcmd.c (float_info): Call print_float_info.
2382 (print_float_info): New function. By default, print the
2383 floating-point registers.
2384
2385 * arch-utils.h (default_print_float_info): Delete declaration.
2386 * arch-utils.c (default_print_float_info): Delete function.
2387
2388 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2389
2390 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2391 out define.
2392
2393 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2394 FRAME.
2395
2396 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2397 * configure.host: Make i[3456]86-*-aix host obsolete.
2398 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2399 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2400 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2401 config/i386/xm-i386aix.h: Make files obsolete.
2402 * i386aix-nat.c: Make file obsolete.
2403 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2404 (i386aix-nat.o): Make target obsolete.
2405
2406 * config/i386/nm-gnu.h: Removed.
2407 * config/i386/nm-i386gnu.h: New file.
2408 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2409 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2410 Moved here from ...
2411 * config/i386/tm-i386gnu.h: ... here. Removed.
2412 * config/i386/xm-i386gnu.h: Removed.
2413 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2414 (NAT_FILE): Set to nm-i386gnu.h.
2415 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2416 * i386-tdep.c: New file.
2417 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2418 (i386gnu-tdep.o): Specify dependencies.
2419
2420 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2421
2422 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2423 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2424 Adjust a few comments to reflect reality a bit closer.
2425 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2426 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2427 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2428 target_insert_watchpoint, target_remove_watchpoint):
2429 Move defines to ...
2430 * config/i386/nm-i386sco5.h: ... here.
2431 (kernel_u_size): Add prototype. Improve a few comments and add
2432 protection against multiple inclusion.
2433
2434 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2435 out define.
2436
2437 * uw-thread.c (SP_ARG0): Define if not already defined.
2438 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2439
2440 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2441
2442 * config/i386/tm-i386.h: Don't include "regcache.h".
2443
2444 * i387-tdep.h (i387_print_float_info): New prototype.
2445 * i387-tdep.c (print_i387_value, print_i387_ext,
2446 print_i387_status_word, print_i387_control_word): Add `struct
2447 ui_file *' argument and use it for output.
2448 (i387_print_float_info): Renamed from i387_float_info. Add
2449 `struct gdbarch *' and `struct ui_file *' arguments and use the
2450 latter for output.
2451 * i386-tdep.c: Include "i387-tdep.h".
2452 (i386_gdbarch_init): Set print_float_info.
2453 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2454 (FLOAT_INFO): Remove define.
2455
2456 2002-08-13 Michael Snyder <msnyder@redhat.com>
2457
2458 * mips-tdep.c (mips_push_arguments): Rename to
2459 mips_eabi_push_arguments, and tune for EABI.
2460 (MIPS_REGS_HAVE_HOME_P): Delete.
2461 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2462 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2463 Delete references to mips_regs_have_home_p.
2464
2465 2002-08-14 Keith Seitz <keiths@redhat.com>
2466
2467 * Makefile.in (install-gdbtk): Create insight plugin directory.
2468 Install plugins.tcl file.
2469
2470 2002-08-14 Keith Seitz <keiths@redhat.com>
2471
2472 * configure.in: Move SUBDIRS to near top of the file so that
2473 --enable options may add things to it.
2474 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2475 * configure: Regenerate.
2476
2477 2002-08-13 Michael Snyder <msnyder@redhat.com>
2478
2479 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2480 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2481 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2482
2483 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2484
2485 * vax-tdep.c (vax_get_saved_register): Delete function.
2486 (vax_gdbarch_init): Update.
2487 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2488 (ns32k_gdbarch_init): Update.
2489 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2490 (alpha_gdbarch_init): Update.
2491
2492 2002-08-13 Andrew Cagney <cagney@redhat.com>
2493
2494 * regcache.c (init_regcache_descr): Overallocate the
2495 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2496 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2497 nr_raw_registers.
2498 (set_register_cached): Add range checking assertions. Use
2499 current_regcache.
2500
2501 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2502
2503 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2504 numbers for MMX registers.
2505
2506 2002-08-13 Andrew Cagney <cagney@redhat.com>
2507
2508 * i386-tdep.c (i386_gdbarch_init): Use
2509 generic_unwind_get_saved_register.
2510
2511 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2512
2513 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2514 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2515 target vector.
2516 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2517 Delete. Add comment regarding this now-deleted target method.
2518
2519 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2520
2521 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2522 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2523 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2524 real PC and the page number (if it's within the memory bank window).
2525 (m68hc11_pseudo_register_write): Likewise when saving.
2526 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2527 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2528 (m68hc11_register_raw_size): And use 32-bit for it.
2529 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2530 16K memory bank is used by the prog; also use the virtual pc.
2531
2532 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2533
2534 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2535 (m68hc11_gdbarch_init): Install it in gdbarch.
2536 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2537 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2538 (MSYMBOL_SIZE): New for documentation.
2539 (insn_return_kind): Enum to specify how a function returns.
2540 (frame_extra_info): Cleanup and record the return mode.
2541 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2542 register in address computation.
2543 (m68hc11_get_return_insn): New to obtain the return instruction used
2544 by the function.
2545 (m68hc11_frame_init_saved_regs): Take into account the return
2546 instruction used by the function for far and interrupt functions.
2547 (m68hc11_init_extra_frame_info): Take into account page register.
2548 (m68hc11_frame_args_address): Adjust according to the return mode.
2549 (show_regs): Print page register only when it's used.
2550
2551 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2552
2553 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2554 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2555 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2556 registers.
2557 (m68hc11_register_raw_size): Likewise.
2558
2559 2002-08-13 Andrew Cagney <cagney@redhat.com>
2560
2561 * i386-tdep.c (i386_register_name): Handle mmx registers.
2562 (mmx_regnum_p): New function.
2563 (i386_mmx_names): New array.
2564 (mmx_num_regs): New variable.
2565 (i386_pseudo_register_read): New function.
2566 (i386_pseudo_register_write): New function.
2567 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2568
2569 * regcache.c (regcache_raw_read_unsigned): New function.
2570 (regcache_raw_read_signed): New function.
2571 * regcache.h (regcache_raw_read_unsigned): Declare.
2572 (regcache_raw_read_signed): Declare.
2573
2574 2002-08-13 Andrew Cagney <cagney@redhat.com>
2575
2576 * regcache.c (regcache_raw_read_as_address): Delete function.
2577 (regcache_cooked_read_signed): New function.
2578 (regcache_cooked_read_unsigned): New function.
2579 * regcache.h (regcache_cooked_read_signed): Declare.
2580 (regcache_cooked_read_unsigned): Declare.
2581 (regcache_raw_read_as_address): Delete declaration.
2582
2583 * blockframe.c (generic_read_register_dummy): Use
2584 regcache_cooked_read_unsigned.
2585 * i386-tdep.c (i386_extract_struct_value_address): Use
2586 regcache_cooked_read_unsigned.
2587
2588 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2589
2590 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2591 double sizes according to ELF ABI flags.
2592 (gdbarch_tdep): Record elf_flags.
2593
2594 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2595
2596 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2597 (m6812_prolog): They can appear in 68HC12 function prologue.
2598 (m68hc11_frame_chain): Cleanup.
2599
2600 2002-08-12 Andrew Cagney <cagney@redhat.com>
2601
2602 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2603 declarations.
2604 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2605 (i386_linux_register_raw_size): Delete function.
2606 (i386_linux_init_abi): Update.
2607 * i386-tdep.c (i386_register_raw_size): Delete function.
2608 (i386_register_byte): Delete function.
2609 (i386_gdbarch_init): Update.
2610 (i386_register_size): Delete array.
2611 (i386_register_offset): Delete array.
2612
2613 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2614 (REGISTER_RAW_SIZE): Delete macro.
2615 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2616 (REGISTER_BYTE): Delete macro.
2617
2618 2002-08-11 Aidan Skinner <aidan@velvet.net>
2619
2620 * ada-lang.c (ada_lookup_partial_symbol)
2621 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2622 prototype names so that grep ^func works properly.
2623
2624 * ada-lang.c (ada_array_element_type)
2625 (ada_lookup_partial_symbol): Fix typos in parameter list.
2626
2627 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2628 Fix prototype names so that grep ^func works properly.
2629
2630 2002-08-10 Andrew Cagney <cagney@redhat.com>
2631 Elena Zannoni <ezannoni@redhat.com>
2632 Martin M. Hunt <hunt@redhat.com>
2633
2634 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2635 (build_builtin_type_vec128i): Set the vector bit.
2636 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2637 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2638 (build_builtin_type_vec64): New function.
2639 (build_builtin_type_vec64i): New function.
2640 (build_gdbtypes): Initialize builtin_type_vec64 and
2641 builtin_type_vec64i.
2642
2643 2002-08-09 Andrew Cagney <cagney@redhat.com>
2644
2645 * regcache.c (regcache_dump): Compare the register offset
2646 with REGISTER_BYTE.
2647 * arch-utils.c (generic_register_byte): New function.
2648 * arch-utils.h (generic_register_byte): Declare.
2649 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2650 * gdbarch.h, gdbarch.c: Regenerate.
2651
2652 2002-08-09 Andrew Cagney <cagney@redhat.com>
2653
2654 * regcache.c: Include "gdbcmd.h"
2655 (_initialize_regcache): Add commands "maintenance print
2656 registers", "maintenance print raw-registers" and "maintenance
2657 print cooked-registers".
2658 (enum regcache_dump_what): Define.
2659 (dump_endian_bytes): New function.
2660 (regcache_dump): New function.
2661 (regcache_print): New function.
2662 (maintenance_print_registers): New function.
2663 (maintenance_print_raw_registers): New function.
2664 (maintenance_print_cooked_registers): New function.
2665 * Makefile.in (regcache.o): Update dependencies.
2666
2667 2002-08-09 Michael Snyder <msnyder@redhat.com>
2668
2669 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2670 (mips_push_arguments): Correct some comments. Use paddr_nz
2671 for printing addresses in debug output. Replace static
2672 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2673 (mips_n32n64_push_arguments): New function, cloned from
2674 mips_push_arguments and tuned for the n32/n64 ABI.
2675 (mips_push_register): Buffer needs dynamic allocation.
2676 (mips_print_register): Ditto.
2677 (do_gp_register_row): Ditto.
2678 (mips_store_return_value): Ditto.
2679 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2680
2681 2002-08-09 Don Howard <dhoward@redhat.com>
2682
2683 * memattr.c (mem_info_command): Print special case of upper bound
2684 as max CORE_ADDR + 1.
2685
2686 2002-08-08 Michael Snyder <msnyder@redhat.com>
2687
2688 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2689 returns structs by ref if they're too big to fit in two registers.
2690
2691 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2692
2693 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2694 saved regs value.
2695 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2696 mips_find_saved_regs().
2697 (mips_pop_frame): Likewise.
2698
2699 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2700
2701 * blockframe.c (frame_saved_regs_register_unwind): Revise
2702 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2703 frames are in use.
2704
2705 2002-08-09 Grace Sainsbury <graces@redhat.com>
2706
2707 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2708 T-packets; the 'a' is not taken as a register number.
2709 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2710 (remote_stopped_data_address): New functions; add to target
2711 vector.
2712 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2713 prototypes to match other implementations of this
2714 function. replace integer argument with pointer -- the length
2715 field in the Z-packet is the length of what is pointed to or 1 if
2716 pointer is null. Add to target vector.
2717 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2718 target vector.
2719
2720 From Mark Salter:
2721 * remote.c (remote_wait): Add support to extract optional
2722 watchpoint information from T-packet. Ignore unrecognized
2723 optional info in T-packet.
2724 (remote_async_wait): Ditto.
2725
2726 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2727
2728 * cli/cli-dump.c: Change fopen modes to use binary open modes
2729 as defined in include/fopen-bin.h throughout.
2730
2731 2002-08-08 Michael Snyder <msnyder@redhat.com>
2732
2733 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2734
2735 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2736
2737 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2738 assertion failure by returning early after a warning.
2739
2740 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2741
2742 * mips-tdep.c (mips_find_saved_regs): Make static.
2743 (mips_frame_init_saved_regs): New function.
2744 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2745 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2746 (mips_find_saved_regs): Delete declaration.
2747
2748 2002-08-08 Grace Sainsbury <graces@redhat.com>
2749
2750 * remote.c (remote_wait, remote_async_wait): Change
2751 thread_num from int to ULONGEST.
2752 (unpack_varlen_hex): Change result parameter from
2753 int * to ULONGEST *.
2754
2755 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2756
2757 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2758 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2759 powerpc*-*-*.
2760 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2761
2762 2002-08-08 Andrew Cagney <cagney@redhat.com>
2763
2764 * gcore.c (override_derive_stack_segment): Delete variable.
2765 (preempt_derive_stack_segment): Delete function.
2766 (derive_stack_segment): Delete function.
2767 (default_derive_stack_segment): Renamed to derive_stack_segment.
2768 (override_derive_heap_segment): Delete variable.
2769 (preempt_derive_heap_segment): Delete function.
2770 (derive_heap_segment): Delete function.
2771 (default_derive_heap_segment): Rename to derive_heap_segment.
2772
2773 2002-08-06 Michael Snyder <msnyder@redhat.com>
2774
2775 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2776 * mips-tdep.c (mips_EABI_use_struct_convention,
2777 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2778 New functions. (mips_use_struct_convention): Delete.
2779 (mips_gdbarch_init): set use_gdbarch_convention.
2780
2781 2002-08-06 Michael Snyder <msnyder@redhat.com>
2782
2783 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2784 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2785 mips_o32_reg_struct_has_addr): New functions.
2786 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2787
2788 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2789
2790 * regcache.c (pseudo_register): Delete function.
2791 (fetch_register): Delete function.
2792 (store_register): Delete function.
2793 (regcache_raw_read, legacy_read_register_gen): Use
2794 target_fetch_registers instead of fetch_register.
2795 (legacy_write_register_gen, regcache_raw_write): Use
2796 target_store_register instead of store_register.
2797 (write_register_bytes): Ditto.
2798
2799 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2800 (STORE_PSEUDO_REGISTER): Delete.
2801 * gdbarch.h, gdbarch.c: Regenerate.
2802
2803 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2804
2805 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2806 write dump file binary.
2807
2808 2002-08-05 Michael Snyder <msnyder@redhat.com>
2809
2810 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2811 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2812 (mips_gdbarch_init): Set N32 target to be mips64.
2813
2814 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2815
2816 * frame.c (find_saved_register): Break out of loop once saved
2817 register address is found. Don't mention sparc in loop comment
2818 anymore.
2819
2820 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2821
2822 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2823 mips_default_saved_regsize to 8.
2824
2825 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2826
2827 * gcore.c: Do not include <sys/procfs.h>.
2828 * Makefile.in (gcore.o): Update dependencies.
2829
2830 2002-08-06 Andrew Cagney <cagney@redhat.com>
2831
2832 * configure.tgt: Make arc-*-* obsolete.
2833 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2834 * MAINTAINERS: Make arc-elf obsolete.
2835 * arc-tdep.c: Make file obsolete.
2836 * config/arc/arc.mt: Ditto.
2837 * config/arc/tm-arc.h: Ditto.
2838
2839 2002-08-05 Theodore A. Roth <troth@verinet.com>
2840
2841 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2842
2843 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2844
2845 * mcore-tdep.c (mcore_gdbarch_init): Use
2846 generic_unwind_get_saved_register instead of
2847 generic_get_saved_register.
2848 * v850-tdep.c (v850_gdbarch_init): Ditto.
2849 * frv-tdep.c (frv_gdbarch_init): Ditto.
2850 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2851 * s390-tdep.c (s390_gdbarch_init): Ditto.
2852 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2853 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2854 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2855
2856 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2857
2858 * objfiles.h: Add missing #include "symfile.h"
2859
2860 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2861
2862 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2863
2864 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2865 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2866 of FIELD_BITSIZE.
2867
2868 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2869
2870 * NEWS: Cleanup and nitpick.
2871
2872 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2873
2874 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2875
2876 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2877
2878 * Makefile.in (gdbtk-bp.o): Update dependencies.
2879 (gdbtk-register.o): Ditto.
2880 (gdbtk-varobj.o): Ditto.
2881
2882 2002-08-03 Andrew Cagney <cagney@redhat.com>
2883
2884 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2885 m68hc11_fetch_pseudo_register.
2886 (m68hc11_pseudo_register_write): Replace
2887 m68hc11_store_pseudo_register.
2888 (m68hc11_gdbarch_init): Update.
2889
2890 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2891
2892 * gdbarch.sh: Include "gdb_string.h".
2893 * gdbarch.c: Regenerate.
2894
2895 * regcache.c: Include "gdb_string.h".
2896 * ax-general.c: Ditto.
2897 * varobj.c: Ditto.
2898 * std-regs.c: Ditto.
2899 * fbsd-proc.c: Ditto.
2900 * thread.c: Ditto.
2901
2902 * Makefile.in (regcache.o): Update dependencies.
2903 (thread.o, gdbarch.o): Ditto.
2904 (ax-general.o, gdbarch.o): Ditto.
2905 (varobj.o, std-regs.o): Ditto.
2906 (fbsd-proc.o): Specify dependencies.
2907
2908 2002-08-02 Andrew Cagney <cagney@redhat.com>
2909
2910 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2911 regnum.
2912 (regcache_cooked_write): Ditto.
2913
2914 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2915
2916 * regcache.c (regcache_cooked_read): New function.
2917 (regcache_cooked_write): New function.
2918 (read_register_gen): Rewrite using regcache_cooked_read.
2919 (write_register_gen): Rewrite using regcache_cooked_write.
2920
2921 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2922 Declare.
2923
2924 2002-08-02 Andrew Cagney <cagney@redhat.com>
2925
2926 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2927 Replace the architecture methods register_read and register_write.
2928 * gdbarch.h, gdbarch.c: Regenerate.
2929 * regcache.c (init_regcache_descr): Update.
2930 (read_register_gen): Update.
2931 (write_register_gen): Update.
2932 (supply_register): Update comment.
2933
2934 * sh-tdep.c (sh_gdbarch_init): Update.
2935 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2936 `regcache' and `gdbarch' parameters. Make `buffer' a void
2937 pointer. Update code.
2938 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2939 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2940 void pointer. Update code.
2941 (sh64_register_write): Delete.
2942 (sh4_register_read): Delete.
2943 (sh64_register_read): Delete.
2944 (sh4_register_write): Delete.
2945 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2946 void pointer, `to' parameter a void pointer.
2947 (sh_sh64_register_convert_to_raw): Ditto.
2948
2949 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2950
2951 * mips-tdep.c (mips_register_virtual_type): Use architecture
2952 invariant return values.
2953
2954 2002-08-01 Andrew Cagney <cagney@redhat.com>
2955
2956 * linux-proc.c: Include "gdb_string.h".
2957 * Makefile.in (linux-proc.o): Update dependency list.
2958
2959 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2960
2961 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2962 comment.
2963
2964 2002-08-01 Grace Sainsbury <graces@redhat.com>
2965
2966 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2967 to_insert_watchpoint, to_remove_watchpoint,
2968 to_stopped_by_watchpoint, to_stopped_data_address,
2969 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2970 target vecctor. Define their corresponding macros so they call
2971 them.
2972
2973 * target.c: Add default and debug versions of for
2974 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2975 to_insert_watchpoint, to_remove_watchpoint,
2976 to_stopped_by_watchpoint, to_stopped_data_address,
2977 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2978
2979 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2980
2981 * mips-tdep.c (mips_register_virtual_type): New function.
2982 (mips_gdbarch_init): Register mips_register_virtual_type()
2983 with gdbarch machinery.
2984 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2985 this file instead of tm-bigmips.h.
2986 (MIPS_REGSIZE): Delete this macro.
2987 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2988 multiarch version in mips-tdep.c will be found.
2989
2990 2002-08-01 Andrew Cagney <cagney@redhat.com>
2991
2992 * NEWS: Menion that CHILL has been made obsolete.
2993
2994 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2995 * stabsread.c (read_range_type): Ditto.
2996 * gdbtypes.h: Ditto.
2997 * language.c (binop_type_check): Ditto.
2998 (binop_result_type): Ditto.
2999 (integral_type): Ditto.
3000 (character_type): Ditto.
3001 (string_type): Ditto.
3002 (boolean_type): Ditto.
3003 (structured_type): Ditto.
3004 (lang_bool_type): Ditto.
3005 (binop_type_check): Ditto.
3006 * language.h (_LANG_chill): Ditto.
3007 * dwarfread.c (set_cu_language): Ditto.
3008 * dwarfread.c (CHILL_PRODUCER): Ditto.
3009 * dwarfread.c (handle_producer): Ditto.
3010 * expression.h (enum exp_opcode): Ditto.
3011 * eval.c: Ditto for comments.
3012 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3013 * expprint.c (print_subexp): Ditto.
3014 (print_subexp): Ditto.
3015 * valops.c (value_cast): Ditto.
3016 (search_struct_field): Ditto.
3017 * value.h (COERCE_VARYING_ARRAY): Ditto.
3018 * symfile.c (init_filename_language_table): Ditto.
3019 (add_psymbol_with_dem_name_to_list): Ditto.
3020 * valarith.c (value_binop): Ditto.
3021 (value_neg): Ditto.
3022 * valops.c (value_slice): Ditto.
3023 * symtab.h (union language_specific): Ditto.
3024 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3025 (SYMBOL_DEMANGLED_NAME): Ditto.
3026 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3027 * defs.h (enum language): Ditto.
3028 * symtab.c (got_symtab): Ditto.
3029 * utils.c (fprintf_symbol_filtered): Ditto.
3030
3031 * ch-typeprint.c: Make file obsolete.
3032 * ch-valprint.c: Make file obsolete.
3033 * ch-lang.h: Make file obsolete.
3034 * ch-exp.c: Make file obsolete.
3035 * ch-lang.c: Make file obsolete.
3036
3037 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3038 CHILL_LIB.
3039 (TARGET_FLAGS_TO_PASS): Ditto.
3040 (CHILLFLAGS): Obsolete.
3041 (CHILL): Obsolete.
3042 (CHILL_FOR_TARGET): Obsolete.
3043 (CHILL_LIB): Obsolete.
3044 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3045 ch-valprint.c.
3046 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3047 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3048 ch-lang.o.
3049 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3050 targets.
3051
3052 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3053
3054 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3055 This does not change anything at the moment, but will be helpful
3056 later when full Ada support is integrated.
3057
3058 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3059
3060 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3061 help message.
3062
3063 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3064
3065 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3066 and save it in a local variable. Use variable in later test.
3067
3068 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3069
3070 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3071 test. (Thanks to Daniel Jacobowitz.)
3072
3073 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3074
3075 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3076 (mips_abi_strings): Add "n64".
3077 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3078
3079 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3080
3081 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3082 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3083
3084 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3085
3086 * utils.c (host_pointer_to_address, address_to_host_pointer):
3087 Use gdb_assert() instead of explicit call to internal_error().
3088
3089 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3090
3091 * Makefile.in (rs6000-nat.o): Update dependencies.
3092
3093 From Nicholas Duffek:
3094 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3095 (aix-thread.o): New rule.
3096 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3097 * config/powerpc/aix432.mh: New file.
3098
3099 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3100
3101 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3102 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3103 (fetch_core_registers, ppc_linux_supply_gregset)
3104 (ppc_linux_supply_fpregset): New functions.
3105 (ppc_linux_regset_core_fns): New.
3106 (_initialize_ppc_linux_tdep): Call add_core_fns.
3107 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3108 and ppc_linux_supply_gregset.
3109 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3110 (supply_fpregset): Call ppc_linux_supply_fpregset.
3111 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3112 corelow.o.
3113 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3114
3115 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3116
3117 * symtab.c (lookup_symbol): Demangle before lowercasing.
3118
3119 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3120
3121 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3122 declaration.
3123 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3124 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3125 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3126 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3127 "gdb_string.h".
3128 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3129 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3130 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3131 (avr-tdep.o, mon960-rom.o): Ditto.
3132 (aout_stabs_gnu_h): Define.
3133 (symtab_h): Remove $(gdb_obstack_h).
3134
3135 2002-07-30 Jim Blandy <jimb@redhat.com>
3136
3137 Patch from David Carlton <carlton@math.stanford.edu>:
3138 * gdbinit.in: Move the `dir' commands that add GDB's own source
3139 directory to the search path to the end, so that the `gdb' source
3140 directory will be searched first.
3141
3142 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3143
3144 * gdb_obstack.h: New file.
3145 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3146 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3147 * objfiles.h: Include "gdb_obstack.h".
3148 * Makefile.in (gdb_obstack_h): Define.
3149 (symtab_h): Add $(gdb_obstack_h).
3150 (objfiles_h): Add $(gdb_obstack_h).
3151
3152 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3153 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3154 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3155 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3156 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3157 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3158 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3159 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3160
3161 * Makefile.in (bcache.o): Update dependencies.
3162 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3163 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3164 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3165 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3166 (stabsread.o, symfile.o, symmisc.o): Ditto.
3167 (symtab.o, typeprint.o, macroexp.o): Ditto.
3168 (macrotab.o, mdebugread.o): Ditto.
3169 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3170 (coff_ecoff_h, aout_aout64_h): Define.
3171 (aout_stabs_gnu_h, libaout_h): Define.
3172
3173 2002-07-29 Andrew Cagney <cagney@redhat.com>
3174
3175 * regcache.c (struct regcache_descr): Rename nr_registers to
3176 nr_cooked_registers. Revise comments describing the structure
3177 member fields.
3178 (init_regcache_descr): Update.
3179 (init_legacy_regcache_descr): Update.
3180 (read_register_gen, write_register_gen): When a cooked register in
3181 the raw register range, directly access the value from the raw
3182 register cache.
3183
3184 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3185
3186 * z8k-tdep.c: Do not include "obstack.h".
3187 * h8300-tdep.c, h8500-tdep.c: Ditto.
3188 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3189 * valprint.c, v850-tdep.c: Ditto.
3190 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3191 * mn10200-tdep.c: Ditto.
3192
3193 * Makefile.in (z8k-tdep.o): Update dependencies.
3194 (m68hc11-tdep.o, valprint.o): Ditto.
3195 (v850-tdep.o, d10v-tdep.o): Ditto.
3196 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3197 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3198 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3199 (sh_opc_h, gdb_sim_sh_h): Define.
3200 (elf_sh_h, elf_bfd_h): Define.
3201 (opcode_m68hc11_h): Define.
3202 (OPCODES_SRC, OPCODES_DIR): define.
3203 (OPCODES): Use $(OPCODES_DIR).
3204 (gdb_sim_d10v_h): Rename sim_d10v_h.
3205 (gdb_sim_arm_h): Rename sim_arm_h.
3206
3207 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3208
3209 * utils.c (host_pointer_to_address, address_to_host_pointer):
3210 Change internal_error() message to indicate function responsible
3211 for the error.
3212
3213 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3214
3215 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3216 calls to local_hex_string_custom().
3217
3218 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3219
3220 * irix5-nat.c: Move IRIX shared library support from here...
3221 * solib-irix.c: ...to here. Revised substantially to work with
3222 generic solib framework.
3223
3224 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3225 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3226 * mips-irix-tdep.c: New file.
3227
3228 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3229 (mips-irix-tdep.o, solib-irix.o): New rules.
3230 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3231 solib-irix.o.
3232 * config/mips/irix6.mt (TDEPFILES): Likewise.
3233 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3234
3235 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3236
3237 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3238 disabled (via ``#if 0'') includes.
3239
3240 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3241
3242 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3243 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3244 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3245 Add support for the fpscr register.
3246 * rs6000-nat.c (regmap, fetch_inferior_registers)
3247 (store_inferior_registers, fetch_core_registers): Likewise.
3248
3249 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3250
3251 * rs6000-nat.c (language.h): Include.
3252 (special_regs): Delete this array.
3253 (regmap): New function.
3254 (fetch_register, store_register): Use regmap() to map gdb
3255 register numbers to ptrace register numbers. Also, use
3256 outputs from regmap() to make decisions regarding type of
3257 ptrace() call to make. In particular, don't compare against
3258 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3259 (fetch_inferior_registers, store_inferior_registers): Where
3260 possible, obtain register numbers from tdep struct. Don't
3261 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3262 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3263 (LAST_UISA_SP_REGNUM): Delete.
3264
3265 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3266
3267 * rs6000-nat.c (ppc-tdep.h): Include.
3268 (fetch_registers, store_register, fetch_core_registers): Don't
3269 access registers[] directly. Instead, use supply_register() or
3270 regcache_collect() as appropriate.
3271 (find_toc_address): Format hex address with local_hex_string().
3272
3273 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3274
3275 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3276 bfd/elf32-frv.c.
3277
3278 2002-07-24 Tom Tromey <tromey@redhat.com>
3279
3280 * jv-exp.y: Marked all strings with _().
3281 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3282 internal_error.
3283 (MethodInvocation, CastExpression, parse_number, yyerror,
3284 java_type_from_name, push_expression_name, yylex): Typo fixes.
3285
3286 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3287
3288 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3289 (tee_file_flush, tee_file_write, tee_file_fputs)
3290 (tee_file_isatty): New.
3291 * ui-file.h (tee_file_new): Add prototype.
3292
3293 2002-07-24 Aidan Skinner <aidan@velvet.net>
3294
3295 * ada-lang.c: Change k&r style function definitions to prototyped
3296 form.
3297 * ada-typeprint.c: Change k&r style function definitions to prototyped
3298 form.
3299 * ada-valprint.c: Change k&r style function definitions to prototyped
3300 form.
3301
3302 2002-07-24 Andrew Cagney <cagney@redhat.com>
3303
3304 * README: Remove reference to remote-bug.
3305 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3306 remote-bug.c.
3307 (m88k-nat.o): Delete rule.
3308 (m88k-tdep.o): Delete rule.
3309 (remote-bug.o): Delete rule.
3310 * MAINTAINERS: Mark as obsolete.
3311 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3312 * m88k-tdep.c: Make file obsolete.
3313 * config/m88k/m88k.mh: Ditto.
3314 * config/m88k/delta88v4.mh: Ditto.
3315 * config/m88k/delta88v4.mt: Ditto.
3316 * config/m88k/delta88.mt: Ditto.
3317 * config/m88k/delta88.mh: Ditto.
3318 * remote-bug.c: Ditto.
3319 * config/m88k/tm-delta88.h: Ditto.
3320 * config/m88k/nm-delta88v4.h: Ditto.
3321 * config/m88k/xm-delta88.h: Ditto.
3322 * config/m88k/xm-dgux.h: Ditto.
3323 * config/m88k/tm-m88k.h: Ditto.
3324 * config/m88k/nm-m88k.h: Ditto.
3325 * config/m88k/tm-delta88v4.h: Ditto.
3326 * m88k-nat.c: Ditto.
3327 * cxux-nat.c: Ditto.
3328 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3329 and m88*-*-* obsolete.
3330 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3331 m88*-*-* obsolete.
3332
3333 2002-07-24 Andrew Cagney <cagney@redhat.com>
3334
3335 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3336 constant. Same for local pointer variables.
3337 (extract_signed_integer): Ditto.
3338 * defs.h (extract_unsigned_integer): Update.
3339 (extract_signed_integer): Update.
3340
3341 2002-07-24 Andrew Cagney <cagney@redhat.com>
3342
3343 * regcache.c (regcache_raw_write): Change buf parameter to a
3344 constant void pointer.
3345 (regcache_raw_read): Change buf parameter to a void pointer.
3346 (legacy_write_register_gen): Change myaddr parameter a constant
3347 void pointer.
3348 (supply_register): Change val parameter to a const void pointer.
3349 * regcache.h (regcache_raw_write): Update declaration.
3350 (regcache_raw_read): Update declaration.
3351 (supply_register): Update declaration.
3352
3353 2002-07-24 Tom Tromey <tromey@redhat.com>
3354
3355 * defs.h (gdb_readline_wrapper): Declare.
3356 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3357 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3358 * top.c (gdb_readline_wrapper): New function.
3359 (command_line_input): Use it.
3360
3361 2002-07-24 Andrew Cagney <cagney@redhat.com>
3362
3363 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3364 regcache_read and regcache_write.
3365 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3366 * regcache.c: Update.
3367 * sh-tdep.c (sh64_push_arguments): Update comment.
3368 (sh_pseudo_register_read): Update.
3369 (sh_pseudo_register_write): Update.
3370 (sh4_register_read): Update.
3371 (sh4_register_write): Update.
3372 (sh64_pseudo_register_read): Update.
3373 (sh64_pseudo_register_write): Update.
3374 (sh64_register_read): Update.
3375 (sh64_register_write): Update.
3376 * i386-tdep.c (i386_extract_return_value): Update.
3377 (i386_extract_struct_value_address): Update.
3378 (i386_extract_return_value): Update.
3379 * blockframe.c (generic_read_register_dummy): Update.
3380 (generic_call_dummy_register_unwind): Update
3381 * infrun.c (write_inferior_status_register): Update.
3382
3383 2002-07-23 Jim Blandy <jimb@redhat.com>
3384
3385 * parser-defs.h (expression_context_pc): Make this extern.
3386 (Thanks to Michael Snyder.)
3387
3388 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3389
3390 GDB 5.2.1 released from 5.2 branch.
3391 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3392 * README: Update to mention 5.2.1.
3393
3394 2002-07-23 Mark Salter <msalter@redhat.com>
3395
3396 * remote.c (remote_read_bytes): Fix check for error.
3397
3398 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3399
3400 * aix-thread.c (language.h): Include.
3401 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3402 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3403 Print newlines at end of debug messages.
3404 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3405 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3406
3407 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3408
3409 * aix-thread.c (ppc-tdep.h): Include.
3410 (special_register_p): New function.
3411 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3412 (store_regs_user_thread): Use register number information from
3413 gdbarch_tdep struct instead of hardcoded offsets relative to
3414 FIRST_UISA_SP_REGNUM.
3415 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3416 special_register_p() instead of using FPLAST_REGNUM and
3417 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3418 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3419 will be MQ's register number.
3420
3421 2002-07-22 Michael Snyder <msnyder@redhat.com>
3422
3423 * aix-thread.c (ops): Rename to aix_thread_ops.
3424 (base_ops): Rename to base_target.
3425 (ops_attach): Rename to aix_thread_attach.
3426 (ops_detach): Rename to aix_thread_detach.
3427 (ops_resume): Rename to aix_thread_detach.
3428 (ops_wait): Rename to aix_thread_wait.
3429 (ops_kill): Rename to aix_thread_kill.
3430 (init_ops): Rename to init_aix_thread_ops.
3431 (ops_fetch_register): Rename to aix_thread_fetch_register.
3432 (ops_store_register): Rename to aix_thread_store_register.
3433 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3434 (ops_thread_alive): Rename to aix_thread_thread_alive.
3435 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3436 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3437 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3438 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3439 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3440 (store_regs_lib): Rename to store_regs_user_thread.
3441 (store_regs_kern): Rename to store_regs_kernel_thread.
3442
3443 2002-07-22 Michael Snyder <msnyder@redhat.com>
3444
3445 * aix-thread.c (ops_prepare_to_store): Eliminate.
3446 (init_ops): Don't initialize ops.prepare_to_store.
3447 (store_regs_kern): Pre-fetch register buffers from child,
3448 because some registers may not be in the cache. Copy
3449 regs from register cache only if they are cached.
3450 (store_regs_lib): Copy regs from register cache only
3451 if they are cached.
3452 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3453 fill_gprs64): Ditto.
3454
3455 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3456
3457 * aix-thread.c (gdb_assert.h): Include.
3458 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3459 register sizes (from register cache) match size of buffer holding
3460 register data.
3461 (fill_sprs32): Change parameter types to match those in the ptrace()
3462 buffer.
3463 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3464 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3465
3466 2002-07-22 Michael Snyder <msnyder@redhat.com>
3467
3468 * aix-thread.c (supply_sprs64): Cosmetic change.
3469 (supply_sprs32): Cosmetic change.
3470 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3471 (fill_sprs64): Use regcache_collect instead of read_register.
3472 (store_regs_lib): Use regcache_collect instead of
3473 read_register. Use fill_sprs32 instead of fill_sprs64,
3474 if debugging a 32-bit architecture.
3475 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3476 out of the register cache, instead of passing a pointer into
3477 the register cache directly to ptrace. Use regcache_collect
3478 insteaad of read_register.
3479 (ops_prepare_to_store): Use target_read_registers instead
3480 of read_register_bytes.
3481
3482 2002-07-20 Aidan Skinner <aidan@velvet.net>
3483
3484 * MAINTAINERS: Add self under write after approval.
3485
3486 2002-07-20 Aidan Skinner <aidan@velvet.net>
3487
3488 * ada-tasks.c: Change k&r style function definitions to prototyped
3489 form.
3490
3491 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3492
3493 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3494 * x86-64-tdep.c: Include "objfiles.h".
3495 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3496 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3497
3498 2002-07-17 Michal Ludvig <michal@suse.cz>
3499
3500 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3501 (update_context): Initialise cfa variable.
3502
3503 2002-07-17 Michael Snyder <msnyder@redhat.com>
3504
3505 * aix-thread.c: Shorten some long lines.
3506 Bring comments into line with code spec.
3507
3508 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3509
3510 * infrun.c: Re-indent using gdb_indent.sh.
3511
3512 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3513
3514 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3515 Leave the indentation temporarily untouched, to minimize the diffs.
3516
3517 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3518
3519 * stabsread.c: Make os9k sections of the code obsolete,
3520 for real this time.
3521 * stabsread.h: Make os9k sections of the code obsolete.
3522
3523 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3524
3525 * linux-low.c (regsets_store_inferior_registers): Add free()
3526 at the end of a loop to prevent memory leak.
3527 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3528 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3529 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3530 line a comment.
3531 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3532
3533 2002-07-17 Jim Blandy <jimb@redhat.com>
3534
3535 * macrocmd.c (info_macro_command): Remove newline from error
3536 message.
3537
3538 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3539
3540 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3541 (sh_gdbarch_init): Use it for sh-dsp.
3542
3543 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3544
3545 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3546 64-bit DWARF2 format.
3547
3548 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3549
3550 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3551 <sys/proc.h> when not available.
3552
3553 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3554
3555 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3556 * stabsread.c: Make os9k sections of the code obsolete.
3557 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3558 * config/i386/i386os9k.mt: Make file obsolete.
3559 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3560 (COMMON_OBS): Remove os9kread.o
3561 (SFILES): Remove os9kread.c.
3562 (os9kread.o, remote-os9k.o): Make target obsolete.
3563 * remote-os9k.c: Make file obsolete.
3564 * os9kread.c: Make file obsolete.
3565 * Makefile.in
3566
3567 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3568
3569 * NEWS: Mention that the FR30 has been made obsolete.
3570 * fr30-tdep.c: Make file obsolete.
3571 * config/fr30/tm-fr30.h: Ditto.
3572 * config/fr30/fr30.mt: Ditto.
3573 * configure.tgt: Make fr30-*-elf obsolete.
3574 * MAINTAINERS: Make fr30-elf obsolete.
3575
3576 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3577
3578 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3579 found is not inside a section.
3580
3581 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3582
3583 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3584 strerror().
3585 (pdc_realloc): Use xrealloc() instead of realloc().
3586
3587 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3588
3589 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3590 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3591 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3592 macros.
3593
3594 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3595
3596 * aix-thread.c (ptrace_check): Eliminate goto.
3597 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3598 problem.
3599
3600 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3601
3602 * aix-thread.c (gdbcmd.h): Include.
3603 (DEBUG, DBG, DBG2, dbg): Eliminate.
3604 (debug_aix_thread): New static global.
3605 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3606 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3607 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3608 invocations to DBG and DBG2 macros to test against
3609 ``debug_aix_thread'' and call fprintf_unfiltered().
3610 (_initialize_aix_thread): Add new command "set debug aix-thread".
3611
3612 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3613
3614 From Gerhard Tonn <TON@de.ibm.com>:
3615 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3616 instead of supply_register.
3617
3618 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3619
3620 * dwarf2cfi.c: Include "gdb_assert.h".
3621 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3622 non-NULL.
3623 (update_context): Do not use __func__. Add missing ``break''.
3624 (update_context): Do not use __func__.
3625
3626 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3627
3628 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3629 and its setting. Set gdbarch instruction printing functions
3630 directly. For non-rs6000 case use new function
3631 gdb_print_insn_powerpc.
3632 (gdb_print_insn_powerpc): New function.
3633
3634 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3635
3636 * NEWS: Mention that the d30v has been marked obsolete.
3637 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3638 * configure.tgt: Mark d30v-*-* as obsolete.
3639 * d30v-tdep.c: Mark file as obsolete.
3640 * config/d30v/d30v.mt: Ditto.
3641 * config/d30v/tm-d30v.h: Ditto.
3642
3643 2002-07-13 Aidan Skinner <aidan@velvet.net>
3644
3645 * ada-tasks.c (add_task_entry): replace calls to
3646 malloc() with xmalloc
3647 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3648
3649 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3650 ada_finish_decode_line_1, all_sals_for_line
3651 ada_breakpoint_rewrite): replace calls to free() with xfree()
3652
3653 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3654
3655 From Nicholas Duffek (with minor changes by Martin Hunt,
3656 Louis Hamilton, and Kevin Buettner):
3657 * aix-thread.c: New file.
3658
3659 2002-07-12 Petr Sorfa <petrs@caldera.com>
3660
3661 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3662 complaint for invalid attribute class or form.
3663 (read_func_scope): DW_AT_frame_base
3664 better handling of DW_AT_block*.
3665 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3666 better handling of DW_AT_block*.
3667 (read_common_block): DW_AT_location
3668 better handling of DW_AT_block*.
3669 (read_partial_die): DW_AT_location better handling
3670 of DW_AT_block*.
3671 (new_symbol): DW_AT_external better handling of
3672 DW_AT_block*. Proper initialization of variable
3673 "addr".
3674 (attr_form_is_block): New function that returns true
3675 if the attribute's form is of DW_FORM_block*.
3676
3677 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3678
3679 * valops.c (find_method_list): Remove comment about
3680 removed STATIC_MEMFUNCP argument.
3681 (value_find_oload_method_list): Likewise.
3682
3683 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3684
3685 From Nicholas Duffek:
3686 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3687 target_new_objfile_hook.
3688
3689 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3690
3691 From Nicholas Duffek:
3692 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3693 csect.
3694
3695 2002-07-12 Andrew Cagney <cagney@redhat.com>
3696
3697 * MAINTAINERS: Mention --enable-sim-build-warnings.
3698 (m68hc11-elf): Disable sim build warnings.
3699 (m32r-elf): Mark as broken obsolete candidate.
3700 (x86_64-linux-gnu): Mark as buildable with -Werror.
3701 (arm-elf): Change -w to ``,'' which enables warnings but not
3702 -Werror.
3703
3704 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3705
3706 * bcache.h: Update copyright.
3707 (struct bstring, struct bcache): Move definition to "bcache.c".
3708 Replaced by opaque declaration.
3709 (bcache_xfree): Replace free_bcache.
3710 (bcache_xmalloc, bcache_memory_used): Declare.
3711
3712 * bcache.c: Update copyright.
3713 (struct bstring, struct bcache): Moved to here from "bcache.h".
3714 Update comments.
3715 (bcache_xmalloc, bcache_memory_used): New functions.
3716 (bcache_xfree): Replace function free_bcache.
3717
3718 * Makefile.in (objfiles.o): Add $(bcache_h).
3719 (objfiles_h): Remove $(bcache_h).
3720 (symfile.o): Add $(bcache_h).
3721
3722 * symmisc.c: Update copyright.
3723 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3724 (print_objfile_statistics): Use bcache_memory_used.
3725
3726 * symfile.c: Include "bcache.h".
3727 (reread_symbols): Use bcache_xfree.
3728 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3729 (add_psymbol_to_list): Pass psymbol_cache by value.
3730 (add_psymbol_with_dem_name_to_list): Ditto.
3731
3732 * objfiles.h: Update copyright.
3733 (struct bcache): Declare opaque. Do not include "bcache.h".
3734 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3735 bcache'' pointers.
3736 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3737
3738 * objfiles.c: Include "bcache.h". Update copyright.
3739 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3740 macro_cache.
3741 (free_objfile): Use bcache_xfree.
3742
3743 2002-07-11 Grace Sainsbury <graces@redhat.com>
3744
3745 * monitor.c (monitor_fetch_register): Make name a constant.
3746 (monitor_store_register): Same.
3747
3748 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3749
3750 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3751 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3752 (finish_block) For non-function blocks, hash the symbol table. For
3753 function blocks, mark the symbol table as unhashed.
3754 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3755 (msymbol_hash_iw): Likewise.
3756 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3757 value.
3758 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3759 (lookup_minimal_symbol): Likewise for both.
3760 * symtab.h (struct block): Add `hashtable' flag. Comment the
3761 hashtable.
3762 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3763 (ALL_BLOCK_SYMBOLS): Update.
3764 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3765 (struct symbol): Add `hash_next' pointer.
3766 * symtab.c (lookup_block_symbol): Search using the hash table when
3767 possible.
3768 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3769 (search_symbols, find_addr_symbol): Likewise.
3770
3771 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3772 (read_dst_symtab): Likewise.
3773 * jv-lang.c (get_java_class_symtab): Likewise.
3774 * mdebugread.c: Include "gdb_assert.h".
3775 (shrink_block): Assert that the block being modified is not hashed.
3776 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3777 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3778 symbols.
3779 (dump_symtab): Recognize hashed blocks.
3780 * printcmd.c (print_frame_args): Assert that function blocks do not
3781 have hashed symbol tables.
3782 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3783 (fill_in_ada_prototype, debug_print_block): Likewise.
3784 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3785
3786 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3787
3788 * stack.c (print_frame): Use result of frame_address_in_block()
3789 instead of fi->pc when evaluating symbols.
3790 (backtrace_command_1): Ditto.
3791
3792 2002-07-11 Andrew Cagney <cagney@redhat.com>
3793
3794 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3795 Make static.
3796
3797 * arm-tdep.c (arm_register_name): Make return type constant.
3798
3799 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3800
3801 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3802 prototype.
3803 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3804 * s390-tdep.c (s390_fp_regnum): Ditto.
3805 (s390_read_fp): Ditto.
3806 (s390_pop_frame): Ditto.
3807 (_initialize_s390_tdep): Ditto.
3808 * remote.c (get_remote_state): Ditto.
3809 * procfs.c (mappingflags): Ditto.
3810 * memattr.c (_initialize_mem): Ditto.
3811 * mcore-tdep.c (mcore_pop_frame): Ditto.
3812 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3813 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3814 * language.c (set_case_str): Ditto.
3815 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3816 * frv-tdep.c (new_variant): Ditto.
3817 (frv_stopped_data_address): Ditto.
3818 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3819 (context_alloc): Ditto.
3820 (frame_state_alloc): Ditto.
3821 (unwind_tmp_obstack_init): Ditto.
3822 (unwind_tmp_obstack_free): Ditto.
3823 (cfi_read_fp): Ditto.
3824 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3825 (cris_pop_frame): Ditto.
3826 * c-lang.c (scanning_macro_expansion): Ditto.
3827 (finished_macro_expansion): Ditto.
3828 (c_preprocess_and_parse): Ditto.
3829 * gdbarch.sh: Ditto.
3830 * gdbarch.h, gdbarch.c: Regenerate.
3831 * config/mn10200/tm-mn10200.h: Adjust indentation.
3832 * target.c: Adjust indentation.
3833 * symtab.h: Adjust indentation.
3834 * stabsread.h: Adjust indentation.
3835 * remote-es.c: Adjust indentation.
3836 * os9kread.c: Adjust indentation.
3837
3838 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3839
3840 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3841 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3842
3843 2002-07-10 Grace Sainsbury <graces@redhat.com>
3844
3845 * NEWS: Mention m68k, mcore multi-arching.
3846 * MAINTAINERS: Change status of m68k, mcore to reflect
3847 multi-arching.
3848
3849 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3850
3851 * valops.c (find_overload_match): Free oload_syms.
3852
3853 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3854
3855 Define HAVE_SYS_PROC_H if sys/proc.h exists
3856 * configure.in: Add check for sys/proc.h
3857 * config.in: Regenerate.
3858 * configure: Regenerate.
3859
3860 2002-07-09 Grace Sainsbury <graces@redhat.com>
3861
3862 * config/m68k/tm-m68k.h: Remove macros wrapped in
3863 #if !GDB_MULTI_ARCH.
3864
3865 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3866
3867 * config.in, configure: Regenerate.
3868
3869 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3870
3871 * dwarf2cfi.c: Include "gcore.h".
3872 (execute_stack_op): Fix implementation of the
3873 DW_OP_deref and DW_OP_deref_size operators by letting do their
3874 lookup in the target.
3875
3876 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3877
3878 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3879 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3880 tdep->sc_sp_offset.
3881
3882 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3883
3884 Fix PR gdb/595, gdb/602
3885 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3886 Don't call value_cast, just read the vtable pointer; update comments
3887 to match.
3888
3889 2002-07-05 Grace Sainsbury <graces@redhat.com>
3890
3891 * config/mcore/tm-mcore.h: Remove file.
3892 * config/mcore/mcore.mt: Remove definition of TM_FILE
3893 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3894
3895 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3896
3897 * i386bsd-tdep.c: Include "gdb_string.h".
3898
3899 2002-07-04 Grace Sainsbury <graces@redhat.com>
3900
3901 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3902 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3903 mcore-tdep.
3904 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3905 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3906 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3907 (RETVAL_REGNUM): Move macros from tm-mcore.h
3908 (mcore_reg_struct_has_addr): New function.
3909 (mcore_gdbarch_init): Added initializations for the macros removed
3910 from tm-mcore.h.
3911
3912 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3913
3914 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3915 traditonal string branding within the ELF header.
3916
3917 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3918
3919 * symtab.c (remove_params): New function.
3920 (make_symbol_overload_list): Use it instead of cplus_demangle.
3921 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3922
3923 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3924
3925 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3926
3927 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3928 New variables.
3929 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3930 and tdep->sigtramp_end.
3931 * i386obsd-nat.c: New file.
3932 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3933
3934 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3935 Don't call get_current_frame().
3936
3937 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3938
3939 * i386-nat.c (child_post_startup_inferior): New function
3940 calling i386_cleanup_dregs if
3941 I386_USE_GENERIC_WATCHPOINTS is defined.
3942 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3943 conditional to acknowledge that i386-nat.c has its
3944 own child_post_startup_inferior function.
3945
3946 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3947
3948 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3949 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3950 instead of MAX_REGISTER_RAW_SIZE.
3951 (i386_extract_return_value, i386_extract_struct_value_address):
3952 Convert to use regcache.
3953 (i386_gdbarch_init): Set max_register_raw_size and
3954 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3955 Set extract_return_value and extract_struct_value_address instead
3956 of their deprecated variants.
3957
3958 Convert i386 target to generic dummy frames.
3959 * i386-tdep.c: Include "symfile.h".
3960 (i386_frameless_signal_p): Consider a function to be frameless if
3961 the pc points at the first instruction of the function.
3962 (i386_frame_chain): Handle (generic) call dummies.
3963 (i386_frame_saved_pc): Likewise.
3964 (i386_frame_init_saved_regs): Remove code dealing with call
3965 dummies on the stack.
3966 (i386_push_dummy_frame): Removed.
3967 (i386_call_dummy_words): Removed.
3968 (i386_fix_call_dummy): Removed.
3969 (i386_push_return_address): New function.
3970 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3971 parameter, and don't call get_current_frame.
3972 (i386_pop_frame): New function.
3973 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3974 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3975 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3976 call_dummy_length to 0, set call_dummy_words to NULL, set
3977 sizeof_call_dummy_words to 0, set fix_call_dummy to
3978 generic_fix_call_dummy, set pc_in_call_dummy to
3979 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3980 generic_push_dummy_frame, set push_return_address to
3981 i386_push_return_address and set frame_chain_valid to
3982 generic_file_frame_chain_valid.
3983
3984 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3985
3986 * gdbarch.sh (struct regcache): Add opaque declaration.
3987 (EXTRACT_RETURN_VALUE): New architecture method.
3988 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3989 * gdbarch.h, gdbarch.c: Regenerate.
3990 * arch-utils.c (legacy_extract_return_value): New function.
3991 * arch-utils.h (legacy_extract_return_value): Declare.
3992 * values.c (value_being_returned): Re-enable code handling
3993 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3994 deprecated_grub_regcache_for_registers call to block handling
3995 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3996 (EXTRACT_RETURN_VALUE): Do not define.
3997
3998 2002-07-03 Grace Sainsbury <graces@redhat.com>
3999
4000 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4001 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4002 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4003 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4004 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4005 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4006 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4007 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4008 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4009 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4010 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4011 argument so the function fits the prototype in the architecture
4012 vector.
4013 (mcore_pop_frame): Remove argument so the function fits the
4014 prototype. Use get_current_frame instead of the argument.
4015 (mcore_push_arguments): Change type of struct_return so the
4016 function can be used in the architecture vector.
4017 (mcore_store_struct_return): Add.
4018 (mcore_frame_init_saved_regs): Add.
4019 (mcore_gdbarch_init): Add function calls to replace the macros
4020 removed from tm-mcore.h
4021
4022 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4023
4024 * infcmd.c (print_return_value): Remove compatibility code calling
4025 deprecated_grub_regcache_for_registers.
4026
4027 * values.c: Include "regcache.h".
4028 (value_being_returned): Update. Use
4029 deprecated_grub_regcache_for_registers to extract the register
4030 buffer address.
4031 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4032 ``struct regcache''.
4033 * Makefile.in (values.o): Add dependency on $(regcache_h).
4034
4035 * inferior.h (run_stack_dummy): Change type of second parameter to
4036 a ``struct regcache''.
4037 * valops.c (hand_function_call): Change type of retbuf to ``struct
4038 regcache''. Allocate using regcache_xmalloc, clean using
4039 make_cleanup_regcache_xfree.
4040 * infcmd.c (run_stack_dummy): Update. Use
4041 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4042
4043 * regcache.c (do_regcache_xfree): New function.
4044 (make_cleanup_regcache_xfree): New function.
4045 * regcache.h (make_cleanup_regcache_xfree): Declare.
4046
4047 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4048
4049 * event-top.c (command_line_handler): Don't read past
4050 beginning of buffer.
4051
4052 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4053
4054 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4055 struct frame_id.
4056 (varobj_create): Store frame_id for root.
4057 (varobj_gen_name): Use xasprintf.
4058 (varobj_update): Save and restore frame using get_frame_id() and
4059 frame_find_by_id().
4060 (create_child): Use xasprintf.
4061 (new_root_variable): Initialize frame_id.
4062 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4063 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4064 to prevent memory leak.
4065
4066 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4067
4068 * valops.c (hand_function_call): Move declaration of retbuf to
4069 start of function, allocate using malloc, add a cleanup but before
4070 the inf_status cleanup, cleanup the buffer. Rename local variable
4071 old_chain to inf_status_cleanup.
4072
4073 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4074
4075 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4076
4077 * cli/cli-decode.c (cmd_func_p): New function.
4078 (cmd_func): New function.
4079
4080 * command.h: Add cmd_func() and cmd_func_p().
4081
4082 2002-07-03 Grace Sainsbury <graces@redhat.com>
4083
4084 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4085 (REGISTER_SIZE): Remove.
4086 (MAX_REGISTER_RAW_SIZE): Remove.
4087 (REGISTER_VIRTUAL_TYPE): Remove.
4088 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4089 (REGISTER_NAME): Remove.
4090 (USE_GENERIC_DUMMY_FRAMES): Remove.
4091 (CALL_DUMMY): Remove.
4092 (CALL_DUMMY_START_OFFSET): Remove.
4093 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4094 (CALL_DUMMY_LOCATION): Remove.
4095 (FIX_CALL_DUMMY): Remove.
4096 (CALL_DUMMY_ADDRESS): Remove.
4097 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4098 (SAVE_DUMMY_FRAME_TOS): Remove.
4099 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4100 (mcore_register_virtual_type): New function.
4101 (mcore_register_byte): New function.
4102 (mcore_register_size): New function.
4103 (mcore_register_name): New function.
4104 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4105 macros removed from tm-mcore.h.
4106 (mcore_dump_tdep): Add.
4107 (_initialize_mcore_tdep): Add gdbarch_register call.
4108
4109 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4110
4111 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4112 frameless_look_for_prologue, such that we actually call this
4113 function.
4114
4115 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4116
4117 * frame.h (frame_address_in_block): New function.
4118
4119 * blockframe.c (frame_address_in_block): New function extracted
4120 from get_frame_block().
4121 (get_frame_block): Use frame_address_in_block().
4122 (block_innermost_frame): Use frame_address_in_block() to match
4123 the frame pc address against the block boundaries rather than
4124 the frame pc directly. This prevents a failure when a frame pc
4125 is actually a return-address pointing immediately after the end
4126 of the given block.
4127
4128 2002-07-02 Grace Sainsbury <graces@redhat.com>
4129
4130 * MAINTAINERS: Add self under write after approval.
4131
4132 2002-07-02 Grace Sainsbury <graces@redhat.com>
4133
4134 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4135 used in architecture vector. The default is
4136 m68k_local_breakpoint_from_pc.
4137 (m68k_local_breakpoint_from_pc): Add.
4138 (enum): Add register numbers from tm-m68k.h.
4139 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4140 vector.
4141 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4142 GDB_MULTI_ARCH_PARTIAL.
4143 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4144 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4145 m68k-tdep.c.
4146 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4147 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4148 to enum in m68k-tdep.c
4149
4150 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4151
4152 * solib-osf.c (open_map): Compute the list of shared libraries
4153 loaded by the inferior, rather than the list of libraries loaded
4154 by GDB itself. Otherwise, GDB ends up reading the symbols from
4155 the wrong shared libraries...
4156
4157 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4158
4159 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4160 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4161 macros.
4162 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4163 Remove functions.
4164 (FRAMELESS_SIGNAL): Remove function.
4165 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4166 i386_linux_saved_pc_after_call): Removed.
4167 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4168 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4169 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4170
4171 * i386-tdep.c (i386_frameless_signal_p): New function.
4172 (i386_frame_chain): Deal with frameless signals.
4173 (i386_sigtramp_saved_sp): New function.
4174 (i386_frame_saved_pc): Deal with frameless signals.
4175 (i386_saved_pc_after_call): Make sure the correct value is
4176 returned just after entry into a sigtramp.
4177 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4178 i386fbsd4_sc_sp_offset): New variables.
4179 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4180 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4181 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4182 similiar to what we already did for sc_pc_offset.
4183 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4184 tdep->sc_sp_offset.
4185
4186 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4187
4188 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4189
4190 * config/i386/tm-x86-64linux.h: New.
4191 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4192 definitions.
4193 * config/i386/nm-x86-64.h: Rename to ...
4194 * config/i386/nm-x86-64linux.h: ... this one.
4195 * config/i386/x86-64linux.mh: Reflect the above change.
4196
4197 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4198
4199 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4200 with sigcontext_addr. Add sc_sp_offset.
4201 (i386bsd_sigtramp_saved_pc): Remove prototype.
4202 (i386bsd_sicontext_addr): Add prototype.
4203 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4204 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4205 (i386_svr4_sigtramp_saved_pc): Removed.
4206 (i386_svr4_sigcontext_addr): New function.
4207 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4208 Initialize tdep->sigcontext_addr instead. Initialize
4209 tdep->sc_pc_offset and tdep->sc_sp_offset.
4210 (i386_gdbarch_init): Likewise.
4211 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4212 any more.
4213 (i386bsd_sigtramp_saved_pc): Remove function.
4214 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4215 Initialize tdep->sigcontext_addr instead. Initialize
4216 tdep->sc_pc_offset.
4217 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4218 of tdep->sigtramp_saved_pc.
4219 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4220 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4221 instead.
4222
4223 * i386-tdep.c (i386_frameless_function_invocation,
4224 i386_frame_num_args, i386_frame_init_saved_regs,
4225 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4226 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4227 i386_extract_return_value, i386_store_return_value,
4228 i386_extract_struct_value_address, i386_register_virtual_type,
4229 i386_register_convertible, i386_register_convert_to_virtual,
4230 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4231 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4232 static.
4233
4234 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4235
4236 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4237
4238 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4239 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4240 this macro. Include "value.h".
4241
4242 2002-06-30 Aidan Skinner <aidan@velvet.net>
4243
4244 * ada-exp.tab.c: remove as it's a generated file
4245 * ada-lex.c: remove as it's a generated file
4246
4247 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4248
4249 * config/i386/tm-i386.h (struct frame_info, struct
4250 frame_saved_regs, struct value, struct type): Remove forward
4251 declarations.
4252
4253 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4254 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4255 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4256 (FILL_FPXREGSET): Define.
4257
4258 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4259
4260 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4261 i[3456]86-*-netbsd* case.
4262 * config/i386/tm-obsd.h: Removed.
4263 * config/i386/obsd.mt: Removed.
4264 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4265 core-aout.o.
4266 (MH_CFLAGS): Add -DYYDEBUG=0.
4267
4268 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4269 i386nbsd_sc_pc_offset on OpenBSD too.
4270
4271 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4272 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4273 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4274 define.
4275 * i386bsd-tdep.c: Include "arch-utils.h".
4276 (i386bsd_aout_in_solib_call_trampoline): New function.
4277 (i386bsd_init_abi): Set in_solib_call_trampoline to
4278 i386bsd_aout_in_solib_call_trampoline.
4279 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4280 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4281
4282 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4283
4284 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4285 (struct obstack, struct bcache): Add opaque declarations.
4286 * Makefile.in (macrotab_h): Update
4287
4288 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4289
4290 * blockframe.c (generic_find_dummy_frame): Change return type to
4291 ``struct regcache''.
4292 (struct dummy_frame): Replace field ``registers'' with regcache, a
4293 struct regcache object.
4294 (generic_find_dummy_frame): Update.
4295 (generic_push_dummy_frame): Update. Use regcache_xfree,
4296 regcache_xmalloc and regcache_cpy.
4297 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4298 regcache_xfree.
4299 (deprecated_generic_find_dummy_frame): Update.
4300 (generic_read_register_dummy): Update. Use
4301 regcache_read_as_address.
4302 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4303 (generic_get_saved_register): Update. Use regcache_read.
4304
4305 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4306
4307 * Makefile.in (objfiles_h): Add $(bcache_h).
4308 * objfiles.h: Include "bcache.h".
4309
4310 * Makefile.in (symtab_h): Remove $(bcache_h).
4311 * symtab.h: Do not include "bcache.h".
4312
4313 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4314
4315 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4316 generic_func_frame_chain_valid.
4317
4318 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4319
4320 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4321 * config/i386/tm-fbsd.h: Likewise.
4322
4323 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4324
4325 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4326 generic_unwind_get_saved_register.
4327
4328 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4329
4330 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4331 * regcache.c (supply_register): Add missing argument to
4332 register_buffer call.
4333
4334 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4335
4336 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4337 Solaris /bin/grep does not not like it. From Peter Schauer.
4338
4339 2002-06-26 Tom Tromey <tromey@redhat.com>
4340
4341 * command.h (add_setshow_cmd): Declare.
4342 (add_setshow_cmd_full): Declare.
4343 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4344 returns void. Use add_setshow_cmd_full.
4345 (add_setshow_cmd_full): New function.
4346 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4347 (add_setshow_boolean_cmd): Likewise.
4348
4349 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4350
4351 * config/vax/tm-vax.h: Protect from multiple inclusion.
4352 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4353 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4354 * config/vax/tm-vaxbsd.h: ...here. New file.
4355 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4356
4357 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4358
4359 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4360 (BELIEVE_PCC_PROMOTION): Remove.
4361 (AP_REGNUM): Move to...
4362 * config/vax/nm-vax.h: ...here.
4363 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4364 (vax_breakpoint_from_pc): New function.
4365 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4366 and gdbarch_believe_pcc_promotion.
4367
4368 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4369
4370 * Makefile.in (vax_tdep_h): Define.
4371 (vax-tdep.o): Use $(vax_tdep_h).
4372 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4373 (vax_dump_tdep): New function.
4374 (_initialize_vax_tdep): Register vax_dump_tdep.
4375 * vax-tdep.h: Include osabi.h.
4376 (struct gdbarch_tdep): New.
4377
4378 2002-06-26 Andrew Cagney <cagney@redhat.com>
4379
4380 * frame.h (deprecated_generic_find_dummy_frame): Rename
4381 generic_find_dummy_frame.
4382 * blockframe.c (generic_find_dummy_frame): Make static.
4383 (deprecated_generic_find_dummy_frame): New function.
4384 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4385 generic_find_dummy_frame with deprecated_find_dummy_frame.
4386 (sh64_nofp_frame_init_saved_regs): Ditto.
4387 (sh_fp_frame_init_saved_regs): Ditto.
4388 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4389 (s390_frame_chain): Ditto.
4390 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4391
4392 2002-06-26 Grace Sainsbury <graces@redhat.com>
4393
4394 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4395 gdbarch vector are at the top.
4396 (NUM_REGS): Remove.
4397 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4398 (FRAME_ARGS_ADDRESS): Remove.
4399 (FRAME_LOCALS_ADDRESS): Remove.
4400 (FRAME_NUM_ARGS): Remove.
4401 (FRAME_ARGS_SKIP): Remove.
4402 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4403 (m68k_gdbarch_init): Add gdbarch initializations for macros
4404 undefined in tm-m68k.h
4405
4406 2002-06-26 Grace Sainsbury <graces@redhat.com>
4407
4408 * monitor.h: Add the function regname to monitor_ops
4409 structure. This way NUM_REGS does not have to be a constant.
4410 * monitor.c (monitor_fetch_register): Added support for regname
4411 function. The function is called if the array regnames is NULL.
4412 (monitor_store_register): Same.
4413 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4414 regnames array.
4415 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4416 cpu32bug_cmds.regname to point to new function.
4417 * abug-rom.c (abug_regname): Same as above.
4418 (init_abug_cmds): Same.
4419 * dbug-rom.c (dbug_regname): Same as above.
4420 (init_dbug_cmds): Same.
4421 * remote-est.c (est_regname): Same.
4422 (init_est_cmds): Same.
4423 * rom68k-rom.c (rom68k_regname): Same.
4424 (init_rom68k_cmds): Same.
4425
4426 2002-06-25 Tom Tromey <tromey@redhat.com>
4427
4428 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4429
4430 2002-06-25 Andrew Cagney <cagney@redhat.com>
4431
4432 * infrun.c (stop_registers): Change variable's type to ``struct
4433 regcache'''.
4434 (xmalloc_inferior_status): Delete function.
4435 (free_inferior_status): Delete function.
4436 (normal_stop): Use regcache_cpy.
4437 (struct inferior_status): Change type of fields ``stop_registers''
4438 and ``registers'' to ``struct regcache''.
4439 (write_inferior_status_register): Use regcache_write.
4440 (save_inferior_status): Instead of calling
4441 xmalloc_inferior_status, allocate the inf_status buffer directly.
4442 Use regcache_dup_no_passthrough and regcache_dup to save the
4443 buffers.
4444 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4445 Replace the stop_registers regcache instead of overriding it. Use
4446 regcache_xfree. Instead of calling free_inferior_status, xfree
4447 the buffer directly.
4448 (discard_inferior_status): Use regcache_xfree. Instead of calling
4449 free_inferior_status, xfree the buffer directly.
4450 (build_infrun): Use regcache_xmalloc.
4451 (_initialize_infrun): Delete redundant call to build_infrun.
4452
4453 * Makefile.in (infcmd.o): Add $(regcache_h).
4454
4455 * infcmd.c: Include "regcache.h".
4456 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4457 obtain the address of `stop_registers' register buffer.
4458 (print_return_value): Ditto.
4459
4460 * inferior.h (struct regcache): Add opaque declaration.
4461 (stop_registers): Change variable's declared type to ``struct
4462 regcache''.
4463
4464 2002-06-24 Tom Tromey <tromey@redhat.com>
4465
4466 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4467 * target.c (initialize_targets): Fixed typo in
4468 trust-readonly-sections `show' documentation.
4469
4470 * main.c: Marked all strings with _().
4471
4472 2002-06-24 Don Howard <dhoward@redhat.com>
4473
4474 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4475 that means max CORE_ADDR+1.
4476 (lookup_mem_region): Ditto.
4477 (mem_info_command): Ditto.
4478
4479 2002-06-24 Grace Sainsbury <graces@redhat.com>
4480
4481 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4482 (REGISTER_BYTES_OK): Remove.
4483 (REGISTER_BYTES): Remove.
4484 (STORE_STRUCT_RETURN): Remove.
4485 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4486 (STORE_RETURN_VALUE): Remove.
4487 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4488 (FRAME_CHAIN): Remove.
4489 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4490 (FRAME_SAVED_PC): Remove.
4491 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4492 (m68k_store_struct_return): Add.
4493 (m68k_deprecated_extract_return_value): Add.
4494 (m68k_deprecated_extract_struct_value_address): Add.
4495 (m68k_store_return_value): Add.
4496 (m68k_frame_chain): Add.
4497 (m68k_frameless_function_invocation): Add.
4498 (m68k_frame_saved_pc): Add.
4499 (m68k_gdbarch_init): added set_gdbarch calls for new
4500 functions and deleted macros.
4501
4502 2002-06-23 Tom Tromey <tromey@redhat.com>
4503
4504 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4505 (ALLDEPFILES): Likewise.
4506 (udiheaders): Removed.
4507 (udip2soc.o): Likewise.
4508 (udi2go32.o): Likewise.
4509 (udr.o): Likewise.
4510 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4511
4512 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4513
4514 * infrun.c (_initialize_infrun): Delete unnecessary call to
4515 build_infrun.
4516
4517 * regcache.h: Update comments describing the regcache_cpy family
4518 of functions.
4519 (regcache_save, regcache_restore): Delete declaration.
4520 (regcache_save_no_passthrough): Delete declaration.
4521 (regcache_restore_no_passthrough): Delete declaration.
4522 * regcache.c (regcache_save): Delete function.
4523 (regcache_save_no_passthrough): Delete function.
4524 (regcache_restore): Delete function.
4525 (regcache_restore_no_passthrough): Delete function.
4526
4527 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4528
4529 * config/m68k/tm-m68k.h: Fix typo.
4530 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4531 (m68k_frame_init_saved_regs): Declare.
4532
4533 2002-06-21 Jim Blandy <jimb@redhat.com>
4534
4535 Remove some vestiges of Harris 88k support.
4536 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4537 register numbering quirk.
4538 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4539 odd symbols occurring in Harris 88k ELF targets.
4540
4541 2002-06-21 Tom Tromey <tromey@redhat.com>
4542
4543 * gdb_locale.h: New file.
4544 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4545 (defs_h): Added gdb_locale.h.
4546 * configure, config.in: Rebuilt.
4547 * configure.in (PACKAGE): Define.
4548 * defs.h: Include gdb_locale.h.
4549 * main.c (captured_main): Call setlocale, bindtextdomain,
4550 textdomain.
4551
4552 2002-06-21 Dave Brolley <brolley@redhat.com>
4553
4554 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4555 * config/frv/frv.mt: New file.
4556 * config/frv/tm-frv.h: New file.
4557 * configure.tgt: Support frv-*-*.
4558 * Makefile.in (frv-tdep.o): New target.
4559 * frv-tdep.c: New file.
4560 * NEWS: Mention frv.
4561
4562 2002-06-21 Dave Brolley <brolley@redhat.com>
4563
4564 * MAINTAINERS: Add self to "Write After Approval" list.
4565
4566 2002-06-21 Grace Sainsbury <graces@redhat.com>
4567
4568 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4569 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4570 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4571 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4572 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4573
4574 * m68k-tdep.c: Include arch-utils.h
4575 (m68k_register_raw_size): Add.
4576 (m68k_register_virtual_size): Add.
4577 (m68k_register_virtual_type): Add.
4578 (m68k_register_name): Add.
4579 (m68k_stack_align): Add.
4580 (m68k_register_byte): Add.
4581 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4582 tm-m68k.h.
4583
4584 2002-06-21 Grace Sainsbury <graces@redhat.com>
4585
4586 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4587 m68k_find_saved_regs.
4588 (m68k_pop_frame): Removed saved_regs structure, and replaced
4589 references to it with frame->saved_regs.
4590 (m68k_gdbarch_init): Added function calls to initialize the
4591 gdbarch structure.
4592 (m68k_fix_call_dummy): Add.
4593 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4594 (CALL_DUMMY): Remove.
4595 (CALL_DUMMY_LENGTH): Remove.
4596 (CALL_DUMMY_START_OFFSET): Remove.
4597 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4598 (FIX_CALL_DUMMY): Remove.
4599 (PUSH_DUMMY_FRAME): Remove.
4600 (POP_FRAME): Remove.
4601
4602 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4603
4604 * parse.c (parse_fprintf): New function used to avoid calls to
4605 fprintf in bison parser generated debug code.
4606 * parser-defs.h: Declaration of new parse_fprintf function.
4607 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4608 Set YYDEBUG to 1 by default.
4609 Set YYFPRINTF as parse_fprintf.
4610
4611 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4612
4613 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4614 encoding anymore.
4615 (pointer_encoding, enum ptr_encoding): New.
4616 (execute_cfa_program): Take care about pointer encoding.
4617 (dwarf2_build_frame_info): Only call parse_frame_info for
4618 .debug_frame and .eh_frame.
4619 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4620 fixed augmentation handling, added relative addressing,
4621 ignore duplicate FDEs. Added comments.
4622 * dwarf2cfi.c: Reindented.
4623
4624 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4625
4626 * event-top.c (command_handler): Don't use space_at_cmd_start
4627 unless there is sbrk() on the host. Assign time and space data
4628 to union fields of the appropriate length.
4629
4630 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4631
4632 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4633 x86_64_register_name. Return type changed to 'const char *'.
4634 (x86_64_register_name2nr): Rename to x86_64_register_number.
4635 (x86_64_gdbarch_init): Update to reflect the change.
4636 * x86-64-tdep.h: Ditto.
4637 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4638 (supply_fpregset): Ditto.
4639
4640 2002-06-19 Andrew Cagney <cagney@redhat.com>
4641
4642 * regcache.h: Update copyright.
4643 (struct regcache, struct gdbarch): Add opaque declarations.
4644 (current_regcache): Declare global variable.
4645 (regcache_read, regcache_write): Add gdbarch parameter.
4646 (regcache_save, regcache_save_no_passthrough)
4647 (regcache_restore, regcache_restore_no_passthrough)
4648 (regcache_dup, regcache_dup_no_passthrough)
4649 (regcache_cpy, regcache_cpy_no_passthrough)
4650 (deprecated_grub_regcache_for_registers)
4651 (deprecated_grub_regcache_for_register_valid)
4652 (regcache_valid_p): Add function declarations.
4653
4654 * regcache.c: Update copyright.
4655 (regcache_descr_handle): New global variable.
4656 (struct regcache_descr): Define.
4657 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4658 (regcache_descr, xfree_regcache_descr): New functions.
4659 (struct regcache): Define.
4660 (regcache_xmalloc, regcache_xfree): New functions.
4661 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4662 (regcache_dup, regcache_dup_no_passthrough): New functions.
4663 (regcache_valid_p, regcache_read_as_address): New functions.
4664 (deprecated_grub_regcache_for_registers): New function.
4665 (deprecated_grub_regcache_for_register_valid): New function.
4666 (current_regcache): New global variable.
4667 (register_buffer): Add regcache parameter. Update calls.
4668 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4669 (read_register_gen, write_register_gen): Update register_buffer
4670 call. Test for legacy_p instead of gdbarch_register_read_p or
4671 gdbarch_register_write_p.
4672 (regcache_collect): Update register_buffer call.
4673 (build_regcache): Rewrite. Use deprecated grub functions.
4674 (regcache_save, regcache_save_no_passthrough): New functions.
4675 (regcache_restore, regcache_restore_no_passthrough): New
4676 functions.
4677 (_initialize_regcache): Create the regcache_data_handle. Swap
4678 current_regcache global variable.
4679
4680 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4681 parameter to regcache_read and regcache_write calls.
4682 (sh4_register_read): Ditto.
4683 (sh64_pseudo_register_read): Ditto.
4684 (sh64_register_read): Ditto.
4685 (sh_pseudo_register_write): Ditto.
4686 (sh4_register_write): Ditto.
4687 (sh64_pseudo_register_write): Ditto.
4688 (sh64_register_write): Ditto.
4689
4690 * defs.h (XCALLOC): Define.
4691
4692 2002-06-19 Grace Sainsbury <graces@redhat.com>
4693
4694 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4695 * m68k-tdep.c (m68k_gdbarch_init): Added.
4696 (m68k_dump_tdep): Added.
4697
4698 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4699
4700 * ada-lang.c (fill_in_ada_prototype): Update comment.
4701
4702 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4703
4704 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4705 MIPS_ABI_LAST.
4706 (mips_abi_string, mips_abi_strings): New.
4707 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4708 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4709 tdep->mips_abi_string. Honor mips_abi_string. Default to
4710 O32 if no ABI is found.
4711 (mips_dump_tdep): Use mips_abi_strings.
4712 (mips_abi_update): New function.
4713 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4714 ``set mips abi'' and ``show mips abi''. Check the size of
4715 mips_abi_strings.
4716
4717 2002-06-19 Andrew Cagney <cagney@redhat.com>
4718
4719 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4720 constant.
4721
4722 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4723
4724 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4725 current frame using only the first stack size adjustment. All
4726 subsequent size adjustments are not considered to be part of
4727 the "static" part of the current frame.
4728 Compute the address of the saved registers relative to the
4729 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4730 in use in this frame.
4731
4732 2002-06-18 Don Howard <dhoward@redhat.com>
4733
4734 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4735 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4736 suggesting this solution.
4737
4738 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4739
4740 * config/romp/xm-rtbsd.h: Delete file.
4741 * config/romp/rtbsd.mh: Delete file.
4742
4743 2002-06-18 Keith Seitz <keiths@redhat.com>
4744
4745 * breakpoint.c (condition_command): Post breakpoint_modify
4746 when a condition is added to an existing breakpoint.
4747 (commands_command): Likewise for commands.
4748 (set_ignore_count): Likewise for ignore counts.
4749 If no tty, do not simply return, still need to send event
4750 notification.
4751 (ignore_command): Only print a newline if the command came
4752 from a tty.
4753 Don't call breakpoints_changed, since this is now properly
4754 handled by set_ignore_count.
4755
4756 2002-06-18 Andrew Cagney <cagney@redhat.com>
4757
4758 * MAINTAINERS: Note that cris-elf target can be compiled with
4759 -Werror.
4760 * cris-tdep.c (cris_register_name): Make return type constant.
4761 (cris_breakpoint_from_pc): Ditto.
4762
4763 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4764
4765 * frame.h (struct frame_info): Change type of context to
4766 'struct context'.
4767
4768 2002-06-17 Andrew Cagney <cagney@redhat.com>
4769
4770 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4771 pointer.
4772 * gdbarch.h, gdbarch.c: Regenerate.
4773 * config/mips/tm-mips.h (mips_register_name): Update.
4774 * i386-tdep.h (i386_register_name): Update.
4775 * mips-tdep.c (mips_register_name): Update
4776 * alpha-tdep.c (alpha_register_name): Update.
4777 * arch-utils.c (legacy_register_name): Update.
4778 * arch-utils.h (legacy_register_name): Update.
4779 * avr-tdep.c (avr_register_name): Update.
4780 * ia64-tdep.c (ia64_register_name): Update.
4781 * i386-tdep.c (i386_register_name): Update.
4782 * sparc-tdep.c (sparc32_register_name): Update.
4783 (sparc64_register_name): Update.
4784 (sparclite_register_name): Update.
4785 (sparclet_register_name): Update.
4786 * sh-tdep.c (sh_generic_register_name): Update.
4787 (sh_sh_register_name): Update.
4788 (sh_sh3_register_name): Update.
4789 (sh_sh3e_register_name): Update.
4790 (sh_sh_dsp_register_name): Update.
4791 (sh_sh3_dsp_register_name): Update.
4792 (sh_sh4_register_name): Update.
4793 (sh_sh64_register_name): Update.
4794 * s390-tdep.c (s390_register_name): Update.
4795 * rs6000-tdep.c (rs6000_register_name): Update.
4796 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4797 (ns32k_register_name_32382): Update.
4798 * d10v-tdep.c (d10v_ts2_register_name): Update.
4799 (d10v_ts3_register_name): Update.
4800 * xstormy16-tdep.c (xstormy16_register_name): Update.
4801 * vax-tdep.c (vax_register_name): Update.
4802 * v850-tdep.c (v850_register_name): Update.
4803 * m68hc11-tdep.c (m68hc11_register_name): Update.
4804 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4805 (am33_register_name): Update.
4806
4807 2002-06-17 Grace Sainsbury <graces@redhat.com>
4808
4809 * m68k-tdep.c: Reindented.
4810
4811 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4812
4813 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4814 list of predefined types.
4815
4816 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4817
4818 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4819 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4820 REGISTER_CONVERT_TO_RAW): Remove defines.
4821 (i386_register_virtual_type, i386_register_convertible,
4822 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4823 Remove prototypes.
4824 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4825 macros mentioned above.
4826
4827 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4828 (i386lynx_saved_pc_after_call): Remove prototype.
4829 * i386ly-tdep.c: Include "i386-tdep.h".
4830 (i386lynx_saved_pc_after_call): Make static. Use
4831 read_memory_nobpt instead of read_memory. Use
4832 read_memory_unsigned_integer instead of read_memory_integer.
4833 (i386lynx_init_abi): New function.
4834 (i386lynx_coff_osabi_sniffer): New function.
4835 (_initialize_i386bsd_tdep): New function.
4836
4837 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4838 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4839 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4840 (i386_fix_call_dummy): Remove prototype.
4841 * i386-tdep.c (i386_call_dummy_words): New variable.
4842 (i386_gdbarch_init): Adjust for removal of the
4843 macros mentioned above.
4844
4845 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4846
4847 * command.h (add_setshow_auto_boolean_cmd): Replace
4848 add_set_auto_boolean_cmd.
4849 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4850 add_set_auto_boolean_cmd.
4851 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4852 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4853 mask-address'' command.
4854 (show_mask_address): Add cmd parameter.
4855 * remote.c (add_packet_config_cmd): Update. Change type of
4856 set_func and show_func to cmd_sfunc_ftype.
4857 (_initialize_remote): Update `set remote Z-packet'
4858 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4859 (show_remote_protocol_e_packet_cmd): Ditto.
4860 (show_remote_protocol_E_packet_cmd): Ditto.
4861 (show_remote_protocol_P_packet_cmd): Ditto.
4862 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4863 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4864 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4865 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4866 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4867 (show_remote_protocol_Z_packet_cmd): Ditto.
4868 (show_remote_protocol_binary_download_cmd): Ditto.
4869 (show_remote_cmd): Pass NULL to all of above.
4870
4871 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4872
4873 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4874 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4875 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4876 POP_FRAME): Remove defines.
4877 (i386_push_arguments, i386_store_struct_return,
4878 i386_extract_return_value, i386_store_return_value,
4879 i386_extract_struct_value_address, i386_push_dummy_frame,
4880 i386_pop_frame): Renove prototypes.
4881 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4882 macros mentioned above.
4883
4884 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4885
4886 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4887 add_set_boolean_cmd.
4888 (add_setshow_cmd): New function.
4889 * command.h (add_setshow_boolean_cmd): Replace
4890 add_set_boolean_cmd.
4891 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4892 and ``set rdiromatzero''.
4893 * maint.c (_initialize_maint_cmds): Update commented out code.
4894 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4895 * target.c (initialize_targets): Update `set
4896 trust-readonly-sections'.
4897 * remote.c (_initialize_remote): Update `set remotebreak'.
4898
4899 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4900
4901 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4902 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4903 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4904 fit into multi-arch framework.
4905 (i386_breakpoint_from_pc): New function.
4906 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4907 above.
4908
4909 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4910 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4911 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4912 (i386_frameless_function_invocation, i386_frame_num_args,
4913 i386_frame_init_saved_regs): Remove prototypes.
4914 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4915 macros mentioned above.
4916
4917 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4918
4919 * cli/cli-decode.c (set_cmd_cfunc): Update.
4920 (set_cmd_sfunc): Update.
4921 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4922 (set_cmd_sfunc, set_cmd_cfunc): Update.
4923 * cli/cli-decode.h: Update.
4924
4925 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4926
4927 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4928 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4929
4930 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4931
4932 * defs.h (auto_boolean): Declare enum.
4933 * command.h (cmd_auto_boolean): Delete enum.
4934 * mips-tdep.c (mask_address_var): Update.
4935 (mips_mask_address_p): Update.
4936 (show_mask_address): Update.
4937 * remote.c (struct packet_config): Update.
4938 (update_packet_config): Update.
4939 (show_packet_config_cmd): Update.
4940 (packet_ok): Update.
4941 (add_packet_config_cmd): Update.
4942 (_initialize_remote):
4943 * command.h: Update.
4944 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4945 (do_setshow_command): Update.
4946 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4947 * cli/cli-decode.h: Update.
4948
4949 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4950
4951 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4952 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4953 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4954 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4955 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4956 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4957
4958 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4959 list of DJGPP COFF targets.
4960
4961 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4962 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4963 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4964 (FP0_REGNUM): Remove define.
4965 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4966 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4967 (i386_register_virtual_size): Remove protoype.
4968 * i386-tdep.c (i386_register_virtual_size): Removed.
4969 (i386_extract_return_value, i386_store_return_value): Use
4970 FP0_REGNUM instead of NUM_FREGS to determine whether the
4971 floating-point registers are available.
4972 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4973 Adjust for removal of macros mentioned above.
4974
4975 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4976
4977 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4978 comments.
4979 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4980 Remove prototypes.
4981 (supply_gregset, fill_gregset): Remove use of register keyword and
4982 remove declaration for regmap. Use I386_NUM_GREGS instead of
4983 NUM_REGS and NUM_FREGS.
4984 (FPREGSET_FSAVE_OFFSET): Remove.
4985 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4986 NUM_FREGS to determine whether the floating-point registers are
4987 available.
4988
4989 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4990 gnu_store_registers): Replace usage of NUM_GREGS with
4991 I386_NUM_GREGS.
4992
4993 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4994 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4995 usage of NUM_GREGS with I386_NUM_GREGS.
4996
4997 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4998
4999 * i386bsd-nat.c: Include "i386-tdep.h".
5000 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5001 I386_NUM_GREGS.
5002
5003 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5004 and associated comment. They no longer make any sense, since we
5005 don't use this file anymore on Linux.
5006
5007 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5008 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5009 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5010 elements in these arrays.
5011 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5012 MAX_NUM_REGS.
5013
5014 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5015
5016 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5017 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5018
5019 2002-06-14 Andrew Cagney <cagney@redhat.com>
5020
5021 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5022 EXTRACT_RETURN_VALUE.
5023 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5024 EXTRACT_STRUCT_VALUE_ADDRESS.
5025 * gdbarch.h, gdbarch.c: Regenerate.
5026
5027 * values.c (value_being_returned): Handle
5028 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5029 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5030
5031 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5032 * arm-tdep.c (arm_gdbarch_init): Update.
5033 * avr-tdep.c (avr_gdbarch_init): Update.
5034 * cris-tdep.c (cris_gdbarch_init): Update.
5035 * d10v-tdep.c (d10v_gdbarch_init): Update.
5036 * ia64-tdep.c (ia64_gdbarch_init): Update.
5037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5038 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5039 * s390-tdep.c (s390_gdbarch_init): Update.
5040 * sh-tdep.c (sh_gdbarch_init): Update.
5041 * s390-tdep.c (s390_gdbarch_init): Update.
5042 * sparc-tdep.c (sparc_gdbarch_init): Update.
5043 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5044 * v850-tdep.c (v850_gdbarch_init): Update.
5045 * vax-tdep.c (vax_gdbarch_init): Update.
5046 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5047 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5048
5049 * config/arc/tm-arc.h: Update.
5050 * config/d30v/tm-d30v.h: Update.
5051 * config/fr30/tm-fr30.h: Update.
5052 * config/h8300/tm-h8300.h: Update.
5053 * config/h8500/tm-h8500.h: Update.
5054 * config/i386/tm-i386.h: Update.
5055 * config/i386/tm-ptx.h: Update.
5056 * config/i386/tm-symmetry.h: Update.
5057 * config/i960/tm-i960.h: Update.
5058 * config/m32r/tm-m32r.h: Update.
5059 * config/m68k/tm-delta68.h: Update.
5060 * config/m68k/tm-linux.h: Update.
5061 * config/m68k/tm-m68k.h: Update.
5062 * config/m88k/tm-m88k.h: Update.
5063 * config/mcore/tm-mcore.h: Update.
5064 * config/mips/tm-mips.h: Update.
5065 * config/mn10200/tm-mn10200.h: Update.
5066 * config/pa/tm-hppa.h: Update.
5067 * config/pa/tm-hppa64.h: Update.
5068 * config/sparc/tm-sp64.h: Update.
5069 * config/sparc/tm-sparc.h: Update.
5070 * config/sparc/tm-sparclet.h: Update.
5071 * config/z8k/tm-z8k.h: Update.
5072
5073 2002-06-14 Andrew Cagney <cagney@redhat.com>
5074
5075 * Makefile.in (i386_linux_tdep_h): Define.
5076 (i386_tdep_h, i387_tdep_h): Define.
5077 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5078 $(i386_tdep_h) and $(i387_tdep_h).
5079 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5080
5081 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5082
5083 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5084 Already covered by the default.
5085
5086 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5087 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5088 (i386_gdbarch_init): Initialize long_double_format and long_double
5089 bit.
5090
5091 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5092 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5093 Move these to ...
5094 * config/i386/i386sol2.mh: ... here.
5095 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5096 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5097 (SIGCONTEXT_PC_OFFSET): Remove define.
5098 (IN_SIGTRAMP): Remove define.
5099 * i386-sol2-tdep.c: New file.
5100
5101 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5102 * config/i386/tm-i386nw.h: Removed.
5103
5104 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5105 USE_STRUCT_CONVENTION): Remove defines.
5106 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5107 (get_longjmp_target): Remove prototype.
5108 (IN_SIGTRAMP): Remove define.
5109 (i386bsd_in_sigtramp): Remove prototype.
5110 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5111 function. Update comment accordingly
5112 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5113 (FRAME_SAVED_PC): Remove define.
5114 (i386bsd_frame_saved_pc): Remove prototype.
5115 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5116 GET_LONGJMP_TARGET): Remove defines.
5117 (get_longjmp_target): Remove prototype.
5118 (IN_SIGTRAMP): Remove define.
5119 (i386bsd_in_sigtramp): Remove prototype.
5120 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5121 function. Update comment accordingly
5122 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5123 (FRAME_SAVED_PC): Remove define.
5124 (i386bsd_frame_saved_pc): Remove prototype.
5125 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5126 Remove prototype.
5127 (USE_STRUCT_CONVENTION): Remove prototype.
5128 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5129 declaration.
5130 (_initialize_i386bsd_nat): Revise logic to determine some
5131 constants at compile time when compiling a native GDB. Warn if
5132 things don't match up with what we expect.
5133 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5134 Remove variables.
5135 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5136 to use date stored in `struct gdbarch_tdep'.
5137 (i386bsd_sigcontext_offset): Remove varaible.
5138 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5139 stored in `struct gdbarch_tdep'.
5140 (i386bsd_frame_saved_pc): Make static.
5141 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5142 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5143 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5144 i386fbsd4_sc_pc_offset): New variables.
5145 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5146 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5147 functions.
5148 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5149 functions.
5150 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5151 Modify the value of i386fbsd_sigtramp_start and
5152 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5153 i386fbsd_sigtramp_end.
5154 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5155 function.
5156
5157 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5158 define to i386-linux-tdep.h.
5159 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5160 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5161 defines.
5162 (i386_linux_register_name, i386_linux_register_byte,
5163 i386_linux_register_raw_size): Remove prototypes.
5164 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5165 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5166 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5167 TARGET_WRITE_PC): Remove defines.
5168 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5169 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5170 i386_linux_write_pc): Remove prototypes.
5171 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5172 (get_longjmp_target): Remove prototype.
5173 * i386-linux-tdep.h: New file.
5174 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5175 * i386-linux-tdep.c: Include "i386-tdep.h" and
5176 "i386-linux-tdep.h".
5177 (i386_linux_register_name, i386_linux_register_byte,
5178 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5179 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5180 Make static.
5181 (i386_linux_init_abi): New function.
5182 (_initialize_i386_linux_tdep): New function.
5183
5184 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5185 (i386_saved_pc_after_call): Remove prototype.
5186 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5187 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5188 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5189 (i386_register_name, i386_stab_reg_to_regnum,
5190 i386_dwarf_reg_to_regnum): Remove prototypes.
5191 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5192 SIZEOF_SSE_REGS): Remove defines.
5193 (REGISTER_BYTES): Remove define.
5194 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5195 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5196 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5197 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5198 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5199 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5200 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5201 (get_longjmp_target): Remove prototype.
5202 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5203 (sigtramp_saved_pc): Remove define.
5204 (i386v4_sigtramp_saved_pc): Remove prototype.
5205 * config/i386/tm-go32.h (FRAME_CHAIN,
5206 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5207 (i386go32_frame_saved_pc): Remove prototype.
5208 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5209 (get_longjmp_target): Remove prototype.
5210 * i386-tdep.h: Include "osabi.h".
5211 (enum i386_abi): Removed.
5212 (enum struct_return): New enum.
5213 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5214 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5215 sc_pc_offset members.
5216 (i386_gdbarch_register_os_abi): Remove prototype.
5217 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5218 I386_SSE_NUM_REGS): New defines.
5219 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5220 I386_SSE_SIZEOF_REGS): New defines.
5221 (i386_register_name, i386_register_byte, i386_register_raw_size):
5222 New prototypes.
5223 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5224 (i386bsd_sigtramp_saved_pc): New prototype.
5225 * i386-tdep.c: Don't include "elf-bfd.h".
5226 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5227 i386_frame_chain, i386_saved_pc_after_call): Make static.
5228 (i386_frame_saved_pc): Rewrite to call architecture dependent
5229 function to deal with signal handlers. Make static.
5230 (i386go32_frame_saved_pc): Removed.
5231 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5232 Removed.
5233 (i386_get_longjmp_target): New function.
5234 (default_struct_convention, pcc_struct_convention,
5235 reg_struct_convention, valid_conventions, struct_convention): New
5236 variables.
5237 (i386_use_struct_convention): New function.
5238 (i386v4_sigtramp_saved_pc): Renamed to
5239 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5240 (i386_pc_in_sigtramp): New function.
5241 (i386_abi_names): Removed.
5242 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5243 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5244 Removed.
5245 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5246 i386_gdbarch_register_os_abi): Removed.
5247 (struct i386_abi_handler): Removed.
5248 (i386_abi_handler_list): Removed.
5249 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5250 functions.
5251 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5252 i386_nw_init_abi): New functions.
5253 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5254 Use set_gdbarch_xxx() calls instead of relying on macros for a
5255 number of calls.
5256 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5257 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5258 Register the various architecture variants defined in this file.
5259
5260 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5261
5262 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5263 (struct main_type): Remove arg_types member. Update comments for
5264 struct field.
5265 (TYPE_ARG_TYPES): Remove.
5266 (TYPE_FN_FIELD_ARGS): Update.
5267 (smash_to_method_type): Update prototype.
5268
5269 * c-typeprint.c (cp_type_print_method_args): Take method type
5270 instead of argument list. Use new argument layout. Simplify.
5271 (c_type_print_args): Use new argument layout. Simplify.
5272 (c_type_print_base): Update call to cp_type_print_method_args.
5273 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5274 argument; use die->type instead. Update call to
5275 smash_to_method_type.
5276 (read_structure_scope): Update call to dwarf2_add_member_fn.
5277 * gdbtypes.c (allocate_stub_method): Update comment.
5278 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5279 Use new argument layout.
5280 (check_stub_method): Use new argument layout. Don't count
5281 void as an argument.
5282 (print_arg_types): Update comments. Use new argument layout.
5283 (recursive_dump_type): Don't print arg_types member.
5284 * hpread.c (hpread_read_struct_type): Use new argument layout.
5285 (fixup_class_method_type): Likewise.
5286 (hpread_type_lookup): Likewise.
5287 * stabsread.c (read_type): Update calls to read_args and
5288 smash_to_method_type.
5289 (read_args): Use new argument layout. Simplify.
5290 * valops.c (typecmp): Use new argument layout. Update parameters
5291 and comments. Simplify.
5292 (hand_function_call): Use new argument layout.
5293 (search_struct_method): Update call to typecmp.
5294 (find_overload_match): Use new argument layout.
5295
5296 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5297
5298 * NEWS: Mention multithreaded debug support for gdbserver.
5299
5300 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5301
5302 * MAINTAINERS: Mention NEWS.
5303
5304 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5305
5306 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5307 (struct mips_objfile_private, compare_pdr_entries): New.
5308 (non_heuristic_proc_desc): Read the ".pdr" section if it
5309 is present.
5310
5311 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5312
5313 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5314 (arm_debug): New static variable.
5315 (_initialize_arm_tdep): Add ``set debug arm'' command.
5316
5317 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5318
5319 * Makefile.in (sim_arm_h): Define.
5320 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5321 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5322 (arm_register_sim_regno): New function, map an internal REGNUM
5323 onto a simulator register number.
5324 (arm_gdbarch_init): Set register_sim_regno.
5325
5326 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5327
5328 * MAINTAINERS: Add self.
5329
5330 2002-06-11 Jim Blandy <jimb@redhat.com>
5331
5332 * source.c (source_info): Mention whether the symtab has
5333 information about preprocessor macros.
5334
5335 Call the command `info macro', not `show macro'.
5336 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5337 Fix error message.
5338 (_initialize_macrocmd): Register `info_macro_command' in
5339 `infolist', not `showlist'.
5340
5341 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5342
5343 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5344 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5345 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5346 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5347 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5348 unconditionally.
5349 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5350 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5351 (_initialize_mips_tdep): Remove dead code.
5352 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5353 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5354 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5355 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5356 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5357 MIPS_LAST_FP_ARG_REGNUM): Remove.
5358
5359 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5360
5361 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5362 (unwind_tmp_obstack_free, parse_frame_info)
5363 (update_context, cfi_read_fp, cfi_write_fp)
5364 (cfi_frame_chain, cfi_init_extra_frame_info)
5365 (cfi_virtual_frame_pointer): Use the above function.
5366 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5367
5368 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5369
5370 * v850-tdep.c (v850_type_is_scalar): New function.
5371 (v850_use_struct_convention): Match current gcc implementation
5372 as close as possible.
5373 (v850_push_arguments): Fix stack_offset handling. Don't write
5374 struct_addr into register. This is done by v850_store_struct_return.
5375 (v850_extract_return_value): Care for structs.
5376 (v850_store_return_value): Ditto.
5377 (v850_store_struct_return): Actually write address.
5378
5379 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5380
5381 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5382 without debug information too.
5383
5384 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5385
5386 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5387 Make multi-arch pure.
5388 * gdbarch.h, gdbarch.c: Re-generate.
5389 * arm-tdep.c (arm_print_float_info): Update.
5390 * arch-utils.h (default_print_float_info): Update.
5391 * arch-utils.c (default_print_float_info): Update.
5392 * infcmd.c (float_info): Update call.
5393
5394 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5395
5396 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5397 the front of the initialize list.
5398
5399 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5400
5401 * infrun.c (struct inferior_status): Replace fields
5402 selected_frame_address and selected_level with field
5403 selected_frame_id.
5404 (save_inferior_status): Update. Use get_frame_id.
5405 (struct restore_selected_frame_args): Delete.
5406 (restore_selected_frame): Update. Use frame_find_by_id.
5407 (restore_inferior_status): Update.
5408
5409 * breakpoint.h (struct breakpoint): Change type of
5410 watchpoint_frame to frame_id.
5411 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5412 call to get_current_frame.
5413 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5414 get_current_frame.
5415 (watchpoint_check): Use frame_find_by_id.
5416
5417 * frame.h (record_selected_frame): Delete declaration.
5418 * stack.c (record_selected_frame): Delete function.
5419
5420 * frame.h (struct frame_id): Define.
5421 (get_frame_id): Declare.
5422 (frame_find_by_id): Declare.
5423 * frame.c (frame_find_by_id): New function.
5424 (get_frame_id): New function.
5425
5426 2002-06-10 Andrey Volkov <avolkov@transas.com>
5427
5428 * ser-e7kpc.c: Fix duplicated define and call of
5429 _initialize_ser_e7000pc
5430
5431 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5432
5433 * signals/signals.c (target_signal_from_host): Fix #ifdef
5434 SIGRTMIN case.
5435 (do_target_signal_to_host): Likewise.
5436
5437 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5438
5439 * mips-tdep.c (mips_find_abi_section): New function.
5440 (mips_gdbarch_init): Call it.
5441
5442 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5443
5444 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5445 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5446 after Andrew's 2002-06-08 gdbarch change.
5447
5448 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5449
5450 * i386-linux-nat.c (suppy_gregset): Don't supply
5451 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5452 register cache.
5453 (fill_gregset): Don't fetch it under the same circumstances.
5454
5455 2002-06-09 Andrew Cagney <cagney@redhat.com>
5456
5457 * Makefile.in (callback_h): Define.
5458 (remote_sim_h): Update path to remote-sim.h.
5459 (remote-rdp.o): Add $(callback_h).
5460 (remote-sim.o): Use $(callback_h).
5461 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5462 * remote-rdp.c: Include "gdb/callback.h".
5463
5464 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5465
5466 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5467 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5468
5469 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5470
5471 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5472 * rdi-share/serpardr.c: Ditto.
5473 * rdi-share/unixcomm.c: Ditto.
5474 * rdi-share/serdrv.c: Ditto.
5475 * rdi-share/hostchan.h: Ditto.
5476 * rdi-share/hostchan.c: Ditto.
5477 * rdi-share/host.h: Ditto.
5478 * rdi-share/devsw.c: Ditto.
5479
5480 * objfiles.h: Change type of obj_private to void pointer.
5481 * pa64solib.c: Update copyright. Don't include "assert.h", use
5482 strcmp instead of STREQ, use LONGEST, do not use PTR
5483 * somsolib.c: Ditto.
5484
5485 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5486 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5487 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5488
5489 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5490
5491 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5492 (default_get_saved_register): Delete function.
5493 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5494 generic_unwind_get_saved_register.
5495 * gdbarch.h, gdbarch.c: Re-generate.
5496
5497 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5498
5499 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5500 generic_func_frame_chain_valid.
5501 * gdbarch.h, gdbarch.c: Re-generate.
5502 * blockframe.c (generic_func_frame_chain_valid): Only check
5503 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5504 passing FP to PC_IN_CALL_DUMMY.
5505 Fix PR gdb/360.
5506
5507 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5508
5509 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5510 (register_gdbarch_data): Initialize init_p.
5511 (gdbarch_data): Initialize data pointer using the init function.
5512 (init_gdbarch_data): Delete function.
5513 (gdbarch_update_p): Update.
5514 (initialize_non_multiarch): Update.
5515 (struct gdbarch): Add field initialized_p.
5516 * gdbarch.h, gdbarch.c: Re-generate.
5517
5518 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5519
5520 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5521 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5522 better do the things actually here.
5523 * x86-64-tdep.c (x86_64_register_name2nr): New.
5524 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5525 (x86_64_gdbarch_init): Respect the above change.
5526 * x86-64-tdep.h (x86_64_register_name2nr)
5527 (x86_64_register_nr2name): Add prototypes.
5528 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5529
5530 2002-06-06 Michael Snyder <msnyder@redhat.com>
5531
5532 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5533 Delete extra braces and re-indent.
5534 (d10v_store_return_value): Char return values
5535 must be shifted over by one byte in R0.
5536 (d10v_extract_return_value): Delete extra braces, re-indent.
5537
5538 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5539
5540 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5541 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5542 (d10v_integer_to_address): Rewrite.
5543 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5544 the d10v specific functions which take care of converting to the
5545 correct space.
5546
5547 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5548
5549 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5550 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5551
5552 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5553
5554 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5555 includes.
5556 * config/tm-linux.h: Ditto.
5557 * config/alpha/tm-alphalinux.h: Ditto.
5558 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5559 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5560 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5561 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5562 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5563 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5564 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5565 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5566 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5567 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5568 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5569 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5570 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5571 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5572 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5573 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5574 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5575 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5576 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5577 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5578 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5579 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5580 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5581 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5582 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5583 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5584 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5585 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5586 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5587 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5588 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5589 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5590 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5591 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5592 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5593 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5594 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5595
5596 2002-05-04 Aidan Skinner <aidan@velvet.net>
5597
5598 * ada-exp.tab.c: New file
5599 * ada-exp.y: New file
5600 * ada-lang.c: New file
5601 * ada-lang.h: New file
5602 * ada-lex.c: New file
5603 * ada-lex.l: New file
5604 * ada-tasks.c: New file
5605 * ada-typeprint.c: New file
5606 * ada-valprint.c: New file
5607
5608 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5609
5610 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5611 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5612
5613 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5614
5615 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5616 insetead of ppc-linux-tdep.o.
5617 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5618 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5619
5620 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5621
5622 2002-05-07 Christian Groessler <chris@groessler.org>
5623 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5624 bit register contents for little endian hosts.
5625
5626 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5627
5628 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5629 any maintainer.
5630
5631 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5632
5633 * gdbarch.h: Regenerate.
5634
5635 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5636
5637 * MAINTAINERS: Add everyone to write-after-approval list.
5638
5639 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5640
5641 * stack.c (frame_info): Use frame_register_unwind instead of
5642 saved_regs. Mention when the SP is on the stack or in a register.
5643
5644 * frame.h (frame_register_unwind_ftype): Define. Document.
5645 (struct frame_info): Add field register_unwind and
5646 register_unwind_cache.
5647 (frame_register_unwind): Declare.
5648 (generic_unwind_get_saved_register): Declare.
5649
5650 * frame.c (frame_register_unwind): New function.
5651 (generic_unwind_get_saved_register): New function.
5652
5653 * blockframe.c (generic_call_dummy_register_unwind): New function.
5654 (frame_saved_regs_register_unwind): New function.
5655 (set_unwind_by_pc): New function.
5656 (create_new_frame): New function.
5657 (get_prev_frame): New function.
5658
5659 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5660
5661 * a29k-share/: Delete directory.
5662 * remote-vx29k.c: Delete file.
5663
5664 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5665
5666 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5667 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5668
5669 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5670
5671 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5672 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5673 (sparc64nbsd-nat.o)
5674 (sparcnbsd-nat.o)
5675 (sparcnbsd-tdep.o): New dependency lists.
5676 * NEWS: Note new UltraSPARC NetBSD native configuration.
5677 * configure.host (sparc64-*-netbsd*): New host.
5678 * configure.tgt (sparc-*-netbsdelf*)
5679 (sparc-*-netbsd*): Set gdb_target to nbsd.
5680 (sparc64-*-netbsd*): New target.
5681 * sparc64nbsd-nat.c: New file.
5682 * sparcnbsd-nat.c: New file.
5683 * sparcnbsd-tdep.c: New file.
5684 * sparcnbsd-tdep.h: New file.
5685 * config/sparc/nbsd.mt: New file.
5686 * config/sparc/nbsd64.mh: New file.
5687 * config/sparc/nbsd64.mt: New file.
5688 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5689 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5690 (HOST_IPC): Remove.
5691 * config/sparc/nbsdaout.mt: Remove.
5692 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5693 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5694 (HOST_IPC): Remove.
5695 * config/sparc/nbsdelf.mt: Remove.
5696 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5697 sparc-nat.c compatiblity defines.
5698 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5699 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5700 * config/sparc/tm-nbsd64.h: New file.
5701 * config/sparc/tm-nbsdaout.h: Remove.
5702 * config/sparc/xm-nbsd.h: Remove.
5703
5704 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5705
5706 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5707 * sparc-tdep.c: Include osabi.h.
5708 (gdbarch_tdep): Add osabi member.
5709 (_initialize_sparc_tdep): Use gdbarch_register.
5710 (sparc_gdbarch_init): Use generic OS ABI framework.
5711 (sparc_dump_tdep): New function.
5712
5713 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5714
5715 * corefile.c (do_captured_read_memory_integer): Return non-zero
5716 result.
5717 (safe_read_memory_integer): Copy result of memory read when
5718 status is non-zero. Also, add comments.
5719
5720 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5721
5722 * Makefile.in (ppc_tdep_h): Define.
5723 (ppc-linux-nat.o)
5724 (ppc-linux-tdep.o)
5725 (rs6000-tdep.o): Use $(ppc_tdep_h).
5726 (ppc-sysv-tdep.o)
5727 (ppcnbsd-nat.o)
5728 (ppcnbsd-tdep.o): New dependency lists.
5729 * ppc-tdep.h: Use generic OS ABI framework.
5730 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5731 (ppc_linux_init_abi): New functions.
5732 (ppc_sysv_abi_broken_use_struct_convention)
5733 (ppc_sysv_abi_use_struct_convention)
5734 (ppc_sysv_abi_push_arguments): Move to...
5735 * ppc-sysv-tdep.c: ...here.
5736 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5737 * rs6000-tdep.c (process_note_abi_tag_sections)
5738 (get_elfosabi): Remove.
5739 (rs6000_gdbarch_init): Use generic OS ABI framework.
5740 (rs6000_dump_tdep): New function.
5741 (_initialize_rs6000_tdep): Use gdbarch_register.
5742 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5743 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5744 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5745 of ppc-linux-tdep.o.
5746 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5747 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5748 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5749 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5750 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5751 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5752
5753 2002-05-29 Jim Blandy <jimb@redhat.com>
5754
5755 * macroscope.c (default_macro_scope): Put `void' in empty argument
5756 list.
5757
5758 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5759
5760 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5761 * arch-utils.c: Include "sim-regno.h".
5762 * gdbarch.sh: Don't include "sim-regno.h".
5763 * gdbarch.h, gdbarch.c: Regenerate.
5764 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5765 here.
5766 * arch-utils.h (legacy_register_sim_regno): To here.
5767 * remote-sim.c (legacy_register_sim_regno): Move function from
5768 here.
5769 * arch-utils.c (legacy_register_sim_regno): To here.
5770
5771 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5772
5773 * sim-regno.h: New file.
5774 * Makefile.in (sim_regno_h): Define.
5775 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5776 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5777 (legacy_register_sim_regno): New function.
5778 (one2one_register_sim_regno): New function.
5779 (gdbsim_fetch_register): Rewrite.
5780 (gdbsim_store_register): Only store a register when
5781 REGISTER_SIM_REGNO is valid.
5782 * d10v-tdep.c: Include "sim-regno.h".
5783 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5784 (d10v_ts3_register_sim_regno): Ditto.
5785 * gdbarch.sh: Include "sim-regno.h".
5786 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5787 * gdbarch.h, gdbarch.c: Regenerate.
5788 * arch-utils.h (default_register_sim_regno): Delete declaration.
5789 * arch-utils.c (default_register_sim_regno): Delete function.
5790
5791 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5792
5793 * ppcnbsd-nat.c: Rewrite.
5794 * ppcnbsd-tdep.c: New file.
5795 * ppcnbsd-tdep.h: New file.
5796 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5797 solib.o, and solib-svr4.o.
5798 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5799 nbsd-tdep.o, and corelow.o.
5800
5801 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5802
5803 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5804 `tr' and `sed'. Mention that `broken' targets are not expected to
5805 build.
5806
5807 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5808
5809 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5810 Let PC point right after the prologue before looking up symbols.
5811
5812 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5813
5814 * i386-tdep.c (i386_register_virtual_type): Return
5815 builtin_type_vec128i for SSE registers.
5816
5817 * gdbtypes.h (builtin_type_vec128i): Declare.
5818
5819 * gdbtypes.c (build_builtin_type_vec128i): New function.
5820 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5821 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5822 (build_gdbtypes): Initialize new builtin vector types.
5823 (_initialize_gdbtypes): Register new vector types with gdbarch.
5824
5825 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5826
5827 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5828 since it has been multi-arch'd.
5829 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5830 Move Alpha and VAX multi-arch news entries to same section
5831 as other multi-arch news.
5832
5833 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5834
5835 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5836 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5837 static. Rename some register numbers to put them in ns32k-tdep
5838 private namespace.
5839 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5840 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5841 functions.
5842 (_initialize_ns32k_tdep): Use gdbarch_register.
5843 * ns32k-tdep.h: New file.
5844 * ns32knbsd-tdep.c: New file.
5845 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5846 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5847 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5848 REGISTER_BYTES, REGISTER_BYTE): Remove.
5849 * config/ns32k/tm-ns32k.h: New file.
5850 * config/ns32k/tm-umax.h: Remove.
5851
5852 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5853
5854 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5855 ns32k_store_struct_return, ns32k_extract_return_value,
5856 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5857 functions.
5858 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5859 ns32k_saved_pc_after_call.
5860 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5861 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5862 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5863 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5864 ns32k_extract_struct_value_address.
5865
5866 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5867
5868 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5869 ns32k_fix_call_dummy): New.
5870 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5871 ns32k_call_dummy_words.
5872 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5873 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5874 CALL_DUMMY_NARGS): Remove.
5875 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5876
5877 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5878
5879 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5880 ns32k_frame_saved_pc, ns32k_frame_args_address,
5881 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5882 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5883 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5884 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5885 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5886 (BREAKPOINT): Remove..
5887 (FRAME_CHAIN): Define as ns32k_frame_chain.
5888 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5889 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5890 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5891 (FRAME_FIND_SAVED_REGS): Remove.
5892 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5893 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5894 (POP_FRAME): Define as ns32k_pop_frame.
5895
5896 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5897
5898 * ns32k-tdep.c (ns32k_register_byte_32082,
5899 ns32k_register_byte_32382, ns32k_register_raw_size,
5900 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5901 functions.
5902 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5903 ns32k_register_byte_32382.
5904 * config/ns32k/tm-umax.h: Update copyright years.
5905 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5906 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5907 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5908 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5909 (ns32k_get_enter_addr): Fix prototype.
5910
5911 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5912
5913 * ns32k-tdep.c: Update copyright years.
5914 (ns32k_register_name_32082): New function.
5915 (ns32k_register_name_32382): Ditto.
5916 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5917 (REGISTER_NAME): Define as ns32k_register_name_32382.
5918 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5919 (REGISTER_NAME): Define as ns32k_register_name_32082.
5920
5921 2002-05-24 Jim Blandy <jimb@redhat.com>
5922
5923 * dwarf2read.c (free_line_header): Use xfree, not free.
5924
5925 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5926
5927 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5928 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5929
5930 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5931
5932 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5933
5934 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5935
5936 From Ross Alexander at NEC Europe:
5937 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5938
5939 2002-05-23 Michael Snyder <msnyder@redhat.com>
5940
5941 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5942 for input, rather than parse_and_eval_address.
5943
5944 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5945
5946 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5947 * Makefile.in (sim_d10v_h): Update definition.
5948
5949 2002-05-24 Andrew Cagney <cagney@redhat.com>
5950
5951 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5952 change `2002-05-22 Michael Snyder' below.
5953 (d10v_push_arguments): Ditto.
5954 (d10v_extract_return_value): Ditto.
5955
5956 2002-05-23 Jim Blandy <jimb@redhat.com>
5957
5958 * macrotab.c (check_for_redefinition): Don't complain if the new
5959 definition is the same as the previous one. Take more arguments
5960 to allow the comparison.
5961 (macro_define_object, macro_define_function): Pass more arguments
5962 to check_for_redefinition.
5963
5964 2002-05-22 Michael Snyder <msnyder@redhat.com>
5965
5966 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5967 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5968 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5969 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5970 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5971 Add a temp variable to save a call (and a memory read).
5972 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5973 if possible (so that PC_IN_CALL_DUMMY will work).
5974
5975 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5976
5977 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5978
5979 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5980
5981 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5982 fde->cie_ptr.
5983 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5984 (dwarf2_build_frame_info): Add offset to fde->initial_location
5985 so that frames of shared libraries are mapped correctly.
5986 (execute_stack_op): Change type of 'result' from ULONGEST to
5987 CORE_ADDR.
5988
5989 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5990
5991 * config/alpha/tm-nbsd.h: Include solib.h.
5992
5993 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5994
5995 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5996 assumptions about the host's byte order.
5997
5998 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5999
6000 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6001 to dependency list.
6002 * alphanbsd-tdep.c: Include solib-svr4.h.
6003 * shnbsd-tdep.c: Ditto.
6004
6005 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6006
6007 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6008 nbsd-tdep.h to dependency list.
6009 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6010 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6011 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6012 nbsdaout.mh and nbsdelf.mh consistently.
6013 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6014 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6015 nbsdaout.mt and nbsdelf.mh consistently.
6016 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6017 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6018 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6019 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6020 a.out shared library stuff from here...
6021 * config/nm-nbsdaout.h: ...to here.
6022 * config/tm-nbsd.h: Remove.
6023 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6024 * config/arm/nbsd.mh: Remove.
6025 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6026 nbsd-tdep.o.
6027 * config/arm/nbsdaout.mh: New file.
6028 * config/arm/nbsdelf.mh: New file.
6029 * config/arm/nm-nbsdaout.h: New file.
6030 * config/i386/nbsd.mh: Remove.
6031 * config/i386/nbsd.mt: Remove.
6032 * config/i386/nbsdaout.mh: New file.
6033 * config/i386/nbsdaout.mt: New file.
6034 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6035 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6036 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6037 i386_register_u_addr): Remove.
6038 * config/i386/nm-nbsdaout.h: New file.
6039 * config/i386/nm-nbsdelf.h: Remove.
6040 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6041 (USE_STRUCT_CONVENTION): Remove.
6042 * config/i386/tm-nbsdaout.h: New file.
6043 * config/i386/tm-nbsdelf.h: Remove.
6044 * config/m68k/nbsd.mh: Remove.
6045 * config/m68k/nbsd.mt: Remove.
6046 * config/m68k/nbsdaout.mh: New file.
6047 * config/m68k/nbsdaout.mt: New file.
6048 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6049 * config/m68k/nm-nbsdaout.h: New file.
6050 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6051 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6052 * config/ns32k/nbsd.mh: Remove.
6053 * config/ns32k/nbsd.mt: Remove.
6054 * config/ns32k/nbsdaout.mh: New file.
6055 * config/ns32k/nbsdaout.mt: New file.
6056 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6057 * config/ns32k/nm-nbsdaout.h: New file.
6058 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6059 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6060 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6061 (SVR4_SHARED_LIBS): Remove.
6062 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6063 * config/sparc/nbsd.mh: Remove.
6064 * config/sparc/nbsd.mt: Remove.
6065 * config/sparc/nbsdaout.mh: New file.
6066 * config/sparc/nbsdaout.mt: New file.
6067 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6068 * config/sparc/nbsdelf.mt: New file.
6069 * config/sparc/nm-nbsdaout.h: New file.
6070 * config/sparc/nm-nbsdelf.h: Remove.
6071 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6072 * config/sparc/tm-nbsdaout.h: New file.
6073
6074 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6075
6076 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6077 mipsnbsd-tdep.c
6078 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6079
6080 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6081
6082 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6083 shnbsd-nat.c.
6084 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6085
6086 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6087
6088 * NEWS: Note new MIPS NetBSD native configuration.
6089 * configure.host (mips*-*-netbsd*): New host.
6090 * configure.tgt (mips*-*-netbsd*): New target.
6091 * mipsnbsd-nat.c: New file.
6092 * mipsnbsd-tdep.c: New file.
6093 * mipsnbsd-tdep.h: New file.
6094 * config/mips/nbsd.mh: New file.
6095 * config/mips/nbsd.mt: New file.
6096 * config/mips/nm-nbsd.h: New file.
6097 * config/mips/tm-nbsd.h: New file.
6098
6099 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6100
6101 * Makefile.in (SFILES): Add osabi.c.
6102 (COMMON_OBS): Add osabi.o.
6103 (osabi.o): New dependency list.
6104 * osabi.c: New file.
6105 * osabi.h: New file.
6106 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6107
6108 * Makefile.in (alpha_tdep_h): Define and use instead of
6109 alpha-tdep.h.
6110 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6111 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6112 Remove.
6113 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6114 * alpha-tdep.h: Include osabi.h.
6115 (alpha_abi): Remove.
6116 (gdbarch_tdep): Use generic OS ABI framework.
6117 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6118 gdbarch_register_osabi.
6119 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6120 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6121 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6122
6123 * Makefile.in (sh_tdep_h): Add osabi.h.
6124 * sh-tdep.h (sh_osabi): Remove.
6125 (gdbarch_tdep): Use generic OS ABI framework.
6126 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6127 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6128 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6129 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6130
6131 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6132 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6133 gdbarch_register_osabi.
6134 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6135 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6136 (get_elfosabi): Rename to...
6137 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6138 ABI framework support routines.
6139 (arm_gdbarch_init): Use generic OS ABI framework.
6140 (arm_dump_tdep): Likewise.
6141 (_initialize_arm_tdep): Likewise.
6142 * arm-tdep.h: Include osabi.h.
6143 (arm_abi): Remove.
6144 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6145 osabi member.
6146 (arm_gdbarch_register_os_abi): Remove prototype.
6147 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6148 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6149
6150 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6151 * mips-tdep.c: Include osabi.h.
6152 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6153 OS ABI framework.
6154
6155 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6156
6157 * h8300-tdep.c: Fix formatting.
6158
6159 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6160
6161 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6162 printing vector registers.
6163
6164 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6165
6166 From Fernando Nasser:
6167 * remote.c (remote_async_open_1): Re-throw the exception when the
6168 connection fails.
6169 (remote_cisco_open): Ditto.
6170 (remote_open_1): Ditto.
6171
6172 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6173
6174 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6175 (remote_start_remote): Add uiout parameter. Pass through to
6176 remote_start_remote_dummy.
6177 (remote_open_1): Use catch_exception instead of catch_errors.
6178 (remote_async_open_1): Ditto.
6179 (remote_cisco_open): Ditto.
6180
6181 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6182
6183 * remote.c (remote_start_remote): Replace PTR with void pointer.
6184 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6185 static.
6186
6187 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6188
6189 * gdb_indent.sh: Allow the script to be run in the sim directory.
6190
6191 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6192
6193 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6194 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6195
6196 * corelow.c (core_open): Only call set_gdbarch_from_file if
6197 exec_bfd is NULL.
6198
6199 2002-05-17 Andrey Volkov <avolkov@transas.com>
6200
6201 * h8300-tdep.c: Add support of EXR register
6202 * config/h8300/tm-h8300.h: Ditto.
6203
6204 2002-05-17 Andrey Volkov <avolkov@transas.com>
6205
6206 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6207
6208 2002-05-17 Andrey Volkov <avolkov@transas.com>
6209
6210 * h8300-tdep.c: Change literal regnums to REGNO.
6211
6212 2002-05-17 Jim Blandy <jimb@redhat.com>
6213
6214 * NEWS: Note addition of macro support.
6215
6216 Expand preprocessor macros in C expressions.
6217 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6218 (scan_macro_expansion, scanning_macro_expansion,
6219 finished_macro_expansion): New function declarations.
6220 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6221 variable declarations.
6222 * parser-defs.h (expression_context_pc): New declaration.
6223 * parse.c (expression_context_pc): New variable.
6224 (parse_exp_1): Set expression_context_pc, as well as
6225 expression_context_block.
6226 * c-exp.y (yylex): If we're not already reading the result of a
6227 macro expansion, try to macro-expand the next token. When we're
6228 done scanning a macro expansion, switch back to the mainline text.
6229 Commas and `if's in a macro's expansion don't terminate the input.
6230 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6231 (macro_original_text, macro_expanded_text,
6232 expression_macro_lookup_func, expression_macro_lookup_baton): New
6233 variables.
6234 (scan_macro_expansion, scanning_macro_expansion,
6235 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6236 c_preprocess_and_parse): New functions.
6237 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6238 c_preprocess_and_parse, instead of c_parse.
6239 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6240 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6241
6242 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6243
6244 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6245 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6246 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6247
6248 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6249
6250 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6251
6252 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6253
6254 * Makefile.in (sh_tdep_h): Define and use.
6255 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6256 register enum): Move to...
6257 * * sh-tdep.h: ...here.
6258 * sh-tdep.c: Include sh-tdep.h.
6259 * sh3-rom.c: Likewise.
6260 * shnbsd-tdep.c: Likewise.
6261
6262 2002-05-16 Michael Snyder <msnyder@redhat.com>
6263
6264 * arm-tdep.c: Spelling fix in comment.
6265
6266 2002-05-16 Jim Blandy <jimb@redhat.com>
6267
6268 Add commands for manually expanding macros and showing their
6269 definitions.
6270 * macrocmd.c, macroscope.c, macroscope.h: New files.
6271 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6272 (macroscope_h): New variable.
6273 (HFILES_NO_SRCDIR): Add macroscope.h.
6274 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6275 (macroscope.o, macrocmd.o): New rules.
6276
6277 Teach the Dwarf 2 reader to read macro information.
6278 * dwarf2read.c: #include "macrotab.h".
6279 (dwarf_macinfo_buffer): New variable.
6280 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6281 dwarf_macinfo_size.
6282 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6283 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6284 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6285 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6286 dwarf2_macro_spaces_in_definition): New complaints.
6287 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6288 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6289 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6290 the partial symbol table.
6291 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6292 from what's recorded in the partial symbol table.
6293 (read_file_scope): If the compilation unit has a
6294 `DW_AT_macro_info' attribute, read its macro information.
6295 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6296
6297 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6298
6299 Fix PR gdb/546
6300 * ser-tcp.c: Don't include <netinet/udp.h>.
6301
6302 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6303
6304 * MAINTAINERS: Update my email address.
6305
6306 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6307
6308 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6309 include file of the same name.
6310
6311 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6312
6313 * configure.tgt: Mark v850 as multi-arched.
6314 * config/v850/tm-v850.h: Remove file.
6315 * config/v850/v850.mt: Eliminate TM_FILE.
6316
6317 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6318
6319 * v850-tdep.c: Full multi-arch.
6320 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6321 Define GDB_MULTI_ARCH to 2.
6322
6323 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6324
6325 * p-exp.y (current_type): New static variable.
6326 Carries the type of the expression at the position that is parsed.
6327 (push_current_type, pop_current_type): Two new functions. Used
6328 to store/restore current_type in expression on specific tokens.
6329 (search_field): New static variable. Set to one after parsing a point
6330 as at that point only a FIELDNAME token should be searched.
6331 (FIELDNAME): New token. After a point only a token belonging to
6332 current_type type definition is allowed.
6333 (all over token rules): reset and change current_type according
6334 to rules.
6335 (exp '[' rule): insert implicit array index field if
6336 exp is a pascal string type.
6337
6338 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6339
6340 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6341 frame info. Use frame_info's saved_regs instead of matching member
6342 in extra_frame_info throughout.
6343 (v850_frame_init_saved_regs): New function.
6344 (v850_init_extra_frame_info): Move most functionality into
6345 v850_frame_init_saved_regs().
6346 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6347 (v850_frame_find_saved_regs): Remove declaration.
6348 (FRAME_FIND_SAVED_REGS): Remove definition.
6349 (v850_frame_init_saved_regs): Add declaration.
6350 (FRAME_INIT_SAVED_REGS): Add definition.
6351
6352 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6353
6354 * v850-tdep.c: Begin multi-arch'ing v850.
6355 (v850_target_architecture_hook): Remove function.
6356 (v850_gdbarch_init): New function. Add code previously in
6357 v850_target_architecture_hook().
6358 (_initialize_v850_tdep): Don't set target_architecture_hook.
6359 Call register_gdbarch_init() instead.
6360
6361 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6362
6363 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6364 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6365 (fixup_class_method_type): Likewise.
6366
6367 2002-05-15 Jim Blandy <jimb@redhat.com>
6368
6369 Add macro structures to GDB's symbol tables. Nobody puts anything
6370 in them yet.
6371 * symtab.h (struct symtab): New member: `macro_table'.
6372 * buildsym.h (pending_macros): New global variable.
6373 * buildsym.c: #include "macrotab.h".
6374 (buildsym_init): Initialize `pending_macros'.
6375 (end_symtab): If we found macro information while reading a CU's
6376 debugging info, do build a symtab structure for it. Make the
6377 symtab point to the macro information, and clear the
6378 `pending_macros' pointer which held it while we were reading the
6379 debug info.
6380 (really_free_pendings): Free any pending macro table.
6381 * objfiles.h (struct objfile): New member: `macro_cache'.
6382 * objfiles.c (allocate_objfile): Set allocate and free functions
6383 for the macro cache's objstack.
6384 (free_objfile): Empty the macro cache's obstack.
6385 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6386 set new allocate and free functions for it.
6387 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6388 free functions for the macro cache's objstack. (Why is this
6389 function building its own objfile?)
6390 * symmisc.c (print_objfile_statistics): Print statistics on the
6391 macro bcache.
6392 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6393
6394 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6395
6396 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6397 (REGISTER_U_ADDR): Delete definition.
6398 (arm_register_u_addr): Delete declaration.
6399
6400 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6401
6402 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6403 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6404
6405 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6406
6407 * regcache.c (register_valid): Revise comments refering to "Not
6408 available" and "unavailable".
6409 * frame.c (frame_register_read): Ditto.
6410 * findvar.c (value_of_register): Ditto.
6411
6412 2002-05-15 Andrew Cagney <cagney@redhat.com>
6413
6414 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6415 (remote-sim.o): Update dependencies.
6416 (d10v-tdep.o): Specify dependencies.
6417 (sim_d10v_h): Define.
6418
6419 2002-05-14 Jim Blandy <jimb@redhat.com>
6420
6421 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6422 * macrotab.c (macro_lookup_inclusion, find_definition,
6423 new_macro_table): Same.
6424
6425 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6426 not `! strcmp ()'. This is a dubious improvement.
6427 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6428
6429 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6430 although it's not necessary, to avoid a warning.
6431
6432 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6433
6434 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6435 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6436 TYPE_INSTANCE_FLAGS.
6437 (struct main_type): New.
6438 (struct type): Move most members to struct main_type. Change
6439 cv_type and as_type to new type_chain member. Add instance_flags.
6440 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6441 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6442 (finish_cv_type): Remove prototype.
6443 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6444 Set TYPE_CHAIN.
6445 (alloc_type_instance): New function.
6446 (smash_type): New function.
6447 (make_pointer_type, make_reference_type, make_function_type)
6448 (smash_to_member_type, smash_to_method_type): Call smash_type.
6449 (make_qualified_type): New function.
6450 (make_type_with_address_space): Call make_qualified_type.
6451 (make_cv_type): Likewise.
6452 (finish_cv_type): Remove unnecessary function.
6453 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6454 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6455 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6456 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6457 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6458 * hpread.c (hpread_read_struct_type): Likewise.
6459 * stabsread.c (read_struct_type): Likewise.
6460
6461 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6462
6463 * configure.tgt: Add a catch all sh* target, for cases like
6464 sh[2,3,4]-elf and sh-hms.
6465
6466 2002-05-14 Keith Seitz <keiths@redhat.com>
6467
6468 * event-loop.c (create_file_handler): Don't do anything but
6469 update data when we are given a fd which we are already
6470 monitoring.
6471
6472 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6473
6474 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6475 (update_context): Use __func__ in warnings.
6476
6477 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6478
6479 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6480 and tcp_close to net_open and net_close.
6481 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6482 using UDP if requested. Don't try to disable Nagle on UDP
6483 sockets.
6484 * remote.c (remote_serial_open): New function. Warn about UDP.
6485 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6486
6487 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6488
6489 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6490
6491 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6492
6493 * configure.tgt: Remove sh-hms target.
6494 * MAINTAINERS: Don't list sh-hms as a separate target.
6495
6496 2002-05-13 Jim Blandy <jimb@redhat.com>
6497
6498 Add first preprocessor macro-expansion files.
6499 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6500 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6501 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6502 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6503 (COMMON_OBS): Add macrotab.o, macroexp.o.
6504 (macroexp.o, macrotab.o): New rules.
6505
6506 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6507
6508 * config/m88k/tm-m88k.h: Update copyright.
6509 (m88k_target_write_pc): Declare
6510 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6511 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6512 (SHIFT_INST_REGS): Update definition.
6513 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6514 using old definition of TARGET_WRITE_PC.
6515 * regcache.c (generic_target_write_pc): Delete code handling
6516 NNPC_REGNUM.
6517 * gdbarch.sh (NNPC_REGNUM): Delete.
6518 * gdbarch.h, gdbarch.c: Regenerate.
6519
6520 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6521
6522 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6523 builtin reg number.
6524
6525 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6526
6527 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6528 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6529 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6530 access macros.
6531 * c-typeprint.c (cp_type_print_method_args): Likewise.
6532 (c_type_print_args): Likewise.
6533 * d10v-tdep.c (d10v_push_arguments): Likewise.
6534 (d10v_extract_return_value): Likewise.
6535 * expprint.c (print_subexp): Likewise.
6536 * gdbtypes.c (lookup_primitive_typename): Likewise.
6537 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6538 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6539 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6540 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6541 (TYPE_VECTOR): Likewise.
6542 * hpread.c (hpread_read_struct_type)
6543 (fix_static_member_physnames, fixup_class_method_type)
6544 (hpread_type_lookup): Likewise.
6545 * mdebugread.c (parse_symbol, parse_type): Likewise.
6546 * p-lang.c (is_pascal_string_type): Likewise.
6547 * valops.c (hand_function_call): Likewise.
6548 * x86-64-tdep.c (classify_argument): Likewise.
6549
6550 * hpread.c (hpread_read_function_type)
6551 (hpread_read_doc_function_type): Call replace_type.
6552 * dstread.c (create_new_type): Delete.
6553 (decode_dst_structure, process_dst_function): Call alloc_type.
6554 Use type access macros.
6555
6556 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6557
6558 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6559 the're not supported by the current architecture.
6560 (i387_fill_fxsave): Likewise.
6561
6562 2002-05-12 Fred Fish <fnf@redhat.com>
6563
6564 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6565 sect_index_xxx members to index the first slot in section_offsets
6566 if all of the section_offsets are zero.
6567
6568 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6569
6570 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6571 checked in with last change.
6572
6573 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6574
6575 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6576 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6577 config.sub.
6578
6579 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6580
6581 * Makefile.in: Update dependencies.
6582
6583 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6584
6585 * language.c (local_hex_string_custom): Simplify. Do not depend
6586 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6587
6588 * memattr.c (mem_info_command): Replace calls to
6589 longest_local_hex_string and longest_local_hex_string_custom.
6590 * buildsym.c (make_blockvector): Ditto.
6591 * solib.c (info_sharedlibrary_command): Ditto.
6592 * tracepoint.c (tracepoints_info): Ditto.
6593 * symtab.c (print_msymbol_info): Ditto.
6594
6595 * language.c (local_hex_string): Delete.
6596 (local_hex_string_custom): Delete.
6597 (longest_local_hex_string): Rename to local_hex_string.
6598 (longest_local_hex_string_custom): Rename to
6599 local_hex_string_custom.
6600 * language.h (local_hex_string): Change parameter type to LONGEST.
6601 (local_hex_string_custom): Ditto.
6602 (longest_local_hex_string): Delete declaration.
6603 (longest_local_hex_string_custom): Ditto.
6604
6605 * solib.c: Update copyright.
6606 * memattr.c: Update copyright.
6607
6608 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6609
6610 * arch-utils.h (legacy_register_to_value): Declare.
6611 (legacy_value_to_register): Declare.
6612 (legacy_convert_register_p): Declare.
6613 * arch-utils.c (legacy_register_to_value): New function.
6614 (legacy_value_to_register): New function.
6615 (legacy_convert_register_p): New function.
6616
6617 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6618 (VALUE_TO_REGISTER): Define.
6619 (CONVERT_REGISTER_P): Define.
6620 * gdbarch.h, gdbarch.c: Regenerate.
6621
6622 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6623 VALUE_TO_REGISTER.
6624 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6625 CONVERT_REGISTER_P.
6626
6627 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6628 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6629
6630 * Makefile.in: Update dependencies for valops.c.
6631 * valops.c: Include "gdb_assert.h".
6632 (typecmp): Skip THIS parameter to methods.
6633 (find_method_list): Remove static_memfuncp argument,
6634 update callers. Check for stub methods.
6635 (find_value_oload_method_list): Don't set *static_memfuncp.
6636 (find_overload_match): Don't check for stub methods. Assert
6637 that methods are not stubbed. Handle static methods.
6638 (value_find_oload_method_list): Remove static_memfuncp argument.
6639 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6640 to the argument list for static stub methods.
6641 * value.h (value_find_oload_method_list): Update prototype.
6642
6643 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6644
6645 * arch-utils.h (generic_register_size): Declare.
6646 (generic_register_raw_size, generic_register_virtual_size): Delete
6647 declarations.
6648 * arch-utils.c (generic_register_raw_size): Delete.
6649 (generic_register_size): New function.
6650 (generic_register_virtual_size): Delete.
6651
6652 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6653 default generic_register_size.
6654 * gdbarch.h, gdbarch.c: Re-generate.
6655
6656 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6657 register_virtual_size.
6658 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6659 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6660
6661 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6662
6663 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6664 * gdbarch.h, gdbarch.c: Regenerate.
6665 * gnu-v3-abi.c: Update copyright.
6666 (vtable_address_point_offset): Update.
6667 (gnuv3_rtti_type): Update.
6668 (gnuv3_baseclass_offset): Update.
6669 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6670 (init_fetch_link_map_offsets): Update.
6671 * remote.c (get_remote_state): Update.
6672
6673 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6674
6675 * TODO: Remove value_headof/value_from_vtable_info comment.
6676 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6677 * values.c (value_headof, value_from_vtable_info): Delete.
6678 * value.h (value_from_vtable_info): Delete prototype.
6679
6680 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6681
6682 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6683 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6684 $(gdb_regex_h).
6685 (gdb_assert_h): Define.
6686 (gdb_wait_h): Define.
6687 (gdb_regex_h): Define.
6688
6689 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6690
6691 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6692 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6693
6694 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6695
6696 * nbsd-tdep.c: Fix comment.
6697
6698 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6699
6700 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6701 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6702 (nbsd-tdep.o): New dependency list.
6703 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6704 nbsd-tdep.h.
6705 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6706 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6707 * nbsd-tdep.c: New file.
6708 * nbsd-tdep.h: New file.
6709 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6710 nbsd-tdep.h.
6711 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6712 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6713 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6714 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6715
6716 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6717
6718 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6719 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6720 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6721 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6722 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6723 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6724
6725 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6726
6727 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6728 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6729 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6730 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6731 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6732 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6733 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6734
6735 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6736
6737 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6738 fetch_elfcore_registers to...
6739 * i386nbsd-tdep.c: ...here.
6740 (i386nbsd_use_struct_convention): Rename to...
6741 (i386nbsd_aout_use_struct_convention): ...this.
6742 (i386nbsd_supply_reg): New function.
6743 (i386nbsd_fill_reg): New function.
6744 (fetch_core_registers): Use i386nbsd_supply_reg.
6745 (fetch_elfcore_registers): Likewise.
6746 (_initialize_i386nbsd_tdep): New function.
6747 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6748 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6749 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6750 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6751 (i386nbsd_aout_use_struct_convention): ...this.
6752
6753 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6754
6755 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6756 (store_inferior_registers): Use shnbsd_fill_reg.
6757 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6758 sh_nbsd_supply_register): Collapse into...
6759 (shnbsd_supply_reg): ...this.
6760 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6761 (shnbsd_fill_reg): ...this.
6762 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6763 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6764 (fetch_core_registers): Use shnbsd_supply_reg.
6765 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6766 (sh_nbsd_core_fns): Rename to...
6767 (shnbsd_core_fns): ...this.
6768 (sh_nbsd_elfcore_fns): Rename to...
6769 (shnbsd_elfcore_fns): ...this.
6770 (sh_nbsd_init_abi): Rename to...
6771 (shnbsd_init_abi): ...this.
6772 (_initialize_sh_nbsd_tdep): Rename to...
6773 (_initialize_shnbsd_tdep): ...this.
6774 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6775 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6776 sh_nbsd_fill_register): Remove prototypes.
6777 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6778
6779 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6780
6781 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6782 (i387-nat.o): Delete dependency list.
6783 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6784 (x86-64-linux-nat.o): Likewise.
6785 * i387-nat.c: Delete file, moving contents to...
6786 * i387-tdep.c: ...here.
6787 * i387-nat.h: Rename...
6788 * i387-tdep.h: ...to this.
6789 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6790 * i386-linux-nat.c: Likewise.
6791 * i386bsd-nat.c: Likewise.
6792 * i386gnu-nat.c: Likewise.
6793 * i386nbsd-nat.c: Likewise.
6794 * i386v4-nat.c: Likewise.
6795 * x86-64-linux-nat.c: Likewise.
6796 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6797 * config/i386/go32.mh (NATDEPFILES): Likewise.
6798 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6799 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6800 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6801 * config/i386/linux.mh (NATDEPFILES): Likewise.
6802 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6803 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6804 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6805 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6806
6807 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6808
6809 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6810 (alphanbsd-nat.o): Remove dependency list.
6811 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6812 * alphanbsd-nat.c: Delete. Contents moved to...
6813 * alphanbsd-tdep.c: ...here.
6814 (_initialize_alphanbsd_tdep): Register core functions.
6815 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6816
6817 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6818
6819 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6820 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6821 (alphanbsd-nat.o): Likewise.
6822 (alphabsd-tdep.o): New dependency list.
6823 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6824 (fill_gregset): Use alphabsd_fill_reg.
6825 (supply_fpregset): Use alphabsd_supply_fpreg.
6826 (fill_fpregset): Use alphabsd_fill_fpreg.
6827 (fetch_inferior_registers): Use struct reg and struct fpreg
6828 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6829 and alphabsd_supply_fpreg.
6830 (store_inferior_registers): Use struct reg and struct fpreg
6831 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6832 and alphabsd_fill_fpreg.
6833 * alphabsd-tdep.c: New file.
6834 * alphabsd-tdep.h: New file.
6835 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6836 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6837 alphabsd_supply_fpreg.
6838 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6839 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6840
6841 2002-05-11 Eric Christopher <echristo@redhat.com>
6842
6843 * mips-tdep.c (mips_double_register_type): Fix thinko.
6844 (mips_single_register_type): Ditto.
6845 * MAINTAINERS: Add self.
6846
6847 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6848
6849 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6850 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6851 right thing on architectures with different endianness and/or
6852 integer sizes.
6853
6854 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6855
6856 From Christian Limpach <chris@Pin.LU>
6857 * configure.in: Change sed expression which comments out
6858 NATDEPFILES to also comment out continuation lines.
6859 * configure: Regenerate.
6860
6861 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6862
6863 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6864 big patch.
6865
6866 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6867
6868 * sh-tdep.c: Include correct file.
6869
6870 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6871
6872 New support for sh64-elf (sh5) target.
6873
6874 * configure.tgt: For sh64-elf target, default to sh-elf.
6875
6876 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6877 (struct gdbarch_tdep): Add new fields for new registers and ABI
6878 info.
6879
6880 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6881 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6882 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6883 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6884 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6885 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6886 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6887 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6888 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6889 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6890 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6891 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6892 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6893 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6894 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6895 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6896 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6897 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6898 sign_extend, sh64_nofp_frame_init_saved_regs,
6899 sh64_init_extra_frame_info, sh64_get_saved_register,
6900 sh64_extract_struct_value_address, sh64_pop_frame,
6901 sh64_push_arguments, sh64_extract_return_value,
6902 sh64_store_return_value, sh64_show_media_regs,
6903 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6904 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6905 sh_sh64_register_virtual_type,
6906 sh_sh64_register_convert_to_virtual,
6907 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6908 sh64_register_read, sh64_pseudo_register_write,
6909 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6910 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6911 sh64_do_pseudo_register, sh_compact_do_registers_info,
6912 sh64_do_registers_info, sh_gdbarch_init): New functions.
6913
6914 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6915
6916 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6917
6918 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6919
6920 * linespec.c (decode_line_1): Check for a double quote after
6921 a filename correctly.
6922
6923 2002-05-10 Jim Blandy <jimb@redhat.com>
6924
6925 Properly track the size of the current objfile's .debug_line section.
6926 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6927 (DWARF_LINE_SIZE): New macro.
6928 (dwarf2_build_psymtabs_hard): Record the line section's size in
6929 the partial symbol table.
6930 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6931 symbol table.
6932
6933 2002-05-10 Petr Sorfa <petrs@caldera.com>
6934
6935 * ia64-tdep.c: Handle breakpoints on L instruction type
6936 in MLX instruction bundle by moving the breakpoint to
6937 the third slot (X instruction type) as L holds only data.
6938
6939 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6940
6941 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6942 (process_one_symbol): Complain about discarding local symbols
6943 due to a misplaced N_LBRAC entry.
6944
6945 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6946
6947 From Daniel Berlin <dan@cgsoftware.com>
6948 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6949 decrease the depth we are at, in the case of templates.
6950
6951 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6952
6953 * mips-tdep.c (mips_float_register_type): New function.
6954 (mips_double_register_type): New function.
6955 (mips_print_register): Use them.
6956 (do_fp_register_row): Likewise.
6957
6958 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6959
6960 * signals/signals.c (signals): Remove conditional compilation around
6961 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6962 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6963
6964 2002-05-09 Michael Snyder <msnyder@redhat.com>
6965
6966 * remote-rdp.c (remote_rdp_can_run): Remove.
6967
6968 2002-05-09 Tom Tromey <tromey@redhat.com>
6969
6970 * jv-valprint.c (java_val_print): Handle `char' as a special case
6971 of TYPE_CODE_INT.
6972
6973 2002-05-09 Michael Snyder <msnyder@redhat.com>
6974
6975 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6976 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6977 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6978 str r(0123),[sp,#nn].
6979 (arm_skip_prologue): Ditto. Also make disassembly
6980 order-independent by placing it in a loop.
6981
6982 2002-05-06 Michael Snyder <msnyder@redhat.com>
6983
6984 * stabsread.c (read_type): Add recognition for new attribute:
6985 "@V;" means that an array type is actually a vector.
6986 This is analogous to the vector flag that's been added to dwarf2.
6987
6988 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6989
6990 * i386-tdep.h (i386_abi): New enum.
6991 (struct gdbarch_tdep): Replace os_ident member with abi.
6992 (i386_gdbarch_register_os_abi): New prototype.
6993 * i386-tdep.c (i386_abi_names): New array.
6994 (process_note_abi_tag_sections): Removed.
6995 (process_note_sections): New function.
6996 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6997 (struct i386_abi_handler): New struct.
6998 (i386_abi_handler_list): New variable.
6999 (i386_gdbarch_register_os_abi): New function.
7000 (i386_gdbarch_init): Adapt for the changes given above.
7001
7002 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7003
7004 * gregset.h: Say "GNU/Linux".
7005
7006 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7007
7008 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7009 (build_gdbtypes): Build builtin_type_v2_float.
7010 (_initialize_gdbtypes): Register new builtin type.
7011
7012 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7013
7014 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7015 (clear_gdbarch_swap): New function.
7016 (initialize_non_multiarch): Call.
7017 (gdbarch_update_p): Before calling init(), swap out and clear the
7018 existing architecture.
7019 * gdbarch.c: Regenerate.
7020
7021 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7022
7023 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7024 alphanbsd-tdep.c.
7025
7026 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7027
7028 * sh-nbsd-nat.c: Rename to...
7029 * shnbsd-nat.c: ...this.
7030 * sh-nbsd-tdep.c: Rename to...
7031 * shnbsd-tdep.c: ...this.
7032 * sh-nbsd-tdep.h: Rename to...
7033 * shnbsd-tdep.h: ...this.
7034 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7035 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7036
7037 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7038
7039 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7040 concatenation for command help messages.
7041
7042 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7043
7044 * NEWS: Note new sh*-*-netbsdelf* configuration.
7045 * configure.host: Set gdb_host_cpu to sh for all sh*.
7046 (sh*-*-netbsdelf*): New host.
7047 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7048 (sh*-*-netbsdelf*): New target.
7049 * sh-nbsd-nat.c: New file.
7050 * sh-nbsd-tdep.c: New file.
7051 * sh-nbsd-tdep.h: New file.
7052 * config/sh/nbsd.mh: New file.
7053 * config/sh/nbsd.mt: New file.
7054 * config/sh/nm-nbsd.h: New file.
7055 * config/sh/tm-nbsd.h: New file.
7056
7057 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7058
7059 * sh-tdep.c (sh_osabi_names): Declare.
7060 (process_note_abi_tag_sections): New function.
7061 (get_elfosabi): Ditto.
7062 (sh_gdbarch_register_os_abi): Ditto.
7063 (sh_dump_tdep): Ditto.
7064 _initialize_sh_tdep): Use gdbarch_register to register
7065 sh_gdbarch_init and sh_dump_tdep.
7066 * config/sh/tm-sh.h (sh_osabi): Declare.
7067 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7068
7069 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7070
7071 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7072 (thumb_scan_prologue): Ditto.
7073 (arm_find_callers_reg): Ditto.
7074 (arm_frame_chain): Ditto.
7075 (arm_init_extra_frame_info): Ditto.
7076 (arm_frame_saved_pc): Ditto.
7077 (arm_pop_frame): Ditto.
7078 (arm_push_return_address): New function.
7079 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7080 call_dummy_location, call_dummy_breakpoint_offset_p,
7081 call_dummy_breakpoint_offset, call_dummy_p,
7082 call_dummy_stack_adjust_p, call_dummy_words,
7083 sizeof_call_dummy_words, call_dummy_start_offset,
7084 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7085 call_dummy_address, push_return_address and push_dummy_frame for
7086 generic dummy frames.
7087
7088 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7089
7090 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7091 size computation for alloca.
7092 (sh_fp_frame_init_saved_regs): Likewise.
7093
7094 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7095
7096 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7097 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7098 * arm-tdep.c (arm_store_return_value): Use them.
7099 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7100 * remote-rdp.c (remote_rdp_fetch_register): Use
7101 ARM_MAX_REGISTER_RAW_SIZE.
7102 (remote_rdp_store_register): Likewise.
7103
7104 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7105
7106 * dwarf2cfi.c: Code cleanup, removed unused variables,
7107 added default labels to switch {} statements.
7108 * x86-64-tdep.c: Ditto.
7109 * x86-64-linux-nat.c: Ditto.
7110
7111 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7112
7113 * solib.h: Protect against multiple inclusion.
7114
7115 2002-05-06 Jim Blandy <jimb@redhat.com>
7116
7117 Add first preprocessor macro-expansion files.
7118 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7119 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7120 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7121 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7122 (COMMON_OBS): Add macrotab.o, macroexp.o.
7123 (macroexp.o, macrotab.o): New rules.
7124
7125 Separate the job of reading the line number info statement program
7126 header (...expialidocious) out into its own function.
7127 * dwarf2read.c (struct line_head, struct filenames, struct
7128 directories): Replace with...
7129 (struct line_header): New structure, containing the full
7130 contents of the statement program header, including the
7131 include directory and file name tables.
7132 (read_file_scope): If we have line number info, instead of just
7133 calling dwarf_decode_lines to do all the work, call
7134 dwarf_decode_line_header first to get a `struct line_header'
7135 containing the data in the statement program header, and then
7136 pass that to dwarf_decode_lines, which will pick up where that
7137 left off. Be sure to clean up the `struct line_header' object.
7138 (dwarf_decode_line_header, free_line_header, add_include_dir,
7139 add_file_name): New functions.
7140 (dwarf_decode_lines): Move all the code to read the statement
7141 program header into dwarf_decode_line_header. Take the line
7142 header it built as the first argument, instead of the offset to
7143 the compilation unit's line number info. Use the new `struct
7144 line_header' type instead of the old structures. No need to do
7145 cleanups here now, since we don't allocate anything.
7146 (dwarf2_statement_list_fits_in_line_number_section,
7147 dwarf2_line_header_too_long): New complaints.
7148
7149 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7150
7151 * gdbtypes.c (init_vector_type): New function.
7152 (build_builtin_type_vec128): Simplify the representation of SIMD
7153 registers.
7154 (build_gdbtypes): Initialize new builtin vector types.
7155 (_initialize_gdbtypes): Register new vector types with gdbarch.
7156 (builtin_type_v4_float, builtin_type_v4_int32,
7157 builtin_type_v8_int16, builtin_type_v16_int8,
7158 builtin_type_v2_int32, builtin_type_v4_int16,
7159 builtin_type_v8_int8): New (renamed) SIMD types.
7160
7161 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7162
7163 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7164 (i387_fill_fxsave): Likewise.
7165
7166 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7167
7168 * alpha-tdep.c (alpha_extract_return_value): Don't use
7169 non-constant array size in prototype.
7170
7171 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7172
7173 From Brian Taylor <briant at model dot com>:
7174 * ui-out.c (ui_out_field_core_addr): Use the function
7175 longest_local_hex_string_custom'to format addresses > 32 bits
7176 wide.
7177
7178 * ui-out.c (ui_out_field_core_addr): Update comment.
7179
7180 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7181
7182 * stack.c (select_and_print_frame): Make static. Delete the
7183 parameter `level'.
7184 (func_command): Update call.
7185 (select_frame_command): Delete code computing the frame level.
7186 * frame.h (select_and_print_frame): Delete declaration.
7187
7188 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7189
7190 * sparc-tdep.c (sparc_get_saved_register): Comment why
7191 get_prev_frame call is safe.
7192
7193 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7194
7195 * frame.h (select_frame): Delete level parameter.
7196 * stack.c (select_frame): Update. Use frame_relative_level to
7197 obtain the frame's level.
7198 (select_and_print_frame): Update call.
7199 (select_frame_command): Ditto.
7200 (up_silently_base): Ditto.
7201 (down_silently_base): Ditto.
7202 * ocd.c (ocd_start_remote): Ditto.
7203 * remote-rdp.c (remote_rdp_open): Ditto.
7204 * remote-mips.c (mips_initialize): Ditto.
7205 (common_open): Ditto.
7206 * remote-e7000.c (e7000_start_remote): Ditto.
7207 * m3-nat.c (select_thread): Ditto.
7208 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7209 (child_get_current_exception_event): Ditto.
7210 * varobj.c (varobj_create): Ditto.
7211 (varobj_update): Ditto.
7212 (c_value_of_root): Ditto.
7213 * tracepoint.c (finish_tfind_command): Ditto.
7214 * corelow.c (core_open): Ditto.
7215 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7216 * thread.c (info_threads_command): Ditto.
7217 (switch_to_thread): Ditto.
7218 * infrun.c (normal_stop): Ditto.
7219 (restore_selected_frame): Ditto.
7220 (restore_inferior_status): Ditto.
7221 * breakpoint.c (insert_breakpoints): Ditto.
7222 (watchpoint_check): Ditto.
7223 (bpstat_stop_status): Ditto.
7224 (do_enable_breakpoint): Ditto.
7225 * blockframe.c (flush_cached_frames): Ditto.
7226 (reinit_frame_cache): Ditto.
7227
7228 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7229
7230 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7231 maintainer.
7232
7233 2002-05-04 Jim Blandy <jimb@redhat.com>
7234
7235 * gdbtypes.c (replace_type): Doc fix.
7236
7237 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7238
7239 * valprint.c (strcat_longest): Delete commented out function.
7240 Update copyright.
7241
7242 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7243
7244 * MAINTAINERS: Mark a29k as deleted.
7245 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7246 Move new configurations to the top.
7247 * configure.tgt: Remove a29k.
7248 * config/a29k/tm-vx29k.h: Delete.
7249 * config/a29k/vx29k.mt: Delete.
7250 * config/a29k/tm-a29k.h: Delete.
7251 * config/a29k/a29k-udi.mt: Delete.
7252 * config/a29k/a29k.mt: Delete.
7253 * a29k-tdep.c: Delete.
7254 * remote-udi.c: Delete.
7255 * remote-mm.c: Delete.
7256 * remote-eb.c: Delete.
7257 * remote-adapt.c: Delete.
7258 * Makefile.in: Remove obsolete code.
7259 * config/s390/s390x.mt: Ditto.
7260 * config/s390/s390.mt: Ditto.
7261 * config/sparc/sparclynx.mh: Ditto.
7262 * config/sparc/linux.mh: Ditto.
7263 * config/pa/hppaosf.mh: Ditto.
7264 * config/pa/hppabsd.mh: Ditto.
7265 * config/ns32k/nbsd.mt: Ditto.
7266 * config/mips/vr5000.mt: Ditto.
7267 * config/m68k/sun3os4.mh: Ditto.
7268 * config/m68k/nbsd.mt: Ditto.
7269 * config/m68k/m68klynx.mh: Ditto.
7270 * config/m32r/m32r.mt: Ditto.
7271 * config/i386/x86-64linux.mt: Ditto.
7272 * config/i386/nbsdelf.mt: Ditto.
7273 * config/i386/nbsd.mt: Ditto.
7274 * config/i386/i386lynx.mh: Ditto.
7275
7276 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7277
7278 * target.c (debug_print_register): New function. Handle oversize
7279 registers.
7280 (debug_to_fetch_registers): Call.
7281 (debug_to_store_registers): Call.
7282
7283 2002-05-03 Jim Blandy <jimb@redhat.com>
7284
7285 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7286 (read_type): Doc fix.
7287 * gdbtypes.c (replace_type): Doc fix.
7288
7289 * stabsread.c (multiply_defined_struct): New complaint.
7290 (read_struct_type): If the type we were passed isn't empty, or
7291 incomplete, don't read the new struct type into it; complain,
7292 and return the original type unchanged. Take a new `type_code'
7293 argument, which is the type code for the new type.
7294 (read_type): Rather than storing the type's type code here, pass
7295 it as an argument to read_struct_type, and let that take care of
7296 storing it. That way, we don't overwrite the original type code,
7297 so read_struct_type can use it to decide whether we're overwriting
7298 something we shouldn't.
7299 (complain_about_struct_wipeout): New function.
7300
7301 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7302
7303 * gdbarch.sh: Assert that gdbarch is non-NULL.
7304 * gdbarch.c: Regenerate.
7305
7306 2002-05-03 Jason Merrill <jason@redhat.com>
7307
7308 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7309 and return NULL.
7310
7311 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7312
7313 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7314 (x86_64_dwarf2gdb_regno_map_length),
7315 (x86_64_dwarf2_reg_to_regnum): Added.
7316 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7317 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7318 (_initialize_x86_64_tdep): Synced with the change above.
7319 (x86_64_skip_prologue): Reformulated message.
7320
7321 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7322
7323 * f-exp.y: Also use new prev_lexptr variable
7324 to improve error reporting. Based on Michael Snyder
7325 2002-04-24 dated patch to c-exp.y.
7326 * jv-exp.y: Likewise.
7327 * m2-exp.y: Likewise.
7328
7329 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7330
7331 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7332 we are dealing with vectors.
7333
7334 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7335
7336 * config/m68k/tm-nbsd.h: Obvious fix,
7337 correct machine name.
7338
7339 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7340
7341 * p-typeprint.c (pascal_type_print_base): Add support
7342 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7343
7344 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7345
7346 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7347 for fondamental pascal 'char' type.
7348
7349 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7350
7351 * p-lang.h (is_pascal_string_type): Declaration changed,
7352 new sixth argument of type char ** added.
7353 * p-lang.c (is_pascal_string_type): Implementation
7354 changed. Args length_pos, length_size, string_pos, char_size
7355 can now be NULL. New argument arrayname set to the field
7356 name of the char array. Return value set to char array
7357 field index plus one.
7358 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7359 is_pascal_string_type function.
7360
7361 2002-05-02 Andrew Cagney <cagney@redhat.com>
7362
7363 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7364 <cagney@redhat.com> change.
7365 * gdbarch.c: Regenerate.
7366
7367 2002-05-02 Andrew Cagney <cagney@redhat.com>
7368
7369 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7370 before probing for a new one. Detect errorenous gdbarch_init
7371 functions.
7372 * gdbarch.c: Regenerate.
7373
7374 2002-05-01 Andrew Cagney <cagney@redhat.com>
7375
7376 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7377 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7378 * config/v850/tm-v850.h: Ditto. Update copyright.
7379
7380 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7381
7382 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7383 current_gdbarch.
7384
7385 2002-04-30 Michael Snyder <msnyder@redhat.com>
7386
7387 * arm-tdep.c: Whitespace clean-ups.
7388 (arm_skip_prologue): Fix thinko; two lines
7389 should have been removed as part of 4/24 change.
7390
7391 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7392
7393 * rs6000-tdep.c: Added comment describing how fpscr register
7394 numbers were chosen.
7395
7396 2002-04-30 Michael Snyder <msnyder@redhat.com>
7397
7398 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7399
7400 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7401
7402 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7403 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7404 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7405
7406 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7407
7408 From Louis Hamilton <hamilton@redhat.com>:
7409 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7410 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7411 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7412 not bfd-private xcoff data, to determine wordsize.
7413 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7414
7415 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7416
7417 GDB 5.2 released from 5.2 branch.
7418
7419 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7420
7421 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7422 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7423 (x86_64_register_info_table): Added comments with register numbers.
7424
7425 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7426
7427 * rs6000-tdep.c (rs6000_extract_return_value,
7428 rs6000_store_return_value): Handle returning vectors.
7429 (rs6000_gdbarch_init): Use
7430 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7431 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7432 New function.
7433 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7434 vectors.
7435 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7436 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7437
7438 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7439
7440 * hpread.c (hpread_psymtab_to_symtab_1,
7441 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7442 with fprintf_unfiltered (gdb_stderr,...).
7443
7444 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7445
7446 * remote-array.c (printf_monitor, write_monitor,
7447 array_insert_breakpoint, array_remove_breakpoint ):
7448 Replace fprintf (stderr,...
7449 with fprintf_unfiltered (gdb_stderr,....
7450 * remote-es.c: Likewise.
7451 * remote-os9k.c: Likewise.
7452 * remote-st.c: Likewise.
7453
7454 2002-04-28 Andreas Schwab <schwab@suse.de>
7455
7456 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7457 linux-proc.o and gcore.o.
7458
7459 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7460
7461 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7462 code without frame pointers.
7463
7464 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7465
7466 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7467 ON_STACK is needed.
7468
7469 2002-04-26 Ben Elliston <bje@redhat.com>
7470
7471 * target.c (do_xfer_memory): Correct reference to the new option
7472 "trust-readonly-sections".
7473
7474 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7475
7476 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7477 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7478 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7479 vectors.
7480 (read_array_type): Record the fact that this array type is really a
7481 vector (i.e. are passed in by value).
7482
7483 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7484
7485 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7486 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7487 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7488 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7489 * alpha-linux-tdep.c: Include frame.h.
7490 (alpha_linux_sigcontext_addr): New function.
7491 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7492 alpha_linux_sigcontext_addr.
7493 * alpha-osf1-tdep.c: Include gdbcore.h.
7494 (alpha_osf1_sigcontext_addr): New function.
7495 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7496 alpha_osf1_sigcontext_addr.
7497 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7498 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7499
7500 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7501
7502 * stack.c (selected_frame_level):
7503 (select_frame): Do not set selected_frame_level.
7504 * frame.h (selected_frame_level): Delete declaration.
7505
7506 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7507
7508 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7509 convert_from_func_ptr-addr when AIX / PowerOpen.
7510
7511 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7512
7513 * valops.c (hand_function_call): Call
7514 generic_save_call_dummy_addr.
7515 * frame.h (generic_save_call_dummy_addr): Declare.
7516 * blockframe.c (struct dummy_frame): Add fields call_lo and
7517 call_hi.
7518 (generic_find_dummy_frame): Check for PC in range call_lo to
7519 call_hi instead of entry_point_address.
7520 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7521 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7522 (generic_save_call_dummy_addr): New function.
7523
7524 2002-04-24 David S. Miller <davem@redhat.com>
7525
7526 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7527 sparc_skip_prologue.
7528 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7529 information to find prologue when possible.
7530 (sparc_prologue_frameless_p): Call examine_prologue directly.
7531 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7532 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7533 second argument.
7534 (SKIP_PROLOGUE): Likewise.
7535
7536 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7537
7538 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7539 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7540 indicate that the condition it was testing is always true.
7541 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7542 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7543 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7544
7545 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7546
7547 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7548 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7549 tdep->jb_pc and tdep->jb_elt_size.
7550 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7551 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7552 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7553 * alpha-nat.c (get_longjmp_target): Remove.
7554 (JB_ELEMENT_SIZE): Ditto.
7555 (JB_PC): Ditto.
7556 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7557 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7558 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7559 to alpha_get_longjmp_target.
7560 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7561 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7562 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7563
7564 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7565
7566 * README: Update to GDB 5.2.
7567
7568 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7569
7570 * gdbarch.sh (LC_ALL): Set to `c'.
7571
7572 2002-04-25 Theodore A. Roth <troth@verinet.com>
7573
7574 * avr-tdep.c: Ran through gdb_indent.sh.
7575
7576 2002-04-25 Theodore A. Roth <troth@verinet.com>
7577
7578 * MAINTAINERS: Add myself as AVR maintainer.
7579 * NEWS: Note new target avr.
7580
7581 2002-04-25 Theodore A. Roth <troth@verinet.com>
7582
7583 * Makefile.in: Add support for AVR target.
7584 * configure.tgt: Add support for AVR target.
7585 * avr-tdep.c: New file
7586 * config/avr/avr.mt: New file.
7587
7588 2002-04-25 Theodore A. Roth <troth@verinet.com>
7589
7590 * MAINTAINERS: Add myself to write-after-approval.
7591
7592 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7593
7594 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7595 with fprintf_unfiltered (gdb_stderr,....
7596
7597 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7598
7599 Fix PR gdb/508.
7600 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7601
7602 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7603
7604 * p-exp.y: Also use new prev_lexptr variable
7605 to improve error reporting. Based on Michael Snyder
7606 2002-04-24 dated patch to c-exp.y.
7607
7608 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7609
7610 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7611 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7612 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7613 to 0.
7614 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7615 and struct value.
7616 (FUNCTION_START_OFFSET): Remove.
7617 (BREAKPOINT): Ditto.
7618
7619 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7620
7621 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7622 * NEWS: Ditto.
7623
7624 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7625
7626 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7627 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7628 alpha_linux_pc_in_sigtramp.
7629 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7630 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7631 alpha_osf1_pc_in_sigtramp.
7632 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7633 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7634 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7635 alphafbsd_pc_in_sigtramp.
7636 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7637 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7638 alphanbsd_pc_in_sigtramp.
7639 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7640 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7641
7642 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7643
7644 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7645
7646 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7647
7648 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7649 alphanbsd-tdep.c.
7650 (alphanbsd-nat.o): New dependency list.
7651 (alphanbsd-tdep.o): Ditto.
7652 * NEWS: Note new native NetBSD/alpha configuration.
7653 * alphanbsd-nat.c: New file.
7654 * alphanbsd-tdep.c: Ditto.
7655 * configure.host (alpha*-*-netbsd*): New host.
7656 * configure.tgt (alpha*-*-netbsd*): New target.
7657 * config/alpha/nbsd.mh: New file.
7658 * config/alpha/nbsd.mt: Ditto.
7659 * config/alpha/nm-nbsd.h: Ditto.
7660 * config/alpha/tm-nbsd.h: Ditto.
7661
7662 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7663
7664 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7665 (alpha-osf1-tdep.o): New dependency list.
7666 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7667 and skip_sigtramp_frame members.
7668 * alpha-linux-tdep.c: Include gdbcore.h.
7669 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7670 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7671 * alpha-osf1-tdep.c: New file.
7672 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7673 alpha-osf1-dep.c.
7674 (alpha_frame_past_sigtramp_frame): New function.
7675 (alpha_dynamic_sigtramp_offset): Ditto.
7676 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7677 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7678 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7679 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7680 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7681 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7682 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7683 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7684 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7685 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7686 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7687 to find_solib_trampoline_target.
7688 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7689 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7690 (SKIP_TRAMPOLINE_CODE): Remove.
7691 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7692 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7693 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7694 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7695 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7696 (PROC_SIGTRAMP_MAGIC): Ditto.
7697 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7698 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7699 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7700 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7701 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7702
7703 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7704
7705 * NEWS: Note that Alpha targets are now multi-arch.
7706
7707 2002-04-24 Michael Snyder <msnyder@redhat.com>
7708
7709 * parser-defs.h (prev_lexptr): New external variable.
7710 * parse.c (parse_exp_1): Set prev_lexptr to null before
7711 calling the language-specific parser.
7712 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7713 (yyerror): Use prev_lexptr in error reporting.
7714
7715 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7716
7717 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7718 * gregset.h: If FILL_FPXREGSET is defined, provide
7719 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7720 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7721 is defined, call fill_fpxregset.
7722
7723 2002-04-24 Roland McGrath <roland@frob.com>
7724
7725 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7726 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7727 (supply_gregset, supply_fpregset): New functions.
7728
7729 * gnu-nat.c (gnu_find_memory_regions): New function.
7730 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7731 (gnu_xfer_memory): Add a cast.
7732
7733 2002-04-24 Michael Snyder <msnyder@redhat.com>
7734
7735 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7736 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7737 of argument regs ("str r(0123), [r11, #-nn"]).
7738 (arm_skip_prologue): Better handling for frameless functions.
7739 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7740 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7741
7742 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7743
7744 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7745 NUM_PSEUDO_REGS can be used.
7746
7747 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7748
7749 * arch-utils.h: Update copyright.
7750
7751 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7752 * gdbarch.h, gdbarch.c: Re-generate.
7753
7754 * inferior.h (IN_SIGTRAMP): Delete definition.
7755 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7756 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7757
7758 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7759 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7760 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7761 (find_proc_framesize): Ditto.
7762 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7763 (alpha_init_extra_frame_info): Ditto.
7764 * infrun.c (handle_inferior_event): Ditto.
7765 (handle_inferior_event): Ditto.
7766 (check_sigtramp2): Ditto.
7767 * blockframe.c (create_new_frame): Ditto.
7768 (get_prev_frame): Ditto.
7769 * ppc-linux-tdep.c: Update comments.
7770 * i386-linux-tdep.c: Update comments.
7771 * breakpoint.c (bpstat_what): Update comment.
7772
7773 2002-04-24 David S. Miller <davem@redhat.com>
7774
7775 * i960-tdep.c (register_in_window_p): New function.
7776 (i960_find_saved_register): Use it instead of
7777 REGISTER_IN_WINDOW_P.
7778 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7779
7780 * symtab.h (find_stab_function_addr): Kill extern.
7781 * minsyms.c (find_stab_function_addr): Remove from here...
7782 * dbxread.c: ... to here, and mark it static.
7783
7784 2002-04-20 David S. Miller <davem@redhat.com>
7785
7786 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7787 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7788
7789 2002-04-21 David S. Miller <davem@redhat.com>
7790
7791 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7792 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7793 (vx_write_register): Likewise.
7794
7795 2002-04-23 J. Brobecker <brobecker@gnat.com>
7796
7797 * source.c (is_regular_file): New function.
7798 (openp): Check wether file to open is a regular file
7799 to avoid opening directories.
7800
7801 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7802
7803 * findvar.c (extract_signed_integer): Cast printf argument
7804 to suppress format warning.
7805 (extract_unsigned_integer): Likewise.
7806 * infcmd.c (registers_info): Likewise.
7807 * top.c (get_prompt_1): Likewise.
7808 * valops.c (value_assign): Likewise.
7809 * valprint.c (print_decimal): Likewise.
7810
7811 2002-04-22 H.J. Lu (hjl@gnu.org)
7812
7813 * c-exp.y (typebase): Support
7814
7815 [long|long long|short] [signed|unsigned] [int|]
7816
7817 and
7818
7819 signed [long|long long|short] int
7820
7821 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7822
7823 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7824 and vax-tdep.h.
7825 * vax-tdep.h: New file.
7826 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7827 Make several routines static.
7828 (vax_get_saved_register): New function.
7829 (vax_gdbarch_init): New function.
7830 (_initialize_vax_tdep): Register vax_gdbarch_init.
7831 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7832 Remove macros now under the control of gdbarch.
7833
7834 2002-04-22 Michael Snyder <msnyder@redhat.com>
7835
7836 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7837 Some whitespace and coding standards tweaks.
7838
7839 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7840
7841 * vax-tdep.c: Include regcache.h.
7842 (vax_call_dummy_words): New.
7843 (sizeof_vax_call_dummy_words): New.
7844 (vax_fix_call_dummy): New function.
7845 (vax_saved_pc_after_call): Ditto.
7846 * config/vax/tm-vax.h: Don't include regcache.h.
7847 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7848 (CALL_DUMMY): Remove.
7849 (CALL_DUMMY_WORDS): Define.
7850 (SIZEOF_CALL_DUMMY_WORDS): Define.
7851 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7852
7853 2002-04-18 Michael Snyder <msnyder@redhat.com>
7854
7855 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7856
7857 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7858
7859 * vax-tdep.c (vax_frame_chain): New function.
7860 (vax_push_dummy_frame): Ditto.
7861 (vax_pop_frame): Ditto.
7862 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7863 (FRAMELESS_FUNCTION_INVOCATION): Use
7864 generic_frameless_function_invocation_not.
7865 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7866 (POP_FRAME): Use vax_pop_frame.
7867
7868 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7869
7870 * vax-tdep.c (vax_store_struct_return): New function.
7871 (vax_extract_return_value): Ditto.
7872 (vax_store_return_value): Ditto.
7873 (vax_extract_struct_value_address): Ditto.
7874 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7875 vax_store_struct_return.
7876 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7877 (STORE_RETURN_VALUE): Use vax_store_return_value.
7878 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7879
7880 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7881
7882 * vax-tdep.c (vax_frame_saved_pc): New function.
7883 (vax_frame_args_address_correct): Ditto.
7884 (vax_frame_args_address): Ditto.
7885 (vax_frame_locals_address): Ditto.
7886 (vax_frame_num_args): Move code to be in proximity to
7887 other frame-related functions.
7888 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7889 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7890 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7891 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7892 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7893
7894 2002-04-22 H.J. Lu (hjl@gnu.org)
7895
7896 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7897 includedir.
7898
7899 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7900
7901 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7902 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7903 (FRAME_INIT_SAVED_REGS): New macro.
7904
7905 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7906
7907 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7908
7909 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7910
7911 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7912 where needed.
7913 (fetch_osf_core_registers): Likewise.
7914 (supply_gregset): Likewise.
7915
7916 2002-04-22 J. Brobecker <brobecker@gnat.com>
7917
7918 * symfile.h (get_section_index): Define.
7919 * symfile.c (get_section_index): New function.
7920 * mdebugread.c (SC_IS_SBSS): New macro.
7921 (SC_IS_BSS): Return true for the scBss storage class only, as
7922 the scSBss storage class refers to the .sbss section.
7923 (parse_partial_symbols): Discard the symbols which associated
7924 section does not exist.
7925 Make sure to use the .sbss section index for symbols which
7926 storage class is scBss, rather than using the .bss section index.
7927
7928 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7929
7930 * vax-tdep.c: Update copyright years.
7931 (vax_register_name): New function.
7932 (vax_register_byte): Ditto.
7933 (vax_register_raw_size): Ditto.
7934 (vax_register_virtual_size): Ditto.
7935 (vax_register_virtual_type): Ditto.
7936 * config/vax/tm-vax.h: Update copyright years.
7937 (REGISTER_NAMES): Remove.
7938 (REGISTER_NAME): Define.
7939 (REGISTER_BYTE): Use vax_register_byte.
7940 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7941 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7942 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7943
7944 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7945
7946 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7947 declaration
7948 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7949
7950 2002-04-21 David S. Miller <davem@redhat.com>
7951
7952 * arch-utils.c (generic_prologue_frameless_p): Kill
7953 SKIP_PROLOGUE_FRAMELESS_P code.
7954 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7955 references.
7956 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7957 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7958 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7959 references.
7960 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7961 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7962 (sparc_gdbarch_init): Pass it to
7963 set_gdbarch_prologue_frameless_p.
7964
7965 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7966
7967 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7968 (alphabsd-nat.o): New dependency list.
7969
7970 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7971
7972 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7973 alphafbsd-tdep.c.
7974 (alpha-linux-tdep.o): New dependency list.
7975 (alphafbsd-tdep.o): Likewise.
7976
7977 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7978
7979 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7980 to here...
7981 * alpha-tdep.c: ...from here.
7982 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7983
7984 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7985
7986 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7987 prototype from here...
7988 * alpha-tdep.h: ...to here.
7989
7990 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7991
7992 * frame.h (selected_frame_level): Document as deprecated.
7993 (frame_relative_level): Declare.
7994 * stack.c (frame_relative_level): New function.
7995 (selected_frame_level): Document as deprecated.
7996 (select_frame): Do not set the selected_frame_level.
7997
7998 * stack.c (frame_info, record_selected_frame): Update.
7999 (frame_command, current_frame_command): Update.
8000 (up_silently_base, up_command, down_silently_base): Update.
8001 (down_command): Update.
8002 * inflow.c (kill_command): Update.
8003 * tracepoint.c (finish_tfind_command): Update.
8004 * corelow.c (core_open): Update.
8005 * thread.c (info_threads_command): Update.
8006 (do_captured_thread_select): Update.
8007 * infcmd.c (finish_command): Update.
8008 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8009
8010 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8011
8012 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8013
8014 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8015
8016 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8017 type const.
8018
8019 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8020
8021 * alphafbsd-tdep.c: Update copyright years. Include
8022 alpha-tdep.h.
8023 (alphafbsd_use_struct_convention): Make static.
8024 (alphafbsd_init_abi): New function.
8025 (_initialize_alphafbsd_tdep): New function.
8026 * config/alpha/tm-fbsd.h: Update copyright years.
8027 (USE_STRUCT_CONVENTION): Remove.
8028
8029 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8030
8031 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8032 an Alpha ABI variant.
8033 (alpha_abi_handler_list): Declare.
8034 (alpha_gdbarch_register_os_abi): New function.
8035 (alpha_gdbarch_init): Give registered ABI variant handlers a
8036 chance to tweak the gdbarch once we have set up defaults.
8037 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8038
8039 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8040
8041 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8042 to standard_coerce_float_to_double.
8043 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8044
8045 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8046
8047 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8048 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8049 from gdbarch_tdep rather than a constant.
8050 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8051 the default text address for all Alpha Unix ABIs.
8052 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8053 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8054
8055 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8056
8057 * alpha-tdep.h: New file. Includes several Alpha target constants
8058 taken from...
8059 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8060 let gdbarch deal with.
8061 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8062 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8063 to dependency list.
8064 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8065 Alpha target register names.
8066 * alphabsd-nat.c: Likewise.
8067 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8068 Alpha target register names. Make serveral routines static.
8069 (alpha_get_saved_register): New function.
8070 (alpha_abi_names): New.
8071 (process_note_abi_tag_sections): New function.
8072 (get_elfosabi): New function.
8073 (alpha_gdbarch_init): New function.
8074 (alpha_dump_tdep): New function.
8075 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8076
8077 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8078
8079 * frame.c (find_saved_register): Delete #ifdef
8080 HAVE_REGISTER_WINDOWS code.
8081 * config/sparc/tm-sparc.h: Update comments.
8082 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8083
8084 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8085
8086 * i960-tdep.c (i960_find_saved_register): New function.
8087 (i960_get_saved_register): New function.
8088 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8089 (i960_get_saved_register): Declare.
8090 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8091
8092 2002-04-20 David S. Miller <davem@redhat.com>
8093
8094 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8095
8096 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8097
8098 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8099 instead of NUM_PSEUDO_REGS.
8100
8101 2002-04-20 David S. Miller <davem@redhat.com>
8102
8103 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8104 GDB_MULTI_ARCH_PARTIAL
8105 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8106 define, let tm-sp64.h do it.
8107
8108 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8109
8110 * frame.c (find_saved_register): Avoid a NULL pointer
8111 dereference and actually walk the frame list.
8112
8113 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8114
8115 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8116 sorted in most most-recent-used order. Document.
8117 * gdbarch.h, gdbarch.c: Regenerate.
8118
8119 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8120
8121 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8122 instead of ->prev.
8123 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8124 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8125 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8126 instead of ->prev.
8127
8128 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8129
8130 Fix PR gdb/471.
8131 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8132 (build_builtin_type_vec128): Ditto.
8133 (append_composite_type_field): Fix calculation of type length in
8134 union case.
8135
8136 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8137
8138 * config/djgpp/README: Update.
8139
8140 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8141 compiler warnings.
8142
8143 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8144
8145 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8146 (alpha_setup_arbitrary_frame): ...to this.
8147 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8148 for alpha_setup_arbitrary_frame.
8149
8150 2002-04-18 Andrew Cagney <cagney@redhat.com>
8151
8152 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8153 * gdbarch.h, gdbarch.c: Regenerate.
8154
8155 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8156 * target.h (memory_breakpoint_from_pc): Update declaration.
8157 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8158
8159 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8160 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8161 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8162 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8163 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8164 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8165 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8166 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8167 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8168 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8169 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8170 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8171
8172 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8173 const pointer.
8174 * monitor.c (monitor_insert_breakpoint): Ditto.
8175 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8176
8177 * config/mcore/tm-mcore.h: Update copyright.
8178 * mem-break.c: Ditto.
8179 * xstormy16-tdep.c: Ditto.
8180
8181 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8182
8183 * p-exp.y: Add precedence rule for '^' token.
8184 This removes the shift/reduce conflicts.
8185 Remove the comment concerning these shift/reduce conflicts.
8186
8187 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8188
8189 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8190 (registers_powerpc_nofp): New register set for processors
8191 without floating point unit.
8192
8193 2002-04-18 David S. Miller <davem@redhat.com>
8194
8195 * MAINTAINERS: Add myself to write-after-approval.
8196
8197 2002-04-17 Michael Snyder <msnyder@redhat.com>
8198
8199 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8200
8201 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8202
8203 * rs6000-tdep.c (frame_initial_stack_address): Use
8204 frame_register_read to read the alloca_reg.
8205
8206 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8207
8208 * frame.c (find_saved_register): Find saved registers in the next
8209 not prev frame.
8210 Fix PR gdb/365.
8211
8212 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8213
8214 * gdbarch.sh (LANG): Set to ``c''.
8215
8216 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8217
8218 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8219
8220 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8221
8222 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8223 Update copyright.
8224
8225 * hpread.c (hpread_get_lntt): Add declaration.
8226 Also fix PR gdb/391.
8227
8228 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8229
8230 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8231 * aclocal.m4, configure: Re-generate.
8232 Fix PR gdb/391.
8233
8234 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8235
8236 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8237 instead of tm_print_insn.
8238
8239 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8240
8241 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8242
8243 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8244
8245 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8246 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8247 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8248
8249 2002-04-12 Don Howard <dhoward@redhat.com>
8250
8251 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8252 max_user_call_depth.
8253 (init_cmd_lists): Initialize the new value;
8254 * cli/cli-script.c (execute_user_command): Limit the call depth of
8255 user defined commands. This avoids a core-dump when user commands
8256 are infinitly recursive.
8257
8258 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8259
8260 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8261 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8262 from tdep struct instead of DEFAULT_LR_SAVE.
8263 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8264 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8265 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8266
8267 2002-04-12 Michael Snyder <msnyder@redhat.com>
8268
8269 * Remote.c: Spelling fix.
8270 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8271 If no symbol found for "sbrk", try "_sbrk".
8272 (make_output_phdrs): Use bfd_section_name.
8273 (gcore_copy_callback): Use bfd_section_name.
8274 * eval.c: Indentation fix-ups.
8275 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8276 in case it gets applied to an address that is already
8277 in the instruction space.
8278 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8279 * symfile.c: Fix indentation, long lines.
8280 * source.c: White space fix-up.
8281
8282 2002-04-12 Andrew Cagney <cagney@redhat.com>
8283
8284 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8285 * frame.c (frame_register_read): New function. Return non-zero on
8286 success.
8287 (read_relative_register_raw_bytes_for_frame): Delete.
8288 (read_relative_register_raw_bytes): Delete.
8289 * frame.h (frame_register_read): Declare.
8290 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8291 * sh-tdep.c: Ditto.
8292 * infcmd.c (do_registers_info): Ditto.
8293 * hppa-tdep.c: Ditto.
8294 * rs6000-tdep.c: Ditto.
8295 * h8500-tdep.c: Ditto.
8296 * mips-tdep.c: Ditto.
8297 * h8300-tdep.c: Ditto.
8298 * z8k-tdep.c: Ditto.
8299
8300 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8301
8302 From Jimi X <jimix@watson.ibm.com>:
8303 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8304 64-bit SysV ABI.
8305
8306 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8307
8308 From Jimi X <jimix@watson.ibm.com>:
8309 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8310 bfd info.
8311
8312 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8313
8314 From Jimi X <jimix@watson.ibm.com>:
8315 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8316 register sets for these processor variants.
8317
8318 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8319
8320 * regformats/reg-ppc.dat: Support FPSCR.
8321
8322 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8323
8324 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8325 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8326 Add fpscr as an invalid/unfetchable register.
8327 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8328 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8329 (fill_fpregset): Add support for register fpscr.
8330 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8331 (fill_gregset): Account for the fact that register ``mq'' might
8332 not exist.
8333 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8334 (registers_power): Add fpscr to register set at slot 71.
8335 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8336 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8337
8338 2002-04-11 Michael Snyder <msnyder@redhat.com>
8339
8340 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8341 * configure: Regenerate.
8342 * config.in: Regenerate.
8343 * acconfig.h: Add define for _SYSCALL32.
8344 * core-sol2.c: Remove #define _SYSCALL32.
8345 * solib-legacy.c: Remove #define _SYSCALL32.
8346
8347 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8348
8349 * stack.c (select_frame): Cleanup internal error message, do not
8350 use %p.
8351
8352 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8353
8354 * stack.c (select_frame): Check that selected_frame and the
8355 specified level are as expected.
8356 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8357 Update copyright.
8358 * frame.h (struct frame_info): Add field `level'. Update
8359 copyright.
8360 Work-in-progress PR gdb/464.
8361
8362 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8363
8364 * maint.c (maint_print_section_info): Rename print_section_info.
8365 (print_bfd_section_info, print_objfile_section_info): Update.
8366 * inferior.h (struct gdbarch): Add opaque declaration.
8367 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8368 * gdbarch.h: Regenerate.
8369
8370 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8371
8372 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8373 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8374 (kernel_u_size): Added.
8375 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8376 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8377
8378 2002-04-04 Jim Ingham <jingham@apple.com>
8379
8380 * valarith.c (find_size_for_pointer_math): New function, either returns
8381 the size for a pointer's target, returns 1 for void *, or errors for
8382 incomplete types.
8383 (value_add, value_sub): use find_size_for_pointer_math.
8384
8385 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8386
8387 * linux-low.c (linux_look_up_symbols): New hook.
8388 (linux_target_ops): Add linux_look_up_symbols.
8389 * remote-utils.c (decode_address): New function.
8390 (look_up_one_symbol): New function.
8391 * server.c (handle_query): Call target look_up_symbols hook.
8392 * server.h (look_up_one_symbol): Add prototype.
8393 * target.h (struct target_ops): Add look_up_symbols hook.
8394
8395 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8396
8397 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8398 override FP_REGNUM with frame->fp. Update copyright.
8399 * parse.c (num_std_regs, std_regs): Delete.
8400 (target_map_name_to_register): Do not search std_regs. Update
8401 function description.
8402 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8403 declarations. Update copyright.
8404 Fix PR gdb/251.
8405
8406 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8407
8408 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8409 after the last symbol in a block.
8410
8411 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8412
8413 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8414 is non zero as a found symbol.
8415
8416 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8417
8418 * findvar.c: Include "builtin-regs.h".
8419 (value_of_register): Call value_of_builtin_reg when applicable.
8420 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8421 (target_map_name_to_register): Call
8422 builtin_reg_map_name_to_regnum.
8423 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8424 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8425 (builtin_regs_h): Define.
8426 (builtin-regs.o): New target.
8427 (findvar.o): Add $(builtin_regs_h).
8428 * builtin-regs.c, builtin-regs.h: New files.
8429 * std-regs.c: New file.
8430 Partial fix for PR gdb/251.
8431
8432 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8433
8434 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8435 it's no longer required.
8436
8437 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8438
8439 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8440
8441 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8442
8443 From Jimi X <jimix@watson.ibm.com>:
8444 * rs6000-tdep.c (rs6000_software_single_step): Use
8445 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8446 and size. Use target_insert_breakpoint() and
8447 target_remove_breakpoint() to insert and remove breakpoints
8448 instead of explicit memory reads and writes.
8449
8450 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8451
8452 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8453 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8454 ELF_OBJECT_FORMAT ifdef.
8455
8456 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8457
8458 From Jimi X <jimix@watson.ibm.com>:
8459 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8460
8461 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8462
8463 From Jimi X <jimix@watson.ibm.com>:
8464 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8465 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8466
8467 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8468
8469 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8470 s/asprintf/xasprintf/.
8471 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8472
8473 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8474
8475 I believe Jeff Law denies responsability for this one:
8476 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8477 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8478 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8479 Work-around for PR gdb/366.
8480
8481 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8482
8483 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8484 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8485 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8486
8487 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8488
8489 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8490 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8491 information.
8492
8493 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8494
8495 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8496 maintainer.
8497
8498 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8499
8500 * README (Reporting Bugs in GDB): Document the bug web page as the
8501 prefered way of submitting bugs.
8502 Fix PR gdb/402.
8503
8504 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8505
8506 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8507 -1. Update comment.
8508 * gdbarch.h, gdbarch.c: Re-generate.
8509
8510 2002-04-07 Andreas Schwab <schwab@suse.de>
8511
8512 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8513 buffer to regcache_collect.
8514
8515 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8516
8517 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8518 * gdbarch.c, gdbarch.h: Re-generate.
8519
8520 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8521
8522 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8523 declaration. Fix -Werror.
8524
8525 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8526
8527 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8528 * gdbarch.c: Regenerate.
8529
8530 2002-04-05 Michael Snyder <msnyder@redhat.com>
8531
8532 * breakpoint.c (clear_command): Rewrite middle section to
8533 combine two loops with identical control conditions.
8534 Add a cleanup to eliminate a memory leak.
8535 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8536
8537 2002-04-05 H.J. Lu (hjl@gnu.org)
8538
8539 * solib-svr4.c (bkpt_names): Add "__start".
8540
8541 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8542
8543 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8544 as test for 64 bit target.
8545
8546 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8547
8548 * h8500-tdep.c (h8500_write_fp): Delete function.
8549 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8550 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8551 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8553 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8554 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8555 (s390_write_fp):
8556 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8557 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8558 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8559 (d10v_write_fp): Delete function.
8560 * inferior.h (write_fp, generic_target_write_fp): Delete
8561 declarations.
8562 * regcache.c (generic_target_write_fp): Delete function.
8563 (write_fp): Delete function.
8564 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8565 * gdbarch.h, gdbarch.c: Regenerate.
8566 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8567 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8568 (sparc64_write_fp): Delete declaration.
8569 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8570 (h8500_write_fp): Delete declaration.
8571
8572 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8573
8574 * sparc-tdep.c (sparc64_write_fp): Delete.
8575 (sparc_push_dummy_frame): Replace write_fp call with code to store
8576 the FP directly.
8577 (sparc_gdbarch_init): Do not initialize write_fp.
8578
8579 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8580
8581 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8582 clause.
8583
8584 2002-03-29 Jim Blandy <jimb@redhat.com>
8585
8586 * stack.c (get_selected_block): Add new argument `addr_in_block',
8587 used to return the exact code address we used to select the block,
8588 not just the block.
8589 * blockframe.c (get_frame_block, get_current_block): Same.
8590 * frame.h (get_frame_block, get_current_block,
8591 get_selected_block): Update declarations.
8592 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8593 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8594
8595 2002-04-05 Michael Snyder <msnyder@redhat.com>
8596
8597 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8598 warning message.
8599
8600 2002-04-05 J. Brobecker <brobecker@gnat.com>
8601
8602 * utils.c (xfullpath): New function.
8603 * defs.h (xfullpath): Add declaration.
8604 * source.c (openp): Use xfullpath in place of gdb_realpath to
8605 avoid resolving the basename part of filenames when the
8606 associated file is a symbolic link. This fixes a potential
8607 inconsistency between the filenames known to GDB and the
8608 filenames it prints in the annotations.
8609 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8610 to be able to match a filename with either the real filename, or
8611 the name of any symbolic link to this file.
8612 (lookup_partial_symtab): Ditto.
8613
8614 2002-04-04 Michael Snyder <msnyder@redhat.com>
8615
8616 * breakpoint.c: Add support for hardware breakpoints in overlays.
8617 (overlay_events_enabled): New state variable.
8618 (insert_breakpoints): Use overlay_events_enabled to decide
8619 whether to attempt to set a breakpoint at the overlay load addr.
8620 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8621 (remove_breakpoint): Use overlay_events_enabled to decide
8622 whether breakpoints need to be removed from overlay load addr.
8623 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8624 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8625 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8626 disable_overlay_breakpoints): Update overlay_events_enabled.
8627
8628 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8629
8630 * dwarf2read.c (struct function_range): New.
8631 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8632 (check_cu_functions): New.
8633 (read_file_scope): Initialize global function lists.
8634 Call dwarf_decode_line after processing children.
8635 (read_func_scope): Add to global function list.
8636 (dwarf_decode_lines): Call check_cu_functions everywhere
8637 record_line is called. Call record_line with a linenumber
8638 of 0 to mark sequence ends.
8639
8640 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8641
8642 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8643 change sync with glibc.
8644
8645 2002-04-03 Jim Blandy <jimb@redhat.com>
8646
8647 * configure.in: Call AC_C_INLINE.
8648 * configure: Regenerated.
8649
8650 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8651
8652 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8653 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8654
8655 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8656
8657 * NEWS: Mention gcore support on FreeBSD/i386.
8658
8659 * fbsd-proc.c: New file.
8660 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8661 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8662
8663 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8664 while statement.
8665
8666 2002-03-29 Jim Blandy <jimb@redhat.com>
8667
8668 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8669 unescaped newlines in string literals, but newer ones don't. So
8670 escape them.
8671
8672 2002-03-26 Michael Snyder <msnyder@redhat.com>
8673 Andrew Cagney <cagney@redhat.com>
8674
8675 * cli/cli-dump.c: New file. Dump memory to file,
8676 restore file to memory.
8677 * cli/cli-dump.h: New file.
8678 * Makefile.in: Add rules, dependencies for cli-dump.o.
8679 * NEWS: Mention new commands.
8680
8681 2002-03-28 Michael Snyder <msnyder@redhat.com>
8682
8683 * symfile.c (symbol_file_add): Move test for null symbols to later.
8684
8685 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8686
8687 From veksler at il.ibm.com:
8688 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8689 the xstrduped original path.
8690 Fix PR gdb/417.
8691
8692 2002-03-27 Michael Snyder <msnyder@redhat.com>
8693
8694 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8695 * infcmd.c (_initialize_infcmd): Ditto.
8696 * language.c (_initialize_language): Ditto.
8697 * symfile.c (_initialize_symfile): Ditto.
8698 * top.c (_init_main): Ditto.
8699 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8700
8701 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8702
8703 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8704 vector registers handling.
8705 (skip_prologue): Handle new AltiVec instructions. Fill in new
8706 fields of frame data.
8707 (frame_get_saved_regs): Fill in information for AltiVec registers.
8708
8709 2002-03-27 Jim Blandy <jimb@redhat.com>
8710
8711 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8712 a function; leave this macro here to invoke that function.
8713 (symbol_init_mangled_name): Declaration for that function.
8714 * symtab.c (symbol_init_mangled_name): New function.
8715
8716 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8717
8718 * valarith.c: Replace strerror with safe_strerror.
8719 * tracepoint.c: Ditto.
8720 * lin-lwp.c: Ditto.
8721 * go32-nat.c: Ditto.
8722 * inflow.c: Ditto.
8723 * gnu-nat.c: Ditto.
8724
8725 2002-03-27 Andreas Schwab <schwab@suse.de>
8726
8727 * event-top.c (command_line_handler): Remove useless if.
8728
8729 2002-03-27 Andreas Jaeger <aj@suse.de>
8730
8731 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8732 comment.
8733
8734 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8735
8736 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8737 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8738 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8739 (x86_64_linux_dr_get_status, supply_gregset),
8740 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8741 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8742 (x86_64_register_info_table): Add.
8743 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8744 (x86_64_register_raw_size, x86_64_register_virtual_type),
8745 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8746 general x86_64_register_info_table.
8747 (i386_gdbarch_init): gdbarch_register_bytes is now set
8748 dynamicaly during initialization.
8749 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8750 * gdbserver/linux-x86-64-low.c: Ditto.
8751
8752 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8753
8754 * gdbserver/server.c (main): Call target_signal_to_host_p
8755 and target_signal_to_host on signals received from the remote.
8756 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8757 target_signal_from_host on signals sent to the remote.
8758 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8759 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8760
8761 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8762
8763 * signals/signals.c: Include "server.h" in gdbserver build.
8764 (target_signal_from_name): Don't use STREQ.
8765 (_initialize_signals): Likewise. Don't include function in
8766 gdbserver build.
8767
8768 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8769
8770 * signals.c: Moved to...
8771 * signals/signals.c: Here.
8772 * Makefile (signals.o): Update.
8773
8774 2002-03-26 Jeff Law (law@redhat.com)
8775
8776 * somread.c (som_symtab_read): Remove some commented out code and
8777 updated related comments. Do not set the minimal symbol table to
8778 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8779 in a dynamic executable.
8780 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8781 where we are unable to find the minimal symbol for the given
8782 PC value.
8783
8784 2002-03-25 Jeff Law (law@redhat.com)
8785
8786 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8787
8788 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8789
8790 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8791
8792 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8793
8794 * command.h: Update copyright.
8795 (struct cmd_list_element): Replace definition with opaque
8796 declaration.
8797 (enum cmd_types): Document that it will eventually be moved to
8798 cli/cli-decode.h
8799 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8800 (MALLOCED_REPLACEMENT): Delete macro.
8801 * Makefile.in (cli_decode_h): Add $(command_h).
8802 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8803 * top.c: Include "cli/cli-decode.h".
8804 * completer.c: Include "cli/cli-decode.h".
8805 * maint.c: Include "cli/cli-decode.h".
8806 * cli/cli-decode.h: Include "command.h".
8807 (enum command_class): Delete.
8808 (enum cmd_types): Comment out.
8809 (enum cmd_auto_boolean): Delete.
8810 (enum var_types): Delete.
8811
8812 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8813
8814 * cli/cli-decode.c: Include "gdb_assert.h".
8815 (add_set_or_show_cmd): New static function.
8816 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8817 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8818 all fields, such as func, from the set command.
8819
8820 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8821
8822 * MAINTAINERS (sh-elf): Change warning flag to -w.
8823
8824 2002-03-23 Andrew Cagney <cagney@redhat.com>
8825
8826 * defs.h (error): Add printf format attribute.
8827 * thread-db.c (thread_from_lwp): Fix error format string.
8828 * stack.c (parse_frame_specification): Ditto.
8829 * cli/cli-decode.c (undef_cmd_error): Ditto.
8830 * scm-lang.c (scm_lookup_name): Ditto.
8831 * tracepoint.c (trace_error): Ditto.
8832 * remote-utils.c (usage): Ditto.
8833 * remote.c (compare_sections_command): Ditto.
8834 Fix PR gdb/328.
8835
8836 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8837
8838 * gdbtypes.c (append_composite_type_field): New function.
8839 (init_composite_type): New function.
8840 * gdbtypes.h (append_composite_type_field): Declare.
8841 (init_composite_type): Ditto.
8842
8843 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8844
8845 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8846 function.
8847 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8848 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8849 structure returning convention for SYSV ABI case, but not
8850 for GNU/Linux, FreeBSD, or NetBSD.
8851
8852 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8853
8854 * symtab.h (lookup_block_symbol): Add mangled_name argument
8855 to prototype.
8856
8857 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8858 with new mangled_name argument.
8859 * linespec.c (decode_line_1): Likewise.
8860 * valops (value_of_this): Likewise.
8861 * symtab.c (lookup_transparent_type): Likewise.
8862 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8863 (lookup_symbol): If we are given a mangled name, pass it down
8864 to lookup_symbol_aux.
8865 (lookup_block_symbol): If we are given a mangled name to check
8866 against, only return symbols which match it.
8867
8868 2002-03-22 Christopher Faylor <cgf@redhat.com>
8869
8870 * win32-nat.c (child_create_inferior): Check for proper shell to use
8871 here, in case the user changes it on the fly.
8872 (_initialize_inftarg): Remove shell path considerations.
8873
8874 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8875
8876 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8877 for gdbarch_max_register_raw_size and max_register_virtual_size.
8878 Adjust copyright year.
8879
8880 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8881
8882 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8883 in a function to cover the entire beginning of the function
8884 as well if it does not already.
8885
8886 2002-03-21 Tom Rix <trix@redhat.com>
8887
8888 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8889 (rs6000_ptrace64): Renamed from ptrace64.
8890
8891 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8892
8893 * gdbserver/remote-utils.c (remote_open): Don't call
8894 getprotobyname, we're all using TCP here so just use
8895 IPPROTO_TCP.
8896 * gdbserver/gdbreplay.c (remote_open): Ditto.
8897
8898 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8899
8900 * regcache.c (_initialize_regcache): No need to call
8901 build_regcache() at this time; it gets called whenever
8902 the gdbarch changes.
8903
8904 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8905
8906 * sparc-nat.c: Include sys/param.h where possible.
8907
8908 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8909
8910 Fix PR gdb/422.
8911 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8912 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8913 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8914 complex types.
8915 * stabsread.c (rs6000_builtin_type): Likewise.
8916 (read_sun_floating_type): Likewise.
8917
8918 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8919
8920 * stabsread.c (read_member_functions): Remove skip code for duplicate
8921 constructor/destructor methods. Use standard parsing for these
8922 methods and just do not chain them to the list of methods after
8923 parsing.
8924
8925 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8926
8927 * coffread.c: Remove redundant static declarations. Replace
8928 occurrences of `PTR' with `void *'.
8929 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8930 * top.h (quit_cover): Likewise.
8931 * defs.h (catch_errors): Likewise.
8932
8933 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8934
8935 * defs.h (XMALLOC): Define.
8936 * gdb-events.sh (XMALLOC): Delete macro.
8937 * gdb-events.c, gdb-events.h: Regenerate.
8938 * gdbarch.sh (XMALLOC): Delete macro.
8939 * gdbarch.c: Regenerate.
8940 * serial.c (XMALLOC): Delete macro.
8941 * ui-file.c (XMALLOC): Ditto.
8942 * ser-unix.h (XMALLOC): Ditto.
8943 * sh-tdep.c (XMALLOC): Ditto.
8944 * ui-out.c (XMALLOC): Ditto.
8945 * utils.c (XMALLOC): Ditto.
8946 * i386-tdep.c (XMALLOC): Ditto.
8947 * gdb-events.c (XMALLOC): Ditto.
8948 * d10v-tdep.c (XMALLOC): Ditto.
8949 * cli-out.c (XMALLOC): Ditto.
8950
8951 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8952 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8953 * ui-file.c, ui-out.c: Ditto.
8954
8955 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8956
8957 * command.h (struct cmd_list_element): Add field context.
8958 (set_cmd_context, get_cmd_context): Declare.
8959 * cli/cli-decode.h: Ditto.
8960 * cli/cli-decode.c (get_cmd_context): New function.
8961 (set_cmd_context): New function.
8962 (add_cmd): Initialize context.
8963 Part of fixing PR gdb/145 and PR gdb/146.
8964
8965 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8966
8967 * cli/cli-decode.c (cmd_type): New function.
8968 * command.h (cmd_type): Declare.
8969 * infrun.c (set_schedlock_func): Call function cmd_type.
8970 * kod.c (kod_set_os): Call cmd_type.
8971 * cris-tdep.c (cris_version_update): Use function cmd_type.
8972 (cris_mode_update, cris_abi_update): Ditto.
8973
8974 * command.h: (execute_cmd_post_hook): Declare.
8975 (execute_cmd_pre_hook): Declare.
8976 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8977 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8978 functions. Execute pre/post hook while ensuring that afterwords
8979 hook_in is cleared.
8980 * top.c (execute_command): Use execute_cmd_post_hook, and
8981 execute_cmd_pre_hook to execute pre/post commands.
8982 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8983 hook_stop_stub.
8984 (hook_stop_stub): Call execute_cmd_pre_hook.
8985
8986 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8987
8988 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8989 set'' and this leads to a core dump. Move xstrdup of
8990 operating_system to after check that it is not NULL.
8991
8992 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8993
8994 * kod.c (kod_set_os): Remove unnecessary check that
8995 ``command->type'' is set_cmd.
8996
8997 * valprint.c (set_input_radix): Use input_radix.
8998 (set_output_radix): Use output_radix.
8999 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9000 isn't reverted.
9001
9002 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9003
9004 * value.h (struct value): Delete field ``substring_addr''. Change
9005 aligner fields to force_doublest_align, force_longest_align,
9006 force_core_addr_align and force_pointer_aligh.
9007
9008 * value.h (struct value): Fix typo in above change.
9009
9010 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9011
9012 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9013 to fix internal_error from ``maintenance print architecture''.
9014
9015 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9016
9017 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9018 for gcc versions after gcc-2.8.1.
9019
9020 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9021
9022 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9023 for method resolution. Restore adjustment of ``this'' pointer after
9024 calling value_struct_elt, which was accidentally removed during the
9025 HP merge.
9026
9027 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9028
9029 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9030 value_of_register.
9031 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9032 get_saved_register.
9033 * value.h (value_of_register): Update.
9034
9035 2002-03-14 Richard Henderson <rth@redhat.com>
9036
9037 * configure.in: Detect declaration for canonicalize_file_name.
9038 * utils.c (canonicalize_file_name): Declare, if needed.
9039 (gdb_realpath): Prefer realpath if available and usable.
9040 * config.in, configure: Rebuild.
9041
9042 2002-03-14 Richard Henderson <rth@redhat.com>
9043
9044 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9045 a constant array bound.
9046
9047 * MAINTAINERS: Add myself to write-after-approval.
9048
9049 2002-03-14 Michael Snyder <msnyder@redhat.com>
9050
9051 * symfile.c (syms_from_objfile): Return immediately if no syms.
9052 (symbol_file_add): Return immediately if no syms.
9053 (find_sym_fns): Return immediately if no syms.
9054
9055 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9056
9057 * gdbserver/remote-util.c (remote_open): Print remote-side's
9058 IP address when remote debugging over the network.
9059
9060 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9061
9062 * config/sparc/fbsd.mh: Fix copyright.
9063 * config/sparc/fbsd.mt: Likewise.
9064
9065 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9066
9067 * MAINTAINERS: Fix typo in name of gdb warnings option.
9068 (x86-64): Fix formating so that this can be parsed by awk.
9069
9070 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9071
9072 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9073 * defs.h: Include "gdb/signals.h".
9074 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9075
9076 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9077
9078 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9079 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9080 from x86-64-tdep.h
9081
9082 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9083 Don Howard <dhoward@redhat.com>
9084
9085 * mips-tdep.c (ST0_FR): Define.
9086 (mips2_fp_compat): New function, temporarily disabled.
9087 (mips_read_fp_register_single): New function.
9088 (mips_read_fp_register_double): New function.
9089 (mips_print_register): Use them.
9090 (do_fp_register_row): Likewise.
9091
9092 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9093
9094 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9095 approval''.
9096
9097 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9098
9099 * stabsread.c (read_member_functions): Fix is_stub test for
9100 static member functions, improve comment.
9101
9102 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9103
9104 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9105 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9106 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9107 commands that set boolean values.
9108 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9109 (arm_rdi_resume): Always initialize PC.
9110 (arm_rdi_open): Don't use rslt as a boolean.
9111 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9112 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9113 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9114 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9115
9116 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9117
9118 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9119 * configure: Rebuilt.
9120
9121 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9122
9123 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9124 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9125
9126 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9127
9128 * cli/cli-decode.c (set_cmd_completer): New function.
9129 * command.h (set_cmd_completer): Declare.
9130 * cli/cli-decode.h (set_cmd_completer): Ditto.
9131
9132 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9133 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9134 * win32-nat.c (_initialize_inftarg): Ditto.
9135 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9136 * proc-api.c (_initialize_proc_api): Ditto.
9137 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9138 * source.c (_initialize_source): Ditto.
9139 * exec.c (_initialize_exec): Ditto.
9140 * solib.c (_initialize_solib): Ditto.
9141 * top.c (init_main): Ditto.
9142 * tracepoint.c (_initialize_tracepoint): Ditto.
9143 * symfile.c (_initialize_symfile): Ditto.
9144 * printcmd.c (_initialize_printcmd): Ditto.
9145 * infcmd.c (_initialize_infcmd): Ditto.
9146 * corefile.c (_initialize_core): Ditto.
9147
9148 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9149
9150 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9151
9152 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9153
9154 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9155
9156 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9157
9158 * NEWS: Update headings, 5.2 has branched.
9159
9160 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9161
9162 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9163 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9164 (register_addr, REGISTER_RAW_SIZE): Likewise.
9165 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9166 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9167
9168 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9169
9170 * MAINTAINERS (x86-64): Add myself.
9171 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9172 changed value_ptr -> struct value *
9173
9174 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9175
9176 * configure.host (sparc64-*-freebsd): Add.
9177 * configure.tgt: Likewise.
9178 * config/sparc/fbsd.mh: New file.
9179 * config/sparc/fbsd.mt: Likewise.
9180 * config/sparc/nm-fbsd.h: Likewise.
9181 * config/sparc/tm-fbsd.h: Likewise.
9182
9183 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9184
9185 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9186 regformats/reg-s390x.dat.
9187
9188 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9189
9190 * utils.c: Add FIXME explaining true/false problem.
9191
9192 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9193
9194 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9195
9196 2002-02-28 Michael Chastain <mec@shout.net>
9197
9198 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9199
9200 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9201
9202 * gdbserver/linux-s390-low.c: New file.
9203 * regformats/reg-s390.dat: New file.
9204 * regformats/reg-s390x.dat: New file.
9205 * gdbserver/configure.srv: Add S/390.
9206 * gdbserver/Makefile.in: Add S/390.
9207 * configure.tgt: Enable gdbserver for S/390.
9208
9209 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9210
9211 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9212 first line of the doc string for "info dos", except at the end of
9213 the sentence, since the short help stops at the first period.
9214
9215 2002-02-28 Jason Merrill <jason@redhat.com>
9216
9217 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9218
9219 2002-02-27 Fred Fish <fnf@redhat.com>
9220
9221 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9222 comment (dumy -> dummy).
9223
9224 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9225
9226 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9227
9228 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9229
9230 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9231
9232 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9233
9234 * gdbserver/acconfig.h: New file.
9235 * gdbserver/i387-fp.c: New file.
9236 * gdbserver/i387-fp.h: New file.
9237 * gdbserver/linux-x86-64.c: New file.
9238 * regformats/reg-x86-64.dat: New file.
9239 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9240 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9241 * gdbserver/configure.in: Add support for regsets.
9242 * gdbserver/config.in: Regenerate.
9243 * gdbserver/configure: Regenerate.
9244 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9245 * gdbserver/linux-low.h: New file.
9246 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9247 for regsets.
9248 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9249 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9250 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9251 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9252 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9253 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9254 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9255 "i387-fp.h". Add PTRACE_GETREGS and friends.
9256 * gdbserver/regcache.c (supply_register): New function.
9257 (supply_register_by_name): New function.
9258 (collect_register): New function.
9259 (collect_register_by_name): New function.
9260
9261 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9262
9263 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9264 (config.status): Add configure.srv dependency.
9265 (server_h): Add config.h dependency.
9266
9267 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9268
9269 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9270 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9271 * gdbserver/configure.srv: Change i386-*-linux* to use
9272 reg-i386-linux.o.
9273
9274 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9275
9276 * x86-64-tdep.c: Re-indent. Update copyright date.
9277
9278 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9279
9280 From Michal Ludvig <mludvig@suse.cz>:
9281 * x86-64-tdep.c (value.h): Delete.
9282 (gdb_assert.h): Include.
9283 (x86_64_register_convert_to_virtual,
9284 x86_64_register_convert_to_raw ): Add check which lets only
9285 floating-point values to be converted.
9286 (value_push): Delete.
9287 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9288 (i386_gdbarch_init): Number of register_bytes fixed.
9289
9290 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9291
9292 * MAINTAINERS: Add x86-64 target.
9293
9294 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9295
9296 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9297 * osfsolib.c (solib_map_sections): Ditto.
9298 * irix5-nat.c (solib_map_sections): Ditto.
9299 * corelow.c (gdb_check_format): Ditto.
9300 * symfile.c (symfile_bfd_open): Ditto.
9301 * solib.c (solib_map_sections): Ditto.
9302 Fix PR gdb/354.
9303
9304 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9305
9306 * remote.c (_initialize_remote): By default, disable ``e'' and
9307 ``E'' step out-of-range packets.
9308
9309 2002-02-26 Andreas Schwab <schwab@suse.de>
9310
9311 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9312 m68k_linux_frame_saved_pc.
9313 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9314 in_sigtramp.
9315 (SIGCONTEXT_PC_OFFSET): Remove.
9316 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9317 m68k_linux_sigtramp_saved_pc): New functions.
9318 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9319 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9320 (UCONTEXT_PC_OFFSET): Define.
9321 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9322 non-RT and RT signal trampolines.
9323
9324 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9325
9326 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9327 (TARGET_NBPG, STACK_END_ADDR): Delete
9328 (VARIABLES_INSIDE_BLOCK): Delete.
9329
9330 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9331
9332 * utils.c (perror_with_name): Make string parameter constant.
9333 (print_sys_errmsg): Ditto.
9334 (query): Ditto.
9335 * defs.h (perror_with_name): Update.
9336 (print_sys_errmsg): Update.
9337 (query): Update.
9338
9339 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9340
9341 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9342 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9343
9344 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9345
9346 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9347 if it already matches the current architecture from the exec file.
9348 Include arch-utils.h for gdbarch_info_init prototype.
9349 * Makefile.in (rs6000-nat.o): Update dependencies.
9350
9351 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9352
9353 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9354 list of exported variables.
9355
9356 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9357
9358 * gdbserver/configure.srv: New file.
9359 * gdbserver/configure.in: Use configure.srv instead
9360 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9361 from it.
9362 * gdbserver/configure: Regenerated.
9363 * gdbserver/terminal.h: New file.
9364 * gdbserver/Makefile.in: Update for configure changes. Remove
9365 more unneeded include paths.
9366
9367 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9368
9369 From wiz at danbala:
9370 * config/sparc/tm-sp64.h: Fix grammar and typos.
9371 Fix PR gdb/287.
9372
9373 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9374
9375 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9376 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9377 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9378 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9379 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9380 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9381 * s390-tdep.c: Ditto.
9382 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9383 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9384 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9385 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9386 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9387 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9388 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9389 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9390 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9391 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9392 Fix PR gdb/378.
9393
9394 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9395
9396 * lin-thread.c: Delete file.
9397 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9398 to gdb_proc_service.h.
9399 * configure: Re-generate.
9400
9401 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9402 * serial.c (serial_open): Delete check for "ocd".
9403 Fix PR gdb/349.
9404
9405 * Makefile.in (linux-thread.o): Delete target.
9406 * linux-thread.c: Delete file.
9407
9408 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9409 renamed SH files to be consistent.
9410
9411 * symtab.c (sort_search_symbols): Use xfree.
9412
9413 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9414
9415 * arm-linux-tdep.c (arm_linux_init_abi): Register
9416 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9417 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9418 definition with undef, since we don't want the sysvr4 definition.
9419 (SKIP_TRAMPOLINE_CODE): Likewise.
9420
9421 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9422
9423 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9424
9425 * configure.in: (AC_CHECK_FUNCS) Added test for
9426 canonicalize_file_name Regenerated.
9427 * config.in, configure: Regenerated.
9428 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9429 defined use canonicalize_file_name.
9430
9431 2002-02-23 Michael Chastain <mec@shout.net>
9432
9433 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9434
9435 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9436
9437 * README: Remove references to cygnus.com.
9438 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9439 dot com'' form. Remove references to cygnus.com and sourceware.
9440
9441 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9442
9443 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9444 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9445 1003.1-2001 no longer allows "head -1".
9446 * gdb/Makefile.in (version.c): Likewise.
9447 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9448 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9449 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9450
9451 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9452
9453 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9454 * command.h (cmd_cfunc_eq): Declare.
9455 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9456
9457 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9458 ``struct cmd_list_element *''.
9459 * cli/cli-cmds.c (is_complete_command): Update. Use
9460 cmd_cfunc_eq.
9461 * top.c (execute_command): Pass the command to
9462 is_complete_command.
9463 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9464
9465 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9466
9467 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9468 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9469 architecture defines.
9470 * s390-tdep.c (s390_gdbarch_init): Likewise.
9471
9472 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9473
9474 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9475 (arm_linux_push_arguments): Likewise.
9476 (arm_linux_init_abi): Register them. Also register linux-specific
9477 call_dummy_words.
9478 (find_minsym_and_objfile): Use strcmp, not STREQ.
9479 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9480 (arm_linux_call_dummy_words): Delete declaration.
9481 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9482 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9483 declarations.
9484 (LOWEST_PC): Delete.
9485
9486 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9487
9488 * maint.c (print_section_info): Do not prepend `0x' to filepos
9489 output, it will be handled by local_hex_string_custom.
9490
9491 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9492
9493 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9494 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9495 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9496
9497 2002-02-22 Jim Blandy <jimb@redhat.com>
9498
9499 Indicate that the bcache functions don't change the strings
9500 they're passed.
9501 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9502 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9503
9504 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9505
9506 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9507
9508 2002-02-21 Christopher Faylor <cgf@redhat.com>
9509
9510 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9511 find the complete path to a loaded DLL.
9512
9513 2002-02-21 Fred Fish <fnf@redhat.com>
9514
9515 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9516 that marks the end of the range of a function, enter a line number
9517 entry that has a line number of zero and a PC offset that matches
9518 the end of the function. This starts a range of PC's for which no
9519 line number information is known.
9520 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9521 PC's for which no line number info is found (line number is zero)
9522 then we didn't find any valid line information.
9523 * symtab.h: Document use of zero line number entry.
9524
9525 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9526
9527 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9528 (have_ptrace_getvrregs): Define for run time checks.
9529 (gdb_vrregset_t): New type for Altivec register handling.
9530 (fetch_register, store_register): Fetch/store altivec register
9531 when needed.
9532 (fetch_altivec_register, store_altivec_register): New functions.
9533 (supply_vrregset, fill_vrregset): New functions.
9534 (fetch_altivec_registers, store_altivec_registers): New functions.
9535 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9536 registers as well.
9537
9538 2002-02-21 Jiri Smid <smid@suse.cz>
9539
9540 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9541
9542 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9543
9544 * Makefile.in (armnbsd-nat.o): Update dependencies.
9545 * armnbsd-nat.c (supply_gregset): New function. Common code to
9546 supply the integer register set.
9547 (supply_fparegset): New function. Similar for FPA registers.
9548 (fetch_regs, fetch_fp_regs): Use them.
9549 (fetch_core_registers): Likewise.
9550 (fetch_elfcore_registers): New function.
9551 (arm_netbsd_elfcore_fns): New core-file type specification.
9552 (_initialize_arm_netbsd_nat): Register it.
9553
9554 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9555
9556 * armnbsd-nat.c: Include gdbcore.h.
9557 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9558 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9559 'void' to declaration, to shut up ARI.
9560 (fetch_core_registers): Make static. Rewrite using supply_register.
9561 (arm_netbsd_core_fns): New core-file type specification.
9562 (_initialize_arm_netbsd_nat): New function.
9563
9564 2002-02-21 Christopher Faylor <cgf@redhat.com>
9565
9566 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9567 value.
9568
9569 2002-02-20 Christopher Faylor <cgf@redhat.com>
9570
9571 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9572 fails.
9573
9574 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9575
9576 * jv-exp.y (parse_number): Change type of implicit longs
9577 to builtin_type_uint64.
9578
9579 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9580
9581 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9582 to be an integer instead of a `union wait'.
9583
9584 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9585
9586 * mips-linux-nat.c: Call the operating system GNU/Linux.
9587 * mips-linux-tdep.c: Likewise.
9588 * mips-tdep.c: Likewise.
9589
9590 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9591
9592 Fix PR gdb/265.
9593 * jv-exp.y (parse_number): Handle 64-bit integers.
9594
9595 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9596
9597 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9598 AC_STDC_HEADERS to AC_HEADER_STDC.
9599 * gdbserver/configure: Regenerated.
9600
9601 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9602
9603 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9604 is defined.
9605 * sparc-tdep.c (get_longjmp_target): Likewise.
9606
9607 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9608
9609 * News: Add news about ARM and Multi-arch. Mention the new target
9610 arm*-*-netbsd*.
9611
9612 2002-02-19 Jim Blandy <jimb@redhat.com>
9613
9614 * stabsread.c (error_type_complaint): Improve error message.
9615
9616 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9617
9618 * gdbserver/README: Update documentation.
9619 * gdbserver/configure.in: Update configury to match documentation.
9620 * gdbserver/Makefile.in: Likewise.
9621 * gdbserver/configure: Regenerated.
9622 * gdbserver/aclocal.m4: New file, generated by aclocal.
9623 * gdbserver/config.in: New file, generated by autoheader.
9624
9625 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9626
9627 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9628 armnbsd-nat.c.
9629
9630 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9631
9632 * arm-tdep.h (enum arm_float_model): New enum.
9633 (struct gdbarch_tdep): Add fp_model.
9634 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9635 up floating-point conversions until we know the floating-point model
9636 in use by the inferior. Don't complain about being unable to
9637 determine the ABI of the inferior when we don't have one.
9638 (arm_extract_return_value): Support different floating-point models.
9639 (arm_store_return_value): Likewise.
9640 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9641 ARM_FLOAT_SOFT.
9642 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9643
9644 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9645
9646 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9647 of ``current_gdbarch''.
9648
9649 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9650
9651 * armnbsd-nat.c : ANSIfy all function declarations.
9652 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9653 (fetch_inferior_registers): Re-implement in terms of above.
9654 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9655 (store_inferior_registers): Re-implement in terms of above.
9656
9657 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9658
9659 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9660 kernel.
9661 * arm-linux-tdep.c: Likewise.
9662 * config/arm/tm-linux.h: Likewise.
9663
9664 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9665
9666 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9667 * config/arm/nbsd.mt (TM_FILE): Delete.
9668 * config/arm/tm-nbsd.h: Delete.
9669
9670 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9671
9672 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9673 Initialize CALL_DUMMY_LENGTH.
9674
9675 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9676
9677 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9678 function.
9679 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9680 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9681 defines one thing and that is incorrect for this port.
9682 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9683
9684 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9685
9686 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9687
9688 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9689
9690 * win32-nat.c (display_selector): New function. Displays information
9691 about the information returned by GetThreadSelectorEntry API function.
9692 (display_selectors): New function. Displays the infomation of
9693 the selector given as argument, or of CS, DS ans FS selectors
9694 if no argument is given.
9695 ( _initialize_inftarg): Add "w32" as info prefix command.
9696 Add "info w32 selector" as command calling display_selectors.
9697
9698 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9699
9700 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9701 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9702 if not defined.
9703
9704 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9705
9706 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9707
9708 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9709
9710 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9711 (arm_fix_call_dummy): Call it.
9712 (arm_call_dummy_breakpoint_offset): Delete.
9713 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9714 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9715
9716 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9717
9718 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9719 Default to func_frame_chain_valid.
9720 * gdbarch.h, gdbarch.c: Re-generate.
9721 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9722
9723 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9724
9725 * ppc-linux-nat.c: Update copyright.
9726 (fetch_register, store_register): Add tid parameter, don't compute
9727 tid here.
9728 (fetch_ppc_registers, store_ppc_registers): Add tid
9729 parameter. Pass it along to callees.
9730 (fetch_inferior_registers, store_inferior_registers): Compute tid
9731 here, and pass it to calleed functions.
9732 (fill_gregset, supply_fpregset): Clean up formatting.
9733
9734 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9735
9736 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9737 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9738
9739 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9740
9741 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9742 * gdbarch.c gdbarch.h: Regenerate.
9743 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9744 function.
9745 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9746 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9747 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9748
9749 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9750 * arm-tdep.c (arm_get_longjmp_target): New function.
9751 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9752 this to a positive value register arm_get_longjmp_target as the
9753 longjmp handler.
9754 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9755 (arm_linux_init_abi): Set up longjmp description in tdep.
9756 * armnbsd-nat.c (get_longjmp_target): Delete.
9757 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9758 description in tdep.
9759 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9760 (get_longjmp_target): Delete declaration.
9761 (GET_LONGJMP_TARGET): Delete.
9762 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9763 (GET_LONGJMP_TARGET): Delete.
9764
9765 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9766
9767 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9768 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9769 of ``current_gdbarch''.
9770
9771 2002-02-17 Tom Tromey <tromey@redhat.com>
9772
9773 * cli/cli-cmds.c (compare_strings): New function.
9774 (complete_command): Only print each unique item once.
9775 * completer.h (complete_line): Declare.
9776 * completer.c (complete_line): New function.
9777 (line_completion_function): Use it.
9778
9779 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9780
9781 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9782 * gdbarch.h, gdbarch.c: Re-generate.
9783
9784 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9785
9786 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9787
9788 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9789
9790 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9791 * valops.c (value_arg_coerce): Don't take the address of a reference
9792 to convert an argument to a reference.
9793
9794 2002-02-15 Christopher Faylor <cgf@redhat.com>
9795
9796 * win32-nat.c (get_image_name): New function.
9797 (handle_load_dll): Use get_image_name function.
9798 (get_child_debug_event): Avoid registering debug events until possibly
9799 execed process is started.
9800 (child_create_inferior): Allow invocation via shell so that command
9801 line redirection, etc. works ok.
9802 (_initialize_inftarg): Add new command: "set shell" to control whether
9803 a shell is used to start a process.
9804
9805 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9806
9807 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9808 instead of find_register_by_number.
9809 (cannot_store_register): Likewise.
9810
9811 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9812
9813 * dwarf2read.c: Replace fprintf (stderr, ...) by
9814 fprintf_unfiltered (gdb_stderr, ...).
9815
9816 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9817
9818 * gdbserver/gdbserver.1: Document --attach.
9819
9820 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9821
9822 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9823 descriptions.
9824 * arm-tdep.c (arm_default_arm_le_breakpoint)
9825 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9826 (arm_default_thumb_be_breakpoint): New. Initialize them from
9827 traditional breakpoint defines.
9828 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9829 (arm_gdbarch_init): Initialize new breakpoint variables.
9830 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9831 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9832 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9833 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9834 code out to ...
9835 (arm_netbsd_init_abi_common): ... here; new function.
9836 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9837 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9838 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9839 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9840
9841 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9842
9843 * arm-tdep.h (enum arm_abi): New enum.
9844 (struct gdbarch_tdep): New structure.
9845 (LOWEST_PC): Provide a default.
9846 (arm_gdbarch_register_os_abi): Declare new function.
9847 * arm-tdep.c (arm_abi_names): New array.
9848 (process_note_abi_tag_sections): New function.
9849 (get_elfosabi): New function.
9850 (arm_gdbarch_register_os_abi): New function.
9851 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9852 support for that ABI has been built in, then call the appropriate
9853 configuration routine. Use gdbarch_num_regs() to get the number
9854 of registers.
9855 (arm_dump_tdep): New function.
9856 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9857 place-holder functions.
9858 (_initialize_arm_tdep): Register them.
9859 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9860
9861 * armnbsd-tdep.c: New file.
9862 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9863 * config/arm/nbsd.mt (TDEPFILES): Add it.
9864 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9865
9866 * armnbsd-nat.c: Include regcache.h.
9867 * Makefile.in (armnbsd-nat.o): Update dependency list.
9868
9869 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9870
9871 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9872
9873 * gdbserver/Makefile.in: Fix typos in target rules.
9874
9875 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9876
9877 Fix part of PR gdb/267.
9878 * linespec.c (find_methods): Handle constructors specially for now.
9879
9880 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9881
9882 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9883 handling.
9884 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9885 standard_coerce_float_to_double().
9886
9887 2002-02-14 Christopher Faylor <cgf@redhat.com>
9888
9889 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9890 GDBINIT_FILENAME.
9891
9892 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9893
9894 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9895 find_variant_by_name, because it confuses the multiarch
9896 framework. Return NULL if there isn't an architecture with the
9897 user supplied name, instead of forcing a different one without
9898 recording the change with the multiarch machinery.
9899 (find_variant_by_name): Delete.
9900
9901 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9902
9903 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9904 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9905
9906 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9907
9908 * stack.c (print_frame_info_base): When calling
9909 print_frame_info_listing_hook, set current_source_symtab.
9910
9911 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9912
9913 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9914 and remove unused $(INCLUDE_DIR).
9915 Add regcache.c to OBS.
9916 Add generated register protocol files to clean target.
9917 Update dependencies for new objects, obsolete old target code.
9918
9919 * gdbserver/linux-low.c: Remove all platform-specific code to
9920 new files. Remove various dead code. Update to use regcache
9921 functionality.
9922 * gdbserver/remote-utils.c (fromhex): Add return statement
9923 to quiet warning.
9924 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9925 constant.
9926 (input_interrupt): Add integer parameter to match prototype
9927 of a signal handler.
9928 (outreg): Use register_data ().
9929 (prepare_resume_reply): Use gdbserver_expedite_regs.
9930 * gdbserver/server.c (main): Dynamically allocate own_buf because
9931 PBUFSIZ is no longer constant. Use registers_to_string () and
9932 registers_from_string ().
9933 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9934 for error (), fatal (), and warning (). Update definition of
9935 PBUFSIZ to use regcache functionality. Add include guard.
9936 * gdbserver/utils.c (fatal): Add missing ``const''.
9937 (warning): New function.
9938
9939 * regformats/regdat.sh: Include "regcache.h" in generated files.
9940 Provide init_registers () function.
9941 * regformats/regdef.h: Add prototype for set_register_cache ().
9942 Add include guard.
9943
9944 * gdbserver/linux-arm-low.c: New file.
9945 * gdbserver/linux-i386-low.c: New file.
9946 * gdbserver/linux-ia64-low.c: New file.
9947 * gdbserver/linux-m68k-low.c: New file.
9948 * gdbserver/linux-mips-low.c: New file.
9949 * gdbserver/linux-ppc-low.c: New file.
9950 * gdbserver/linux-sh-low.c: New file.
9951
9952 * gdbserver/regcache.c: New file.
9953 * gdbserver/regcache.h: New file.
9954
9955 * gdbserver/low-linux.c: Removed obsolete file.
9956
9957 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9958
9959 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9960 * config/i386/linux.mt: Likewise.
9961 * config/ia64/linux.mt: Likewise.
9962 * config/m68k/linux.mh: Likewise.
9963 * config/powerpc/linux.mh: Likewise.
9964 * config/mips/linux.mt: Likewise.
9965
9966 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9967
9968 * config/i386/i386lynx.mh: Mark gdbserver variables
9969 as (currently) obsolete for this target.
9970 * config/i386/nbsd.mt: Likewise.
9971 * config/i386/nbsdelf.mt: Likewise.
9972 * config/m32r/m32r.mt: Likewise.
9973 * config/m68k/m68klynx.mh: Likewise.
9974 * config/m68k/nbsd.mt: Likewise.
9975 * config/m68k/sun3os4.mh: Likewise.
9976 * config/mips/vr5000.mt: Likewise.
9977 * config/ns32k/nbsd.mt: Likewise.
9978 * config/pa/hppabsd.mh: Likewise.
9979 * config/pa/hppaosf.mh: Likewise.
9980 * config/powerpc/nbsd.mt: Likewise.
9981 * config/rs6000/rs6000lynx.mh: Likewise.
9982 * config/s390/s390.mt: Likewise.
9983 * config/s390/s390x.mt: Likewise.
9984 * config/sparc/sparclynx.mh: Likewise.
9985 * config/sparc/sun4os4.mh: Likewise.
9986 * config/i386/x86-64linux.mt: Likewise.
9987 * config/sparc/linux.mh: Likewise.
9988
9989 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9990
9991 * configure.tgt: Configure gdbserver only for known working
9992 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9993 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9994 SUBDIRS if it is configured. Update comment for ${nativefile}.
9995 * configure: Regenerated.
9996
9997 2002-02-13 Michael Snyder <msnyder@redhat.com>
9998
9999 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10000
10001 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10002 (default_gcore_mach): Just return 0, work around a problem in bfd.
10003 (default_gcore_target): OK to return NULL if exec_bfd is null.
10004 (make_mem_sec): Use a cast, avoid a warning.
10005
10006 * procfs.c (find_memory_regions_callback): Use a cast instead of
10007 calling host_pointer_to_address (which complains if
10008 sizeof (host pointer) != sizeof (target pointer)).
10009 (procfs_make_note_section): Avoid overflow in psargs string.
10010
10011 * procfs.c (procfs_make_note_section): Make the default
10012 implementation return an error.
10013
10014 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10015
10016 * procfs.c (procfs_make_note_section): Provide a default definition
10017 (for alpha-dec-osf4.0f). Fix typos.
10018
10019 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10020
10021 * linux-proc.c: Add include of regcache.h.
10022 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10023
10024 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10025
10026 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10027 * memattr.c (create_mem_region): Disallow useless empty region.
10028 Regions are half-open intervals, so allow [A..B) [B..C) as
10029 non-overlapping.
10030
10031 2002-02-13 Michael Chastain <mec@shout.net>
10032
10033 * defs.h: Kill CONST_PTR.
10034 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10035 * c-lang.c (c_builtin_types): Likewise.
10036 * ch-lang.c (ch_builtin_types): Likewise.
10037 * f-lang.c (f_builtin_types): Likewise.
10038 * language.c (unknown_builtin_types): Likewise.
10039 * m2-lang.c (m2_builtin_types): Likewise.
10040 * p-lang.c (pascal_builtin_types): Likewise.
10041 * scm-lang.c (c_builtin_types): Likewise.
10042
10043 2002-02-13 Keith Seitz <keiths@redhat.com>
10044
10045 * arm-tdep.h (arm_get_next_pc): Add declaration.
10046
10047 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10048
10049 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10050 with other related struct-returning functions.
10051 (arm_extract_struct_value_address): New function.
10052 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10053 initialize float_format, double_format and long_double_format as
10054 appropriate to the endianness of the target.
10055 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10056 (arm_use_struct_convention): Delete declaration.
10057 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10058
10059 2002-02-13 Keith Seitz <keiths@redhat.com>
10060
10061 * defs.h (core_addr_to_string_nz): New function.
10062
10063 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10064
10065 Apply missing bits of 2002-01-15 patch.
10066 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10067 (fill_fpregset): Use i387_fill_fsave.
10068
10069 2002-02-12 Keith Seitz <keiths@redhat.com>
10070
10071 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10072 (core_addr_to_string_nz): New function.
10073
10074 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10075
10076 * arm-linux-nat.c: Really include arm-tdep.h.
10077 * config/arm/tm-linux.h (struct type, struct value): Declare.
10078
10079 2002-02-11 Michael Snyder <msnyder@redhat.com>
10080
10081 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10082 (gcore section): Ifdef for Solaris and Unixware only.
10083 (procfs_do_thread_registers): Unixware needs one lwpstatus
10084 per thread (not one prstatus or pstatus).
10085 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10086 not over all gdb threads. For unixware, call elfcore_write_pstatus
10087 once before iterating over threads.
10088
10089 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10090
10091 * arm-tdep.h: New file.
10092 * arm-tdep.c: Include arm-tdep.h.
10093 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10094 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10095 (arm_print_float_info, arm_register_type, convert_to_extended)
10096 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10097 (arm_extract_return_value, arm_register_name): Make static.
10098 (arm_software_single_step): Similarly. Fix types in declaration.
10099 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10100 (arm_store_return_value, arm_store_struct_return): New functions.
10101 (arm_gdbarch_init): Register the above functions. Also register
10102 call_dummy_start_offset, sizeof_call_dummy_words,
10103 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10104 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10105 max_register_virtual_size, register_size. Set up
10106 prologue_cache.saved_regs here, rather than ...
10107 (_initialize_arm_tdep): ... here.
10108 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10109 declarations.
10110 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10111 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10112 (arm_print_float_info, arm_register_type, convert_to_extended)
10113 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10114 (arm_extract_return_value, arm_register_name): Delete declarations.
10115 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10116 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10117 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10118 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10119 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10120 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10121 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10122 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10123 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10124 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10125 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10126 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10127 interface.
10128 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10129 * remote-rdi.c remote-rdp.c: Likewise.
10130 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10131 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10132 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10133 definition.
10134
10135 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10136 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10137 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10138 from non-ARM_ prefixed definitions.
10139 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10140 all uses of above.
10141 * remote-rdi.c remote-rdp.c: Likewise.
10142 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10143
10144 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10145
10146 * arm-tdep.c (arm_frameless_function_invocation)
10147 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10148 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10149 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10150 (arm_pop_frame, arm_get_next_pc): Make static.
10151 (arm_gdbarch_init): Register above in gdbarch structure.
10152 (arm_read_fp): Renamed from arm_target_read_fp.
10153 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10154 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10155 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10156 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10157 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10158 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10159 (arm_pc_is_thumb_dummy): Delete declarations.
10160 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10161 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10162 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10163 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10164
10165 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10166
10167 * symtab.c (compare_search_syms): New function.
10168 (sort_search_symbols): New function.
10169 (search_symbols): Sort symbols after searching rather than
10170 before.
10171
10172 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10173
10174 * NEWS: Linux -> GNU/Linux.
10175
10176 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10177
10178 * gdbarch.sh: For for level one methods, disallow a definition
10179 when partially multi-arched. Add comments explaining rationale.
10180 * gdbarch.h: Re-generate.
10181
10182 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10183
10184 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10185 multi-arch partial.
10186
10187 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10188
10189 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10190 field. Use diff -u.
10191 * gdbarch.c: Re-generate.
10192
10193 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10194
10195 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10196 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10197 partial.
10198
10199 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10200
10201 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10202 multi-arch partial.
10203 (PUSH_ARGUMENTS): Switch to using predefault.
10204 * gdbarch.c: Regenerate.
10205
10206 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10207
10208 * valops.c (PUSH_ARGUMENTS): Delete definition.
10209 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10210 partial. Default to default_push_arguments.
10211 * gdbarch.h, gdbarch.c: Regenerate.
10212
10213 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10214
10215 * defs.h (throw_exception): Rename return_to_top_level. Update
10216 comments.
10217 * utils.c (error_stream, internal_verror, quit): Ditto.
10218 * top.c (throw_exception, catcher): Ditto.
10219 * sparclet-rom.c (sparclet_load): Ditto.
10220 * remote.c (interrupt_query, minitelnet): Ditto.
10221 * remote-sds.c (interrupt_query): Ditto.
10222 * remote-mips.c (mips_error, mips_kill): Ditto.
10223 * ocd.c (interrupt_query): Ditto.
10224 * monitor.c (monitor_interrupt_query): Ditto.
10225 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10226 * target.h: Update comment.
10227
10228 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10229
10230 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10231
10232 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10233 default_double_format.
10234 * gdbarch.h, gdbarch.c: Re-generate.
10235 * findvar.c (floatformat_unknown): Delete variable definition.
10236 * doublest.h (floatformat_unknown): Delete variable declaration.
10237
10238 2002-02-09 Jim Blandy <jimb@redhat.com>
10239
10240 * stabsread.c (read_type): Add code to parse Sun's syntax for
10241 prototyped function types.
10242
10243 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10244
10245 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10246 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10247
10248 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10249
10250 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10251 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10252 now _initialize_xcoffsolib gets called again and overrides the
10253 commands from solib.c in a native configuration.
10254
10255 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10256
10257 * doublest.c (store_typed_floating): Don't try to return a value.
10258 Fixes PR gdb/290.
10259
10260 2002-02-08 Jim Blandy <jimb@redhat.com>
10261
10262 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10263 is prototyped and has no arguments, print its argument list as
10264 `(void)'.
10265
10266 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10267
10268 * MAINTAINERS (write-after-approval): Add myself.
10269 (paper-trail): I've escaped!
10270
10271 2002-02-08 Christopher Faylor <cgf@redhat.com>
10272
10273 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10274 changes.
10275 (_initialize_check_for_gdb_ini): Ditto.
10276
10277 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10278
10279 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10280 xaprintf -> xasprintf.
10281
10282 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10283
10284 * win32-nat.c: Remove use of printf and sprintf functions.
10285
10286 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10287
10288 * arm-tdep.c (arm_frame_chain_valid): Make static.
10289 (arm_push_arguments): Likewise.
10290 (arm_gdbarch_init): New function.
10291 (_initialize_arm_tdep): Call it.
10292 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10293 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10294 (FRAME_CHAIN_VALID): Delete.
10295 (arm_frame_chain_valid): Delete declaration.
10296 (PUSH_ARGUMENTS): Delete.
10297 (arm_push_arguments): Delete declaration.
10298 (CALL_DUMMY_P): Delete.
10299
10300 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10301 Corinna Vinschen <vinschen@redhat.com>
10302
10303 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10304 on builtin float types.
10305
10306 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10307
10308 * utils.c: Include <curses.h> before "bfd.h".
10309 * tui/tui-hooks.c: Likewise.
10310 * tui/tui.c: Likewise.
10311 * tui/tuiCommand.c: Likewise.
10312 * tui/tuiData.c: Likewise.
10313 * tui/tuiDataWin.c: Likewise.
10314 * tui/tuiDisassem.c: Likewise.
10315 * tui/tuiGeneralWin.c: Likewise.
10316 * tui/tuiIO.c: Likewise.
10317 * tui/tuiLayout.c: Likewise.
10318 * tui/tuiRegs.c: Likewise.
10319 * tui/tuiSource.c: Likewise.
10320 * tui/tuiSourceWin.c: Likewise.
10321 * tui/tuiStack.c: Likewise.
10322 * tui/tuiWin.c: Likewise.
10323
10324 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10325
10326 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10327 to include space for pseudoregs as well. Update loops accordingly.
10328 (sh_fp_frame_init_saved_regs): Ditto.
10329 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10330
10331 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10332
10333 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10334 Add Richard Earnshaw to Arm maintainers.
10335
10336 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10337
10338 * defs.h (warning_begin): Delete declaration.
10339
10340 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10341 Delete macro.
10342
10343 2002-02-07 Michael Snyder <msnyder@redhat.com>
10344
10345 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10346 Logic bug, remove misplaced else.
10347
10348 2002-02-07 Klee Dienes <klee@apple.com>
10349
10350 * fork-inferior.c (fork_inferior): Add '!' to the list of
10351 characters that need to be quoted when building a string for the
10352 shell. Quote '!' specifically with a backslash, since CSH chokes
10353 when trying to evaluate "str!str".
10354
10355 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10356
10357 * rdi-share/host.h: Only provide a typedef for bool if it is not
10358 defined.
10359
10360 2002-02-04 Michael Snyder <msnyder@redhat.com>
10361
10362 * breakpoint.h (enum bptype): Add new overlay event bp type.
10363 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10364
10365 * breakpoint.c (create_internal_breakpoint): New function.
10366 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10367 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10368 (create_thread_event_breakpoint): Ditto.
10369 (create_solib_event_breakpoint): Ditto.
10370 (create_overlay_event_breakpoint): New function.
10371 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10372 (update_breakpoints_after_exec): Delete and re-initialize
10373 overlay event breakpoints after an exec. Add FIXME comment
10374 about longjmp breakpoint.
10375 (print_it_typical): Ignore overlay event breakpoints.
10376 (print_one_breakpoint): Ditto.
10377 (mention): Ditto.
10378 (bpstat_what): Do not stop for overlay event breakpoints.
10379 (delete_breakpoint): Don't delete overlay event breakpoints.
10380 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10381 (breakpoint_re_set): Re-create overlay event breakpoint.
10382
10383 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10384 (overlay_manual_command): Disable overlay breakpoints.
10385 (overlay_off_command): Disable overlay breakpoints.
10386
10387 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10388
10389 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10390 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10391 to here from config/tm-arm.h.
10392 (coff_sym_is_thumb): Make static.
10393 (arm_elf_make_msymbol_special): New function.
10394 (arm_coff_make_msymbol_special): New function.
10395 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10396 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10397 (coff_sym_is_thumb): Delete declaration.
10398 (arm_elf_make_msymbol_special): Declare.
10399 (arm_coff_make_msymbol_special): Declare.
10400 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10401 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10402
10403 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10404
10405 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10406
10407 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10408
10409 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10410 * gdbarch.c gdbarch.h: Regenerate.
10411 * arch-utils.c (default_print_float_info): New function.
10412 * arch-utils.h (default_print_float_info): Prototype it.
10413 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10414 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10415 (PRINT_FLOAT_INFO): Document it.
10416
10417 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10418 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10419 (PRINT_FLOAT_INFO): Define.
10420
10421 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10422
10423 * win32-nat.c (_initialize_check_for_gdb_ini):
10424 Add typecast to sprintf argument to suppress a warning.
10425
10426 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10427
10428 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10429 to allow easier handling of pass state.
10430 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10431 that gives exception name and address.
10432 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10433 and set last_sig value to ourstatus->value.sig. Some missing
10434 exceptions added.
10435 (child_continue): Correctly report continue_status.
10436 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10437 TARGET_SIGNAL_0 (new default value).
10438 (child_resume): consider sig argument passed to decide if
10439 the exception should be passed to debuggee or not.
10440
10441 2002-02-05 Michael Snyder <msnyder@redhat.com>
10442
10443 * regcache.c (fetch_register): Call target_fetch_register
10444 only if we don't call FETCH_PSEUDO_REGISTER.
10445 (store_register): Call target_store_register only if we
10446 don't call STORE_PSEUDO_REGISTER.
10447
10448 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10449
10450 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10451 ELF_MAKE_MSYMBOL_SPECIAL.
10452 * gdbarch.c, gdbarch.h: Regenerate.
10453 * arch-utils.c (default_make_msymbol_special): New function.
10454 * arch-utils.h (default_make_msymbol_special): Export.
10455 * elfread.c (elf_symtab_read): Compile use of
10456 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10457 multiarched.
10458 * coffread.c (coff_symtab_read): Ditto, for
10459 COFF_MAKE_MSYMBOL_SPECIAL.
10460
10461 2002-02-05 Jim Blandy <jimb@redhat.com>
10462
10463 * solib-svr4.c (svr4_truncate_ptr): New function.
10464 (svr4_relocate_section_addresses): Do the address arithmetic with
10465 the appropriate truncation for target addresses, even when
10466 CORE_ADDR is larger than a target address.
10467
10468 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10469
10470 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10471 to (int *).
10472
10473 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10474
10475 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10476 code.
10477
10478 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10479
10480 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10481
10482 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10483
10484 * gdbserver/linux-low.c: Remove unused include files.
10485
10486 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10487
10488 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10489 (read_inferior_memory): Use it.
10490 (write_inferior_memory): Likewise.
10491
10492 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10493
10494 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10495 grubbing through sys_errlist.
10496
10497 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10498
10499 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10500
10501 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10502 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10503
10504 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10505
10506 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10507 (do_sfunc, set_cmd_sfunc): New functions.
10508
10509 * command.h (struct cmd_list_element): Add field func.
10510 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10511 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10512 * cli/cli-decode.h: Ditto.
10513
10514 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10515 (help_all, help_cmd_list): Ditto.
10516 (find_cmd, complete_on_cmdlist): Ditto.
10517 * top.c (execute_command): Ditto.
10518
10519 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10520 function.sfunc.
10521
10522 * infcmd.c (notice_args_read): Fix function signature.
10523
10524 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10525 * cli/cli-decode.c (add_set_cmd): Ditto.
10526 * utils.c (initialize_utils): Ditto.
10527 * maint.c (_initialize_maint_cmds): Ditto.
10528 * infrun.c (_initialize_infrun): Ditto.
10529 * demangle.c (_initialize_demangler): Ditto.
10530 * remote.c (add_packet_config_cmd): Ditto.
10531 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10532 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10533 * proc-api.c (_initialize_proc_api): Ditto.
10534 * kod.c (_initialize_kod): Ditto.
10535 * valprint.c (_initialize_valprint): Ditto.
10536 * top.c (init_main): Ditto.
10537 * infcmd.c (_initialize_infcmd): Ditto.
10538 * corefile.c (_initialize_core): Ditto.
10539 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10540 * arch-utils.c (initialize_current_architecture): Ditto.
10541 (_initialize_gdbarch_utils): Ditto.
10542 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10543
10544 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10545 * wince.c (_initialize_inftarg): Ditto.
10546 * symfile.c (_initialize_symfile): Ditto.
10547 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10548 * language.c (_initialize_language): Ditto.
10549 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10550
10551 2002-02-04 Michael Snyder <msnyder@redhat.com>
10552
10553 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10554
10555 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10556
10557 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10558 Add rules for building the register data files.
10559
10560 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10561
10562 * regformats/regdat.sh: Add braces to the definition of
10563 expedite_regs_${arch}.
10564
10565 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10566
10567 * regformats/regdef.h (struct reg): Add comment describing the
10568 requirements for offset and size fields.
10569
10570 2002-02-04 Andreas Schwab <schwab@suse.de>
10571
10572 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10573 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10574
10575 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10576
10577 * gdbarch.sh (copyright): Update years in generated header.
10578 (SMASH_TEXT_ADDRESS): Add rule.
10579 * gdbarch.h, gdbarch.c: Re-generate.
10580 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10581 * dbxread.c: Likewise.
10582 * dwarfread.c: Likewise.
10583 * elfread.c: Likewise.
10584 * somread.c: Likewise.
10585
10586 * arm-tdep.c (arm_smash_text_address): New function.
10587 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10588
10589 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10590
10591 Add support for hardware watchpoints on win32 native.
10592 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10593 CONTEXT_DEBUG_REGISTERS.
10594 (dr variable): New variable. Static array containing a local copy
10595 of debug registers.
10596 (debug_registers_changed): New variable. Reflects when debug registers
10597 are changed and need to be written to inferior.
10598 (debug_registers_used): New variable. Reflects when any debug register
10599 was set, used when new threads are created.
10600 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10601 i386-nat code.
10602 (thread_rec): Set dr array if id is the thread of current_event .
10603 (child_continue, child_resume): Change the debug registers for all
10604 threads if debug_registers_changed.
10605 (child_add_thread): Change the debug registers if debug_registers_used.
10606 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10607 Link nm.h to new nm-cygwin.h file.
10608 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10609 of hardware registers.
10610
10611 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10612
10613 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10614 Restore behavour broken by 2002-01-20 Andrew Cagney
10615 <ac131313@redhat.com> IEEE_FLOAT removal.
10616
10617 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10618
10619 * c-valprint.c (c_val_print): Pass a proper valaddr to
10620 cp_print_class_method.
10621 * valops.c (search_struct_method): If there is only one method
10622 and args is NULL, return that method.
10623
10624 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10625
10626 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10627 accessing tag_name directly.
10628
10629 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10630
10631 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10632 of accessing tag_name directly.
10633
10634 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10635
10636 PR gdb/280
10637 * gdbtypes.c (replace_type): New function.
10638 * gdbtypes.h (replace_type): Add prototype.
10639 * stabsread.c (read_type): Use replace_type.
10640
10641 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10642
10643 * Makefile.in (memattr.o): Add missing dependencies rule.
10644
10645 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10646
10647 * breakpoint.c (break_at_finish_command): Really export.
10648 (break_at_finish_at_depth_command): Ditto.
10649 (tbreak_at_finish_command): Ditto.
10650 * hppa-tdep.c: Include completer.h.
10651 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10652 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10653
10654 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10655
10656 * utils.c (do_write): New function.
10657 (error_stream): Rewrite combining the code from error_begin and
10658 verror.
10659 (verror): Rewrite using error_stream.
10660 (error_begin): Delete function.
10661
10662 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10663
10664 * utils.c (error_begin): Make static.
10665 * defs.h (error_begin): Delete declaration.
10666
10667 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10668 (decode_line_1): Use cplusplus_error instead of error_begin,
10669 cplusplus_hint and return_to_top_level.
10670 * coffread.c (coff_symfile_read): Use error instead of error_begin
10671 and return_to_top_level.
10672 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10673
10674 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10675
10676 * language.h (type_error, range_error): Make string parameter
10677 constant.
10678 * language.c (warning_pre_print): Delete extern declaration.
10679 * dwarfread.c (warning_pre_print): Ditto.
10680 * language.c (type_error, range_error): Rewrite to use verror and
10681 vwarning instead of warning_begin.
10682
10683 2002-02-01 Michael Snyder <msnyder@redhat.com>
10684
10685 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10686 (set_ignore_count): Move misplaced comment back where it belongs.
10687
10688 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10689
10690 * command.h (NO_FUNCTION): Delete macro.
10691 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10692 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10693 * tracepoint.c (_initialize_tracepoint): Ditto.
10694 * cli/cli-decode.c (add_set_cmd): Ditto.
10695 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10696
10697 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10698
10699 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10700 Update ``this'' pointer when calling virtual functions.
10701
10702 2002-02-01 Michael Snyder <msnyder@redhat.com>
10703
10704 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10705 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10706
10707 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10708
10709 * regformats/reg-arm.dat: New file.
10710 * regformats/reg-i386.dat: New file.
10711 * regformats/reg-ia64.dat: New file.
10712 * regformats/reg-m68k.dat: New file.
10713 * regformats/reg-mips.dat: New file.
10714 * regformats/reg-ppc.dat: New file.
10715 * regformats/reg-sh.dat: New file.
10716 * regformats/regdef.h: New file.
10717 * regformats/regdat.sh: New file.
10718
10719 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10720
10721 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10722 (arm_frame_args_address, arm_frame_locals_address): New functions.
10723 (arm_frame_num_args): New function.
10724 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10725 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10726 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10727
10728 2002-01-31 Michael Snyder <msnyder@redhat.com>
10729
10730 * breakpoint.c (break_at_finish_command): Export.
10731 (break_at_finish_at_depth_command): Export.
10732 (tbreak_at_finish_command): Export.
10733 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10734 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10735 "txbreak" commands, which are HPPA specific.
10736
10737 * printcmd.c (disassemble_command): Remove an ancient
10738 artifact of an old merge.
10739
10740 * symfile.h (enum overlay_debugging_state):
10741 Define enum constant values for overlay mode.
10742 * symfile.c (overlay_debugging): Use enums instead of literals.
10743 (overlay_is_mapped, overlay_auto_command,
10744 overlay_manual_command): Ditto.
10745
10746 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10747 breakpoint_here_p, breakpoint_inserted_here_p,
10748 breakpoint_thread_match, bpstat_stop_status,
10749 describe_other_breakpoints, check_duplicates, clear_command):
10750 Coding standard fixes.
10751
10752 * target.c (target_xfer_memory): Add spaces, coding standard.
10753 (do_xfer_memory): Add missing line to trust-readonly
10754 code: check bfd SEC_READONLY flag for section.
10755
10756 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10757
10758 * PROBLEMS: Fix typo, 5.1->5.1.1.
10759
10760 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10761
10762 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10763 data symbols, since we search based on textlow and texthigh.
10764 (find_pc_sect_symtab): Likewise.
10765
10766 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10767
10768 * defs.h (vwarning): Declare.
10769 * utils.c (vwarning): New function.
10770 (warning): Call vwarning.
10771 (warning_begin): Delete function.
10772
10773 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10774 the warning message.
10775 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10776 warning_begin.
10777
10778 2002-01-30 Michael Snyder <msnyder@redhat.com>
10779
10780 * NEWS: Mention "set trust-readonly-sections" command.
10781 Mention generate-core-file command.
10782
10783 2002-01-15 Michael Snyder <msnyder@redhat.com>
10784
10785 * target.c: New command, "set trust-readonly-sections on".
10786 (do_xfer_memory): Honor the suggestion to trust readonly sections
10787 by reading them from the object file instead of from the target.
10788 (initialize_targets): Register command "set trust-readonly-sections".
10789
10790 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10791
10792 * parse.c (target_map_name_to_register): Simplify, search regs and
10793 pseudo-regs using a single loop.
10794
10795 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10796
10797 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10798
10799 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10800
10801 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10802 * config/i386/i386v42mp.mh: Add i387-nat.o .
10803 * i386v4-nat.c: Include i387-nat.h.
10804 (supply_fpregset): Use i387_supply_fsave.
10805 (fill_fpregset): Use i387_fill_fsave.
10806
10807 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10808
10809 * arm-tdep.c (arm_call_dummy_words): Define.
10810 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10811 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10812 (CALL_DUMMY_WORDS): Define.
10813 (arm_call_dummy_words): Declare.
10814 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10815 (arm_linux_call_dummy_words): Declare.
10816
10817 2002-01-30 Andreas Schwab <schwab@suse.de>
10818
10819 * m68klinux-nat.c: Fix last change to use regcache_collect
10820 instead of referencing registers[] directly.
10821
10822 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10823
10824 * parse.c (target_map_name_to_register): Delete code wrapped in
10825 #ifdef REGISTER_NAME_ALIAS_HOOK.
10826
10827 2002-01-28 Michael Snyder <msnyder@redhat.com>
10828
10829 * regcache.c (legacy_read_register_gen): Need to be able to
10830 read pseudo-register as well as real register.
10831 (legacy_write_register_gen): Ditto.
10832
10833 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10834
10835 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10836 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10837 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10838 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10839 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10840 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10841 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10842 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10843 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10844 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10845 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10846 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10847 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10848 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10849 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10850 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10851 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10852 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10853 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10854 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10855
10856 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10857
10858 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10859 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10860 (initialize_current_architecture): Update target_byte_order using
10861 information from BFD.
10862 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10863 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10864
10865 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10866
10867 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10868 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10869
10870 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10871 #ifdef INVALID_FLOAT.
10872 * infcmd.c (do_registers_info): Ditto.
10873 * values.c (unpack_double): Ditto. Add comment.
10874
10875 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10876 already commented out.
10877
10878 2002-01-26 Andreas Schwab <schwab@suse.de>
10879
10880 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10881 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10882 registers and add support for PTRACE_GETREGS.
10883
10884 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10885
10886 GDB 5.1.1 released from 5.1 branch.
10887 * NEWS: Add 5.1.1 news.
10888 * README: Sync with 5.1 branch.
10889
10890 2002-01-23 Fred Fish <fnf@redhat.com>
10891
10892 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10893 stabstring on initial malloc. Reallocing will copy it for us,
10894 if necessary.
10895
10896 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10897
10898 * Makefile.in (hpread_h): Delete.
10899 (HFILES_NO_SRCDIR): Remove hpread.h.
10900 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10901 (hpread.o): Update dependencies.
10902 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10903
10904 * hp-psymtab-read.c: Remove file.
10905 * hp-symtab-read.c: Remove file.
10906 * hpread.h: Remove file.
10907
10908 * hpread.c: Merge all contents of hp-psymtab-read.c,
10909 hp-symtab-read.c and hpread.h into this file, as it was prior to
10910 January 1999.
10911
10912 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10913 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10914 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10915 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10916
10917 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10918
10919 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10920 fill_gregset): Call gdbarch_tdep() just once, assign result to
10921 variable and use that, instead of calling the function several
10922 times.
10923
10924 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10925
10926 * configure.host: Accept sparcv9 as alias for sparc64.
10927 * configure.tgt: Likewise.
10928
10929 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10930
10931 * solib-aix5.c (build_so_list_from_mapfile)
10932 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10933 arguments is not reversed.
10934 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10935 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10936
10937 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10938
10939 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10940 modified version of obsolete sh_fetch_pseudo_register.
10941 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10942 (sh4_register_read): New function.
10943 (sh_pseudo_register_write): New function. Renamed and modified
10944 version of obsolete sh_store_pseudo_register.
10945 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10946 (sh4_register_write): New function.
10947 (sh_gdbarch_init): Remove setting of gdbarch function
10948 fetch_pseudo_register and store_pseudo_register. Remove setting of
10949 register_convert_to_raw, register_convert_to_virtual,
10950 register_convertible.
10951 (sh_sh4_register_convertible): Delete. No longer needed. All is
10952 taken care by architecture specific functions
10953 register_read/register_write.
10954 (sh_sh4_register_convert_to_virtual): Make static.
10955 (sh_sh4_register_convert_to_raw): Ditto.
10956
10957 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10958
10959 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10960 (floatformat_is_nan, floatformat_mantissa): Ditto.
10961
10962 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10963 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10964 builtin_type_ieee_double_little,
10965 builtin_type_ieee_double_littlebyte_bigword,
10966 builtin_type_m68881_ext, builtin_type_i960_ext,
10967 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10968 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10969 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10970 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10971
10972 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10973
10974 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10975 parameter. Set frameless flag if it exists and depended of
10976 whether the scanned function is frameless or not.
10977 (xstormy16_skip_prologue): If function is frameless, return
10978 result of xstormy16_scan_prologue().
10979 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10980 call.
10981
10982 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10983
10984 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10985 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10986 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10987 sh_sh4_register_byte, sh_sh4_register_raw_size,
10988 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10989 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10990 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10991 sh_store_pseudo_register, sh_do_pseudo_register): Call
10992 gdbarch_tdep() just once, assign result to variable and use that,
10993 instead of calling the function several times.
10994
10995 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10996
10997 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10998 macros instead of LAST_FPU_CTRL_REGNUM.
10999 (store_register): Likewise.
11000
11001 2002-01-21 Jim Blandy <jimb@redhat.com>
11002
11003 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11004 is up-to-date before running the program, not just when a program
11005 exits.
11006
11007 2002-01-21 Fred Fish <fnf@redhat.com>
11008
11009 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11010 when we have found all instructions we are looking for.
11011
11012 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11013
11014 * arm-tdep.c (arm_register_name): New function.
11015 (arm_registers_names): Make static.
11016 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11017 (arm_register_name): Declare.
11018 (REGISTER_NAME): Use it.
11019
11020 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11021 Kevin Buettner <kevinb@redhat.com>
11022
11023 Convert arm targets to new FRAME interface.
11024 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11025 (arm_frame_find_save_regs): Delete.
11026 (arm_frame_init_saved_regs): New.
11027 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11028 Allocate extra_info as required. Convert all uses of fsr.regs
11029 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11030 to use extra_info.
11031 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11032 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11033 (check_prologue_cache, save_prologue_cache): Likewise.
11034 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11035 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11036 (FRAME_FIND_SAVED_REGS): Delete.
11037 (arm_frame_find_saved_regs): Delete prototype.
11038 (arm_frame_init_saved_regs): New prototype.
11039 (FRAME_INIT_SAVED_REGS): Define.
11040
11041 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11042
11043 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11044
11045 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11046
11047 From Jeff Law <law@redhat.com>:
11048 * infttrace.c: Include <sys/pstat.h>.
11049 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11050 exec file if the ttrace equivalent fails.
11051
11052 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11053
11054 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11055 (closeLogFile): Ditto.
11056
11057 2002-01-20 Michael Chastain <mec@shout.net>
11058
11059 * top.c (print_gdb_version): Bump copyright year to 2002.
11060
11061 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11062
11063 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11064 Zannoni and Eli Zaretskii.
11065
11066 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11067
11068 * buildsym.c: Update copyright years.
11069 * c-typeprint.c: Likewise.
11070 * dwarf2read.c: Likewise.
11071 * f-typeprint.c: Likewise.
11072 * gdbtypes.c: Likewise.
11073 * gdbtypes.h: Likewise.
11074 * hp-symtab-read.c: Likewise.
11075 * hpread.c: Likewise.
11076 * mdebugread.c: Likewise.
11077 * p-typeprint.c: Likewise.
11078
11079 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11080
11081 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11082 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11083 byte-order selectable.
11084 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11085 * arch-utils.c: Ditto.
11086 (set_endian): Ditto.
11087 (set_endian_from_file): Ditto.
11088 * gdbserver/low-sim.c (create_inferior): Ditto.
11089 * gdbarch.sh: Ditto.
11090 * gdbarch.h: Re-generate.
11091 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11092 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11093 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11094 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11095 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11096 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11097 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11098 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11099 macro definition.
11100 * config/mips/tm-wince.h: Remove #undef of macro
11101 TARGET_BYTE_ORDER_SELECTABLE.
11102 * config/sh/tm-wince.h: Ditto.
11103
11104 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11105
11106 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11107 member function fields. Add accessor macro
11108 TYPE_FN_FIELD_ARTIFICIAL.
11109 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11110 * c-typeprint.c (c_type_print_base): Skip artificial member
11111 functions.
11112
11113 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11114
11115 * f-typeprint.c: Delete unused function f_type_print_args.
11116 * p-typeprint.c: Delete unused function pascal_type_print_args.
11117
11118 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11119
11120 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11121 comment. Add ``artificial'' to ``union field_location''.
11122
11123 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11124
11125 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11126 * mdebugread.c (parse_symbol): Likewise.
11127 * stabsread.c (define_symbol): Likewise.
11128 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11129 initializing TYPE_FIELD_BITPOS to n (obsolete).
11130 (hpread_doc_function_type): Likewise.
11131 * hpread.c (hpread_function_type): Likewise.
11132
11133 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11134
11135 * configure.in (host_makefile_frag): Only require a host makefile
11136 fragment when a native build.
11137 * configure: Re-generate.
11138
11139 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11140
11141 * doublest.h (floatformat_from_type): Declare.
11142 * doublest.c (floatformat_from_type): New function.
11143 (convert_typed_floating): Use.
11144
11145 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11146 call to function floatformat_from_type.
11147
11148 * gdbarch.sh (IEEE_FLOAT): Delete.
11149 * gdbarch.h, gdbarch.c: Re-generate.
11150 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11151 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11152 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11153 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11154 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11155 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11156 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11157 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11158 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11159 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11160 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11161 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11162
11163 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11164 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11165 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11166 * sh-tdep.c (sh_gdbarch_init): Ditto.
11167 * mips-tdep.c (mips_gdbarch_init): Ditto.
11168 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11169 * cris-tdep.c (cris_gdbarch_init): Ditto.
11170
11171 2002-01-20 Jiri Smid <smid@suse.cz>
11172
11173 * configure.host, configure.tgt: Support x86-64.
11174 * NEWS: Note new target x86-64.
11175
11176 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11177 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11178 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11179 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11180 x86-64-linux-nat.o): Fix dependencies.
11181
11182 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11183
11184 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11185 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11186 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11187 * config/sparc/xm-sun4os4.h: Delete file.
11188 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11189
11190 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11191
11192 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11193 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11194 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11195 * config/i386/i386lynx.mh (XM_FILE): Delete.
11196 * config/rs6000/xm-rs6000ly.h: Delete file.
11197 * config/sparc/xm-sparclynx.h: Delete file.
11198 * config/m68k/xm-m68klynx.h: Delete file.
11199 * config/i386/xm-i386lynx.h: Delete file.
11200 * config/xm-lynx.h: Delete file.
11201 * config/djgpp/fnchange.lst: Update.
11202
11203 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11204
11205 * alpha-tdep.c (alpha_register_byte): New function.
11206 (alpha_register_raw_size): Ditto.
11207 (alpha_register_virtual_size): Ditto.
11208 (alpha_skip_prologue_internal): Renamed from
11209 alpha_skip_prologue.
11210 (alpha_skip_prologue): New version that calls
11211 alpha_skip_prologue_internal.
11212 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11213 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11214 second argument from alpha_skip_prologue.
11215 (REGISTER_BYTE): Use alpha_register_byte.
11216 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11217 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11218 (FRAMELESS_FUNCTION_INVOCATION): Use
11219 generic_frameless_function_invocation_not.
11220 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11221 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11222
11223 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11224
11225 * config/mips/xm-news-mips.h: Delete file.
11226 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11227
11228 * config/m88k/xm-m88k.h: Delete file.
11229 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11230 * config/m88k/xm-delta88v4.h: Ditto.
11231 * config/m88k/xm-delta88.h: Ditto.
11232
11233 * config/alpha/xm-fbsd.h: Delete file.
11234 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11235
11236 * config/sparc/xm-sparc.h: Delete file.
11237 * Makefile.in (xm-sun4os4.h): Delete dependency.
11238 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11239 * config/sparc/xm-sun4os4.h: Ditto.
11240 * config/sparc/xm-linux.h: Ditto.
11241
11242 * config/i386/xm-windows.h: Delete file.
11243
11244 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11245
11246 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11247 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11248
11249 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11250
11251 * alpha-tdep.c (alpha_call_dummy_words): New.
11252 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11253 (CALL_DUMMY_P): Define.
11254 (CALL_DUMMY_WORDS): Define.
11255 (SIZEOF_CALL_DUMMY_WORDS): Define.
11256
11257 2002-01-19 Per Bothner <per@bothner.com>
11258
11259 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11260 isn't NULL, which can happen with some gcj-3.x-produced code.
11261
11262 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11263
11264 * alpha-tdep.c (alpha_register_virtual_type): New function.
11265 (alpha_init_frame_pc_first): Ditto.
11266 (alpha_fix_call_dummy): Ditto.
11267 (alpha_store_struct_return): Ditto.
11268 (alpha_extract_struct_value_address): Ditto.
11269 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11270 alpha_register_virtual_type.
11271 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11272 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11273 alpha_extract_struct_value_address.
11274 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11275 (INIT_FRAME_PC): Use init_frame_pc_noop.
11276 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11277
11278 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11279
11280 * i386gnu-nat.c: Include "i386-tdep.h".
11281 (fetch_fpregs): Simplify code dealing with uninitialized floating
11282 point states such that it doesn't require FP7_REGNUM.
11283
11284 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11285
11286 * alpha-tdep.c (frame_extra_info): New.
11287 (alpha_find_saved_regs): Make static. Use
11288 frame->extra_info.
11289 (alpha_frame_init_saved_regs): New function.
11290 (alpha_frame_saved_pc): Use frame->extra_info.
11291 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11292 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11293 (init_extra_frame_info): Rename to...
11294 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11295 (alpha_print_extra_frame_info): New function.
11296 (alpha_frame_locals_address): Ditto.
11297 (alpha_frame_args_address): Ditto.
11298 (alpha_pop_frame): Use frame->extra_info.
11299 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11300 alpha_frame_args_address.
11301 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11302 (alpha_find_saved_regs): Remove prototype.
11303 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11304 (EXTRA_FRAME_INFO): Remove.
11305 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11306 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11307
11308 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11309
11310 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11311 (alpha_cannot_fetch_register): Ditto.
11312 (alpha_cannot_store_register): Ditto.
11313 (alpha_register_convertible): Ditto.
11314 (alpha_use_struct_convention): Ditto.
11315 * config/alpha/tm-alpha.h: Update copyright years.
11316 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11317 (INNER_THAN): Use core_addr_lessthan.
11318 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11319 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11320 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11321 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11322 (FRAME_CHAIN): Remove unnecessary cast.
11323
11324 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11325
11326 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11327 obsolete.
11328
11329 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11330
11331 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11332 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11333 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11334 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11335 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11336 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11337 * x86-64-linux-nat.c: Ditto.
11338
11339 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11340
11341 * alpha-tdep.c (alpha_register_name): New function.
11342 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11343 (REGISTER_NAME): Define.
11344
11345 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11346
11347 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11348
11349 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11350
11351 * alpha-tdep.c: Update copyright years.
11352 (alpha_next_pc): New function.
11353 (alpha_software_single_step): Ditto.
11354 * config/alpha/tm-alpha.h: Add prototype for
11355 alpha_software_single_step.
11356
11357 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11358
11359 * alphabsd-nat.c: Update copyright years.
11360 (fill_gregset): Use regcache_collect.
11361 (fill_fpregset): Likewise.
11362 (fetch_inferior_registers): Only fetch integer registers
11363 if requested to do so.
11364 (store_inferior_registers): Only store integer registers
11365 if requested to do so.
11366
11367 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11368
11369 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11370 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11371 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11372 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11373 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11374 * config/arm/linux.mh (XDEPFILES): Delete.
11375 * config/arm/nbsd.mh (XDEPFILES): Delete.
11376 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11377 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11378 * config/i386/i386m3.mh (XDEPFILES): Delete.
11379 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11380 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11381 * config/i386/fbsd.mh (XDEPFILES): Delete.
11382 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11383 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11384 * config/i386/i386v4.mh (XDEPFILES): Delete.
11385 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11386 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11387 * config/i386/i386aix.mh (XDEPFILES): Delete.
11388 * config/i386/go32.mh (XDEPFILES): Delete.
11389 * config/i386/cygwin.mh (XDEPFILES): Delete.
11390 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11391 * config/i386/i386mach.mh (XDEPFILES): Delete.
11392 * config/i386/i386v32.mh (XDEPFILES): Delete.
11393 * config/i386/linux.mh (XDEPFILES): Delete.
11394 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11395 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11396 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11397 * config/i386/i386sco.mh (XDEPFILES): Delete.
11398 * config/i386/i386v.mh (XDEPFILES): Delete.
11399 * config/i386/nbsd.mh (XDEPFILES): Delete.
11400 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11401 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11402 * config/i386/symmetry.mh (XDEPFILES): Delete.
11403 * config/i386/obsd.mh (XDEPFILES): Delete.
11404 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11405 * config/ia64/linux.mh (XDEPFILES): Delete.
11406 * config/ia64/aix.mh (XDEPFILES): Delete.
11407 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11408 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11409 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11410 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11411 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11412 * config/m68k/linux.mh (XDEPFILES): Delete.
11413 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11414 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11415 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11416 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11417 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11418 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11419 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11420 * config/m88k/delta88.mh (XDEPFILES): Delete.
11421 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11422 * config/m88k/m88k.mh (XDEPFILES): Delete.
11423 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11424 * config/mips/linux.mh (XDEPFILES): Delete.
11425 * config/mips/irix6.mh (XDEPFILES): Delete.
11426 * config/mips/irix5.mh (XDEPFILES): Delete.
11427 * config/mips/irix4.mh (XDEPFILES): Delete.
11428 * config/mips/irix3.mh (XDEPFILES): Delete.
11429 * config/mips/decstation.mh (XDEPFILES): Delete.
11430 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11431 (NATDEPFILES): Move core-aout.o to here.
11432 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11433 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11434 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11435 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11436 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11437 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11438 * config/pa/hpux11.mh (XDEPFILES): Delete.
11439 * config/powerpc/aix.mh (XDEPFILES): Delete.
11440 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11441 * config/powerpc/linux.mh (XDEPFILES): Delete.
11442 * config/romp/rtbsd.mh: Rename XDEPFILES.
11443 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11444 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11445 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11446 * config/s390/s390.mh (XDEPFILES): Delete.
11447 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11448 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11449 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11450 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11451 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11452 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11453 * config/sparc/linux.mh (XDEPFILES): Delete.
11454 * config/vax/vaxult.mh (XDEPFILES): Delete.
11455 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11456 * Makefile.in (DEPFILES): Remove XDEPFILES.
11457
11458 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11459
11460 * utils.c (internal_verror): Fix comments, default is yes not no.
11461 Update queries to match. Default to quit and dump core.
11462
11463 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11464
11465 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11466 copyright.
11467 * defs.h, event-top.c, gdbcmd.h: Ditto.
11468 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11469 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11470 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11471 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11472 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11473 * mi/mi-main.c:Ditto.
11474
11475 * stack.c, symfile.c: Update copyright.
11476
11477 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11478
11479 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11480 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11481 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11482 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11483
11484 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11485
11486 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11487 * gdbserver/low-lynx.c (myattach): Likewise.
11488 * gdbserver/low-nbsd.c (myattach): Likewise.
11489 * gdbserver/low-sim.c (myattach): Likewise.
11490 * gdbserver/low-sparc.c (myattach): Likewise.
11491 * gdbserver/low-sun3.c (myattach): Likewise.
11492
11493 * gdbserver/low-linux.c (myattach): New function.
11494
11495 * gdbserver/server.c (attach_inferior): New function.
11496 (main): Handle "--attach".
11497
11498 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11499
11500 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11501 maintainer.
11502
11503 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11504
11505 * c-typeprint.c (is_type_conversion_operator): Add additional
11506 check for non-conversion operators.
11507
11508 2002-01-15 Michael Snyder <msnyder@redhat.com>
11509
11510 * linux-proc.c: Add "info proc" command, a la procfs.c.
11511 (read_mapping): New function, abstract and re-use code.
11512 (linux_find_memory_regions): Use new func read_mapping.
11513 (linux_info_proc_cmd): New function, implement "info proc".
11514 (_initialize_linux_proc): Add new command "info proc".
11515
11516 2002-01-15 Michael Snyder <msnyder@redhat.com>
11517
11518 * symfile.c (generic_load): Use bfd_map_over_sections method
11519 instead of manipulating bfd structure members directly.
11520 (add_section_size_callback): New function, bfd sections callback
11521 used by generic_load.
11522 (load_sections_callback): New function, bfd sections callback
11523 used by generic_load.
11524
11525 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11526
11527 [Based on work by Jim Blandy]
11528 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11529 (builtin_type_vec128): Export.
11530 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11531 types.
11532 (builtin_type_vec128): New builtin type for 128 bit vector
11533 registers.
11534 (build_gdbtypes): Initialize builtin_type_v16qi and
11535 builtin_type_v8hi. Create the vec128 register builtin type
11536 structure.
11537 (build_builtin_type_vec128): New function.
11538 (_initialize_gdbtypes): Register builtin_type_v16qi and
11539 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11540 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11541 AltiVec register to new builtin type.
11542
11543 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11544
11545 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11546 to make_cv_type.
11547
11548 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11549
11550 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11551 CLEAN_UP_REGISTER_VALUE.
11552 * regcache.c (supply_register): Update only call.
11553
11554 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11555
11556 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11557 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11558 a29k-*-vxworks* targets as obsolete.
11559
11560 2002-01-14 Michael Snyder <msnyder@redhat.com>
11561
11562 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11563 until we can resolve portability issues.
11564 * gregset.h: Remove references to fpxregs.
11565 * gcore.c (gcore_command): Initialize note_sec to NULL.
11566
11567 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11568
11569 * signals.c (target_signal_to_name): Rewrite. Only use
11570 signals[].name when in bounds and non-NULL.
11571
11572 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11573
11574 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11575 * signals.c (target_signal_to_name): Verify that SIG is within the
11576 bounds of the signals array.
11577
11578 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11579
11580 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11581
11582 2002-01-13 Keith Seitz <keiths@redhat.com>
11583
11584 * stack.c (print_frame_info_base): Print the frame's pc
11585 only if when print_frame_info_listing_hook is not defined.
11586
11587 2002-01-13 Keith Seitz <keiths@redhat.com>
11588
11589 * varobj.c (varobj_set_value): Make sure that there were no
11590 errors evaluating the object before attempting to set its
11591 value.
11592 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11593 so this offset adjustment is no longer necessary.
11594 (create_child): Don't set the error flag if the child is
11595 a CPLUS_FAKE_CHILD.
11596 (value_of_child): If value_fetch_lazy fails, return NULL
11597 so that callers will be notified that an error occurred.
11598 (c_value_of_variable): Delay check of variable's validity
11599 until later. We actually want all structs and unions to have
11600 the value "{...}".
11601 Do not return "???" for variables which could not be evaluated.
11602 This error condition must be returned to the caller so that it
11603 can get the error condition from gdb.
11604 (cplus_name_of_child): Adjust index for vptr before figuring
11605 out the name of the child.
11606 (cplus_value_of_child): If a child's (real) parent is not valid,
11607 don't even bother trying to give a value for it. Just return
11608 an error. Change all instances in this function.
11609 (cplus_type_of_child): If our parent is one of the "fake"
11610 parents, we need to get at the type of the real parent, and
11611 derive the child's true type using this information.
11612
11613 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11614
11615 From 2002-01-09 John Marshall <johnm@falch.net>:
11616 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11617 sources.redhat.com, and tweak some related URLs which had
11618 suffered from linkrot.
11619
11620 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11621
11622 From Jeff law:
11623 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11624 structures passed in registers.
11625
11626 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11627
11628 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11629 white space which prevented compilation. Reported by DSK
11630 <dsk@student.unsw.edu.au>.
11631
11632 2002-01-11 Michael Snyder <msnyder@redhat.com>
11633
11634 * symfile.c (build_section_addr_info_from_section_tab):
11635 Use bfd access method instead of manipulating bfd directly.
11636 (syms_from_objfile): Ditto.
11637 (simple_overlay_update_1): Ditto.
11638 (simple_overlay_update): Ditto.
11639 (generic_load): Ditto.
11640 (overlay_unmapped_address): FIXME comment, bfd access methods.
11641 (sections_overlap): FIXME comment, bfd access methods.
11642 (pc_in_mapped_range): FIXME comment, bfd access methods.
11643 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11644 (section_is_mapped): FIXME comment, bfd access methods.
11645 (section_is_overlay): FIXME comment, bfd access methods.
11646
11647 * symfile.c (generic_load): Whitespace and long line cleanups.
11648 Remove duplicate variable, change several local variables to
11649 more appropriate data types.
11650 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11651
11652 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11653
11654 From Peter Schauer:
11655 * language.c (longest_local_hex_string_custom): Use phex_nz to
11656 convert NUM to a hex string.
11657
11658 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11659
11660 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11661 the function.
11662 Update Copyright year.
11663
11664 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11665
11666 * language.c (longest_raw_hex_string): Delete unused function.
11667
11668 2002-01-11 Petr Sorfa <petrs@caldera.com>
11669
11670 * MAINTAINERS (write-after-approval): Add myself.
11671 * dwarf2read.c (read_tag_string_type): Handling of
11672 DW_AT_byte_size.
11673 (read_tag_string_type): FORTRAN fix to prevent propagation of
11674 first string size.
11675 (set_cu_language): Handling of DW_LANG_Fortran95
11676
11677 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11678
11679 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11680 GETPID(inferior_ptid).
11681 (store_inferior_registers): Likewise.
11682
11683 2002-01-10 Jason Merrill <jason@redhat.com>
11684
11685 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11686 Fix DW_OP_minus.
11687
11688 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11689
11690 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11691 and bfd/elf32-sh-nbsd.c.
11692
11693 2002-01-10 Michael Snyder <msnyder@redhat.com>
11694
11695 * NEWS: Mention --pid and corefile/proc-id behavior change.
11696
11697 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11698 * gcore.c: Include cli/cli-decode.h instead of command.h.
11699
11700 * main.c (captured_main): Add new command line option "--pid".
11701 If the second command line argument (following the symbol-file)
11702 begins with a digit, try to attach to it before trying to open
11703 it as a corefile.
11704 (print_gdb_help): Document the "--pid" argument.
11705
11706 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11707
11708 * completer.c (command_completer): New function.
11709
11710 * completer.h <command_completer>: Add prototype.
11711
11712 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11713 completer for the "help" command.
11714
11715 2002-01-09 Jason Merrill <jason@redhat.com>
11716
11717 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11718
11719 2002-01-09 Michael Snyder <msnyder@redhat.com>
11720
11721 * i386-linux-nat.c (fill_fpxregset): Make global.
11722 (store_fpxregset): Ditto.
11723
11724 * gregset.h (gdb_fpxregset_t): Define.
11725 (supply_fpxregset): Prototype.
11726 (fill_fpxregset): Prototype.
11727
11728 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11729
11730 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11731
11732 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11733 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11734 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11735
11736 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11737
11738 * MAINTAINERS: Update target maintainer rules so that any
11739 Maintainer can approve a tested patch for a maintenance-only
11740 target.
11741
11742 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11743
11744 * MAINTAINERS (write-after-approval): Add myself.
11745
11746 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11747 IN_SIGTRAMP.
11748
11749 2002-01-08 Michael Snyder <msnyder@redhat.com>
11750
11751 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11752 real name of the executable, rather than the /proc name.
11753
11754 2002-01-03 Michael Snyder <msnyder@redhat.com>
11755
11756 Implement a "generate-core-file" command in gdb, save target state.
11757 * gcore.c: New file. Implement new command 'generate-core-file'.
11758 Save a corefile image of the current state of the inferior.
11759 * linux-proc.c: Add linux-specific code for saving corefiles.
11760 * target.h (struct target_ops): Add new target vectors for saving
11761 corefiles; to_find_memory_regions and to_make_corefile_notes.
11762 (target_find_memory_regions): New macro.
11763 (target_make_corefile_notes): New macro.
11764 * target.c (update_current_target): Inherit new target methods.
11765 (dummy_find_memory_regions): New place-holder method.
11766 (dummy_make_corefile_notes): New place-holder method.
11767 (init_dummy_target): Initialize new dummy target vectors.
11768 * exec.c (exec_set_find_memory_regions): New function.
11769 Allow the exec_ops vector for memory regions to be taken over.
11770 (exec_make_note_section): New function, target vector method.
11771 * defs.h (exec_set_find_memory_regions): Export prototype.
11772 * procfs.c (proc_find_memory_regions): New function, corefile method.
11773 (procfs_make_note_section): New function, corefile method.
11774 (init_procfs_ops): Set new target vector pointers.
11775 (find_memory_regions_callback): New function.
11776 (procfs_do_thread_registers): New function.
11777 (procfs_corefile_thread_callback): New function.
11778 * sol-thread.c (sol_find_memory_regions): New function.
11779 (sol_make_note_section): New function.
11780 (init_sol_thread_ops): Initialize new target vectors.
11781 * inftarg.c (inftarg_set_find_memory_regions): New function.
11782 Allow to_find_memory_regions vector to be taken over.
11783 (inftarg_set_make_corefile_notes): New function.
11784 Allow to_make_corefile_notes vector to be taken over.
11785 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11786 interface layer if not target_has_execution (may be a corefile).
11787 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11788 * config/sparc/sun4sol2.mh: Ditto.
11789 * config/alpha/alpha-linux.mh: Ditto.
11790 * config/arm/linux.mh: Ditto.
11791 * config/i386/x86-64linux.mh: Ditto.
11792 * config/ia64/linux.mh: Ditto.
11793 * config/m68k/linux.mh: Ditto.
11794 * config/mips/linux.mh: Ditto.
11795 * config/powerpc/linux.mh: Ditto.
11796 * config/sparc/linux.mh: Ditto.
11797
11798 2002-01-07 Michael Snyder <msnyder@redhat.com>
11799
11800 * arm-linux-nat.c: Remove references to regcache.c internal data
11801 (registers[] and register_valid[]).
11802
11803 2002-01-07 Michael Snyder <msnyder@redhat.com>
11804
11805 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11806 so that attaching to a pid will automatically read the process's
11807 symbol file and shlibs.
11808 * Makefile.in: Add rule for linux-proc.o.
11809 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11810 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11811 * config/arm/linux.mh: Ditto.
11812 * config/i386/linux.mh: Ditto.
11813 * config/i386/x86-64linux.mh: Ditto.
11814 * config/ia64/linux.mh: Ditto.
11815 * config/m68k/linux.mh: Ditto.
11816 * config/mips/linux.mh: Ditto.
11817 * config/powerpc/linux.mh: Ditto.
11818 * config/sparc/linux.mh: Ditto.
11819
11820 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11821
11822 * win32-nat.c: Add i386-tdep.h dependency.
11823
11824 2002-01-07 Michael Snyder <msnyder@redhat.com>
11825
11826 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11827 instead of bfd_get_arch_size. Don't bail out just because
11828 there's no exec_bfd.
11829
11830 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11831 * p-valprint.c (pascal_object_print_value): Ditto.
11832 * somread.c (som_symtab_read): Ditto.
11833 * symfile.c (simple_free_overlay_region_table): Ditto.
11834 * valops.c (value_assign): Ditto.
11835
11836 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11837 use tilde_expand and strerror for opening save-tracepoints file.
11838
11839 * thread-db.c (thread_db_new_objfile): Indendation fix.
11840
11841 * infptrace.c (GDB_MAX_ALLOCA): New define.
11842 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11843 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11844 can be overridden with whatever value is appropriate to the host).
11845 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11846 alloca to allocate potentially large buffer.
11847 * rs6000-nat.c (child_xfer_memory): Ditto.
11848 * symm-nat.c (child_xfer_memory): Ditto.
11849 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11850
11851 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11852
11853 From Nick Clifton <nickc@redhat.com>
11854 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11855
11856 2002-01-07 Michael Snyder <msnyder@redhat.com>
11857
11858 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11859 Don't use exec_bfd if it's NULL.
11860
11861 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11862
11863 * valops.c (value_arg_coerce): Fix formatting.
11864
11865 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11866
11867 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11868 * gnu-nat.c: Ditto.
11869
11870 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11871
11872 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11873 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11874 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11875 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11876 z8k-coff have not been multi-arched. Update z8k-coff build
11877 status.
11878
11879 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11880
11881 * MAINTAINERS: Mark a29k target as obsolete.
11882 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11883 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11884 comments.
11885 * NEWS: Note that a29k targets are obsolete.
11886 * a29k-tdep.c: Mark as obsolete.
11887 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11888 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11889 a29k-*-vxworks* targets as obsolete.
11890 * remote-adapt.c: Obsolete.
11891 * remote-eb.c: Obsolete.
11892 * remote-mm.c: Obsolete.
11893 * remote-udi.c: Obsolete.
11894 * config/a29k/a29k-udi.mt: Obsolete.
11895 * config/a29k/a29k.mt: Obsolete.
11896 * config/a29k/tm-a29k.h: Obsolete.
11897 * config/a29k/tm-vx29k.h: Obsolete.
11898 * config/a29k/vx29k.mt: Obsolete.
11899
11900 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11901
11902 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11903 with BFD_ENDIAN_BIG.
11904
11905 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11906
11907 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11908 * configure, config.in: Re-generate.
11909 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11910 * defs.h: Do not include <endian.h>.
11911
11912 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11913
11914 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11915 * config.in: Regenerate.
11916 * configure.in: Update copyright years.
11917 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11918 * configure: Regenerate.
11919 * i386bsd-nat.c: Update copyright years.
11920 (fill_gregset): Use regcache_collect.
11921 (fetch_inferior_registers): Only fetch integer registers
11922 if requested to do so. Add support for XMM registers
11923 using PT_GETXMMREGS.
11924 (store_inferior_registers): Only store integer registers
11925 if requested to do so. Add support for XMM registers
11926 using PT_SETXMMREGS.
11927 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11928 (store_inferior_registers): Remove.
11929 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11930 (fetch_elfcore_registers): New function.
11931 (i386nbsd_elfcore_fns): New.
11932 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11933 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11934 i386bsd-nat.o.
11935 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11936 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11937 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11938 * config/i386/tm-nbsd.h: Update copyright years.
11939 (HAVE_SSE_REGS): Define.
11940 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11941 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11942 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11943 (SIGCONTEXT_PC_OFFSET): Remove.
11944 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11945
11946 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11947
11948 * configure.tgt: Remove powerpc-*-macos* target.
11949 * config/m68k/xm-mpw.h: Delete file.
11950 * config/xm-mpw.h: Delete file.
11951 * ser-mac.c: Delete file.
11952 * mpw-make.sed: Delete file.
11953 * mpw-config.in: Delete file.
11954 * mac-xdep.c: Delete file.
11955 * mac-gdb.r: Delete file.
11956 * mac-defs.h: Delete file.
11957 * mac-nat.c: Delete file.
11958 * config/powerpc/macos.mh: Delete file.
11959 * config/powerpc/macos.mt: Delete file.
11960 * config/powerpc/nm-macos.h: Delete file.
11961 * config/powerpc/tm-macos.h: Delete file.
11962 * source.c (openp, open_source_file): Remove obsolete code.
11963 * top.c (gdb_readline): Ditto.
11964 * utils.c (query): Ditto.
11965 * event-top.c (display_gdb_prompt): Ditto.
11966 * Makefile.in (ser-mac.o): Delete obsolete target.
11967 * NEWS: Update.
11968
11969 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11970
11971 * defs.h (BIG_ENDIAN): Delete macro definition.
11972 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11973 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11974 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11975 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11976 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11977 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11978 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11979 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11980 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11981 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11982 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11983 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11984 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11985 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11986 * gdbarch.c: Re-generate.
11987
11988 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11989
11990 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11991 for core files.
11992
11993 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11994
11995 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11996
11997 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11998
11999 * value.h (value_ptr): Delete typedef.
12000
12001 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12002
12003 * i386nbsd-nat.c: Update copyright years.
12004 Include i386-tdep.h.
12005
12006 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12007
12008 * stabsread.c: Update copyright years.
12009
12010 From Debashis Mahata <debashis.mahata@wipro.com>:
12011 (read_struct_fields): Deal with Sun C compiler erroneous stab
12012 output for structs and unions.
12013 Fix PR gdb/269.
12014
12015 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12016
12017 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12018 prototype.
12019
12020 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12021
12022 * cp-abi.c: Fix whitespace.
12023 (baseclass_offset): New wrapper function.
12024 * cp-abi.h (baseclass_offset): Add prototype.
12025 (struct cp_abi_ops): Add baseclass_offset pointer.
12026
12027 * valops.c (vb_match): Move to...
12028 * gnu-v2-abi.c (vb_match): here.
12029 * valops.c (baseclass_offset): Move to...
12030 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12031
12032 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12033
12034 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12035 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12036 * hpacc-abi.c (init_hpacc_ops): Likewise.
12037
12038 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12039
12040 * valops.c (find_overload_match): Accept obj as a
12041 reference parameter. Update it before returning.
12042 * value.h (find_overload_match): Update prototype.
12043 * eval.c (evaluate_subexp_standard): Pass object to
12044 find_overload_match by reference.
12045
12046 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12047
12048 * valarith.c: Replace value_ptr with struct value pointer. Remove
12049 register attribute from value declarations.
12050 * valops.c: Ditto.
12051 * value.h: Ditto.
12052 * scm-lang.c (scm_lookup_name): Ditto.
12053
12054 2002-01-03 Michael Snyder <msnyder@redhat.com>
12055
12056 Abstract the functionality of iterating over mapped memory
12057 regions into a general purpose iterator function.
12058 * procfs.c (iterate_over_mappings): New function, general purpose
12059 iterator for memory sections.
12060 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12061 (solib_mappings_callback): New function, callback for above.
12062 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12063 (info_mappings_callback): New function, callback for above.
12064
12065 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12066
12067 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12068
12069 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12070 * i386-tdep.c: Include "elf-bfd.h".
12071 (process_note_abi_tag_sections): New function.
12072 (i386_gdbarch_init): Add code to recognize various OS/ABI
12073 combinations.
12074
12075 * maint.c (_initialize_maint_cmds): Add missing \ in
12076 string-literal.
12077
12078 For older changes see ChangeLog-2001
12079 \f
12080 Local Variables:
12081 mode: change-log
12082 left-margin: 8
12083 fill-column: 74
12084 version-control: never
12085 End: