2002-10-23 David Carlton <carlton@math.stanford.edu>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-23 David Carlton <carlton@math.stanford.edu>
2
3 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
4 (dwarf_attr_name): Ditto.
5 (dwarf_type_encoding_name): Ditto.
6 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
7 (process_die): Handle DW_TAG_namespace,
8 DW_TAG_imported_declaration, DW_TAG_imported_module.
9 (read_namespace): New function.
10
11 2002-10-22 Joel Brobecker <brobecker@gnat.com>
12
13 * configure.in: Define NEW_PROC_API on Interix too.
14 * configure: Regenerate.
15
16 2002-10-21 Joel Brobecker <brobecker@gnat.com>
17
18 * configure: Regenerate using the proper version of autoconf.
19
20 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
21
22 * findvar.c (read_var_value): Temporarily disable TLS code, until
23 complete TLS support is added.
24
25 2002-10-21 Jim Blandy <jimb@redhat.com>
26 Elena Zannoni <ezannoni@redhat.com>
27
28 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
29 for thread local storage locations.
30 (struct symbol): Add objfile field.
31 (SYMBOL_OBJFILE): Define.
32 * dwarf2read.c (is_thread_local): New static variable.
33 (new_symbol): If variable is in thread local fill in address class
34 and objfile appropriately.
35 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
36 stack operation.
37 * printcmd.c (address_info): Print the information for thread
38 local storage variable.
39 * findvar.c (read_var_value): In case of thread local variable,
40 defer to the target vector code to compute address.
41
42 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
43
44 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
45 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
46
47 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
48
49 * symtab.h (address_class): Rename
50 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
51 * hpread.c (hpread_process_one_debug_symbol): Ditto.
52 * printcmd.c (address_info): Ditto.
53 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
54
55 2002-10-20 Mark Kettenis <kettenis@gnu.org>
56
57 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
58 DBREG_DRX macro to acces debug registers.
59
60 * Makefile.in (i386obsd-tdep.o): New target.
61
62 * solib-sunos.c: Include "bcache.h" and "regcache.h".
63 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
64
65 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
66 * config/i386/obsd.mt: New file.
67 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
68 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
69 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
70 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
71 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
72 * i386obsd-tdep.c: New file.
73
74 2002-10-19 Adam Fedor <fedor@gnu.org>
75
76 * objc-exp.y (name_not_typename): Fix invalid comment.
77
78 2002-10-20 Mark Kettenis <kettenis@gnu.org>
79
80 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
81 to allocate partial syms and macro byte caches.
82
83 2002-10-18 David Carlton <carlton@math.stanford.edu>
84
85 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
86
87 2002-10-18 Adam Fedor <fedor@gnu.org>
88
89 * stabsread.c (find_name_end): New function.
90 (define_symbol): Use it.
91
92 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
93
94 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
95 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
96 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
97 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
98
99 2002-10-17 David Carlton <carlton@math.stanford.edu>
100
101 * symfile.h: Add opaque declaration for struct obstack.
102 Declare obsavestring to take a const char *.
103 * symfile.c (obsavestring): Make first argument a const char *.
104
105 2002-10-16 Adam Fedor <fedor@gnu.org>
106
107 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
108 names when matching breakpoints in current file.
109
110 2002-10-16 Kevin Buettner <kevinb@redhat.com>
111
112 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
113 (read_tag_pointer_type): Add address class support.
114 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
115 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
116 New methods.
117 * gdbarch.h, gdbarch.c: Regenerate.
118 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
119 (make_type_with_address_space, recursive_type_dump): Add address
120 class support.
121 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
122 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
123 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
124
125 2002-10-16 Klee Dienes <kdienes@apple.com>
126
127 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
128 to get the last character of a char[] buffer, not
129 name[sizeof(vptr_name)-1].
130
131 2002-10-14 Adam Fedor <fedor@gnu.org>
132
133 * symtab.h: New objc_specific struct.
134 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
135 (SYMBOL_DEMANGLED_NAME): Likewise.
136
137 2002-10-14 Adam Fedor <fedor@gnu.org>
138
139 * symfile.c (init_filename_language_table): Add ObjC file extension.
140
141 2002-10-14 Adam Fedor <fedor@gnu.org>
142
143 * utils.c (puts_filtered_tabular): New function.
144 (fprintf_symbol_filtered): Get ObjC demangled name.
145 * defs.h (puts_filtered_tabular): Declared.
146
147 2002-10-14 Kevin Buettner <kevinb@redhat.com>
148
149 * c-lang.h (c_type_print_varspec_prefix): Delete.
150 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
151 ``need_post_space'' parameter. Adjust all callers.
152
153 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
154
155 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
156 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
157 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
158 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
159
160 2002-10-13 Adam Fedor <fedor@gnu.org>
161
162 * source.c (print_source_lines): Update comments.
163
164 2002-10-13 Adam Fedor <fedor@gnu.org>
165
166 * valops.c (value_of_local): New function.
167 (value_of_this): Use it.
168 * value.h (value_of_local): Declared.
169
170 2002-10-13 Adam Fedor <fedor@gnu.org>
171
172 * parse.c: (length_of_subexp, prefixify_subexp): Handle
173 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
174
175 2002-10-12 Adam Fedor <fedor@gnu.org>
176
177 * language.c (binop_result_type): Add language_objc to case.
178 (integral_type): Likewise.
179 (character_type): Likewise.
180 (string_type): Likewise.
181 (boolean_type): Likewise.
182 (structured_type): Likewise.
183 (binop_type_check): Likewise.
184
185 2002-10-11 Adam Fedor <fedor@gnu.org>
186
187 * printcmd.c (address_info): Print 'self' for ObjC.
188
189 2002-10-11 Adam Fedor <fedor@gnu.org>
190
191 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
192 OP_SELF.
193
194 2002-10-11 Adam Fedor <fedor@gnu.org>
195
196 * language.h (CAST_IS_CONVERSION): Add language_objc.
197
198 2002-10-11 Adam Fedor <fedor@gnu.org>
199
200 * defs.h (enum language): Add language_objc.
201
202 2002-10-11 Klee Dienes <kdienes@apple.com>
203
204 * findvar.c (read_memory_typed_address): New function.
205 * gdbcore.h (read_memory_typed_address): Add prototype.
206 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
207 to read a value destined for a CORE_ADDR, not read_memory_integer.
208 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
209 (f77_get_dynamic_lowerbound): Ditto.
210
211 2002-10-11 Martin M. Hunt <hunt@redhat.com>
212
213 * utils.c (string_to_core_addr): After turning string into
214 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
215 which will do necessary sign-extension, etc.
216
217 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
218
219 * c-exp.y (THIS): Delete token and grammar rule.
220 (yylex): Don't return THIS.
221 * cp-valprint.c (vtbl_ptr_name_old): Delete.
222 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
223 * demangle.c (cplus_markers): Update comment. Put '$'
224 first. Remove CPLUS_MARKER.
225 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
226 * jv-exp.y (THIS): Delete token and grammar rule.
227 (yylex): Don't return THIS.
228 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
229 * objc-exp.y (THIS): Delete token and grammar rule.
230 (yylex): Don't return THIS.
231 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
232 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
233 (read_member_functions): Likewise for opname.
234 (read_tilde_fields): Use is_cplus_marker.
235
236 * defs.h (CPLUS_MARKER): Don't define.
237 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
238 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
239 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
240 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
241 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
242
243 * config/i386/tm-i386v4.h: Delete file.
244 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
245 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
246 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
247 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
248 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
249 * config/i386/i386sco5.mt (TM_FILE): Likewise.
250 * config/i386/i386v4.mt (TM_FILE): Likewise.
251 * config/i386/ncr3000.mt (TM_FILE): Likewise.
252
253 2002-10-10 Marko Mlinar <markom@opencores.org>
254
255 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
256 accidentially not commited 2002-10-09
257 * gdbarch.h, gdbarch.c: Re-generate.
258
259 2002-10-09 Marko Mlinar <markom@opencores.org>
260
261 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
262 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
263 * gdbarch.h, gdbarch.c: Re-generate.
264
265 2002-10-08 Petr Sorfa <petrs@caldera.com>
266
267 Revised and re-submitted by John Wolfe <jlw@caldera.com>
268
269 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
270 so we can work on more than one compilation unit at a time. This
271 helps prepare GDB to handle inter-CU die references.
272 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
273 the code to be defined before struct comp_unit_head.
274 (comp_unit_head): Added new members - offset, cu_head,
275 begin_die, next and dwarf2_abbrevs.
276 (dwarf2_abbrevs): Removed single static var; now member of
277 struct comp_unit_head.
278 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
279 members.
280 (psymtab_to_symtab_1): Changed to work with the new
281 struct comp_unit_head.
282 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
283 constructs the dwarf2_abbrevs[] inside the cu_header.
284 (dwarf2_empty_abbrev_table): Now expects a ptr to a
285 dwarf2_abbrev table to clean up.
286 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
287 handling of dwarf2_abbrevs inside the cu_header.
288 (read_partial_die): Now supports the call to the new
289 dwarf2_lookup_abbrev.
290 (read_full_die): Now supports the call to the new
291 dwarf2_lookup_abbrev.
292
293 2002-10-06 Christopher Faylor <cgf@redhat.com>
294
295 * Makefile.in (install-gdbtk): Add missing continuation backslash to
296 insure that shell variables, such as "transformed_name" are propagated
297 to later shell statements in rule.
298
299 2002-10-06 Mark Kettenis <kettenis@gnu.org>
300
301 * config/i386/nm-i386sco.h: Add protection against
302 multiple-inclusion. Include "i386/nm-i386v.h".
303 (REGISTER_U_ADDR): Remove define.
304 (i386_register_u_addr): Remove prototype.
305
306 2002-10-04 Michael Snyder <msnyder@redhat.com>
307
308 * m32r-stub.c (handle_exception): Make sure exception is "trap"
309 before treating it as a single-step event.
310
311 2002-10-03 Adam Fedor <fedor@gnu.org>
312
313 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
314 (objc_demangle): Remove assignment in if statements, Replace
315 free with xfree.
316 (add_msglist): Likewise.
317 (end_msglist): Likewise.
318 (complare_selectors): Likewise.
319 (selectors_info): Likewise.
320 (compare_classes): Likewise.
321 (classes_info): Likewise.
322 (print_object_command): Likewise.
323 (find_objc_msgcall_submethod): Replace PTR with void *.
324 * objc-lang.h: Remove check for __STDC__.
325
326 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
327
328 * ui-out.h (ui_out_field_fmt_int): New prototype.
329 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
330 of field width and alignment.
331 * stack.c (print_frame_info_base): When printing frame level, use
332 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
333 PR gdb/192
334
335 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
336
337 * MAINTAINERS: Add self to Write After Approval list.
338
339 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
340
341 * infcmd.c (interrupt_target_command_wrapper): Delete.
342 (interrupt_target_command): Make non static.
343 (nofp_registers_info): Make static.
344 * stack.c (return_command_wrapper): Delete.
345 (return_command): Make non static.
346
347 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
348
349 * event-top.c (gdb_setup_readline): New function. Code moved from
350 _initialize_event_loop().
351 (_initialize_event_loop): Call gdb_setup_readline().
352
353 2002-10-02 Andrew Cagney <ac131313@redhat.com>
354
355 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
356 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
357 * gdbarch.h, gdbarch.c: Re-generate.
358
359 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
360
361 Fix PR gdb/778
362 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
363 before recursing.
364 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
365 of fill_in_vptr_fieldno.
366
367 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
368
369 * inferior.h (registers_info, stepi_command, nexti_command,
370 continue_command, interrupt_target_command): Export from infcmd.c.
371 * frame.h (args_info, selected_frame_level_changed_hook,
372 return_command): Export from stack.c.
373 * v850ice.c (stepi_command, nexti_command, continue_command): use
374 prototypes from inferior.h.
375 * tracepoint.c (registers_info, args_info, locals_info): Use
376 prototypes from frame.h and inferior.h.
377 * Makefile.in (mi-main.o): Add dependency on frame.h.
378
379 2002-10-02 Andrew Cagney <ac131313@redhat.com>
380
381 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
382 value in register 3 adjusted by ppc_gp0_regnum.
383
384 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
385
386 2002-10-02 Marko Mlinar <markom@opencores.org>
387
388 * MAINTAINERS: Add myself to the Write After Approval list.
389
390 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
391
392 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
393 of the section for the N64 ABI, fixed.
394
395 * config/mips/tm-irix6.h: Include solib.h.
396
397 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
398
399 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
400 GNU operators.
401
402 2002-10-01 Andrew Cagney <ac131313@redhat.com>
403
404 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
405 and that "mi0" syntax has been removed.
406
407 2002-09-30 David Carlton <carlton@math.stanford.edu>
408
409 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
410 * ppc-sysv-tdep.c: #include "gdb_string.h".
411 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
412 pacify GCC.
413
414 2002-10-01 Andrew Cagney <ac131313@redhat.com>
415
416 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
417 "vrsave"'s register number.
418
419 2002-09-30 Andrew Cagney <ac131313@redhat.com>
420
421 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
422 use frame_unwind_signed_register to obtain the PC.
423 (mips_frame_chain): Handle a generic dummy frame.
424 (mips_init_extra_frame_info): When a generic dummy frame, don't
425 re-compute the frame base.
426 (mips_pop_frame): Handle generic dummy frames.
427 (mips_gdbarch_init): When generic dummy frames, set
428 use_generic_dummy_frames, push_dummy_frame to
429 generic_push_dummy_frame, pc_in_call_dummy to
430 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
431 generic_save_dummy_frame_tos.
432
433 2002-09-30 Andrew Cagney <ac131313@redhat.com>
434
435 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
436 against TOP when TOP was explictly set.
437 (generic_push_dummy_frame): Set TOP to zero.
438
439 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
440
441 * event-loop.c (start_event_loop): Rename variable 'result' to
442 'gdb_result', to avoid conflicts with upcoming intepreters changes.
443
444 2002-09-30 Keith Seitz <keiths@redhat.com>
445
446 * gdb-events.sh (selected_thread_changed): New event.
447 * gdb-events.c: Regenerated.
448 * gdb-events.h: Regenerated.
449
450 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
451
452 * MAINTAINERS: Add self to Write After Approval list.
453
454 2002-09-30 Fernando Nasser <fnasser@redhat.com>
455
456 * disasm.c: New file.
457 * disasm.h: New file.
458 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
459 (compare_lines): Ditto.
460 (dump_insns): Ditto.
461 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
462 argument.
463 (do_assembly_only): Ditto.
464 (do_disassembly): Renamed to gdb_disassembly and moved to
465 disasm.c. Sdded uiout argument.
466 * Makefile.in: Add new files. Reorder SFILES list. Update
467 dependencies. Include libgdb.a later in the insight executable.
468
469 2002-09-29 Andrew Cagney <ac131313@redhat.com>
470
471 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
472 bfd/elf64-alpha-fbsd.c.
473
474 2002-09-29 Andrew Cagney <ac131313@redhat.com>
475
476 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
477 i386gnu-tdep.c.
478
479 2002-09-29 Andrew Cagney <ac131313@redhat.com>
480
481 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
482 __FUNCTION__.
483 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
484 function name.
485 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
486 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
487 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
488 (S_msg_sig_post_reply): Ditto.
489
490 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
491
492 * sh-tdep.c (sh_use_struct_convention): Use definition according
493 to ABI.
494 (sh_push_arguments): Store in register with correct endianess.
495 (sh_default_store_return_value): Ditto.
496 (sh_gdbarch_init): Set sizeof long double to 8.
497
498 2002-09-27 Mark Kettenis <kettenis@gnu.org>
499
500 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
501 Fix some whitespace problems.
502
503 2002-09-27 David Carlton <carlton@math.stanford.edu>
504
505 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
506 (mcore-tdep.o): Ditto.
507 (ns32k-tdep.o): Ditto.
508 (ns32knbsd-tdep.o): Ditto.
509 (sh3-rom.o): Ditto.
510 (vax-tdep.o): Ditto.
511 * cris-tdep.c: #include "gdb_string.h"
512 * mcore-tdep.c: Ditto.
513 * ns32k-tdep.c: Ditto.
514 * ns32knbsd-tdep.c: Ditto.
515 * sh3-rom.c: Ditto.
516 * vax-tdep.c: Ditto.
517
518 2002-09-27 David Carlton <carlton@math.stanford.edu>
519
520 * config/djgpp/fnchange.lst: Add entries for
521 gdb/testsuite/gdb.c++/m-static files.
522
523 2002-09-27 Jim Wilson <wilson@redhat.com>
524
525 * MAINTAINERS: Add myself to the Write After Approval list.
526
527 2002-09-26 Martin M. Hunt <hunt@redhat.com>
528
529 * mips-tdep.c (find_proc_desc): Initialize startaddr.
530
531
532 2002-09-26 Andrew Cagney <ac131313@redhat.com>
533
534 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
535 frame.
536
537 2002-09-26 Andrew Cagney <ac131313@redhat.com>
538
539 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
540 (rs6000_struct_return_address): Delete variable.
541 (rs6000_store_struct_return): Update.
542 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
543 deprecated_extract_struct_value_address.
544 (rs6000_frame_align): New function.
545 (rs6000_gdbarch_init): Set frame_align.
546
547 2002-09-26 Andrew Cagney <ac131313@redhat.com>
548
549 From Grace Sainsbury <graces@redhat.com>:
550 * Makefile.in (gdbtk-main.o): New target.
551 (gdb.o): New target.
552 (main_h): Define.
553 (main.o): Update dependencies.
554 (gdb$(EXEEXT)): Add gdb.o.
555 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
556 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
557 (SUBDIR_GDBTK_CLEAN): Set.
558 (install-gdbtk): Install the insight binary.
559 (uninstall-gdbtk): New target.
560 (all-gdbtk, clean-gdbtk): New rule.
561 * top.c (use_windows): Default to zero.
562 * main.c: Include "main.h".
563 (main): Delete.
564 (struct captured_main_args): Delete.
565 (gdb_main): New function.
566 * main.h: New file.
567 * gdb.c: New File.
568
569 2002-09-25 Andrew Cagney <cagney@redhat.com>
570
571 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
572 (frame_map_regnum_to_name): New function.
573 (frame_map_name_to_regnum): New function.
574 * frame.h (frame_map_name_to_regnum): Declare.
575 (frame_map_regnum_to_name): Declare.
576 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
577 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
578 * parse.c: Do not include "builtin-regs.h".
579 (target_map_name_to_register): Delete function.
580 (write_dollar_variable): Use frame_map_name_to_regnum.
581 * parser-defs.h (target_map_name_to_register): Delete declaration.
582 * expprint.c: Include "frame.h".
583 (print_subexp): Use frame_map_regnum_to_name.
584 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
585 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
586
587 2002-09-25 Andrew Cagney <ac131313@redhat.com>
588
589 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
590 wasn't saved, and the next innermost frame is a dummy, return the
591 dummy frame's link register.
592
593 2002-09-24 Jim Blandy <jimb@redhat.com>
594
595 Fix from Paul Breed:
596 * main.c (captured_main): Add a `break' after the case for 'b'.
597
598 2002-09-24 Keith Seitz <keiths@redhat.com>
599
600 * varobj.c (c_type_of_child): Use get_target_type instead
601 of TYPE_TARGET_TYPE.
602
603 2002-09-22 Fernando Nasser <fnasser@redhat.com>
604
605 * source.c (get_current_or_default_source_symtab_and_line): Remove
606 function.
607 (set_default_source_symtab_and_line): New function. Attempts to
608 determine a source file to list lines from if one is not currently
609 defined.
610 (get_current_source_symtab_and_line): Initialize sal.pc and
611 sal.end fields.
612 (set_current_source_symtab_and_line): Mark argument as const.
613 * source.h: Update declarations and comments.
614 * linespec.c (decode_line_1): Replace call to removed routine above.
615 * stack.c (print_frame_info_base): Ditto.
616 * cli/cli-cmds.c (edit_command): Ditto.
617 (list_command): Ditto.
618
619 2002-09-22 Fernando Nasser <fnasser@redhat.com>
620
621 * source.c (get_current_or_default_source_symtab_and_line): Initialize
622 sal.pc and sal.end fields.
623 (get_current_or_default_source_symtab_and_line): Ditto.
624 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
625 so we do not cause a new source symtab to be searched for (reverting an
626 unintentional change from the 2002-09-20 patch).
627 * scm-lang.c (scm_unpac): Ditto.
628
629 2002-09-21 Andrew Cagney <cagney@redhat.com>
630
631 * complaints.c (symfile_explanations): Remove new-line from
632 ``isolated_message''.
633 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
634 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
635
636 2002-09-20 Nick Clifton <nickc@redhat.com>
637
638 * NEWS: Announce that V850EA ISA is no longer supported.
639 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
640
641 2002-09-20 David Carlton <carlton@math.stanford.edu>
642
643 * Makefile.in (c-lang.o): Correct dependencies.
644 (utils.o): Gather dependencies.
645 (charset.o): Move.
646 * c-lang.c: #include "gdb_string.h"
647
648 2002-09-20 Fernando Nasser <fnasser@redhat.com>
649
650 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
651 * cli/cli-cmds.c (list_command): New function. Implements the new
652 cli edit command.
653 (_init_cli_cmds): Add new command definition.
654 * gdb.1: Document edit command.
655 * doc/gdb.texinfo: Document edit command.
656
657 2002-09-20 Fernando Nasser <fnasser@redhat.com>
658
659 * source.c: Make global variables current_source_symtab and
660 current_source_line static.
661 (list_command): Moved to cli/cli-cmds.c.
662 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
663 (get_first_line_listed): New accessor function.
664 (get_lines_to_list): New accessor function.
665 (get_current_source_symtab_and_line): New function. Retrieves the
666 position in the source code that we consider current.
667 (get_current_or_default_source_symtab_and_line): New function.
668 Like the above but attempts to determine a default position if one
669 is not currently defined.
670 (set_current_source_symtab_and_line): New function. Sets the source
671 code position considered current and returns the previously set one.
672 (clear_current_source_symtab_and_line): Reset stored information about
673 a current source line.
674 (_initialize_source): Remove registration for the "list" command and
675 its alias.
676 * source.h: Add declarations for the new functions above.
677 * symtab.h: Remove declarations for the global variables mentioned
678 above.
679 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
680 obtain current source line.
681 * linespec.c (decode_line_1): Ditto.
682 * macroscope.c (default_macro_scope): Ditto.
683 * scm-lang.c (scm_unpac): Ditto.
684 * stack.c (print_frame_info_base): Ditto.
685 * symfile.c (clear_symtab_users): Ditto.
686 * symtab.c (decode_line_spec): Ditto.
687 * cli/cli-cmds.c (list_command): Moved here from source.c.
688 (ambiguous_line_spec): Moved here from source.c.
689 (_init_cli_cmds): Add definition for "list" and its alias.
690 * Makefile.in: Update dependencies.
691
692 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
693
694 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
695 with what gcc thinks is correct.
696
697 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
698
699 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
700 multiple register push instruction.
701
702 2002-09-19 Jim Blandy <jimb@redhat.com>
703
704 Add support for distinct host and target character sets.
705 * charset.c, charset.h: New files.
706 * c-exp.y: #include "charset.h".
707 (yylex): Convert character and string literals to the target
708 character set, before returning them as the semantic value of the
709 token.
710 * c-lang.c: #include "charset.h".
711 (c_emit_char): Use charset-specific methods to recognize
712 characters with backslash escape forms, to decide which characters
713 to print literally and which to print using numeric escape
714 sequences, and to convert target characters to host characters
715 before printing.
716 * utils.c: #include "charset.h".
717 (no_control_char_error): New function.
718 (parse_escape): Use charset-specific methods to recognize
719 backslash escapes, parse `control character' notation, and convert
720 characters from the host character set to the target character set.
721 * configure.in: Set the default host character set.
722 Check where to find iconv, and what its argument types might be.
723 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
724 * Makefile.in (SFILES): List charset.c.
725 (COMMON_OBS): List charset.o.
726 (charset.o): New rule.
727 (charset_h): New header dependency variable.
728 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
729 (LIBICONV): New variable, set by configure.
730 (CLIBS): Include $(LIBICONV) here.
731 * aclocal.m4, config.in, configure: Regenerated.
732
733 2002-09-19 Joel Brobecker <brobecker@gnat.com>
734
735 * ada-exp.y: Add missing semicolons to end rules. Fixes a
736 bison 1.35 warning.
737
738 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
739
740 * gdb_mbuild.sh: New file.
741
742 2002-09-19 Andrew Cagney <ac131313@redhat.com>
743
744 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
745
746 2002-09-18 Andrew Cagney <ac131313@redhat.com>
747
748 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
749 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
750 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
751 valops.c, value.h: Revert previous change.
752
753 2002-09-18 Michael Snyder <msnyder@redhat.com>
754
755 Preliminary support for Objective-C:
756 * defs.h (language_objc): New enum value.
757 (puts_filtered_tabular): Declaration only, exported from utils.c.
758 (skip_quoted): Delete, declared in completer.h.
759 * c-exp.y: Include completer.h.
760 * p-exp.y: Ditto.
761 * jv-exp.y: Ditto.
762 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
763 New operator enum values.
764 * language.h (CAST_IS_CONVERSION): Test for language_objc.
765 * language.c (binop_result_type): Handle language_objc case.
766 (integral_type, character_type, string_type, boolean_type,
767 structured_type, binop_type_check): Ditto.
768 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
769 (struct objc_specific): Add to general_symbol_info.
770 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
771 (SYMBOL_DEMANGLED_NAME): Handle objc case.
772 * parser-defs.h (struct objc_class_str): New struct type.
773 (start_msglist, end_msglist, add_msglist): Declaration only,
774 exported from objc-lang.c.
775 * value.h (value_of_local, value_nsstring,
776 call_function_by_hand_expecting_type): Exported from valops.c.
777 * valops.c (find_function_addr): Export.
778 (call_function_by_hand_expecting_type): New function.
779 (value_of_local): New function.
780 * symfile.c (init_filename_language_table): Add ".m" extension
781 for Objective-C.
782 * utils.c (puts_filtered_tabular): New function.
783 (fprintf_symbol_filtered): Add objc demangling support (disabled).
784 (set/show demangle): Extend help-string to refer to ObjC.
785 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
786 * stabsread.c (symbol_reference_defined): Objective-C symbols
787 may contain colons: make allowances when scanning stabs strings
788 for colons.
789 (objc_find_colon): New function.
790 * printcmd.c (address_info): If language == objc then print
791 "self" instead of "this".
792 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
793 OP_NSSTRING, and OP_SELF.
794 (prefixify_subexp): Ditto.
795 * source.c (print_source_lines): Mention objc in comment.
796 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
797 method names.
798
799 2002-09-18 Andrew Cagney <ac131313@redhat.com>
800
801 * complaints.h: Update copyright.
802 (struct complaints): Declare.
803 (struct complaint): Make `message' constant.
804 (internal_complaint): Declare.
805 (complaint): Declare.
806 (complaint_root): Delete declaration.
807 (symfile_complaints): Delete declaration.
808 (struct complaints): Add opaque declaration.
809 (clear_complaints): Add a complaints parameter.
810 * complaints.c: Update copyright.
811 (enum complaint_series): Define.
812 (complaint_root): Delete.
813 (struct complaints): Define.
814 (complaint_sentinel, symfile_complaint_book): New variables.
815 (symfile_explanations, symfile_complaints): New variables.
816 New variables.
817 (get_complaints): New function.
818 (vcomplaint): New function.
819 (complaint): New function.
820 (internal_complaint): New function.
821 (complain): Call vcomplain with symfile_complaint.
822 (clear_complaints): Rewrite.
823 (_initialize_complaints): Use add_setshow_command.
824 * Makefile.in (complaints.o): Update dependencies.
825 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
826 to call to clear_complaints.
827 (new_symfile_objfile, reread_symbols): Ditto.
828 (oldsyms_complaint): Delete.
829 (empty_symtab_complaint, unknown_option_complaint): Delete.
830 (free_named_symtabs): Use complaint instead of complain.
831
832 2002-09-18 Michael Snyder <msnyder@redhat.com>
833
834 Contributed by Apple Computer, Inc. Merged with current sources
835 by Adam Fedor <fedor@doc.com> [cagney].
836
837 * objc-lang.c: First clean-up round: comments, indentation.
838 * objc-lang.h: Ditto.
839 * objc-lang.y: Ditto.
840
841 2002-09-18 Andrew Cagney <ac131313@redhat.com>
842
843 * maint.c (maintenance_internal_error): Print the parameter as the
844 error message.
845 (maintenance_internal_warning): New function.
846 (_initialize_maint_cmds): Add command `maint internal-warning'.
847
848 * defs.h (internal_warning, internal_vwarning): Declare.
849 * utils.c (struct internal_problem): Define.
850 (internal_vproblem): New function.
851 (internal_warning): New function.
852 (internal_vwarning): New function.
853 (internal_warning_problem, internal_error_problem): New variables.
854 (internal_verror): Just call internal_vproblem.
855
856 2002-09-18 Michael Snyder <msnyder@redhat.com>
857
858 * objc-lang.c: New file, support for Objective-C.
859 Preliminary check-in, not yet integrated into gdb.
860 * objc-lang.h: New file.
861 * objc-exp.y: New file.
862
863 2002-09-18 Andrew Cagney <ac131313@redhat.com>
864
865 * infrun.c (signal_stop_update): Convert definition to ISO C.
866 (signal_print_update): Ditto.
867 (signal_pass_update): Ditto.
868 * inflow.c (terminal_save_ours): Ditto.
869
870 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
871 comments.
872
873 * config/djgpp/fnchange.lst: Handle name clashes between
874 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
875 bfd/coff-tic80.c.
876
877 * i386-linux-tdep.h: Fix tipo.
878
879 2002-09-18 Adam Fedor <fedor@gnu.org>
880
881 * MAINTAINERS: Add myself to the Write After Approval list.
882
883 2002-09-18 Jim Blandy <jimb@redhat.com>
884
885 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
886 texthigh and textlow to reader-specific structs caused
887 objfile_relocate to miss them. This is fixable, but the work that
888 the change was supposed to prepare GDB for never got done anyway.
889
890 2002-09-18 David Carlton <carlton@math.stanford.edu>
891
892 * MAINTAINERS: Alphabetize Write After Approval list.
893
894 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
895
896 Fix PR gdb/709
897 * values.c (value_static_field): Call read_var_value.
898
899 2002-09-18 Andrew Cagney <ac131313@redhat.com>
900
901 * valops.c (hand_function_call): Align the initial stack pointer
902 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
903 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
904 return value.
905 * mips-tdep.c (mips_frame_align): New function.
906 (mips_gdbarch_init): Set frame_align.
907 * gdbarch.sh (FRAME_ALIGN): New method.
908 * gdbarch.h, gdbarch.c: Re-generate.
909
910 2002-09-18 Michal Ludvig <mludvig@suse.cz>
911
912 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
913 registers.
914
915 2002-09-17 Andrew Cagney <ac131313@redhat.com>
916
917 * NEWS: Mention that MIPS $fp behavior changed.
918 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
919 reference to FP_REGNUM.
920 (mipsnbsd_cannot_store_register): Ditto.
921 * mips-linux-nat.c: Update copyright.
922 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
923 (mips_linux_cannot_store_register): Ditto.
924 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
925 * config/mips/tm-mips.h: Update copyright.
926 (FP_REGNUM): Delete macro.
927 (MIPS_REGISTER_NAMES): Replace "fp" with "".
928 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
929 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
930 (mips_r3041_reg_names, mips_r3051_reg_names)
931 (mips_r3081_reg_names): Replace "fp" with "".
932 Fix PR gdb/480.
933
934 2002-09-17 Theodore A. Roth <troth@verinet.com>
935
936 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
937 generic_read_register_dummy() (PR gdb/703).
938 (avr_push_return_address): #if 0 out unused vars.
939 (avr_gdbarch_init): Enable use of avr_push_return_address().
940
941 2002-09-17 Michael Snyder <msnyder@redhat.com>
942
943 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
944 RTE will take care of it.
945
946 2002-09-17 Andrew Cagney <ac131313@redhat.com>
947
948 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
949 invalid, return SP_REGNUM.
950
951 2002-09-17 Michael Snyder <msnyder@redhat.com>
952
953 * mips-tdep.c (mips_pop_frame): Read saved values of floating
954 point registers without sign extension.
955
956 2002-09-17 Andrew Cagney <cagney@redhat.com>
957
958 * blockframe.c (deprecated_read_register_dummy): Rename
959 generic_read_register_dummy.
960 * frame.c (frame_unwind_signed_register): New function.
961 (frame_unwind_unsigned_register): New function.
962 * frame.h (frame_unwind_signed_register): Declare.
963 (frame_unwind_unsigned_register): Declare.
964 (deprecated_read_register_dummy): Rename
965 generic_read_register_dummy.
966
967 * h8300-tdep.c (h8300_frame_chain): Update.
968 (h8300_frame_saved_pc): Update.
969 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
970 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
971 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
972 (s390_frame_chain): Update.
973 * v850-tdep.c (v850_find_callers_reg): Update.
974 (v850_frame_saved_pc): Update.
975 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
976 (m32r_find_callers_reg): Update.
977 (m32r_frame_saved_pc): Update.
978 * sh-tdep.c (sh_find_callers_reg): Update.
979 (sh64_get_saved_pr): Update.
980 (sh_init_extra_frame_info): Update.
981 (sh_init_extra_frame_info): Update.
982 (sh64_init_extra_frame_info): Update.
983 (sh64_init_extra_frame_info): Update.
984 * mcore-tdep.c (mcore_find_callers_reg): Update.
985 (mcore_frame_saved_pc): Update.
986 (mcore_init_extra_frame_info): Update.
987 * i386-tdep.c (i386_frame_saved_pc): Update.
988 * ia64-tdep.c (ia64_frame_saved_pc): Update.
989 (ia64_init_extra_frame_info): Update.
990 (ia64_init_extra_frame_info): Update.
991 * d10v-tdep.c (d10v_frame_saved_pc): Update.
992 * cris-tdep.c (cris_init_extra_frame_info): Update.
993 * avr-tdep.c (avr_frame_chain): Update.
994 (avr_init_extra_frame_info): Update.
995 (avr_frame_saved_pc): Update.
996 * arm-tdep.c (arm_find_callers_reg): Update.
997 (arm_init_extra_frame_info): Update.
998 (arm_frame_saved_pc): Update.
999
1000 2002-09-17 Tom Tromey <tromey@redhat.com>
1001
1002 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1003 is "'".
1004
1005 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1006
1007 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1008 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1009 NEXT_PROLOGUE_INSN.
1010 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1011 NEXT_PROLOGUE_INSN.
1012
1013 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1014
1015 * osfsolib.c: Remove file, replaced by solib-osf.c.
1016 * Makefile.in: Remove compilation rules for osfsolib.c.
1017
1018 2002-09-16 David Carlton <carlton@math.stanford.edu>
1019
1020 * cp-valprint.c (cp_print_class_method): Correct args to
1021 check_stub_method_group.
1022
1023 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1024
1025 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1026 `set architecture'. Unify naming convention of functions.
1027 (h8300_skip_prologue): Improve prologue analysis.
1028 (h8300_push_arguments): Rewritten to more closely match GCC's
1029 bizarre argument-passing behavior, along with the comment describing
1030 said behavior.
1031 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1032 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1033 sim, remote-e7000.c, remote-hms.c and remote.c
1034
1035 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1036
1037 * i386-tdep.c (gdb_print_insn_i386): Removed.
1038 (i386_print_insn): New function.
1039 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1040 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1041 tm_print_insn_info.
1042
1043 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1044
1045 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1046 zero.
1047
1048 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1049
1050 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1051 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1052 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1053
1054 2002-09-13 Christopher Faylor <cgf@redhat.com>
1055
1056 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1057
1058 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1059
1060 * gdbtypes.c (check_stub_method): Make static.
1061 (check_stub_method_group): New function.
1062 * gdbtypes.h: Update prototypes.
1063 * cp-support.c: New file.
1064 * cp-support.h: New file.
1065
1066 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1067 (update_method_name_from_physname): New function.
1068 (read_member_functions): Correct method names for operators
1069 and v3 constructors/destructors. Separate v2 constructors and
1070 destructors.
1071 * Makefile.in (stabsread.o): Update dependencies.
1072 (SFILES): Add cp-support.c.
1073 (COMMON_OBS): Add cp-support.o.
1074 (cp_support_h, cp-support.o): Add.
1075
1076 * cp-valprint.c (cp_print_class_method): Call
1077 check_stub_method_group instead of check_stub_method. Remove
1078 extraneous QUITs.
1079 * p-valprint.c (pascal_object_print_class_method): Likewise.
1080 * valops.c (search_struct_method): Likewise.
1081 (find_method_list, value_struct_elt_for_reference): Likewise.
1082
1083 2002-09-13 Andrew Cagney <cagney@redhat.com>
1084
1085 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1086 * gdbarch.h, gdbarch.c: Regenerate.
1087
1088 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1089
1090 * frame.c (find_saved_register): Delete function.
1091 * frame.h (find_saved_register): Delete declaration.
1092 Fix PR gdb/631.
1093
1094 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1095
1096 * mips-tdep.c (read_next_frame_reg): Re-hack using
1097 frame_register_unwind.
1098
1099 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1100
1101 * mips-tdep.c (mips_get_saved_register): Re-hack using
1102 frame_register_unwind.
1103
1104 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1105
1106 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1107 vector. Will be useful for Interix.
1108 * gdbarch.h, gdbarch.c: Regenerate.
1109
1110 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1111 name of the malloc function by NAME_OF_MALLOC.
1112
1113 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1114
1115 * value.h (find_function_in_inferior): Add const keyword to
1116 one of the parameters. Allows us to invoke this function with
1117 a const char *.
1118 * valops.c (find_function_in_inferior): Likewise.
1119
1120 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1121
1122 * exec.c (xfer_memory): Fix compilation warning with old versions
1123 of GCC.
1124 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1125
1126 2002-09-12 David Carlton <carlton@math.stanford.edu>
1127
1128 * symtab.h: Run through gdb_indent.h.
1129 Add 2002 to Copyright year list.
1130
1131 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1132
1133 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1134 mach constants.
1135 * MAINTAINERS: Add myself to write after approval list.
1136
1137 2002-09-11 J. Brobecker <brobecker@gnat.com>
1138
1139 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1140
1141 2002-09-11 J. Brobecker <brobecker@gnat.com>
1142
1143 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1144 Interix.
1145
1146 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1147
1148 * procfs.c (do_detach): Clear current signal, not just fault.
1149 Corrects problem with breakpoint trap signal leaking to detached
1150 process on Tru64.
1151
1152 2002-09-10 Michael Snyder <msnyder@redhat.com>
1153
1154 * buildsym.c (finish_block): Protect against null pointer.
1155
1156 2002-09-10 Andrew Cagney <cagney@redhat.com>
1157
1158 * infcmd.c (default_print_registers_info): Send all output to
1159 ``file'' instead of ``gdb_stdout''.
1160
1161 2002-09-10 Michael Snyder <msnyder@redhat.com>
1162
1163 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1164 LONGEST, and use signed register read (addresses are sign-
1165 extended for mips).
1166
1167 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1168
1169 * event-loop.c (gdb_do_one_event): Make public.
1170 * event-loop.h (gdb_do_one_event): Declare.
1171
1172 2002-09-10 Jeff Law <law@redhat.com>
1173
1174 * infttrace.c (child_resume): Simplify and rework to avoid
1175 TT_PROC_CONTINUE.
1176
1177 2002-09-09 Fred Fish <fnf@intrinsity.com>
1178
1179 * printcmd.c (print_scalar_formatted): "len" is the number of
1180 target bytes, NOT the number of target bits.
1181
1182 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1183
1184 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1185 * top.c (init_main): Set rl_terminal_name.
1186
1187 2002-09-08 Aidan Skinner <aidan@velvet.net>
1188
1189 * ada-lang.c (ada_array_bound, ada_type_match,
1190 _initialize_ada_language): Fix K&R definitions.
1191 * ada-tasks.c (get_current_task): Fix K&R definitions.
1192 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1193
1194 2002-09-07 Christopher Faylor <cgf@redhat.com>
1195
1196 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1197 Add XP.
1198
1199 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1200
1201 * i386-tdep.c (i386_register_virtual_type,
1202 i386_register_convertible, i386_register_convert_to_virtual,
1203 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1204 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1205 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1206 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1207 Don't set push_arguments twice.
1208
1209 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1210 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1211 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1212 sigtramp_end to NULL.
1213 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1214 defines.
1215 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1216
1217 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1218 whitespace.
1219
1220 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1221 * gdbarch.h, gdbarch.c: Re-generate.
1222 * blockframe.c (find_pc_sect_partial_function): Convert to use
1223 SIGTRAMP_START_P predicate.
1224
1225 2002-09-05 Michael Snyder <msnyder@redhat.com>
1226
1227 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1228 generic_dummy_frame method and old method. Also distinguish
1229 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1230 (arm_extract_return_value): Use new regcache method.
1231
1232 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1233 adjustment that doesn't conform to the ABI.
1234 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1235 saved regcache, not from current regcache.
1236
1237 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1238
1239 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1240 * README: Update.
1241
1242 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1243
1244 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1245 if arm_apcs_32 is false.
1246
1247 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1248
1249 GDB 5.3 branch created.
1250
1251 2002-09-03 Theodore A. Roth <troth@verinet.com>
1252
1253 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1254 generic_unwind_get_saved_register.
1255
1256 2002-09-03 David Carlton <carlton@math.stanford.edu>
1257
1258 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1259 argument (PR gdb/653). Update call to smash_to_method_type.
1260 (read_structure_scope): Update call to dwarf2_add_member_fn.
1261
1262 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1263
1264 * x86-64-linux-tdep.c: Include gdb_string.h
1265 * x86-64-linux-nat.c: Ditto.
1266
1267 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1268
1269 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1270 when YYDEBUG is set to 1.
1271 * c-exp.y: Likewise.
1272 * f-exp.y: Likewise.
1273 * jv-exp.y: Likewise.
1274 * m2-exp.y: Likewise.
1275 * p-exp.y: Likewise.
1276
1277 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1278
1279 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1280 dependency list.
1281 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1282 solib_svr4_fetch_link_map_offsets to
1283 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1284 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1285 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1286 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1287 solib-svr4.o, and solib-legacy.o.
1288 * config/i386/tm-nbsd.h: Include solib.h.
1289
1290 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1291
1292 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1293 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1294 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1295 comment noting that this needs its own target configuration.
1296 * config/i386/nbsd.mt: New file.
1297 * config/i386/nbsdaout.mt: Remove.
1298 * config/i386/nbsdelf.mt: Ditto.
1299 * config/i386/tm-nbsdaout.h: Ditto.
1300
1301 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1302
1303 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1304 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1305 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1306 tdep->sigtramp_end.
1307 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1308 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1309 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1310
1311 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1312
1313 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1314 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1315 * i386-tdep.h (i386bsd_init_abi): New prototype.
1316 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1317 function declaration.
1318 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1319 for NetBSD-a.out or NetBSD-ELF.
1320 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1321 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1322 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1323 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1324 and nbsd-tdep.h.
1325 (i386nbsd_pc_in_sigtramp): New function.
1326 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1327 i386nbsd_pc_in_sigtramp.
1328 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1329 and i386nbsdelf_init_abi OS ABI handlers.
1330 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1331 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1332
1333 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1334
1335 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1336 registers if the target really has them.
1337
1338 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1339
1340 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1341 than nbsd-tdep.h.
1342
1343 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1344
1345 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1346 list.
1347 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1348 (alphanbsd_skip_sigtramp_frame): New functions.
1349 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1350 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1351 to alphanbsd_sigcontext_addr.
1352
1353 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1354
1355 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1356 list.
1357 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1358 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1359 nbsd_pc_in_sigtramp.
1360 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1361 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1362 * nbsd-tdep.c: Include gdb_string.h.
1363 (nbsd_pc_in_sigtramp): New function.
1364 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1365 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1366 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1367 ppcnbsd_pc_in_sigtramp.
1368 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1369 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1370 shnbsd_pc_in_sigtramp.
1371 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1372 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1373 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1374
1375 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1376
1377 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1378 watchpoints to NULL.
1379 (insert_breakpoints): set val field of watchpoints if NULL.
1380
1381
1382 2002-08-29 Jim Blandy <jimb@redhat.com>
1383
1384 * symtab.c (lookup_symbol_aux): In the cases where we find a
1385 minimal symbol of an appropriate name and use its address to
1386 select a symtab to read and search, use `name' (as passed to us)
1387 as the demangled name when searching the symtab's global and
1388 static blocks, not the minsym's name.
1389
1390 2002-08-29 Keith Seitz <keiths@redhat.com>
1391
1392 * stack.c (print_frame_info_base): Always set current_source_symtab
1393 and current_source_line.
1394
1395 2002-08-29 Donn Terry <donnte@microsoft.com>
1396
1397 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1398
1399 2002-08-28 Keith Seitz <keiths@redhat.com>
1400
1401 * stack.c (select_frame): Add FIXME concerning selected-frame
1402 events.
1403 (select_frame_command): Send selected-frame-level-changed
1404 event notification, but only if the level actually changed.
1405 (up_silently_base): Add selected-frame-level-changed event
1406 notification.
1407 (down_silently_base): Likewise.
1408
1409 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1410
1411 * Makefile.in: Update dependencies for all gdb/*.c files.
1412
1413 2002-08-27 Tom Tromey <tromey@redhat.com>
1414
1415 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1416 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1417 Update dependencies.
1418 * i387-tdep.c: Include gdb_string.h.
1419 * osabi.c: Likewise.
1420 * i386-linux-nat.c: Likewise.
1421 * lin-lwp.c: Likewise.
1422 * ax-gdb.c: Likewise.
1423 * signals/signals.c: Likewise.
1424 * jv-valprint.c: Likewise.
1425 * p-lang.c: Likewise.
1426 * c-valprint.c: Likewise.
1427 * cp-abi.c: Likewise.
1428
1429 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1430
1431 * cli/cli-script.h (copy_command_lines): Export.
1432 * breakpoint.c: Include cli/cli-script.h.
1433 * Makefile.in (breakpoint.o): Update dependencies.
1434
1435 2002-08-26 Michael Snyder <msnyder@redhat.com>
1436
1437 * breakpoint.c (insert_breakpoints): Protect all references
1438 to 'process_warning'. Shorten long lines.
1439
1440 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1441
1442 * cli/cli-script.c (copy_command_lines): New function.
1443 * defs.h (copy_command_lines): Export.
1444 * testsuite/gdb.base/commands.exp: New tests for commands
1445 attached to a temporary breakpoint, and for commands that
1446 delete the breakpoint they are attached to.
1447
1448 2002-08-26 Michael Snyder <msnyder@redhat.com>
1449
1450 * breakpoint.c (bpstat_stop_status): Instead of copying the
1451 pointer to the breakpoint commands struct, make a new copy
1452 of the struct and point to that.
1453 (bpstat_clear): Free the commands struct.
1454 (bpstat_clear_actions): Free the commands struct.
1455 (bpstat_do_actions): Free the command actions. Also execute
1456 the local cleanups, instead of deleting them.
1457 (delete_breakpoint): Leave the commands field of the bpstat
1458 chain alone -- it will be freed later.
1459
1460 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1461
1462 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1463 deleted in 2002-08-20 commit. This function is still used by
1464 ppc-linux-nat.c.
1465
1466 2002-08-26 Keith Seitz <keiths@redhat.com>
1467
1468 * gdb-events.sh: Add selected-frame-level-changed event.
1469 * gdb-events.c: Regenerated.
1470 * gdb-events.h: Regenerated.
1471
1472 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1473
1474 Fix PR gdb/393:
1475 * inflow.c (terminal_save_ours): New function to save terminal
1476 settings.
1477 * inferior.h (terminal_save_ours): Declare.
1478 * target.c (debug_to_terminal_save_ours): New function.
1479 (cleanup_target): Defaults to_terminal_save_ours.
1480 (update_current_target): Inherit to_terminal_save_ours.
1481 (setup_target_debug): Set to_terminal_save_ours.
1482 * target.h (target_terminal_save_ours): New to save terminal settings.
1483 (target_ops): New member to_terminal_save_ours.
1484 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1485 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1486 * inftarg.c (init_child_ops): Likewise.
1487 * m3-nat.c (init_m3_ops): Likewise.
1488 * procfs.c (init_procfs_ops): Likewise.
1489 * wince.c (init_child_ops): Likewise.
1490 * win32-nat.c (init_child_ops): Likewise.
1491 * sol-thread.c (init_sol_thread_ops): Likewise.
1492
1493 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1494
1495 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1496 use regcache_* functions.
1497 (i386_gdbarch_init): Set store_return_value instead of
1498 deprecated_store_return_value.
1499
1500 * regcache.c (regcache_raw_write_signed,
1501 regcache_raw_write_unsigned): New functions.
1502 * regcache.h (regcache_raw_write_signed,
1503 regcache_raw_write_unsigned): New prototypes.
1504
1505 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1506
1507 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1508 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1509 source file dependencies. Cleanup corresponding generator rules.
1510
1511 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1512
1513 * regcache.h (register_offset_hack): Declare.
1514 (regcache_cooked_read_using_offset_hack): Declare.
1515 (regcache_cooked_write_using_offset_hack): Declare.
1516
1517 * regcache.c (register_offset_hack): New function.
1518 (regcache_cooked_read_using_offset_hack): New function.
1519 (regcache_cooked_write_using_offset_hack): New function.
1520 (regcache_dump): Check that the registers, according to their
1521 offset, are packed hard against each other.
1522 (cooked_xfer_using_offset_hack): New function.
1523
1524 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1525
1526 * regcache.c (struct regcache_descr): Add field register_type.
1527 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1528 in as a parameter
1529 (init_regcache_descr): Initialize register_type. Pass the descr
1530 to init_legacy_regcache_descr. Use register_type instead of
1531 REGISTER_VIRTUAL_TYPE.
1532 (register_type): New function.
1533 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1534 * regcache.h (register_type): Declare.
1535
1536 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1537
1538 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1539 instead of deprecated_store_return_value. Fix fallout from
1540 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1541
1542 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1543
1544 * regcache.c (max_register_size): New function.
1545 (init_legacy_regcache_descr): Ensure that max_register_size is
1546 large enough for REGISTER_VIRTUAL_SIZE.
1547 * regcache.h (max_register_size): Declare.
1548
1549 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1550
1551 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1552 store_return_value.
1553 (e500_extract_return_value): Change type of valbuf pointer to
1554 void.
1555
1556 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1557
1558 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1559 workaround.
1560
1561 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1562 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1563 long long) to prevent compiler warning on 64-bit systems.
1564
1565 2002-08-23 Andrew Cagney <cagney@redhat.com>
1566
1567 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1568 (DEPRECATED_STORE_RETURN_VALUE): New method.
1569 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1570 * gdbarch.h, gdbarch.c: Re-generate.
1571
1572 * values.c (set_return_value): Pass current_regcache to
1573 STORE_RETURN_VALUE.
1574 * arch-utils.h (legacy_store_return_value): Declare.
1575 * arch-utils.c (legacy_store_return_value): New function.
1576 (legacy_extract_return_value): Update parameters.
1577
1578 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1579 STORE_RETURN_VALUE.
1580 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1581 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1582 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1583 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1584 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1585 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1586 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1587 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1588 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1589 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1590
1591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1592 * i386-tdep.c (i386_extract_return_value): Update.
1593 * arch-utils.c (legacy_extract_return_value): Update.
1594 * frv-tdep.c (frv_gdbarch_init): Update.
1595 * cris-tdep.c (cris_gdbarch_init): Update.
1596 * d10v-tdep.c (d10v_gdbarch_init): Update.
1597 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1598 * m68k-tdep.c (m68k_gdbarch_init): Update.
1599 * mcore-tdep.c (mcore_gdbarch_init): Update.
1600 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1601 * s390-tdep.c (s390_gdbarch_init): Update.
1602 * sparc-tdep.c (sparc_gdbarch_init): Update.
1603 * sh-tdep.c (sh_gdbarch_init): Update.
1604 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1605 * v850-tdep.c (v850_gdbarch_init): Update.
1606 * avr-tdep.c (avr_gdbarch_init): Update.
1607 * ia64-tdep.c (ia64_gdbarch_init): Update.
1608 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1609 * vax-tdep.c (vax_gdbarch_init): Update.
1610 * alpha-tdep.c (alpha_gdbarch_init): Update.
1611 * arm-tdep.c (arm_gdbarch_init): Update.
1612 * mips-tdep.c (mips_gdbarch_init): Update.
1613 * i386-tdep.c (i386_gdbarch_init): Update.
1614
1615 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1616
1617 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1618 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1619
1620 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1621
1622 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1623 problems.
1624
1625 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1626
1627 * infrun.c (handle_inferior_event): Move a comment outside of a
1628 function call, in order to avoid indent reformatting this part
1629 of the code in an unreadable way.
1630
1631 2002-08-23 Grace Sainsbury <graces@redhat.com>
1632
1633 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1634 when breakpoints fail. Move general breakpoint error messages to
1635 insert_breakpoints.
1636 * breakpoint.c (insert_breakpoints): Change warnings when
1637 breakpoints are nto inserted to specify the type. Remove call to
1638 memory_error when hardware breakpoints can't be inserted. Remove
1639 multiple calls to warning so all messages are sent to the user at
1640 once.
1641 (delete_breakpoints): Make insert error messsages more explicit.
1642
1643 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1644
1645 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1646 gdbserver/ChangeLog.
1647
1648 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1649
1650 * i386-tdep.c: Include "objfiles.h".
1651 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1652 skip_trampoline_code.
1653 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1654 (CPLUS_MARKER): Define to '.'.
1655
1656 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1657 member.
1658 (linux_corefile_thread_callback): Increase args->num_notes.
1659 (linux_make_note_section): Initialize thread_args.num_notes, and
1660 use it to determine whether notes for any threads were created.
1661
1662 2002-08-23 Donn Terry <donnte@microsoft.com>
1663
1664 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1665 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1666 and PCUNKILL.
1667 (write_with_trace): Conditionalize out the switch branch handling
1668 PCSHOLD if the corresponding macro is not defined. Likewise for
1669 PRSABORT and PRSTOP.
1670 This change will be needed by the Interix port.
1671
1672 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1673
1674 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1675 write_register wherever possible instead of manipulating the
1676 register bytes directly.
1677 Assign VALUE_CONTENTS to a variable and use that.
1678 The GPR numbers are now dependent on the architecture.
1679
1680 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1681
1682 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1683 ev_offset fields.
1684 (skip_prologue): Add support for BookE/e500 instructions.
1685 (e500_extract_return_value): New function.
1686 (frame_get_saved_regs): Add support for saving ev registers and
1687 pseudo gpr's.
1688 (e500_store_return_value): New function.
1689 (rs6000_gdbarch_init): Move up default intializations of
1690 deprecated_extract_return_value and store_return_value. Overwrite
1691 init of store_return_value with e500 specific version.
1692 Set extract_return_value for e500.
1693
1694 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1695
1696 * blockframe.c (generic_call_dummy_register_unwind): Use
1697 regcache_cooked_read to catch cases in which the variable is
1698 stored in a pseudo register.
1699
1700 2002-08-22 Andrew Cagney <cagney@redhat.com>
1701
1702 * NEWS: Mention that the i960 has been made obsolete.
1703 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1704 i960-tdep.c
1705 (remote-nrom.o): Obsolete target.
1706 (remote-nindy.o, i960-tdep.o): Ditto.
1707 * remote-nrom.c: Make file obsolete.
1708 * remote-nindy.c, remote-vx960.c: Ditto.
1709 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1710 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1711 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1712 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1713 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1714 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1715 i960-*-vxworks* obsolete.
1716 * MAINTAINERS: Note that the i960 is obsolete.
1717
1718 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1719
1720 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1721 detach to allow reinitialization.
1722
1723 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1724
1725 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1726 attempt).
1727
1728 2002-08-22 Jim Blandy <jimb@redhat.com>
1729
1730 * coffread.c (coff_symfile_read): Don't try to read the line
1731 number table from disk if the image file doesn't have a symbol
1732 table; we'll never actually look at the info anyway, and Windows
1733 ships DLL's with bogus file offsets for the line number data.
1734
1735 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1736
1737 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1738 an e500 executable.
1739
1740 2002-08-21 Michael Snyder <msnyder@redhat.com>
1741
1742 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1743 (MSYMBOL_SIZE): Replace macro with function.
1744 (DEFAULT_MIPS_TYPE): Delete unused macro.
1745 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1746 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1747
1748 2002-08-21 Jim Blandy <jimb@redhat.com>
1749
1750 * valops.c (value_cast): Simplify and correct logic for doing a
1751 static cast from a pointer to a base class to a pointer to a
1752 derived class.
1753
1754 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1755
1756 * infcmd.c (default_print_registers_info): Replace
1757 do_registers_info.
1758 (registers_info): Use gdbarch_print_registers_info instead of
1759 DO_REGISTERS_INFO.
1760 * inferior.h (default_print_registers_info): Replace
1761 do_registers_info.
1762 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1763 (DO_REGISTERS_INFO): Change to a predicate function.
1764 * gdbarch.h, gdbarch.c: Regenerate.
1765
1766 2002-08-21 Keith Seitz <keiths@redhat.com>
1767
1768 * gdb-events.sh: Add target-changed event.
1769 * gdb-events.c: Regenerated.
1770 * gdb-events.c: Regenerated.
1771 * valops.c (value_assign): Add target-changed event notification
1772 to inlval_register, lval_memory, and lval_reg_frame_relative.
1773
1774 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1775
1776 * NEWS: Add an entry regarding the improvement of the next/step
1777 operation on Alpha Tru64 multi-processor machines.
1778
1779 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1780
1781 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1782 directores.
1783 * Makefile.in: Update all _h macro definitions.
1784 * Makefile.in (install-gdbtk): Move to install section.
1785 (rdi-share/libangsd.a): Move to end of file.
1786
1787 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1788
1789 * frame.c (frame_register_unwind): When a register, set addrp to
1790 the register's byte.
1791
1792 2002-08-20 Michael Snyder <msnyder@redhat.com>
1793
1794 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1795 used locally, so move them from the target machine header to here.
1796 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1797 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1798 Make static.
1799 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1800
1801 2002-08-20 Andrew Cagney <cagney@redhat.com>
1802
1803 * NEWS: Mention that the Apollo line was made obsolete.
1804 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1805 m68*-hp-hpux* obsolete.
1806 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1807 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1808 * buildsym.c (make_blockvector): Make static.
1809 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1810 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1811 (ALLDEPFILES): Remove dstread.c.
1812 (dstread.o): Obsolete make rule.
1813 * dstread.c: Makefile obsolete.
1814 * dst.h: Ditto.
1815 * config/m68k/hp300hpux.mt: Ditto.
1816 * config/m68k/hp300hpux.mh: Ditto.
1817 * config/m68k/hp300bsd.mt: Ditto.
1818 * config/m68k/hp300bsd.mh: Ditto.
1819 * config/m68k/apollo68b.mt: Ditto.
1820 * config/m68k/apollo68v.mh: Ditto.
1821 * config/m68k/apollo68b.mh: Ditto.
1822
1823 2002-08-20 Michael Snyder <msnyder@redhat.com>
1824
1825 * mips-tdep.c (mips_in_return_stub): Make static.
1826 (mips_gdbarch_init): Set in_solib_return_trampoline.
1827 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1828
1829 2002-08-20 Michael Snyder <msnyder@redhat.com>
1830
1831 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1832 * gdbarch.c, gdbarch.h: Regenerate.
1833 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1834 Add.
1835 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1836
1837 2002-08-20 Michael Snyder <msnyder@redhat.com>
1838
1839 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1840 (mips_gdbarch_init): Set skip_trampoline_code,
1841 in_solib_call_trampoline.
1842 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1843 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1844
1845 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1846
1847 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1848
1849 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1850 vector type for ev registers.
1851 (e500_pseudo_register_read): New function.
1852 (e500_pseudo_register_write): New function.
1853 (e500_dwarf2_reg_to_regnum): New function.
1854 (PPC_UISA_NOFP_SPRS): New macro.
1855 (PPC_EV_REGS): New macro.
1856 (PPC_GPRS_PSEUDO_REGS): New macro.
1857 (registers_e500): New register set for e500.
1858 (variants): Add e500 variant.
1859 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1860 before setting architectural dependent variations. Initialize ev
1861 registers numbers. Add case for e500 architecture. Set the
1862 number of pseudo registers.
1863
1864 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1865
1866 * rs6000-tdep.c: Clean up comments.
1867
1868 2002-08-20 Andrew Cagney <cagney@redhat.com>
1869
1870 * h8300-tdep.c: Re-indent file.
1871
1872 2002-08-20 Jim Blandy <jimb@redhat.com>
1873
1874 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1875 default for this.
1876
1877 2002-08-20 Keith Seitz <keiths@redhat.com>
1878
1879 * breakpoints.c (watch_command_1): Use internal breakpoint
1880 when setting a watchpoint_scope breakpoint.
1881
1882 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1883
1884 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1885 (build_builtin_type_vec64i): Ditto.
1886 (build_builtin_type_vec128): Ditto.
1887 (build_builtin_type_vec128i): Ditto.
1888
1889 2002-08-19 Michael Snyder <msnyder@redhat.com>
1890
1891 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1892 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1893 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1894 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1895 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1896 CALL_DUMMY_ADDRESS): Delete.
1897 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1898 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1899 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1900 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1901 push_return_address.
1902 (mips_register_raw_size, mips_eabi_use_struct_convention,
1903 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1904 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1905 mips_init_extra_frame_info, mips_eabi_push_arguments,
1906 mips_n32n64_push_arguments, mips_push_return_address,
1907 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1908 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1909
1910 2002-08-19 Michael Snyder <msnyder@redhat.com>
1911
1912 * mips-tdep.c (mips_frame_num_args): New function.
1913 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1914 frame_saved_pc, frame_args_address, frame_locals_address,
1915 frame_num_args, and frame_args_skip.
1916 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1917 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1918 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1919 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1920
1921 2002-08-20 Michael Snyder <msnyder@redhat.com>
1922
1923 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1924 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1925 * mips-tdep.c (mips_store_struct_return): New function.
1926 (mips_extract_struct_value_address): New function.
1927 (mips_gdbarch_init): Set store_struct_return and
1928 extract_struct_value_address.
1929
1930 2002-08-20 David Carlton <carlton@math.stanford.edu>
1931
1932 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1933 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1934 (read_file_scope): Check that line_header is nonzero before
1935 decoding macro information.
1936
1937 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1938
1939 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1940 flag the general-purpose registers as floating-point on targets
1941 that don't support the floating-point registers.
1942
1943 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1944
1945 * rs6000-tdep.c (altivec_register_p): Delete.
1946 (rs6000_do_altivec_registers): Delete.
1947 (rs6000_altivec_registers_info): Delete.
1948 (rs6000_do_registers_info): Delete.
1949 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1950 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1951
1952 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1953
1954 * infcmd.c (do_registers_info): Print vector registers in hex
1955 format only.
1956 (print_vector_info): Check that printing registers
1957 makes sense.
1958 (print_float_info): Ditto.
1959
1960 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1961
1962 * mips-tdep.c (mips_gdbarch_init): Update.
1963 (mips_o32_extract_return_value): Rewrite.
1964 (mips_o32_store_return_value): Rewrite.
1965 (mips_o32_xfer_return_value): New function.
1966 (mips_xfer_register): Tweak debug print message. Allow for
1967 buf_offset when dumping the value transfered.
1968
1969 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1970
1971 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1972 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1973 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1974 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1975 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1976
1977 2002-08-14 Michael Snyder <msnyder@redhat.com>
1978
1979 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1980
1981 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1982
1983 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1984 register.
1985 (P): New macro to define a register as a pseudo register.
1986 (R, R4, R8, R16, FR32, R64, R0): Updated.
1987 (struct variant): Add new fields for number of pseudo registers
1988 and number of total registers.
1989 (tot_num_registers): New macro replacing....
1990 (num_registers): ...deleted macro.
1991 (num_registers): New function.
1992 (num_pseudo_registers): New function.
1993 (variants): Update all variants to intialize new fields correctly.
1994 Postpone initialization of number of pseudo regs and real regs.
1995 (init_variants): New function.
1996 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1997 registers offsets.
1998
1999 2002-08-19 David Carlton <carlton@math.stanford.edu>
2000
2001 * valops.c (search_struct_field): Change error message to treat
2002 return value of 0 from value_static_field as meaning that field is
2003 optimized out.
2004 (value_struct_elt_for_reference): Ditto.
2005 * values.c (value_static_field): Treat an unresolved location the
2006 same as a nonexistent symbol. Fix PR gdb/635.
2007 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2008 enclosed. Fix PR gdb/574.
2009 * MAINTAINERS: Add self to Write After Approval list.
2010
2011 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2012
2013 * mips-tdep.c (mips_xfer_register): New function.
2014 (mips_n32n64_extract_return_value): Rewrite.
2015 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2016 instead of deprecated_extract_return_value.
2017
2018 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2019
2020 * rs6000-tdep.c (TDEP): Delete macro.
2021 (branch_dest): Replace use of TDEP macro with its body.
2022 (rs6000_pop_frame): Ditto.
2023 (rs6000_push_arguments): Ditto.
2024 (rs6000_skip_trampoline_code): Ditto.
2025 (rs6000_frame_saved_pc): Ditto.
2026 (rs6000_frame_chain): Ditto.
2027 (rs6000_register_name): Ditto.
2028 (rs6000_register_byte): Ditto.
2029 (rs6000_register_raw_size): Ditto.
2030 (rs6000_register_virtual_type): Ditto.
2031 (rs6000_register_convertible): Ditto.
2032 (rs6000_convert_from_func_ptr_addr): Ditto.
2033
2034 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2035
2036 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2037 conditionally.
2038 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2039 MIPS_LINUX_JB_ELEMENT_SIZE.
2040 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2041 for MAX_REGISTER_RAW_SIZE arrays.
2042 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2043 MIPS_LINUX_JB_ELEMENT_SIZE.
2044
2045 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2046
2047 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2048
2049 2002-08-19 Aidan Skinner <aidan@velvet.net>
2050
2051 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2052 ada-valprint.c ada-tasks.c.
2053 (YYFILES): Add ada-exp.y.
2054 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2055 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2056 (ada-exp.tab.o): New target.
2057
2058 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2059
2060 * regcache.c (regcache_xfer_part): New function.
2061 (regcache_raw_read_part): New function.
2062 (regcache_raw_write_part): New function.
2063 (regcache_cooked_read_part): New function.
2064 (regcache_cooked_write_part): New function.
2065 * regcache.h (regcache_raw_read_part): Declare.
2066 (regcache_raw_write_part): Declare.
2067 (regcache_cooked_read_part): Declare.
2068 (regcache_cooked_write_part): Declare.
2069
2070 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2071
2072 * remote.c (remote_open_1): Add async_p.
2073 (remote_async_open_1): Delete.
2074 (open_remote_target): Delete.
2075 (remote_open, extended_remote_open): Update calls to remote_open_1.
2076 (remote_async_open, extended_remote_async_open): Call
2077 remote_open_1 instead of remote_async_open_1.
2078
2079 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2080
2081 * blockframe.c: Fix a few coding standard violations.
2082
2083 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2084
2085 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2086 here from ...
2087 * config/i386/tm-i386sco5.h: ... here. File removed.
2088 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2089
2090 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2091 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2092 (TM_FILE): Set to tm-i386.h.
2093 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2094 * config/i386/tm-i386v.h: Remove file.
2095 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2096 instead of "i386/tm-i386v.h".
2097 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2098 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2099 "i386/tm-i386v.h".
2100 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2101 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2102 "i386/tm-i386.h".
2103
2104 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2105
2106 * config/i386/nm-i386v.h: Add protection against
2107 multiple-inclusion.
2108 (i386_register_u_addr): Remove prototype.
2109 (register_u_addr): New prototype.
2110 (REGISTER_U_ADDR): Redefine accordingly.
2111 * i386v-nat.c: Improve several comments.
2112 (i386_register_u_addr): Change signature and rename to
2113 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2114 ubase variable.
2115
2116 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2117
2118 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2119 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2120 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2121 deprecated_extract_return_value.
2122 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2123 rename mips_o32o64_push_arguments.
2124 (mips_gdbarch_init): Update.
2125 (mips_extract_return_value): Delete.
2126 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2127 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2128 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2129 (mips_n32n64_extract_return_value): Clone
2130 mips_extract_return_value.
2131 (mips_store_return_value): Delete.
2132 (mips_o32_store_return_value): Clone mips_store_return_value.
2133 (mips_o64_store_return_value): Clone mips_store_return_value.
2134 (mips_eabi_store_return_value): Clone mips_store_return_value.
2135 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2136
2137 2002-08-18 Aidan Skinner <aidan@velvet.net>
2138
2139 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2140 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2141
2142 2002-08-18 Aidan Skinner <aidan@velvet.net>
2143
2144 * ada-lang.c: Run through gdb_indent.sh.
2145 * ada-lang.h: Run through gdb_indent.sh.
2146 * ada-tasks.c: Run through gdb_indent.sh.
2147 * ada-typeprint.c: Run through gdb_indent.sh.
2148 * ada-valprint.c: Run through gdb_indent.sh.
2149
2150 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2151
2152 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2153 ABI.
2154
2155 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2156
2157 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2158
2159 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2160 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2161
2162 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2163 write_register_gen instead of write_register_bytes.
2164
2165 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2166 i[3456]-*-osf1mk* configurations have been made obsolete.
2167 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2168 i[3456]86-*-osf1mk* hosts obsolete.
2169 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2170 targets obsolete.
2171 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2172 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2173 config/i386/i386m3.mt, config/i386/nm-m3.h,
2174 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2175 config/i386/i386mk.mh, config/i386/i386mk.mt,
2176 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2177 obsolete.
2178 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2179 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2180 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2181
2182 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2183
2184 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2185 (hppa_value_returned_from_stack): Declare.
2186 (hppa_extract_return_value): Declare.
2187 * config/pa/hppa.mt: New file.
2188 * configure.tgt: Recognize hppa*-*-*.
2189 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2190
2191 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2192
2193 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2194 comment.
2195
2196 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2197
2198 * top.c (gdb_rl_operate_and_get_next): Make sure
2199 operate-and-get-next functions correctly even when the history
2200 list is completely filled.
2201
2202 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2203
2204 * MAINTAINERS (Target Instruction Set Architectures): Rename
2205 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2206 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2207 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2208 already listed under Host/Native.
2209
2210 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2211 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2212 mips*-*-*.
2213
2214 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2215
2216 * config/ia64/ia64.mt: New file.
2217 * config/alpha/alpha.mt: New file.
2218 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2219 ia64-linux-gnu. Mention that ia64-elf is broken.
2220 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2221
2222 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2223
2224 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2225 generic_func_frame_valid instead of func_frame_valid.
2226
2227 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2228
2229 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2230 procfs appears to be broken when debugging on multi-processor
2231 machines. So enable software single stepping in order to avoid
2232 using the procfs interface to do next/step operations, using
2233 internal breakpoints instead.
2234
2235 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2236 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2237 make this pc address equal to the value it would have if the
2238 system stepping capability was used. Also set a new flag used
2239 to ensure that we don't readjust the PC one more time later.
2240
2241 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2242 address by DECR_PC_AFTER_BREAK when software single step is
2243 in use for this architecture, as this has already been taken
2244 care of in handle_inferior_event().
2245
2246 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2247
2248 * infrun.c (handle_inferior_event): Minor reformatting, to make
2249 a rather long condition expression easier to read.
2250
2251 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2252
2253 * Makefile.in (gdbtk.o): Move to end of file.
2254 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2255 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2256 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2257 (gdbtk-wrapper.o, gdbres.o): Ditto.
2258
2259 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2260
2261 * Makefile.in (copying.o): Separate out compile rule.
2262 (hpux-thread.o, procfs.o, signals.o): Ditto.
2263 (v850ice.o, z8k-tdep.o): Ditto.
2264 (tui-file.o): Move to TUI section.
2265 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2266 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2267
2268 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2269
2270 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2271 skip_trampoline_code, for better namespace-proofing.
2272
2273 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2274
2275 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2276
2277 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2278
2279 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2280
2281 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2282 signal, check whether we hit a breakpoint before checking for a
2283 single step breakpoint. Otherwise, GDB fails to notice that a
2284 breakpoint has been hit when stepping onto a breakpoint.
2285
2286 2002-08-16 Keith Seitz <keiths@redhat.com>
2287
2288 * gdb-events.sh (clear_gdb_event_hooks): New function.
2289 * gdb-events.c: Regenerate.
2290 * gdb-events.h: Regenerate.
2291
2292 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2293
2294 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2295 not_a_sw_breakpoint.
2296 * breakpoint.h (bpstat_stop_status): Add parameter names.
2297
2298 2002-08-16 Grace Sainsbury <graces@redhat.com>
2299
2300 * remote.c (remote_insert_hw_breakpoint)
2301 (remote_remove_hw_breakpoint): Fix calculation of length field
2302 for Z-packet.
2303
2304 2002-08-15 Michael Snyder <msnyder@redhat.com>
2305
2306 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2307 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2308 (supply_fpregset): Ditto.
2309
2310 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2311 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2312 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2313 (TARGET_READ_SP): Delete.
2314 (DO_REGISTERS_INFO): Delete.
2315 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2316 Delete.
2317 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2318 from macros to functions.
2319
2320 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2321 (mips_register_convertible, mips_register_convert_to_virtual,
2322 mips_register_convert_to_raw): Make static.
2323 (mips_read_sp): New function.
2324 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2325 (mips_do_registers_info): Make static.
2326 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2327 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2328 (mips_register_convert_from_type, mips_register_convert_to_type):
2329 New functions.
2330 (mips_gdbarch_init): Set up function_start_offset,
2331 register_virtual_size, pc_in_sigtramp.
2332
2333 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2334
2335 * infcmd.c (vector_info): New function.
2336 (_initialize_infcmd): Add command "info vector".
2337 (print_vector_info): New function.
2338
2339 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2340 * gdbarch.h, gdbarch.c: Regenerate.
2341
2342 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2343
2344 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2345 ``print_all''. Only print vector registers when ``print_all''.
2346
2347 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2348
2349 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2350 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2351
2352 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2353 Add `args' parameter.
2354 * gdbarch.h, gdbarch.c: Regenerate.
2355
2356 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2357
2358 * infcmd.c (float_info): Call print_float_info.
2359 (print_float_info): New function. By default, print the
2360 floating-point registers.
2361
2362 * arch-utils.h (default_print_float_info): Delete declaration.
2363 * arch-utils.c (default_print_float_info): Delete function.
2364
2365 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2366
2367 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2368 out define.
2369
2370 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2371 FRAME.
2372
2373 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2374 * configure.host: Make i[3456]86-*-aix host obsolete.
2375 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2376 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2377 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2378 config/i386/xm-i386aix.h: Make files obsolete.
2379 * i386aix-nat.c: Make file obsolete.
2380 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2381 (i386aix-nat.o): Make target obsolete.
2382
2383 * config/i386/nm-gnu.h: Removed.
2384 * config/i386/nm-i386gnu.h: New file.
2385 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2386 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2387 Moved here from ...
2388 * config/i386/tm-i386gnu.h: ... here. Removed.
2389 * config/i386/xm-i386gnu.h: Removed.
2390 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2391 (NAT_FILE): Set to nm-i386gnu.h.
2392 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2393 * i386-tdep.c: New file.
2394 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2395 (i386gnu-tdep.o): Specify dependencies.
2396
2397 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2398
2399 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2400 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2401 Adjust a few comments to reflect reality a bit closer.
2402 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2403 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2404 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2405 target_insert_watchpoint, target_remove_watchpoint):
2406 Move defines to ...
2407 * config/i386/nm-i386sco5.h: ... here.
2408 (kernel_u_size): Add prototype. Improve a few comments and add
2409 protection against multiple inclusion.
2410
2411 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2412 out define.
2413
2414 * uw-thread.c (SP_ARG0): Define if not already defined.
2415 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2416
2417 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2418
2419 * config/i386/tm-i386.h: Don't include "regcache.h".
2420
2421 * i387-tdep.h (i387_print_float_info): New prototype.
2422 * i387-tdep.c (print_i387_value, print_i387_ext,
2423 print_i387_status_word, print_i387_control_word): Add `struct
2424 ui_file *' argument and use it for output.
2425 (i387_print_float_info): Renamed from i387_float_info. Add
2426 `struct gdbarch *' and `struct ui_file *' arguments and use the
2427 latter for output.
2428 * i386-tdep.c: Include "i387-tdep.h".
2429 (i386_gdbarch_init): Set print_float_info.
2430 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2431 (FLOAT_INFO): Remove define.
2432
2433 2002-08-13 Michael Snyder <msnyder@redhat.com>
2434
2435 * mips-tdep.c (mips_push_arguments): Rename to
2436 mips_eabi_push_arguments, and tune for EABI.
2437 (MIPS_REGS_HAVE_HOME_P): Delete.
2438 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2439 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2440 Delete references to mips_regs_have_home_p.
2441
2442 2002-08-14 Keith Seitz <keiths@redhat.com>
2443
2444 * Makefile.in (install-gdbtk): Create insight plugin directory.
2445 Install plugins.tcl file.
2446
2447 2002-08-14 Keith Seitz <keiths@redhat.com>
2448
2449 * configure.in: Move SUBDIRS to near top of the file so that
2450 --enable options may add things to it.
2451 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2452 * configure: Regenerate.
2453
2454 2002-08-13 Michael Snyder <msnyder@redhat.com>
2455
2456 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2457 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2458 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2459
2460 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2461
2462 * vax-tdep.c (vax_get_saved_register): Delete function.
2463 (vax_gdbarch_init): Update.
2464 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2465 (ns32k_gdbarch_init): Update.
2466 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2467 (alpha_gdbarch_init): Update.
2468
2469 2002-08-13 Andrew Cagney <cagney@redhat.com>
2470
2471 * regcache.c (init_regcache_descr): Overallocate the
2472 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2473 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2474 nr_raw_registers.
2475 (set_register_cached): Add range checking assertions. Use
2476 current_regcache.
2477
2478 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2479
2480 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2481 numbers for MMX registers.
2482
2483 2002-08-13 Andrew Cagney <cagney@redhat.com>
2484
2485 * i386-tdep.c (i386_gdbarch_init): Use
2486 generic_unwind_get_saved_register.
2487
2488 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2489
2490 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2491 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2492 target vector.
2493 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2494 Delete. Add comment regarding this now-deleted target method.
2495
2496 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2497
2498 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2499 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2500 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2501 real PC and the page number (if it's within the memory bank window).
2502 (m68hc11_pseudo_register_write): Likewise when saving.
2503 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2504 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2505 (m68hc11_register_raw_size): And use 32-bit for it.
2506 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2507 16K memory bank is used by the prog; also use the virtual pc.
2508
2509 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2510
2511 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2512 (m68hc11_gdbarch_init): Install it in gdbarch.
2513 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2514 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2515 (MSYMBOL_SIZE): New for documentation.
2516 (insn_return_kind): Enum to specify how a function returns.
2517 (frame_extra_info): Cleanup and record the return mode.
2518 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2519 register in address computation.
2520 (m68hc11_get_return_insn): New to obtain the return instruction used
2521 by the function.
2522 (m68hc11_frame_init_saved_regs): Take into account the return
2523 instruction used by the function for far and interrupt functions.
2524 (m68hc11_init_extra_frame_info): Take into account page register.
2525 (m68hc11_frame_args_address): Adjust according to the return mode.
2526 (show_regs): Print page register only when it's used.
2527
2528 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2529
2530 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2531 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2532 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2533 registers.
2534 (m68hc11_register_raw_size): Likewise.
2535
2536 2002-08-13 Andrew Cagney <cagney@redhat.com>
2537
2538 * i386-tdep.c (i386_register_name): Handle mmx registers.
2539 (mmx_regnum_p): New function.
2540 (i386_mmx_names): New array.
2541 (mmx_num_regs): New variable.
2542 (i386_pseudo_register_read): New function.
2543 (i386_pseudo_register_write): New function.
2544 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2545
2546 * regcache.c (regcache_raw_read_unsigned): New function.
2547 (regcache_raw_read_signed): New function.
2548 * regcache.h (regcache_raw_read_unsigned): Declare.
2549 (regcache_raw_read_signed): Declare.
2550
2551 2002-08-13 Andrew Cagney <cagney@redhat.com>
2552
2553 * regcache.c (regcache_raw_read_as_address): Delete function.
2554 (regcache_cooked_read_signed): New function.
2555 (regcache_cooked_read_unsigned): New function.
2556 * regcache.h (regcache_cooked_read_signed): Declare.
2557 (regcache_cooked_read_unsigned): Declare.
2558 (regcache_raw_read_as_address): Delete declaration.
2559
2560 * blockframe.c (generic_read_register_dummy): Use
2561 regcache_cooked_read_unsigned.
2562 * i386-tdep.c (i386_extract_struct_value_address): Use
2563 regcache_cooked_read_unsigned.
2564
2565 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2566
2567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2568 double sizes according to ELF ABI flags.
2569 (gdbarch_tdep): Record elf_flags.
2570
2571 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2572
2573 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2574 (m6812_prolog): They can appear in 68HC12 function prologue.
2575 (m68hc11_frame_chain): Cleanup.
2576
2577 2002-08-12 Andrew Cagney <cagney@redhat.com>
2578
2579 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2580 declarations.
2581 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2582 (i386_linux_register_raw_size): Delete function.
2583 (i386_linux_init_abi): Update.
2584 * i386-tdep.c (i386_register_raw_size): Delete function.
2585 (i386_register_byte): Delete function.
2586 (i386_gdbarch_init): Update.
2587 (i386_register_size): Delete array.
2588 (i386_register_offset): Delete array.
2589
2590 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2591 (REGISTER_RAW_SIZE): Delete macro.
2592 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2593 (REGISTER_BYTE): Delete macro.
2594
2595 2002-08-11 Aidan Skinner <aidan@velvet.net>
2596
2597 * ada-lang.c (ada_lookup_partial_symbol)
2598 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2599 prototype names so that grep ^func works properly.
2600
2601 * ada-lang.c (ada_array_element_type)
2602 (ada_lookup_partial_symbol): Fix typos in parameter list.
2603
2604 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2605 Fix prototype names so that grep ^func works properly.
2606
2607 2002-08-10 Andrew Cagney <cagney@redhat.com>
2608 Elena Zannoni <ezannoni@redhat.com>
2609 Martin M. Hunt <hunt@redhat.com>
2610
2611 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2612 (build_builtin_type_vec128i): Set the vector bit.
2613 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2614 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2615 (build_builtin_type_vec64): New function.
2616 (build_builtin_type_vec64i): New function.
2617 (build_gdbtypes): Initialize builtin_type_vec64 and
2618 builtin_type_vec64i.
2619
2620 2002-08-09 Andrew Cagney <cagney@redhat.com>
2621
2622 * regcache.c (regcache_dump): Compare the register offset
2623 with REGISTER_BYTE.
2624 * arch-utils.c (generic_register_byte): New function.
2625 * arch-utils.h (generic_register_byte): Declare.
2626 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2627 * gdbarch.h, gdbarch.c: Regenerate.
2628
2629 2002-08-09 Andrew Cagney <cagney@redhat.com>
2630
2631 * regcache.c: Include "gdbcmd.h"
2632 (_initialize_regcache): Add commands "maintenance print
2633 registers", "maintenance print raw-registers" and "maintenance
2634 print cooked-registers".
2635 (enum regcache_dump_what): Define.
2636 (dump_endian_bytes): New function.
2637 (regcache_dump): New function.
2638 (regcache_print): New function.
2639 (maintenance_print_registers): New function.
2640 (maintenance_print_raw_registers): New function.
2641 (maintenance_print_cooked_registers): New function.
2642 * Makefile.in (regcache.o): Update dependencies.
2643
2644 2002-08-09 Michael Snyder <msnyder@redhat.com>
2645
2646 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2647 (mips_push_arguments): Correct some comments. Use paddr_nz
2648 for printing addresses in debug output. Replace static
2649 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2650 (mips_n32n64_push_arguments): New function, cloned from
2651 mips_push_arguments and tuned for the n32/n64 ABI.
2652 (mips_push_register): Buffer needs dynamic allocation.
2653 (mips_print_register): Ditto.
2654 (do_gp_register_row): Ditto.
2655 (mips_store_return_value): Ditto.
2656 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2657
2658 2002-08-09 Don Howard <dhoward@redhat.com>
2659
2660 * memattr.c (mem_info_command): Print special case of upper bound
2661 as max CORE_ADDR + 1.
2662
2663 2002-08-08 Michael Snyder <msnyder@redhat.com>
2664
2665 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2666 returns structs by ref if they're too big to fit in two registers.
2667
2668 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2669
2670 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2671 saved regs value.
2672 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2673 mips_find_saved_regs().
2674 (mips_pop_frame): Likewise.
2675
2676 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2677
2678 * blockframe.c (frame_saved_regs_register_unwind): Revise
2679 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2680 frames are in use.
2681
2682 2002-08-09 Grace Sainsbury <graces@redhat.com>
2683
2684 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2685 T-packets; the 'a' is not taken as a register number.
2686 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2687 (remote_stopped_data_address): New functions; add to target
2688 vector.
2689 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2690 prototypes to match other implementations of this
2691 function. replace integer argument with pointer -- the length
2692 field in the Z-packet is the length of what is pointed to or 1 if
2693 pointer is null. Add to target vector.
2694 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2695 target vector.
2696
2697 From Mark Salter:
2698 * remote.c (remote_wait): Add support to extract optional
2699 watchpoint information from T-packet. Ignore unrecognized
2700 optional info in T-packet.
2701 (remote_async_wait): Ditto.
2702
2703 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2704
2705 * cli/cli-dump.c: Change fopen modes to use binary open modes
2706 as defined in include/fopen-bin.h throughout.
2707
2708 2002-08-08 Michael Snyder <msnyder@redhat.com>
2709
2710 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2711
2712 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2713
2714 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2715 assertion failure by returning early after a warning.
2716
2717 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2718
2719 * mips-tdep.c (mips_find_saved_regs): Make static.
2720 (mips_frame_init_saved_regs): New function.
2721 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2722 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2723 (mips_find_saved_regs): Delete declaration.
2724
2725 2002-08-08 Grace Sainsbury <graces@redhat.com>
2726
2727 * remote.c (remote_wait, remote_async_wait): Change
2728 thread_num from int to ULONGEST.
2729 (unpack_varlen_hex): Change result parameter from
2730 int * to ULONGEST *.
2731
2732 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2733
2734 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2735 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2736 powerpc*-*-*.
2737 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2738
2739 2002-08-08 Andrew Cagney <cagney@redhat.com>
2740
2741 * gcore.c (override_derive_stack_segment): Delete variable.
2742 (preempt_derive_stack_segment): Delete function.
2743 (derive_stack_segment): Delete function.
2744 (default_derive_stack_segment): Renamed to derive_stack_segment.
2745 (override_derive_heap_segment): Delete variable.
2746 (preempt_derive_heap_segment): Delete function.
2747 (derive_heap_segment): Delete function.
2748 (default_derive_heap_segment): Rename to derive_heap_segment.
2749
2750 2002-08-06 Michael Snyder <msnyder@redhat.com>
2751
2752 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2753 * mips-tdep.c (mips_EABI_use_struct_convention,
2754 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2755 New functions. (mips_use_struct_convention): Delete.
2756 (mips_gdbarch_init): set use_gdbarch_convention.
2757
2758 2002-08-06 Michael Snyder <msnyder@redhat.com>
2759
2760 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2761 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2762 mips_o32_reg_struct_has_addr): New functions.
2763 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2764
2765 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2766
2767 * regcache.c (pseudo_register): Delete function.
2768 (fetch_register): Delete function.
2769 (store_register): Delete function.
2770 (regcache_raw_read, legacy_read_register_gen): Use
2771 target_fetch_registers instead of fetch_register.
2772 (legacy_write_register_gen, regcache_raw_write): Use
2773 target_store_register instead of store_register.
2774 (write_register_bytes): Ditto.
2775
2776 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2777 (STORE_PSEUDO_REGISTER): Delete.
2778 * gdbarch.h, gdbarch.c: Regenerate.
2779
2780 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2781
2782 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2783 write dump file binary.
2784
2785 2002-08-05 Michael Snyder <msnyder@redhat.com>
2786
2787 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2788 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2789 (mips_gdbarch_init): Set N32 target to be mips64.
2790
2791 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2792
2793 * frame.c (find_saved_register): Break out of loop once saved
2794 register address is found. Don't mention sparc in loop comment
2795 anymore.
2796
2797 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2798
2799 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2800 mips_default_saved_regsize to 8.
2801
2802 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2803
2804 * gcore.c: Do not include <sys/procfs.h>.
2805 * Makefile.in (gcore.o): Update dependencies.
2806
2807 2002-08-06 Andrew Cagney <cagney@redhat.com>
2808
2809 * configure.tgt: Make arc-*-* obsolete.
2810 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2811 * MAINTAINERS: Make arc-elf obsolete.
2812 * arc-tdep.c: Make file obsolete.
2813 * config/arc/arc.mt: Ditto.
2814 * config/arc/tm-arc.h: Ditto.
2815
2816 2002-08-05 Theodore A. Roth <troth@verinet.com>
2817
2818 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2819
2820 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2821
2822 * mcore-tdep.c (mcore_gdbarch_init): Use
2823 generic_unwind_get_saved_register instead of
2824 generic_get_saved_register.
2825 * v850-tdep.c (v850_gdbarch_init): Ditto.
2826 * frv-tdep.c (frv_gdbarch_init): Ditto.
2827 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2828 * s390-tdep.c (s390_gdbarch_init): Ditto.
2829 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2830 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2831 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2832
2833 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2834
2835 * objfiles.h: Add missing #include "symfile.h"
2836
2837 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2838
2839 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2840
2841 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2842 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2843 of FIELD_BITSIZE.
2844
2845 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2846
2847 * NEWS: Cleanup and nitpick.
2848
2849 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2850
2851 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2852
2853 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2854
2855 * Makefile.in (gdbtk-bp.o): Update dependencies.
2856 (gdbtk-register.o): Ditto.
2857 (gdbtk-varobj.o): Ditto.
2858
2859 2002-08-03 Andrew Cagney <cagney@redhat.com>
2860
2861 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2862 m68hc11_fetch_pseudo_register.
2863 (m68hc11_pseudo_register_write): Replace
2864 m68hc11_store_pseudo_register.
2865 (m68hc11_gdbarch_init): Update.
2866
2867 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2868
2869 * gdbarch.sh: Include "gdb_string.h".
2870 * gdbarch.c: Regenerate.
2871
2872 * regcache.c: Include "gdb_string.h".
2873 * ax-general.c: Ditto.
2874 * varobj.c: Ditto.
2875 * std-regs.c: Ditto.
2876 * fbsd-proc.c: Ditto.
2877 * thread.c: Ditto.
2878
2879 * Makefile.in (regcache.o): Update dependencies.
2880 (thread.o, gdbarch.o): Ditto.
2881 (ax-general.o, gdbarch.o): Ditto.
2882 (varobj.o, std-regs.o): Ditto.
2883 (fbsd-proc.o): Specify dependencies.
2884
2885 2002-08-02 Andrew Cagney <cagney@redhat.com>
2886
2887 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2888 regnum.
2889 (regcache_cooked_write): Ditto.
2890
2891 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2892
2893 * regcache.c (regcache_cooked_read): New function.
2894 (regcache_cooked_write): New function.
2895 (read_register_gen): Rewrite using regcache_cooked_read.
2896 (write_register_gen): Rewrite using regcache_cooked_write.
2897
2898 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2899 Declare.
2900
2901 2002-08-02 Andrew Cagney <cagney@redhat.com>
2902
2903 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2904 Replace the architecture methods register_read and register_write.
2905 * gdbarch.h, gdbarch.c: Regenerate.
2906 * regcache.c (init_regcache_descr): Update.
2907 (read_register_gen): Update.
2908 (write_register_gen): Update.
2909 (supply_register): Update comment.
2910
2911 * sh-tdep.c (sh_gdbarch_init): Update.
2912 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2913 `regcache' and `gdbarch' parameters. Make `buffer' a void
2914 pointer. Update code.
2915 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2916 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2917 void pointer. Update code.
2918 (sh64_register_write): Delete.
2919 (sh4_register_read): Delete.
2920 (sh64_register_read): Delete.
2921 (sh4_register_write): Delete.
2922 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2923 void pointer, `to' parameter a void pointer.
2924 (sh_sh64_register_convert_to_raw): Ditto.
2925
2926 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2927
2928 * mips-tdep.c (mips_register_virtual_type): Use architecture
2929 invariant return values.
2930
2931 2002-08-01 Andrew Cagney <cagney@redhat.com>
2932
2933 * linux-proc.c: Include "gdb_string.h".
2934 * Makefile.in (linux-proc.o): Update dependency list.
2935
2936 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2937
2938 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2939 comment.
2940
2941 2002-08-01 Grace Sainsbury <graces@redhat.com>
2942
2943 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2944 to_insert_watchpoint, to_remove_watchpoint,
2945 to_stopped_by_watchpoint, to_stopped_data_address,
2946 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2947 target vecctor. Define their corresponding macros so they call
2948 them.
2949
2950 * target.c: Add default and debug versions of for
2951 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2952 to_insert_watchpoint, to_remove_watchpoint,
2953 to_stopped_by_watchpoint, to_stopped_data_address,
2954 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2955
2956 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2957
2958 * mips-tdep.c (mips_register_virtual_type): New function.
2959 (mips_gdbarch_init): Register mips_register_virtual_type()
2960 with gdbarch machinery.
2961 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2962 this file instead of tm-bigmips.h.
2963 (MIPS_REGSIZE): Delete this macro.
2964 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2965 multiarch version in mips-tdep.c will be found.
2966
2967 2002-08-01 Andrew Cagney <cagney@redhat.com>
2968
2969 * NEWS: Menion that CHILL has been made obsolete.
2970
2971 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2972 * stabsread.c (read_range_type): Ditto.
2973 * gdbtypes.h: Ditto.
2974 * language.c (binop_type_check): Ditto.
2975 (binop_result_type): Ditto.
2976 (integral_type): Ditto.
2977 (character_type): Ditto.
2978 (string_type): Ditto.
2979 (boolean_type): Ditto.
2980 (structured_type): Ditto.
2981 (lang_bool_type): Ditto.
2982 (binop_type_check): Ditto.
2983 * language.h (_LANG_chill): Ditto.
2984 * dwarfread.c (set_cu_language): Ditto.
2985 * dwarfread.c (CHILL_PRODUCER): Ditto.
2986 * dwarfread.c (handle_producer): Ditto.
2987 * expression.h (enum exp_opcode): Ditto.
2988 * eval.c: Ditto for comments.
2989 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2990 * expprint.c (print_subexp): Ditto.
2991 (print_subexp): Ditto.
2992 * valops.c (value_cast): Ditto.
2993 (search_struct_field): Ditto.
2994 * value.h (COERCE_VARYING_ARRAY): Ditto.
2995 * symfile.c (init_filename_language_table): Ditto.
2996 (add_psymbol_with_dem_name_to_list): Ditto.
2997 * valarith.c (value_binop): Ditto.
2998 (value_neg): Ditto.
2999 * valops.c (value_slice): Ditto.
3000 * symtab.h (union language_specific): Ditto.
3001 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3002 (SYMBOL_DEMANGLED_NAME): Ditto.
3003 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3004 * defs.h (enum language): Ditto.
3005 * symtab.c (got_symtab): Ditto.
3006 * utils.c (fprintf_symbol_filtered): Ditto.
3007
3008 * ch-typeprint.c: Make file obsolete.
3009 * ch-valprint.c: Make file obsolete.
3010 * ch-lang.h: Make file obsolete.
3011 * ch-exp.c: Make file obsolete.
3012 * ch-lang.c: Make file obsolete.
3013
3014 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3015 CHILL_LIB.
3016 (TARGET_FLAGS_TO_PASS): Ditto.
3017 (CHILLFLAGS): Obsolete.
3018 (CHILL): Obsolete.
3019 (CHILL_FOR_TARGET): Obsolete.
3020 (CHILL_LIB): Obsolete.
3021 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3022 ch-valprint.c.
3023 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3024 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3025 ch-lang.o.
3026 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3027 targets.
3028
3029 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3030
3031 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3032 This does not change anything at the moment, but will be helpful
3033 later when full Ada support is integrated.
3034
3035 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3036
3037 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3038 help message.
3039
3040 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3041
3042 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3043 and save it in a local variable. Use variable in later test.
3044
3045 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3046
3047 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3048 test. (Thanks to Daniel Jacobowitz.)
3049
3050 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3051
3052 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3053 (mips_abi_strings): Add "n64".
3054 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3055
3056 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3057
3058 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3059 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3060
3061 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3062
3063 * utils.c (host_pointer_to_address, address_to_host_pointer):
3064 Use gdb_assert() instead of explicit call to internal_error().
3065
3066 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3067
3068 * Makefile.in (rs6000-nat.o): Update dependencies.
3069
3070 From Nicholas Duffek:
3071 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3072 (aix-thread.o): New rule.
3073 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3074 * config/powerpc/aix432.mh: New file.
3075
3076 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3077
3078 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3079 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3080 (fetch_core_registers, ppc_linux_supply_gregset)
3081 (ppc_linux_supply_fpregset): New functions.
3082 (ppc_linux_regset_core_fns): New.
3083 (_initialize_ppc_linux_tdep): Call add_core_fns.
3084 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3085 and ppc_linux_supply_gregset.
3086 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3087 (supply_fpregset): Call ppc_linux_supply_fpregset.
3088 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3089 corelow.o.
3090 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3091
3092 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3093
3094 * symtab.c (lookup_symbol): Demangle before lowercasing.
3095
3096 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3097
3098 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3099 declaration.
3100 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3101 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3102 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3103 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3104 "gdb_string.h".
3105 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3106 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3107 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3108 (avr-tdep.o, mon960-rom.o): Ditto.
3109 (aout_stabs_gnu_h): Define.
3110 (symtab_h): Remove $(gdb_obstack_h).
3111
3112 2002-07-30 Jim Blandy <jimb@redhat.com>
3113
3114 Patch from David Carlton <carlton@math.stanford.edu>:
3115 * gdbinit.in: Move the `dir' commands that add GDB's own source
3116 directory to the search path to the end, so that the `gdb' source
3117 directory will be searched first.
3118
3119 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3120
3121 * gdb_obstack.h: New file.
3122 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3123 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3124 * objfiles.h: Include "gdb_obstack.h".
3125 * Makefile.in (gdb_obstack_h): Define.
3126 (symtab_h): Add $(gdb_obstack_h).
3127 (objfiles_h): Add $(gdb_obstack_h).
3128
3129 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3130 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3131 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3132 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3133 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3134 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3135 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3136 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3137
3138 * Makefile.in (bcache.o): Update dependencies.
3139 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3140 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3141 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3142 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3143 (stabsread.o, symfile.o, symmisc.o): Ditto.
3144 (symtab.o, typeprint.o, macroexp.o): Ditto.
3145 (macrotab.o, mdebugread.o): Ditto.
3146 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3147 (coff_ecoff_h, aout_aout64_h): Define.
3148 (aout_stabs_gnu_h, libaout_h): Define.
3149
3150 2002-07-29 Andrew Cagney <cagney@redhat.com>
3151
3152 * regcache.c (struct regcache_descr): Rename nr_registers to
3153 nr_cooked_registers. Revise comments describing the structure
3154 member fields.
3155 (init_regcache_descr): Update.
3156 (init_legacy_regcache_descr): Update.
3157 (read_register_gen, write_register_gen): When a cooked register in
3158 the raw register range, directly access the value from the raw
3159 register cache.
3160
3161 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3162
3163 * z8k-tdep.c: Do not include "obstack.h".
3164 * h8300-tdep.c, h8500-tdep.c: Ditto.
3165 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3166 * valprint.c, v850-tdep.c: Ditto.
3167 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3168 * mn10200-tdep.c: Ditto.
3169
3170 * Makefile.in (z8k-tdep.o): Update dependencies.
3171 (m68hc11-tdep.o, valprint.o): Ditto.
3172 (v850-tdep.o, d10v-tdep.o): Ditto.
3173 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3174 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3175 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3176 (sh_opc_h, gdb_sim_sh_h): Define.
3177 (elf_sh_h, elf_bfd_h): Define.
3178 (opcode_m68hc11_h): Define.
3179 (OPCODES_SRC, OPCODES_DIR): define.
3180 (OPCODES): Use $(OPCODES_DIR).
3181 (gdb_sim_d10v_h): Rename sim_d10v_h.
3182 (gdb_sim_arm_h): Rename sim_arm_h.
3183
3184 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3185
3186 * utils.c (host_pointer_to_address, address_to_host_pointer):
3187 Change internal_error() message to indicate function responsible
3188 for the error.
3189
3190 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3191
3192 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3193 calls to local_hex_string_custom().
3194
3195 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3196
3197 * irix5-nat.c: Move IRIX shared library support from here...
3198 * solib-irix.c: ...to here. Revised substantially to work with
3199 generic solib framework.
3200
3201 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3202 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3203 * mips-irix-tdep.c: New file.
3204
3205 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3206 (mips-irix-tdep.o, solib-irix.o): New rules.
3207 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3208 solib-irix.o.
3209 * config/mips/irix6.mt (TDEPFILES): Likewise.
3210 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3211
3212 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3213
3214 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3215 disabled (via ``#if 0'') includes.
3216
3217 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3218
3219 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3220 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3221 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3222 Add support for the fpscr register.
3223 * rs6000-nat.c (regmap, fetch_inferior_registers)
3224 (store_inferior_registers, fetch_core_registers): Likewise.
3225
3226 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3227
3228 * rs6000-nat.c (language.h): Include.
3229 (special_regs): Delete this array.
3230 (regmap): New function.
3231 (fetch_register, store_register): Use regmap() to map gdb
3232 register numbers to ptrace register numbers. Also, use
3233 outputs from regmap() to make decisions regarding type of
3234 ptrace() call to make. In particular, don't compare against
3235 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3236 (fetch_inferior_registers, store_inferior_registers): Where
3237 possible, obtain register numbers from tdep struct. Don't
3238 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3239 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3240 (LAST_UISA_SP_REGNUM): Delete.
3241
3242 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3243
3244 * rs6000-nat.c (ppc-tdep.h): Include.
3245 (fetch_registers, store_register, fetch_core_registers): Don't
3246 access registers[] directly. Instead, use supply_register() or
3247 regcache_collect() as appropriate.
3248 (find_toc_address): Format hex address with local_hex_string().
3249
3250 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3251
3252 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3253 bfd/elf32-frv.c.
3254
3255 2002-07-24 Tom Tromey <tromey@redhat.com>
3256
3257 * jv-exp.y: Marked all strings with _().
3258 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3259 internal_error.
3260 (MethodInvocation, CastExpression, parse_number, yyerror,
3261 java_type_from_name, push_expression_name, yylex): Typo fixes.
3262
3263 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3264
3265 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3266 (tee_file_flush, tee_file_write, tee_file_fputs)
3267 (tee_file_isatty): New.
3268 * ui-file.h (tee_file_new): Add prototype.
3269
3270 2002-07-24 Aidan Skinner <aidan@velvet.net>
3271
3272 * ada-lang.c: Change k&r style function definitions to prototyped
3273 form.
3274 * ada-typeprint.c: Change k&r style function definitions to prototyped
3275 form.
3276 * ada-valprint.c: Change k&r style function definitions to prototyped
3277 form.
3278
3279 2002-07-24 Andrew Cagney <cagney@redhat.com>
3280
3281 * README: Remove reference to remote-bug.
3282 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3283 remote-bug.c.
3284 (m88k-nat.o): Delete rule.
3285 (m88k-tdep.o): Delete rule.
3286 (remote-bug.o): Delete rule.
3287 * MAINTAINERS: Mark as obsolete.
3288 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3289 * m88k-tdep.c: Make file obsolete.
3290 * config/m88k/m88k.mh: Ditto.
3291 * config/m88k/delta88v4.mh: Ditto.
3292 * config/m88k/delta88v4.mt: Ditto.
3293 * config/m88k/delta88.mt: Ditto.
3294 * config/m88k/delta88.mh: Ditto.
3295 * remote-bug.c: Ditto.
3296 * config/m88k/tm-delta88.h: Ditto.
3297 * config/m88k/nm-delta88v4.h: Ditto.
3298 * config/m88k/xm-delta88.h: Ditto.
3299 * config/m88k/xm-dgux.h: Ditto.
3300 * config/m88k/tm-m88k.h: Ditto.
3301 * config/m88k/nm-m88k.h: Ditto.
3302 * config/m88k/tm-delta88v4.h: Ditto.
3303 * m88k-nat.c: Ditto.
3304 * cxux-nat.c: Ditto.
3305 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3306 and m88*-*-* obsolete.
3307 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3308 m88*-*-* obsolete.
3309
3310 2002-07-24 Andrew Cagney <cagney@redhat.com>
3311
3312 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3313 constant. Same for local pointer variables.
3314 (extract_signed_integer): Ditto.
3315 * defs.h (extract_unsigned_integer): Update.
3316 (extract_signed_integer): Update.
3317
3318 2002-07-24 Andrew Cagney <cagney@redhat.com>
3319
3320 * regcache.c (regcache_raw_write): Change buf parameter to a
3321 constant void pointer.
3322 (regcache_raw_read): Change buf parameter to a void pointer.
3323 (legacy_write_register_gen): Change myaddr parameter a constant
3324 void pointer.
3325 (supply_register): Change val parameter to a const void pointer.
3326 * regcache.h (regcache_raw_write): Update declaration.
3327 (regcache_raw_read): Update declaration.
3328 (supply_register): Update declaration.
3329
3330 2002-07-24 Tom Tromey <tromey@redhat.com>
3331
3332 * defs.h (gdb_readline_wrapper): Declare.
3333 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3334 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3335 * top.c (gdb_readline_wrapper): New function.
3336 (command_line_input): Use it.
3337
3338 2002-07-24 Andrew Cagney <cagney@redhat.com>
3339
3340 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3341 regcache_read and regcache_write.
3342 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3343 * regcache.c: Update.
3344 * sh-tdep.c (sh64_push_arguments): Update comment.
3345 (sh_pseudo_register_read): Update.
3346 (sh_pseudo_register_write): Update.
3347 (sh4_register_read): Update.
3348 (sh4_register_write): Update.
3349 (sh64_pseudo_register_read): Update.
3350 (sh64_pseudo_register_write): Update.
3351 (sh64_register_read): Update.
3352 (sh64_register_write): Update.
3353 * i386-tdep.c (i386_extract_return_value): Update.
3354 (i386_extract_struct_value_address): Update.
3355 (i386_extract_return_value): Update.
3356 * blockframe.c (generic_read_register_dummy): Update.
3357 (generic_call_dummy_register_unwind): Update
3358 * infrun.c (write_inferior_status_register): Update.
3359
3360 2002-07-23 Jim Blandy <jimb@redhat.com>
3361
3362 * parser-defs.h (expression_context_pc): Make this extern.
3363 (Thanks to Michael Snyder.)
3364
3365 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3366
3367 GDB 5.2.1 released from 5.2 branch.
3368 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3369 * README: Update to mention 5.2.1.
3370
3371 2002-07-23 Mark Salter <msalter@redhat.com>
3372
3373 * remote.c (remote_read_bytes): Fix check for error.
3374
3375 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3376
3377 * aix-thread.c (language.h): Include.
3378 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3379 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3380 Print newlines at end of debug messages.
3381 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3382 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3383
3384 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3385
3386 * aix-thread.c (ppc-tdep.h): Include.
3387 (special_register_p): New function.
3388 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3389 (store_regs_user_thread): Use register number information from
3390 gdbarch_tdep struct instead of hardcoded offsets relative to
3391 FIRST_UISA_SP_REGNUM.
3392 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3393 special_register_p() instead of using FPLAST_REGNUM and
3394 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3395 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3396 will be MQ's register number.
3397
3398 2002-07-22 Michael Snyder <msnyder@redhat.com>
3399
3400 * aix-thread.c (ops): Rename to aix_thread_ops.
3401 (base_ops): Rename to base_target.
3402 (ops_attach): Rename to aix_thread_attach.
3403 (ops_detach): Rename to aix_thread_detach.
3404 (ops_resume): Rename to aix_thread_detach.
3405 (ops_wait): Rename to aix_thread_wait.
3406 (ops_kill): Rename to aix_thread_kill.
3407 (init_ops): Rename to init_aix_thread_ops.
3408 (ops_fetch_register): Rename to aix_thread_fetch_register.
3409 (ops_store_register): Rename to aix_thread_store_register.
3410 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3411 (ops_thread_alive): Rename to aix_thread_thread_alive.
3412 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3413 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3414 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3415 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3416 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3417 (store_regs_lib): Rename to store_regs_user_thread.
3418 (store_regs_kern): Rename to store_regs_kernel_thread.
3419
3420 2002-07-22 Michael Snyder <msnyder@redhat.com>
3421
3422 * aix-thread.c (ops_prepare_to_store): Eliminate.
3423 (init_ops): Don't initialize ops.prepare_to_store.
3424 (store_regs_kern): Pre-fetch register buffers from child,
3425 because some registers may not be in the cache. Copy
3426 regs from register cache only if they are cached.
3427 (store_regs_lib): Copy regs from register cache only
3428 if they are cached.
3429 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3430 fill_gprs64): Ditto.
3431
3432 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3433
3434 * aix-thread.c (gdb_assert.h): Include.
3435 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3436 register sizes (from register cache) match size of buffer holding
3437 register data.
3438 (fill_sprs32): Change parameter types to match those in the ptrace()
3439 buffer.
3440 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3441 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3442
3443 2002-07-22 Michael Snyder <msnyder@redhat.com>
3444
3445 * aix-thread.c (supply_sprs64): Cosmetic change.
3446 (supply_sprs32): Cosmetic change.
3447 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3448 (fill_sprs64): Use regcache_collect instead of read_register.
3449 (store_regs_lib): Use regcache_collect instead of
3450 read_register. Use fill_sprs32 instead of fill_sprs64,
3451 if debugging a 32-bit architecture.
3452 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3453 out of the register cache, instead of passing a pointer into
3454 the register cache directly to ptrace. Use regcache_collect
3455 insteaad of read_register.
3456 (ops_prepare_to_store): Use target_read_registers instead
3457 of read_register_bytes.
3458
3459 2002-07-20 Aidan Skinner <aidan@velvet.net>
3460
3461 * MAINTAINERS: Add self under write after approval.
3462
3463 2002-07-20 Aidan Skinner <aidan@velvet.net>
3464
3465 * ada-tasks.c: Change k&r style function definitions to prototyped
3466 form.
3467
3468 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3469
3470 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3471 * x86-64-tdep.c: Include "objfiles.h".
3472 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3473 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3474
3475 2002-07-17 Michal Ludvig <michal@suse.cz>
3476
3477 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3478 (update_context): Initialise cfa variable.
3479
3480 2002-07-17 Michael Snyder <msnyder@redhat.com>
3481
3482 * aix-thread.c: Shorten some long lines.
3483 Bring comments into line with code spec.
3484
3485 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3486
3487 * infrun.c: Re-indent using gdb_indent.sh.
3488
3489 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3490
3491 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3492 Leave the indentation temporarily untouched, to minimize the diffs.
3493
3494 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3495
3496 * stabsread.c: Make os9k sections of the code obsolete,
3497 for real this time.
3498 * stabsread.h: Make os9k sections of the code obsolete.
3499
3500 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3501
3502 * linux-low.c (regsets_store_inferior_registers): Add free()
3503 at the end of a loop to prevent memory leak.
3504 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3505 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3506 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3507 line a comment.
3508 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3509
3510 2002-07-17 Jim Blandy <jimb@redhat.com>
3511
3512 * macrocmd.c (info_macro_command): Remove newline from error
3513 message.
3514
3515 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3516
3517 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3518 (sh_gdbarch_init): Use it for sh-dsp.
3519
3520 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3521
3522 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3523 64-bit DWARF2 format.
3524
3525 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3526
3527 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3528 <sys/proc.h> when not available.
3529
3530 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3531
3532 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3533 * stabsread.c: Make os9k sections of the code obsolete.
3534 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3535 * config/i386/i386os9k.mt: Make file obsolete.
3536 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3537 (COMMON_OBS): Remove os9kread.o
3538 (SFILES): Remove os9kread.c.
3539 (os9kread.o, remote-os9k.o): Make target obsolete.
3540 * remote-os9k.c: Make file obsolete.
3541 * os9kread.c: Make file obsolete.
3542 * Makefile.in
3543
3544 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3545
3546 * NEWS: Mention that the FR30 has been made obsolete.
3547 * fr30-tdep.c: Make file obsolete.
3548 * config/fr30/tm-fr30.h: Ditto.
3549 * config/fr30/fr30.mt: Ditto.
3550 * configure.tgt: Make fr30-*-elf obsolete.
3551 * MAINTAINERS: Make fr30-elf obsolete.
3552
3553 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3554
3555 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3556 found is not inside a section.
3557
3558 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3559
3560 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3561 strerror().
3562 (pdc_realloc): Use xrealloc() instead of realloc().
3563
3564 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3565
3566 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3567 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3568 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3569 macros.
3570
3571 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3572
3573 * aix-thread.c (ptrace_check): Eliminate goto.
3574 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3575 problem.
3576
3577 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3578
3579 * aix-thread.c (gdbcmd.h): Include.
3580 (DEBUG, DBG, DBG2, dbg): Eliminate.
3581 (debug_aix_thread): New static global.
3582 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3583 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3584 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3585 invocations to DBG and DBG2 macros to test against
3586 ``debug_aix_thread'' and call fprintf_unfiltered().
3587 (_initialize_aix_thread): Add new command "set debug aix-thread".
3588
3589 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3590
3591 From Gerhard Tonn <TON@de.ibm.com>:
3592 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3593 instead of supply_register.
3594
3595 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3596
3597 * dwarf2cfi.c: Include "gdb_assert.h".
3598 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3599 non-NULL.
3600 (update_context): Do not use __func__. Add missing ``break''.
3601 (update_context): Do not use __func__.
3602
3603 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3604
3605 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3606 and its setting. Set gdbarch instruction printing functions
3607 directly. For non-rs6000 case use new function
3608 gdb_print_insn_powerpc.
3609 (gdb_print_insn_powerpc): New function.
3610
3611 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3612
3613 * NEWS: Mention that the d30v has been marked obsolete.
3614 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3615 * configure.tgt: Mark d30v-*-* as obsolete.
3616 * d30v-tdep.c: Mark file as obsolete.
3617 * config/d30v/d30v.mt: Ditto.
3618 * config/d30v/tm-d30v.h: Ditto.
3619
3620 2002-07-13 Aidan Skinner <aidan@velvet.net>
3621
3622 * ada-tasks.c (add_task_entry): replace calls to
3623 malloc() with xmalloc
3624 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3625
3626 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3627 ada_finish_decode_line_1, all_sals_for_line
3628 ada_breakpoint_rewrite): replace calls to free() with xfree()
3629
3630 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3631
3632 From Nicholas Duffek (with minor changes by Martin Hunt,
3633 Louis Hamilton, and Kevin Buettner):
3634 * aix-thread.c: New file.
3635
3636 2002-07-12 Petr Sorfa <petrs@caldera.com>
3637
3638 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3639 complaint for invalid attribute class or form.
3640 (read_func_scope): DW_AT_frame_base
3641 better handling of DW_AT_block*.
3642 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3643 better handling of DW_AT_block*.
3644 (read_common_block): DW_AT_location
3645 better handling of DW_AT_block*.
3646 (read_partial_die): DW_AT_location better handling
3647 of DW_AT_block*.
3648 (new_symbol): DW_AT_external better handling of
3649 DW_AT_block*. Proper initialization of variable
3650 "addr".
3651 (attr_form_is_block): New function that returns true
3652 if the attribute's form is of DW_FORM_block*.
3653
3654 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3655
3656 * valops.c (find_method_list): Remove comment about
3657 removed STATIC_MEMFUNCP argument.
3658 (value_find_oload_method_list): Likewise.
3659
3660 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3661
3662 From Nicholas Duffek:
3663 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3664 target_new_objfile_hook.
3665
3666 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3667
3668 From Nicholas Duffek:
3669 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3670 csect.
3671
3672 2002-07-12 Andrew Cagney <cagney@redhat.com>
3673
3674 * MAINTAINERS: Mention --enable-sim-build-warnings.
3675 (m68hc11-elf): Disable sim build warnings.
3676 (m32r-elf): Mark as broken obsolete candidate.
3677 (x86_64-linux-gnu): Mark as buildable with -Werror.
3678 (arm-elf): Change -w to ``,'' which enables warnings but not
3679 -Werror.
3680
3681 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3682
3683 * bcache.h: Update copyright.
3684 (struct bstring, struct bcache): Move definition to "bcache.c".
3685 Replaced by opaque declaration.
3686 (bcache_xfree): Replace free_bcache.
3687 (bcache_xmalloc, bcache_memory_used): Declare.
3688
3689 * bcache.c: Update copyright.
3690 (struct bstring, struct bcache): Moved to here from "bcache.h".
3691 Update comments.
3692 (bcache_xmalloc, bcache_memory_used): New functions.
3693 (bcache_xfree): Replace function free_bcache.
3694
3695 * Makefile.in (objfiles.o): Add $(bcache_h).
3696 (objfiles_h): Remove $(bcache_h).
3697 (symfile.o): Add $(bcache_h).
3698
3699 * symmisc.c: Update copyright.
3700 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3701 (print_objfile_statistics): Use bcache_memory_used.
3702
3703 * symfile.c: Include "bcache.h".
3704 (reread_symbols): Use bcache_xfree.
3705 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3706 (add_psymbol_to_list): Pass psymbol_cache by value.
3707 (add_psymbol_with_dem_name_to_list): Ditto.
3708
3709 * objfiles.h: Update copyright.
3710 (struct bcache): Declare opaque. Do not include "bcache.h".
3711 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3712 bcache'' pointers.
3713 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3714
3715 * objfiles.c: Include "bcache.h". Update copyright.
3716 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3717 macro_cache.
3718 (free_objfile): Use bcache_xfree.
3719
3720 2002-07-11 Grace Sainsbury <graces@redhat.com>
3721
3722 * monitor.c (monitor_fetch_register): Make name a constant.
3723 (monitor_store_register): Same.
3724
3725 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3726
3727 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3728 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3729 (finish_block) For non-function blocks, hash the symbol table. For
3730 function blocks, mark the symbol table as unhashed.
3731 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3732 (msymbol_hash_iw): Likewise.
3733 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3734 value.
3735 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3736 (lookup_minimal_symbol): Likewise for both.
3737 * symtab.h (struct block): Add `hashtable' flag. Comment the
3738 hashtable.
3739 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3740 (ALL_BLOCK_SYMBOLS): Update.
3741 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3742 (struct symbol): Add `hash_next' pointer.
3743 * symtab.c (lookup_block_symbol): Search using the hash table when
3744 possible.
3745 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3746 (search_symbols, find_addr_symbol): Likewise.
3747
3748 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3749 (read_dst_symtab): Likewise.
3750 * jv-lang.c (get_java_class_symtab): Likewise.
3751 * mdebugread.c: Include "gdb_assert.h".
3752 (shrink_block): Assert that the block being modified is not hashed.
3753 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3754 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3755 symbols.
3756 (dump_symtab): Recognize hashed blocks.
3757 * printcmd.c (print_frame_args): Assert that function blocks do not
3758 have hashed symbol tables.
3759 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3760 (fill_in_ada_prototype, debug_print_block): Likewise.
3761 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3762
3763 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3764
3765 * stack.c (print_frame): Use result of frame_address_in_block()
3766 instead of fi->pc when evaluating symbols.
3767 (backtrace_command_1): Ditto.
3768
3769 2002-07-11 Andrew Cagney <cagney@redhat.com>
3770
3771 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3772 Make static.
3773
3774 * arm-tdep.c (arm_register_name): Make return type constant.
3775
3776 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3777
3778 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3779 prototype.
3780 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3781 * s390-tdep.c (s390_fp_regnum): Ditto.
3782 (s390_read_fp): Ditto.
3783 (s390_pop_frame): Ditto.
3784 (_initialize_s390_tdep): Ditto.
3785 * remote.c (get_remote_state): Ditto.
3786 * procfs.c (mappingflags): Ditto.
3787 * memattr.c (_initialize_mem): Ditto.
3788 * mcore-tdep.c (mcore_pop_frame): Ditto.
3789 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3790 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3791 * language.c (set_case_str): Ditto.
3792 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3793 * frv-tdep.c (new_variant): Ditto.
3794 (frv_stopped_data_address): Ditto.
3795 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3796 (context_alloc): Ditto.
3797 (frame_state_alloc): Ditto.
3798 (unwind_tmp_obstack_init): Ditto.
3799 (unwind_tmp_obstack_free): Ditto.
3800 (cfi_read_fp): Ditto.
3801 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3802 (cris_pop_frame): Ditto.
3803 * c-lang.c (scanning_macro_expansion): Ditto.
3804 (finished_macro_expansion): Ditto.
3805 (c_preprocess_and_parse): Ditto.
3806 * gdbarch.sh: Ditto.
3807 * gdbarch.h, gdbarch.c: Regenerate.
3808 * config/mn10200/tm-mn10200.h: Adjust indentation.
3809 * target.c: Adjust indentation.
3810 * symtab.h: Adjust indentation.
3811 * stabsread.h: Adjust indentation.
3812 * remote-es.c: Adjust indentation.
3813 * os9kread.c: Adjust indentation.
3814
3815 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3816
3817 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3818 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3819
3820 2002-07-10 Grace Sainsbury <graces@redhat.com>
3821
3822 * NEWS: Mention m68k, mcore multi-arching.
3823 * MAINTAINERS: Change status of m68k, mcore to reflect
3824 multi-arching.
3825
3826 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3827
3828 * valops.c (find_overload_match): Free oload_syms.
3829
3830 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3831
3832 Define HAVE_SYS_PROC_H if sys/proc.h exists
3833 * configure.in: Add check for sys/proc.h
3834 * config.in: Regenerate.
3835 * configure: Regenerate.
3836
3837 2002-07-09 Grace Sainsbury <graces@redhat.com>
3838
3839 * config/m68k/tm-m68k.h: Remove macros wrapped in
3840 #if !GDB_MULTI_ARCH.
3841
3842 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3843
3844 * config.in, configure: Regenerate.
3845
3846 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3847
3848 * dwarf2cfi.c: Include "gcore.h".
3849 (execute_stack_op): Fix implementation of the
3850 DW_OP_deref and DW_OP_deref_size operators by letting do their
3851 lookup in the target.
3852
3853 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3854
3855 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3856 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3857 tdep->sc_sp_offset.
3858
3859 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3860
3861 Fix PR gdb/595, gdb/602
3862 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3863 Don't call value_cast, just read the vtable pointer; update comments
3864 to match.
3865
3866 2002-07-05 Grace Sainsbury <graces@redhat.com>
3867
3868 * config/mcore/tm-mcore.h: Remove file.
3869 * config/mcore/mcore.mt: Remove definition of TM_FILE
3870 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3871
3872 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3873
3874 * i386bsd-tdep.c: Include "gdb_string.h".
3875
3876 2002-07-04 Grace Sainsbury <graces@redhat.com>
3877
3878 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3879 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3880 mcore-tdep.
3881 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3882 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3883 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3884 (RETVAL_REGNUM): Move macros from tm-mcore.h
3885 (mcore_reg_struct_has_addr): New function.
3886 (mcore_gdbarch_init): Added initializations for the macros removed
3887 from tm-mcore.h.
3888
3889 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3890
3891 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3892 traditonal string branding within the ELF header.
3893
3894 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3895
3896 * symtab.c (remove_params): New function.
3897 (make_symbol_overload_list): Use it instead of cplus_demangle.
3898 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3899
3900 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3901
3902 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3903
3904 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3905 New variables.
3906 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3907 and tdep->sigtramp_end.
3908 * i386obsd-nat.c: New file.
3909 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3910
3911 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3912 Don't call get_current_frame().
3913
3914 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3915
3916 * i386-nat.c (child_post_startup_inferior): New function
3917 calling i386_cleanup_dregs if
3918 I386_USE_GENERIC_WATCHPOINTS is defined.
3919 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3920 conditional to acknowledge that i386-nat.c has its
3921 own child_post_startup_inferior function.
3922
3923 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3924
3925 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3926 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3927 instead of MAX_REGISTER_RAW_SIZE.
3928 (i386_extract_return_value, i386_extract_struct_value_address):
3929 Convert to use regcache.
3930 (i386_gdbarch_init): Set max_register_raw_size and
3931 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3932 Set extract_return_value and extract_struct_value_address instead
3933 of their deprecated variants.
3934
3935 Convert i386 target to generic dummy frames.
3936 * i386-tdep.c: Include "symfile.h".
3937 (i386_frameless_signal_p): Consider a function to be frameless if
3938 the pc points at the first instruction of the function.
3939 (i386_frame_chain): Handle (generic) call dummies.
3940 (i386_frame_saved_pc): Likewise.
3941 (i386_frame_init_saved_regs): Remove code dealing with call
3942 dummies on the stack.
3943 (i386_push_dummy_frame): Removed.
3944 (i386_call_dummy_words): Removed.
3945 (i386_fix_call_dummy): Removed.
3946 (i386_push_return_address): New function.
3947 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3948 parameter, and don't call get_current_frame.
3949 (i386_pop_frame): New function.
3950 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3951 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3952 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3953 call_dummy_length to 0, set call_dummy_words to NULL, set
3954 sizeof_call_dummy_words to 0, set fix_call_dummy to
3955 generic_fix_call_dummy, set pc_in_call_dummy to
3956 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3957 generic_push_dummy_frame, set push_return_address to
3958 i386_push_return_address and set frame_chain_valid to
3959 generic_file_frame_chain_valid.
3960
3961 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3962
3963 * gdbarch.sh (struct regcache): Add opaque declaration.
3964 (EXTRACT_RETURN_VALUE): New architecture method.
3965 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3966 * gdbarch.h, gdbarch.c: Regenerate.
3967 * arch-utils.c (legacy_extract_return_value): New function.
3968 * arch-utils.h (legacy_extract_return_value): Declare.
3969 * values.c (value_being_returned): Re-enable code handling
3970 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3971 deprecated_grub_regcache_for_registers call to block handling
3972 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3973 (EXTRACT_RETURN_VALUE): Do not define.
3974
3975 2002-07-03 Grace Sainsbury <graces@redhat.com>
3976
3977 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3978 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3979 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3980 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3981 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3982 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3983 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3984 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3985 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3986 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3987 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3988 argument so the function fits the prototype in the architecture
3989 vector.
3990 (mcore_pop_frame): Remove argument so the function fits the
3991 prototype. Use get_current_frame instead of the argument.
3992 (mcore_push_arguments): Change type of struct_return so the
3993 function can be used in the architecture vector.
3994 (mcore_store_struct_return): Add.
3995 (mcore_frame_init_saved_regs): Add.
3996 (mcore_gdbarch_init): Add function calls to replace the macros
3997 removed from tm-mcore.h
3998
3999 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4000
4001 * infcmd.c (print_return_value): Remove compatibility code calling
4002 deprecated_grub_regcache_for_registers.
4003
4004 * values.c: Include "regcache.h".
4005 (value_being_returned): Update. Use
4006 deprecated_grub_regcache_for_registers to extract the register
4007 buffer address.
4008 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4009 ``struct regcache''.
4010 * Makefile.in (values.o): Add dependency on $(regcache_h).
4011
4012 * inferior.h (run_stack_dummy): Change type of second parameter to
4013 a ``struct regcache''.
4014 * valops.c (hand_function_call): Change type of retbuf to ``struct
4015 regcache''. Allocate using regcache_xmalloc, clean using
4016 make_cleanup_regcache_xfree.
4017 * infcmd.c (run_stack_dummy): Update. Use
4018 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4019
4020 * regcache.c (do_regcache_xfree): New function.
4021 (make_cleanup_regcache_xfree): New function.
4022 * regcache.h (make_cleanup_regcache_xfree): Declare.
4023
4024 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4025
4026 * event-top.c (command_line_handler): Don't read past
4027 beginning of buffer.
4028
4029 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4030
4031 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4032 struct frame_id.
4033 (varobj_create): Store frame_id for root.
4034 (varobj_gen_name): Use xasprintf.
4035 (varobj_update): Save and restore frame using get_frame_id() and
4036 frame_find_by_id().
4037 (create_child): Use xasprintf.
4038 (new_root_variable): Initialize frame_id.
4039 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4040 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4041 to prevent memory leak.
4042
4043 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4044
4045 * valops.c (hand_function_call): Move declaration of retbuf to
4046 start of function, allocate using malloc, add a cleanup but before
4047 the inf_status cleanup, cleanup the buffer. Rename local variable
4048 old_chain to inf_status_cleanup.
4049
4050 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4051
4052 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4053
4054 * cli/cli-decode.c (cmd_func_p): New function.
4055 (cmd_func): New function.
4056
4057 * command.h: Add cmd_func() and cmd_func_p().
4058
4059 2002-07-03 Grace Sainsbury <graces@redhat.com>
4060
4061 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4062 (REGISTER_SIZE): Remove.
4063 (MAX_REGISTER_RAW_SIZE): Remove.
4064 (REGISTER_VIRTUAL_TYPE): Remove.
4065 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4066 (REGISTER_NAME): Remove.
4067 (USE_GENERIC_DUMMY_FRAMES): Remove.
4068 (CALL_DUMMY): Remove.
4069 (CALL_DUMMY_START_OFFSET): Remove.
4070 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4071 (CALL_DUMMY_LOCATION): Remove.
4072 (FIX_CALL_DUMMY): Remove.
4073 (CALL_DUMMY_ADDRESS): Remove.
4074 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4075 (SAVE_DUMMY_FRAME_TOS): Remove.
4076 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4077 (mcore_register_virtual_type): New function.
4078 (mcore_register_byte): New function.
4079 (mcore_register_size): New function.
4080 (mcore_register_name): New function.
4081 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4082 macros removed from tm-mcore.h.
4083 (mcore_dump_tdep): Add.
4084 (_initialize_mcore_tdep): Add gdbarch_register call.
4085
4086 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4087
4088 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4089 frameless_look_for_prologue, such that we actually call this
4090 function.
4091
4092 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4093
4094 * frame.h (frame_address_in_block): New function.
4095
4096 * blockframe.c (frame_address_in_block): New function extracted
4097 from get_frame_block().
4098 (get_frame_block): Use frame_address_in_block().
4099 (block_innermost_frame): Use frame_address_in_block() to match
4100 the frame pc address against the block boundaries rather than
4101 the frame pc directly. This prevents a failure when a frame pc
4102 is actually a return-address pointing immediately after the end
4103 of the given block.
4104
4105 2002-07-02 Grace Sainsbury <graces@redhat.com>
4106
4107 * MAINTAINERS: Add self under write after approval.
4108
4109 2002-07-02 Grace Sainsbury <graces@redhat.com>
4110
4111 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4112 used in architecture vector. The default is
4113 m68k_local_breakpoint_from_pc.
4114 (m68k_local_breakpoint_from_pc): Add.
4115 (enum): Add register numbers from tm-m68k.h.
4116 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4117 vector.
4118 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4119 GDB_MULTI_ARCH_PARTIAL.
4120 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4121 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4122 m68k-tdep.c.
4123 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4124 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4125 to enum in m68k-tdep.c
4126
4127 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4128
4129 * solib-osf.c (open_map): Compute the list of shared libraries
4130 loaded by the inferior, rather than the list of libraries loaded
4131 by GDB itself. Otherwise, GDB ends up reading the symbols from
4132 the wrong shared libraries...
4133
4134 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4135
4136 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4137 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4138 macros.
4139 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4140 Remove functions.
4141 (FRAMELESS_SIGNAL): Remove function.
4142 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4143 i386_linux_saved_pc_after_call): Removed.
4144 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4145 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4146 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4147
4148 * i386-tdep.c (i386_frameless_signal_p): New function.
4149 (i386_frame_chain): Deal with frameless signals.
4150 (i386_sigtramp_saved_sp): New function.
4151 (i386_frame_saved_pc): Deal with frameless signals.
4152 (i386_saved_pc_after_call): Make sure the correct value is
4153 returned just after entry into a sigtramp.
4154 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4155 i386fbsd4_sc_sp_offset): New variables.
4156 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4157 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4158 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4159 similiar to what we already did for sc_pc_offset.
4160 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4161 tdep->sc_sp_offset.
4162
4163 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4164
4165 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4166
4167 * config/i386/tm-x86-64linux.h: New.
4168 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4169 definitions.
4170 * config/i386/nm-x86-64.h: Rename to ...
4171 * config/i386/nm-x86-64linux.h: ... this one.
4172 * config/i386/x86-64linux.mh: Reflect the above change.
4173
4174 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4175
4176 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4177 with sigcontext_addr. Add sc_sp_offset.
4178 (i386bsd_sigtramp_saved_pc): Remove prototype.
4179 (i386bsd_sicontext_addr): Add prototype.
4180 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4181 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4182 (i386_svr4_sigtramp_saved_pc): Removed.
4183 (i386_svr4_sigcontext_addr): New function.
4184 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4185 Initialize tdep->sigcontext_addr instead. Initialize
4186 tdep->sc_pc_offset and tdep->sc_sp_offset.
4187 (i386_gdbarch_init): Likewise.
4188 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4189 any more.
4190 (i386bsd_sigtramp_saved_pc): Remove function.
4191 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4192 Initialize tdep->sigcontext_addr instead. Initialize
4193 tdep->sc_pc_offset.
4194 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4195 of tdep->sigtramp_saved_pc.
4196 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4197 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4198 instead.
4199
4200 * i386-tdep.c (i386_frameless_function_invocation,
4201 i386_frame_num_args, i386_frame_init_saved_regs,
4202 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4203 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4204 i386_extract_return_value, i386_store_return_value,
4205 i386_extract_struct_value_address, i386_register_virtual_type,
4206 i386_register_convertible, i386_register_convert_to_virtual,
4207 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4208 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4209 static.
4210
4211 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4212
4213 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4214
4215 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4216 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4217 this macro. Include "value.h".
4218
4219 2002-06-30 Aidan Skinner <aidan@velvet.net>
4220
4221 * ada-exp.tab.c: remove as it's a generated file
4222 * ada-lex.c: remove as it's a generated file
4223
4224 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4225
4226 * config/i386/tm-i386.h (struct frame_info, struct
4227 frame_saved_regs, struct value, struct type): Remove forward
4228 declarations.
4229
4230 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4231 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4232 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4233 (FILL_FPXREGSET): Define.
4234
4235 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4236
4237 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4238 i[3456]86-*-netbsd* case.
4239 * config/i386/tm-obsd.h: Removed.
4240 * config/i386/obsd.mt: Removed.
4241 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4242 core-aout.o.
4243 (MH_CFLAGS): Add -DYYDEBUG=0.
4244
4245 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4246 i386nbsd_sc_pc_offset on OpenBSD too.
4247
4248 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4249 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4250 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4251 define.
4252 * i386bsd-tdep.c: Include "arch-utils.h".
4253 (i386bsd_aout_in_solib_call_trampoline): New function.
4254 (i386bsd_init_abi): Set in_solib_call_trampoline to
4255 i386bsd_aout_in_solib_call_trampoline.
4256 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4257 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4258
4259 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4260
4261 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4262 (struct obstack, struct bcache): Add opaque declarations.
4263 * Makefile.in (macrotab_h): Update
4264
4265 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4266
4267 * blockframe.c (generic_find_dummy_frame): Change return type to
4268 ``struct regcache''.
4269 (struct dummy_frame): Replace field ``registers'' with regcache, a
4270 struct regcache object.
4271 (generic_find_dummy_frame): Update.
4272 (generic_push_dummy_frame): Update. Use regcache_xfree,
4273 regcache_xmalloc and regcache_cpy.
4274 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4275 regcache_xfree.
4276 (deprecated_generic_find_dummy_frame): Update.
4277 (generic_read_register_dummy): Update. Use
4278 regcache_read_as_address.
4279 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4280 (generic_get_saved_register): Update. Use regcache_read.
4281
4282 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4283
4284 * Makefile.in (objfiles_h): Add $(bcache_h).
4285 * objfiles.h: Include "bcache.h".
4286
4287 * Makefile.in (symtab_h): Remove $(bcache_h).
4288 * symtab.h: Do not include "bcache.h".
4289
4290 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4291
4292 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4293 generic_func_frame_chain_valid.
4294
4295 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4296
4297 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4298 * config/i386/tm-fbsd.h: Likewise.
4299
4300 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4301
4302 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4303 generic_unwind_get_saved_register.
4304
4305 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4306
4307 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4308 * regcache.c (supply_register): Add missing argument to
4309 register_buffer call.
4310
4311 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4312
4313 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4314 Solaris /bin/grep does not not like it. From Peter Schauer.
4315
4316 2002-06-26 Tom Tromey <tromey@redhat.com>
4317
4318 * command.h (add_setshow_cmd): Declare.
4319 (add_setshow_cmd_full): Declare.
4320 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4321 returns void. Use add_setshow_cmd_full.
4322 (add_setshow_cmd_full): New function.
4323 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4324 (add_setshow_boolean_cmd): Likewise.
4325
4326 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4327
4328 * config/vax/tm-vax.h: Protect from multiple inclusion.
4329 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4330 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4331 * config/vax/tm-vaxbsd.h: ...here. New file.
4332 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4333
4334 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4335
4336 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4337 (BELIEVE_PCC_PROMOTION): Remove.
4338 (AP_REGNUM): Move to...
4339 * config/vax/nm-vax.h: ...here.
4340 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4341 (vax_breakpoint_from_pc): New function.
4342 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4343 and gdbarch_believe_pcc_promotion.
4344
4345 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4346
4347 * Makefile.in (vax_tdep_h): Define.
4348 (vax-tdep.o): Use $(vax_tdep_h).
4349 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4350 (vax_dump_tdep): New function.
4351 (_initialize_vax_tdep): Register vax_dump_tdep.
4352 * vax-tdep.h: Include osabi.h.
4353 (struct gdbarch_tdep): New.
4354
4355 2002-06-26 Andrew Cagney <cagney@redhat.com>
4356
4357 * frame.h (deprecated_generic_find_dummy_frame): Rename
4358 generic_find_dummy_frame.
4359 * blockframe.c (generic_find_dummy_frame): Make static.
4360 (deprecated_generic_find_dummy_frame): New function.
4361 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4362 generic_find_dummy_frame with deprecated_find_dummy_frame.
4363 (sh64_nofp_frame_init_saved_regs): Ditto.
4364 (sh_fp_frame_init_saved_regs): Ditto.
4365 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4366 (s390_frame_chain): Ditto.
4367 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4368
4369 2002-06-26 Grace Sainsbury <graces@redhat.com>
4370
4371 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4372 gdbarch vector are at the top.
4373 (NUM_REGS): Remove.
4374 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4375 (FRAME_ARGS_ADDRESS): Remove.
4376 (FRAME_LOCALS_ADDRESS): Remove.
4377 (FRAME_NUM_ARGS): Remove.
4378 (FRAME_ARGS_SKIP): Remove.
4379 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4380 (m68k_gdbarch_init): Add gdbarch initializations for macros
4381 undefined in tm-m68k.h
4382
4383 2002-06-26 Grace Sainsbury <graces@redhat.com>
4384
4385 * monitor.h: Add the function regname to monitor_ops
4386 structure. This way NUM_REGS does not have to be a constant.
4387 * monitor.c (monitor_fetch_register): Added support for regname
4388 function. The function is called if the array regnames is NULL.
4389 (monitor_store_register): Same.
4390 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4391 regnames array.
4392 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4393 cpu32bug_cmds.regname to point to new function.
4394 * abug-rom.c (abug_regname): Same as above.
4395 (init_abug_cmds): Same.
4396 * dbug-rom.c (dbug_regname): Same as above.
4397 (init_dbug_cmds): Same.
4398 * remote-est.c (est_regname): Same.
4399 (init_est_cmds): Same.
4400 * rom68k-rom.c (rom68k_regname): Same.
4401 (init_rom68k_cmds): Same.
4402
4403 2002-06-25 Tom Tromey <tromey@redhat.com>
4404
4405 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4406
4407 2002-06-25 Andrew Cagney <cagney@redhat.com>
4408
4409 * infrun.c (stop_registers): Change variable's type to ``struct
4410 regcache'''.
4411 (xmalloc_inferior_status): Delete function.
4412 (free_inferior_status): Delete function.
4413 (normal_stop): Use regcache_cpy.
4414 (struct inferior_status): Change type of fields ``stop_registers''
4415 and ``registers'' to ``struct regcache''.
4416 (write_inferior_status_register): Use regcache_write.
4417 (save_inferior_status): Instead of calling
4418 xmalloc_inferior_status, allocate the inf_status buffer directly.
4419 Use regcache_dup_no_passthrough and regcache_dup to save the
4420 buffers.
4421 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4422 Replace the stop_registers regcache instead of overriding it. Use
4423 regcache_xfree. Instead of calling free_inferior_status, xfree
4424 the buffer directly.
4425 (discard_inferior_status): Use regcache_xfree. Instead of calling
4426 free_inferior_status, xfree the buffer directly.
4427 (build_infrun): Use regcache_xmalloc.
4428 (_initialize_infrun): Delete redundant call to build_infrun.
4429
4430 * Makefile.in (infcmd.o): Add $(regcache_h).
4431
4432 * infcmd.c: Include "regcache.h".
4433 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4434 obtain the address of `stop_registers' register buffer.
4435 (print_return_value): Ditto.
4436
4437 * inferior.h (struct regcache): Add opaque declaration.
4438 (stop_registers): Change variable's declared type to ``struct
4439 regcache''.
4440
4441 2002-06-24 Tom Tromey <tromey@redhat.com>
4442
4443 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4444 * target.c (initialize_targets): Fixed typo in
4445 trust-readonly-sections `show' documentation.
4446
4447 * main.c: Marked all strings with _().
4448
4449 2002-06-24 Don Howard <dhoward@redhat.com>
4450
4451 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4452 that means max CORE_ADDR+1.
4453 (lookup_mem_region): Ditto.
4454 (mem_info_command): Ditto.
4455
4456 2002-06-24 Grace Sainsbury <graces@redhat.com>
4457
4458 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4459 (REGISTER_BYTES_OK): Remove.
4460 (REGISTER_BYTES): Remove.
4461 (STORE_STRUCT_RETURN): Remove.
4462 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4463 (STORE_RETURN_VALUE): Remove.
4464 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4465 (FRAME_CHAIN): Remove.
4466 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4467 (FRAME_SAVED_PC): Remove.
4468 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4469 (m68k_store_struct_return): Add.
4470 (m68k_deprecated_extract_return_value): Add.
4471 (m68k_deprecated_extract_struct_value_address): Add.
4472 (m68k_store_return_value): Add.
4473 (m68k_frame_chain): Add.
4474 (m68k_frameless_function_invocation): Add.
4475 (m68k_frame_saved_pc): Add.
4476 (m68k_gdbarch_init): added set_gdbarch calls for new
4477 functions and deleted macros.
4478
4479 2002-06-23 Tom Tromey <tromey@redhat.com>
4480
4481 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4482 (ALLDEPFILES): Likewise.
4483 (udiheaders): Removed.
4484 (udip2soc.o): Likewise.
4485 (udi2go32.o): Likewise.
4486 (udr.o): Likewise.
4487 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4488
4489 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4490
4491 * infrun.c (_initialize_infrun): Delete unnecessary call to
4492 build_infrun.
4493
4494 * regcache.h: Update comments describing the regcache_cpy family
4495 of functions.
4496 (regcache_save, regcache_restore): Delete declaration.
4497 (regcache_save_no_passthrough): Delete declaration.
4498 (regcache_restore_no_passthrough): Delete declaration.
4499 * regcache.c (regcache_save): Delete function.
4500 (regcache_save_no_passthrough): Delete function.
4501 (regcache_restore): Delete function.
4502 (regcache_restore_no_passthrough): Delete function.
4503
4504 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4505
4506 * config/m68k/tm-m68k.h: Fix typo.
4507 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4508 (m68k_frame_init_saved_regs): Declare.
4509
4510 2002-06-21 Jim Blandy <jimb@redhat.com>
4511
4512 Remove some vestiges of Harris 88k support.
4513 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4514 register numbering quirk.
4515 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4516 odd symbols occurring in Harris 88k ELF targets.
4517
4518 2002-06-21 Tom Tromey <tromey@redhat.com>
4519
4520 * gdb_locale.h: New file.
4521 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4522 (defs_h): Added gdb_locale.h.
4523 * configure, config.in: Rebuilt.
4524 * configure.in (PACKAGE): Define.
4525 * defs.h: Include gdb_locale.h.
4526 * main.c (captured_main): Call setlocale, bindtextdomain,
4527 textdomain.
4528
4529 2002-06-21 Dave Brolley <brolley@redhat.com>
4530
4531 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4532 * config/frv/frv.mt: New file.
4533 * config/frv/tm-frv.h: New file.
4534 * configure.tgt: Support frv-*-*.
4535 * Makefile.in (frv-tdep.o): New target.
4536 * frv-tdep.c: New file.
4537 * NEWS: Mention frv.
4538
4539 2002-06-21 Dave Brolley <brolley@redhat.com>
4540
4541 * MAINTAINERS: Add self to "Write After Approval" list.
4542
4543 2002-06-21 Grace Sainsbury <graces@redhat.com>
4544
4545 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4546 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4547 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4548 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4549 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4550
4551 * m68k-tdep.c: Include arch-utils.h
4552 (m68k_register_raw_size): Add.
4553 (m68k_register_virtual_size): Add.
4554 (m68k_register_virtual_type): Add.
4555 (m68k_register_name): Add.
4556 (m68k_stack_align): Add.
4557 (m68k_register_byte): Add.
4558 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4559 tm-m68k.h.
4560
4561 2002-06-21 Grace Sainsbury <graces@redhat.com>
4562
4563 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4564 m68k_find_saved_regs.
4565 (m68k_pop_frame): Removed saved_regs structure, and replaced
4566 references to it with frame->saved_regs.
4567 (m68k_gdbarch_init): Added function calls to initialize the
4568 gdbarch structure.
4569 (m68k_fix_call_dummy): Add.
4570 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4571 (CALL_DUMMY): Remove.
4572 (CALL_DUMMY_LENGTH): Remove.
4573 (CALL_DUMMY_START_OFFSET): Remove.
4574 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4575 (FIX_CALL_DUMMY): Remove.
4576 (PUSH_DUMMY_FRAME): Remove.
4577 (POP_FRAME): Remove.
4578
4579 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4580
4581 * parse.c (parse_fprintf): New function used to avoid calls to
4582 fprintf in bison parser generated debug code.
4583 * parser-defs.h: Declaration of new parse_fprintf function.
4584 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4585 Set YYDEBUG to 1 by default.
4586 Set YYFPRINTF as parse_fprintf.
4587
4588 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4589
4590 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4591 encoding anymore.
4592 (pointer_encoding, enum ptr_encoding): New.
4593 (execute_cfa_program): Take care about pointer encoding.
4594 (dwarf2_build_frame_info): Only call parse_frame_info for
4595 .debug_frame and .eh_frame.
4596 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4597 fixed augmentation handling, added relative addressing,
4598 ignore duplicate FDEs. Added comments.
4599 * dwarf2cfi.c: Reindented.
4600
4601 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4602
4603 * event-top.c (command_handler): Don't use space_at_cmd_start
4604 unless there is sbrk() on the host. Assign time and space data
4605 to union fields of the appropriate length.
4606
4607 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4608
4609 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4610 x86_64_register_name. Return type changed to 'const char *'.
4611 (x86_64_register_name2nr): Rename to x86_64_register_number.
4612 (x86_64_gdbarch_init): Update to reflect the change.
4613 * x86-64-tdep.h: Ditto.
4614 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4615 (supply_fpregset): Ditto.
4616
4617 2002-06-19 Andrew Cagney <cagney@redhat.com>
4618
4619 * regcache.h: Update copyright.
4620 (struct regcache, struct gdbarch): Add opaque declarations.
4621 (current_regcache): Declare global variable.
4622 (regcache_read, regcache_write): Add gdbarch parameter.
4623 (regcache_save, regcache_save_no_passthrough)
4624 (regcache_restore, regcache_restore_no_passthrough)
4625 (regcache_dup, regcache_dup_no_passthrough)
4626 (regcache_cpy, regcache_cpy_no_passthrough)
4627 (deprecated_grub_regcache_for_registers)
4628 (deprecated_grub_regcache_for_register_valid)
4629 (regcache_valid_p): Add function declarations.
4630
4631 * regcache.c: Update copyright.
4632 (regcache_descr_handle): New global variable.
4633 (struct regcache_descr): Define.
4634 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4635 (regcache_descr, xfree_regcache_descr): New functions.
4636 (struct regcache): Define.
4637 (regcache_xmalloc, regcache_xfree): New functions.
4638 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4639 (regcache_dup, regcache_dup_no_passthrough): New functions.
4640 (regcache_valid_p, regcache_read_as_address): New functions.
4641 (deprecated_grub_regcache_for_registers): New function.
4642 (deprecated_grub_regcache_for_register_valid): New function.
4643 (current_regcache): New global variable.
4644 (register_buffer): Add regcache parameter. Update calls.
4645 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4646 (read_register_gen, write_register_gen): Update register_buffer
4647 call. Test for legacy_p instead of gdbarch_register_read_p or
4648 gdbarch_register_write_p.
4649 (regcache_collect): Update register_buffer call.
4650 (build_regcache): Rewrite. Use deprecated grub functions.
4651 (regcache_save, regcache_save_no_passthrough): New functions.
4652 (regcache_restore, regcache_restore_no_passthrough): New
4653 functions.
4654 (_initialize_regcache): Create the regcache_data_handle. Swap
4655 current_regcache global variable.
4656
4657 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4658 parameter to regcache_read and regcache_write calls.
4659 (sh4_register_read): Ditto.
4660 (sh64_pseudo_register_read): Ditto.
4661 (sh64_register_read): Ditto.
4662 (sh_pseudo_register_write): Ditto.
4663 (sh4_register_write): Ditto.
4664 (sh64_pseudo_register_write): Ditto.
4665 (sh64_register_write): Ditto.
4666
4667 * defs.h (XCALLOC): Define.
4668
4669 2002-06-19 Grace Sainsbury <graces@redhat.com>
4670
4671 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4672 * m68k-tdep.c (m68k_gdbarch_init): Added.
4673 (m68k_dump_tdep): Added.
4674
4675 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4676
4677 * ada-lang.c (fill_in_ada_prototype): Update comment.
4678
4679 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4680
4681 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4682 MIPS_ABI_LAST.
4683 (mips_abi_string, mips_abi_strings): New.
4684 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4685 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4686 tdep->mips_abi_string. Honor mips_abi_string. Default to
4687 O32 if no ABI is found.
4688 (mips_dump_tdep): Use mips_abi_strings.
4689 (mips_abi_update): New function.
4690 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4691 ``set mips abi'' and ``show mips abi''. Check the size of
4692 mips_abi_strings.
4693
4694 2002-06-19 Andrew Cagney <cagney@redhat.com>
4695
4696 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4697 constant.
4698
4699 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4700
4701 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4702 current frame using only the first stack size adjustment. All
4703 subsequent size adjustments are not considered to be part of
4704 the "static" part of the current frame.
4705 Compute the address of the saved registers relative to the
4706 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4707 in use in this frame.
4708
4709 2002-06-18 Don Howard <dhoward@redhat.com>
4710
4711 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4712 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4713 suggesting this solution.
4714
4715 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4716
4717 * config/romp/xm-rtbsd.h: Delete file.
4718 * config/romp/rtbsd.mh: Delete file.
4719
4720 2002-06-18 Keith Seitz <keiths@redhat.com>
4721
4722 * breakpoint.c (condition_command): Post breakpoint_modify
4723 when a condition is added to an existing breakpoint.
4724 (commands_command): Likewise for commands.
4725 (set_ignore_count): Likewise for ignore counts.
4726 If no tty, do not simply return, still need to send event
4727 notification.
4728 (ignore_command): Only print a newline if the command came
4729 from a tty.
4730 Don't call breakpoints_changed, since this is now properly
4731 handled by set_ignore_count.
4732
4733 2002-06-18 Andrew Cagney <cagney@redhat.com>
4734
4735 * MAINTAINERS: Note that cris-elf target can be compiled with
4736 -Werror.
4737 * cris-tdep.c (cris_register_name): Make return type constant.
4738 (cris_breakpoint_from_pc): Ditto.
4739
4740 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4741
4742 * frame.h (struct frame_info): Change type of context to
4743 'struct context'.
4744
4745 2002-06-17 Andrew Cagney <cagney@redhat.com>
4746
4747 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4748 pointer.
4749 * gdbarch.h, gdbarch.c: Regenerate.
4750 * config/mips/tm-mips.h (mips_register_name): Update.
4751 * i386-tdep.h (i386_register_name): Update.
4752 * mips-tdep.c (mips_register_name): Update
4753 * alpha-tdep.c (alpha_register_name): Update.
4754 * arch-utils.c (legacy_register_name): Update.
4755 * arch-utils.h (legacy_register_name): Update.
4756 * avr-tdep.c (avr_register_name): Update.
4757 * ia64-tdep.c (ia64_register_name): Update.
4758 * i386-tdep.c (i386_register_name): Update.
4759 * sparc-tdep.c (sparc32_register_name): Update.
4760 (sparc64_register_name): Update.
4761 (sparclite_register_name): Update.
4762 (sparclet_register_name): Update.
4763 * sh-tdep.c (sh_generic_register_name): Update.
4764 (sh_sh_register_name): Update.
4765 (sh_sh3_register_name): Update.
4766 (sh_sh3e_register_name): Update.
4767 (sh_sh_dsp_register_name): Update.
4768 (sh_sh3_dsp_register_name): Update.
4769 (sh_sh4_register_name): Update.
4770 (sh_sh64_register_name): Update.
4771 * s390-tdep.c (s390_register_name): Update.
4772 * rs6000-tdep.c (rs6000_register_name): Update.
4773 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4774 (ns32k_register_name_32382): Update.
4775 * d10v-tdep.c (d10v_ts2_register_name): Update.
4776 (d10v_ts3_register_name): Update.
4777 * xstormy16-tdep.c (xstormy16_register_name): Update.
4778 * vax-tdep.c (vax_register_name): Update.
4779 * v850-tdep.c (v850_register_name): Update.
4780 * m68hc11-tdep.c (m68hc11_register_name): Update.
4781 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4782 (am33_register_name): Update.
4783
4784 2002-06-17 Grace Sainsbury <graces@redhat.com>
4785
4786 * m68k-tdep.c: Reindented.
4787
4788 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4789
4790 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4791 list of predefined types.
4792
4793 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4794
4795 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4796 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4797 REGISTER_CONVERT_TO_RAW): Remove defines.
4798 (i386_register_virtual_type, i386_register_convertible,
4799 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4800 Remove prototypes.
4801 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4802 macros mentioned above.
4803
4804 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4805 (i386lynx_saved_pc_after_call): Remove prototype.
4806 * i386ly-tdep.c: Include "i386-tdep.h".
4807 (i386lynx_saved_pc_after_call): Make static. Use
4808 read_memory_nobpt instead of read_memory. Use
4809 read_memory_unsigned_integer instead of read_memory_integer.
4810 (i386lynx_init_abi): New function.
4811 (i386lynx_coff_osabi_sniffer): New function.
4812 (_initialize_i386bsd_tdep): New function.
4813
4814 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4815 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4816 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4817 (i386_fix_call_dummy): Remove prototype.
4818 * i386-tdep.c (i386_call_dummy_words): New variable.
4819 (i386_gdbarch_init): Adjust for removal of the
4820 macros mentioned above.
4821
4822 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4823
4824 * command.h (add_setshow_auto_boolean_cmd): Replace
4825 add_set_auto_boolean_cmd.
4826 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4827 add_set_auto_boolean_cmd.
4828 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4829 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4830 mask-address'' command.
4831 (show_mask_address): Add cmd parameter.
4832 * remote.c (add_packet_config_cmd): Update. Change type of
4833 set_func and show_func to cmd_sfunc_ftype.
4834 (_initialize_remote): Update `set remote Z-packet'
4835 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4836 (show_remote_protocol_e_packet_cmd): Ditto.
4837 (show_remote_protocol_E_packet_cmd): Ditto.
4838 (show_remote_protocol_P_packet_cmd): Ditto.
4839 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4840 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4841 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4842 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4843 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4844 (show_remote_protocol_Z_packet_cmd): Ditto.
4845 (show_remote_protocol_binary_download_cmd): Ditto.
4846 (show_remote_cmd): Pass NULL to all of above.
4847
4848 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4849
4850 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4851 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4852 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4853 POP_FRAME): Remove defines.
4854 (i386_push_arguments, i386_store_struct_return,
4855 i386_extract_return_value, i386_store_return_value,
4856 i386_extract_struct_value_address, i386_push_dummy_frame,
4857 i386_pop_frame): Renove prototypes.
4858 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4859 macros mentioned above.
4860
4861 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4862
4863 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4864 add_set_boolean_cmd.
4865 (add_setshow_cmd): New function.
4866 * command.h (add_setshow_boolean_cmd): Replace
4867 add_set_boolean_cmd.
4868 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4869 and ``set rdiromatzero''.
4870 * maint.c (_initialize_maint_cmds): Update commented out code.
4871 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4872 * target.c (initialize_targets): Update `set
4873 trust-readonly-sections'.
4874 * remote.c (_initialize_remote): Update `set remotebreak'.
4875
4876 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4877
4878 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4879 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4880 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4881 fit into multi-arch framework.
4882 (i386_breakpoint_from_pc): New function.
4883 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4884 above.
4885
4886 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4887 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4888 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4889 (i386_frameless_function_invocation, i386_frame_num_args,
4890 i386_frame_init_saved_regs): Remove prototypes.
4891 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4892 macros mentioned above.
4893
4894 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4895
4896 * cli/cli-decode.c (set_cmd_cfunc): Update.
4897 (set_cmd_sfunc): Update.
4898 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4899 (set_cmd_sfunc, set_cmd_cfunc): Update.
4900 * cli/cli-decode.h: Update.
4901
4902 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4903
4904 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4905 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4906
4907 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4908
4909 * defs.h (auto_boolean): Declare enum.
4910 * command.h (cmd_auto_boolean): Delete enum.
4911 * mips-tdep.c (mask_address_var): Update.
4912 (mips_mask_address_p): Update.
4913 (show_mask_address): Update.
4914 * remote.c (struct packet_config): Update.
4915 (update_packet_config): Update.
4916 (show_packet_config_cmd): Update.
4917 (packet_ok): Update.
4918 (add_packet_config_cmd): Update.
4919 (_initialize_remote):
4920 * command.h: Update.
4921 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4922 (do_setshow_command): Update.
4923 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4924 * cli/cli-decode.h: Update.
4925
4926 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4927
4928 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4929 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4930 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4931 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4932 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4933 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4934
4935 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4936 list of DJGPP COFF targets.
4937
4938 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4939 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4940 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4941 (FP0_REGNUM): Remove define.
4942 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4943 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4944 (i386_register_virtual_size): Remove protoype.
4945 * i386-tdep.c (i386_register_virtual_size): Removed.
4946 (i386_extract_return_value, i386_store_return_value): Use
4947 FP0_REGNUM instead of NUM_FREGS to determine whether the
4948 floating-point registers are available.
4949 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4950 Adjust for removal of macros mentioned above.
4951
4952 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4953
4954 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4955 comments.
4956 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4957 Remove prototypes.
4958 (supply_gregset, fill_gregset): Remove use of register keyword and
4959 remove declaration for regmap. Use I386_NUM_GREGS instead of
4960 NUM_REGS and NUM_FREGS.
4961 (FPREGSET_FSAVE_OFFSET): Remove.
4962 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4963 NUM_FREGS to determine whether the floating-point registers are
4964 available.
4965
4966 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4967 gnu_store_registers): Replace usage of NUM_GREGS with
4968 I386_NUM_GREGS.
4969
4970 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4971 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4972 usage of NUM_GREGS with I386_NUM_GREGS.
4973
4974 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4975
4976 * i386bsd-nat.c: Include "i386-tdep.h".
4977 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4978 I386_NUM_GREGS.
4979
4980 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4981 and associated comment. They no longer make any sense, since we
4982 don't use this file anymore on Linux.
4983
4984 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4985 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4986 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4987 elements in these arrays.
4988 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4989 MAX_NUM_REGS.
4990
4991 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4992
4993 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4994 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4995
4996 2002-06-14 Andrew Cagney <cagney@redhat.com>
4997
4998 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4999 EXTRACT_RETURN_VALUE.
5000 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5001 EXTRACT_STRUCT_VALUE_ADDRESS.
5002 * gdbarch.h, gdbarch.c: Regenerate.
5003
5004 * values.c (value_being_returned): Handle
5005 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5006 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5007
5008 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5009 * arm-tdep.c (arm_gdbarch_init): Update.
5010 * avr-tdep.c (avr_gdbarch_init): Update.
5011 * cris-tdep.c (cris_gdbarch_init): Update.
5012 * d10v-tdep.c (d10v_gdbarch_init): Update.
5013 * ia64-tdep.c (ia64_gdbarch_init): Update.
5014 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5015 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5016 * s390-tdep.c (s390_gdbarch_init): Update.
5017 * sh-tdep.c (sh_gdbarch_init): Update.
5018 * s390-tdep.c (s390_gdbarch_init): Update.
5019 * sparc-tdep.c (sparc_gdbarch_init): Update.
5020 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5021 * v850-tdep.c (v850_gdbarch_init): Update.
5022 * vax-tdep.c (vax_gdbarch_init): Update.
5023 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5024 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5025
5026 * config/arc/tm-arc.h: Update.
5027 * config/d30v/tm-d30v.h: Update.
5028 * config/fr30/tm-fr30.h: Update.
5029 * config/h8300/tm-h8300.h: Update.
5030 * config/h8500/tm-h8500.h: Update.
5031 * config/i386/tm-i386.h: Update.
5032 * config/i386/tm-ptx.h: Update.
5033 * config/i386/tm-symmetry.h: Update.
5034 * config/i960/tm-i960.h: Update.
5035 * config/m32r/tm-m32r.h: Update.
5036 * config/m68k/tm-delta68.h: Update.
5037 * config/m68k/tm-linux.h: Update.
5038 * config/m68k/tm-m68k.h: Update.
5039 * config/m88k/tm-m88k.h: Update.
5040 * config/mcore/tm-mcore.h: Update.
5041 * config/mips/tm-mips.h: Update.
5042 * config/mn10200/tm-mn10200.h: Update.
5043 * config/pa/tm-hppa.h: Update.
5044 * config/pa/tm-hppa64.h: Update.
5045 * config/sparc/tm-sp64.h: Update.
5046 * config/sparc/tm-sparc.h: Update.
5047 * config/sparc/tm-sparclet.h: Update.
5048 * config/z8k/tm-z8k.h: Update.
5049
5050 2002-06-14 Andrew Cagney <cagney@redhat.com>
5051
5052 * Makefile.in (i386_linux_tdep_h): Define.
5053 (i386_tdep_h, i387_tdep_h): Define.
5054 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5055 $(i386_tdep_h) and $(i387_tdep_h).
5056 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5057
5058 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5059
5060 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5061 Already covered by the default.
5062
5063 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5064 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5065 (i386_gdbarch_init): Initialize long_double_format and long_double
5066 bit.
5067
5068 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5069 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5070 Move these to ...
5071 * config/i386/i386sol2.mh: ... here.
5072 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5073 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5074 (SIGCONTEXT_PC_OFFSET): Remove define.
5075 (IN_SIGTRAMP): Remove define.
5076 * i386-sol2-tdep.c: New file.
5077
5078 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5079 * config/i386/tm-i386nw.h: Removed.
5080
5081 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5082 USE_STRUCT_CONVENTION): Remove defines.
5083 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5084 (get_longjmp_target): Remove prototype.
5085 (IN_SIGTRAMP): Remove define.
5086 (i386bsd_in_sigtramp): Remove prototype.
5087 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5088 function. Update comment accordingly
5089 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5090 (FRAME_SAVED_PC): Remove define.
5091 (i386bsd_frame_saved_pc): Remove prototype.
5092 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5093 GET_LONGJMP_TARGET): Remove defines.
5094 (get_longjmp_target): Remove prototype.
5095 (IN_SIGTRAMP): Remove define.
5096 (i386bsd_in_sigtramp): Remove prototype.
5097 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5098 function. Update comment accordingly
5099 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5100 (FRAME_SAVED_PC): Remove define.
5101 (i386bsd_frame_saved_pc): Remove prototype.
5102 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5103 Remove prototype.
5104 (USE_STRUCT_CONVENTION): Remove prototype.
5105 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5106 declaration.
5107 (_initialize_i386bsd_nat): Revise logic to determine some
5108 constants at compile time when compiling a native GDB. Warn if
5109 things don't match up with what we expect.
5110 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5111 Remove variables.
5112 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5113 to use date stored in `struct gdbarch_tdep'.
5114 (i386bsd_sigcontext_offset): Remove varaible.
5115 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5116 stored in `struct gdbarch_tdep'.
5117 (i386bsd_frame_saved_pc): Make static.
5118 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5119 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5120 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5121 i386fbsd4_sc_pc_offset): New variables.
5122 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5123 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5124 functions.
5125 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5126 functions.
5127 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5128 Modify the value of i386fbsd_sigtramp_start and
5129 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5130 i386fbsd_sigtramp_end.
5131 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5132 function.
5133
5134 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5135 define to i386-linux-tdep.h.
5136 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5137 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5138 defines.
5139 (i386_linux_register_name, i386_linux_register_byte,
5140 i386_linux_register_raw_size): Remove prototypes.
5141 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5142 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5143 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5144 TARGET_WRITE_PC): Remove defines.
5145 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5146 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5147 i386_linux_write_pc): Remove prototypes.
5148 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5149 (get_longjmp_target): Remove prototype.
5150 * i386-linux-tdep.h: New file.
5151 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5152 * i386-linux-tdep.c: Include "i386-tdep.h" and
5153 "i386-linux-tdep.h".
5154 (i386_linux_register_name, i386_linux_register_byte,
5155 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5156 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5157 Make static.
5158 (i386_linux_init_abi): New function.
5159 (_initialize_i386_linux_tdep): New function.
5160
5161 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5162 (i386_saved_pc_after_call): Remove prototype.
5163 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5164 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5165 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5166 (i386_register_name, i386_stab_reg_to_regnum,
5167 i386_dwarf_reg_to_regnum): Remove prototypes.
5168 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5169 SIZEOF_SSE_REGS): Remove defines.
5170 (REGISTER_BYTES): Remove define.
5171 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5172 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5173 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5174 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5175 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5176 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5177 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5178 (get_longjmp_target): Remove prototype.
5179 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5180 (sigtramp_saved_pc): Remove define.
5181 (i386v4_sigtramp_saved_pc): Remove prototype.
5182 * config/i386/tm-go32.h (FRAME_CHAIN,
5183 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5184 (i386go32_frame_saved_pc): Remove prototype.
5185 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5186 (get_longjmp_target): Remove prototype.
5187 * i386-tdep.h: Include "osabi.h".
5188 (enum i386_abi): Removed.
5189 (enum struct_return): New enum.
5190 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5191 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5192 sc_pc_offset members.
5193 (i386_gdbarch_register_os_abi): Remove prototype.
5194 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5195 I386_SSE_NUM_REGS): New defines.
5196 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5197 I386_SSE_SIZEOF_REGS): New defines.
5198 (i386_register_name, i386_register_byte, i386_register_raw_size):
5199 New prototypes.
5200 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5201 (i386bsd_sigtramp_saved_pc): New prototype.
5202 * i386-tdep.c: Don't include "elf-bfd.h".
5203 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5204 i386_frame_chain, i386_saved_pc_after_call): Make static.
5205 (i386_frame_saved_pc): Rewrite to call architecture dependent
5206 function to deal with signal handlers. Make static.
5207 (i386go32_frame_saved_pc): Removed.
5208 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5209 Removed.
5210 (i386_get_longjmp_target): New function.
5211 (default_struct_convention, pcc_struct_convention,
5212 reg_struct_convention, valid_conventions, struct_convention): New
5213 variables.
5214 (i386_use_struct_convention): New function.
5215 (i386v4_sigtramp_saved_pc): Renamed to
5216 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5217 (i386_pc_in_sigtramp): New function.
5218 (i386_abi_names): Removed.
5219 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5220 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5221 Removed.
5222 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5223 i386_gdbarch_register_os_abi): Removed.
5224 (struct i386_abi_handler): Removed.
5225 (i386_abi_handler_list): Removed.
5226 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5227 functions.
5228 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5229 i386_nw_init_abi): New functions.
5230 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5231 Use set_gdbarch_xxx() calls instead of relying on macros for a
5232 number of calls.
5233 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5234 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5235 Register the various architecture variants defined in this file.
5236
5237 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5238
5239 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5240 (struct main_type): Remove arg_types member. Update comments for
5241 struct field.
5242 (TYPE_ARG_TYPES): Remove.
5243 (TYPE_FN_FIELD_ARGS): Update.
5244 (smash_to_method_type): Update prototype.
5245
5246 * c-typeprint.c (cp_type_print_method_args): Take method type
5247 instead of argument list. Use new argument layout. Simplify.
5248 (c_type_print_args): Use new argument layout. Simplify.
5249 (c_type_print_base): Update call to cp_type_print_method_args.
5250 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5251 argument; use die->type instead. Update call to
5252 smash_to_method_type.
5253 (read_structure_scope): Update call to dwarf2_add_member_fn.
5254 * gdbtypes.c (allocate_stub_method): Update comment.
5255 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5256 Use new argument layout.
5257 (check_stub_method): Use new argument layout. Don't count
5258 void as an argument.
5259 (print_arg_types): Update comments. Use new argument layout.
5260 (recursive_dump_type): Don't print arg_types member.
5261 * hpread.c (hpread_read_struct_type): Use new argument layout.
5262 (fixup_class_method_type): Likewise.
5263 (hpread_type_lookup): Likewise.
5264 * stabsread.c (read_type): Update calls to read_args and
5265 smash_to_method_type.
5266 (read_args): Use new argument layout. Simplify.
5267 * valops.c (typecmp): Use new argument layout. Update parameters
5268 and comments. Simplify.
5269 (hand_function_call): Use new argument layout.
5270 (search_struct_method): Update call to typecmp.
5271 (find_overload_match): Use new argument layout.
5272
5273 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5274
5275 * NEWS: Mention multithreaded debug support for gdbserver.
5276
5277 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5278
5279 * MAINTAINERS: Mention NEWS.
5280
5281 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5282
5283 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5284 (struct mips_objfile_private, compare_pdr_entries): New.
5285 (non_heuristic_proc_desc): Read the ".pdr" section if it
5286 is present.
5287
5288 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5289
5290 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5291 (arm_debug): New static variable.
5292 (_initialize_arm_tdep): Add ``set debug arm'' command.
5293
5294 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5295
5296 * Makefile.in (sim_arm_h): Define.
5297 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5298 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5299 (arm_register_sim_regno): New function, map an internal REGNUM
5300 onto a simulator register number.
5301 (arm_gdbarch_init): Set register_sim_regno.
5302
5303 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5304
5305 * MAINTAINERS: Add self.
5306
5307 2002-06-11 Jim Blandy <jimb@redhat.com>
5308
5309 * source.c (source_info): Mention whether the symtab has
5310 information about preprocessor macros.
5311
5312 Call the command `info macro', not `show macro'.
5313 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5314 Fix error message.
5315 (_initialize_macrocmd): Register `info_macro_command' in
5316 `infolist', not `showlist'.
5317
5318 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5319
5320 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5321 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5322 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5323 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5324 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5325 unconditionally.
5326 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5327 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5328 (_initialize_mips_tdep): Remove dead code.
5329 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5330 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5331 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5332 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5333 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5334 MIPS_LAST_FP_ARG_REGNUM): Remove.
5335
5336 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5337
5338 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5339 (unwind_tmp_obstack_free, parse_frame_info)
5340 (update_context, cfi_read_fp, cfi_write_fp)
5341 (cfi_frame_chain, cfi_init_extra_frame_info)
5342 (cfi_virtual_frame_pointer): Use the above function.
5343 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5344
5345 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5346
5347 * v850-tdep.c (v850_type_is_scalar): New function.
5348 (v850_use_struct_convention): Match current gcc implementation
5349 as close as possible.
5350 (v850_push_arguments): Fix stack_offset handling. Don't write
5351 struct_addr into register. This is done by v850_store_struct_return.
5352 (v850_extract_return_value): Care for structs.
5353 (v850_store_return_value): Ditto.
5354 (v850_store_struct_return): Actually write address.
5355
5356 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5357
5358 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5359 without debug information too.
5360
5361 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5362
5363 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5364 Make multi-arch pure.
5365 * gdbarch.h, gdbarch.c: Re-generate.
5366 * arm-tdep.c (arm_print_float_info): Update.
5367 * arch-utils.h (default_print_float_info): Update.
5368 * arch-utils.c (default_print_float_info): Update.
5369 * infcmd.c (float_info): Update call.
5370
5371 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5372
5373 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5374 the front of the initialize list.
5375
5376 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5377
5378 * infrun.c (struct inferior_status): Replace fields
5379 selected_frame_address and selected_level with field
5380 selected_frame_id.
5381 (save_inferior_status): Update. Use get_frame_id.
5382 (struct restore_selected_frame_args): Delete.
5383 (restore_selected_frame): Update. Use frame_find_by_id.
5384 (restore_inferior_status): Update.
5385
5386 * breakpoint.h (struct breakpoint): Change type of
5387 watchpoint_frame to frame_id.
5388 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5389 call to get_current_frame.
5390 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5391 get_current_frame.
5392 (watchpoint_check): Use frame_find_by_id.
5393
5394 * frame.h (record_selected_frame): Delete declaration.
5395 * stack.c (record_selected_frame): Delete function.
5396
5397 * frame.h (struct frame_id): Define.
5398 (get_frame_id): Declare.
5399 (frame_find_by_id): Declare.
5400 * frame.c (frame_find_by_id): New function.
5401 (get_frame_id): New function.
5402
5403 2002-06-10 Andrey Volkov <avolkov@transas.com>
5404
5405 * ser-e7kpc.c: Fix duplicated define and call of
5406 _initialize_ser_e7000pc
5407
5408 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5409
5410 * signals/signals.c (target_signal_from_host): Fix #ifdef
5411 SIGRTMIN case.
5412 (do_target_signal_to_host): Likewise.
5413
5414 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5415
5416 * mips-tdep.c (mips_find_abi_section): New function.
5417 (mips_gdbarch_init): Call it.
5418
5419 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5420
5421 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5422 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5423 after Andrew's 2002-06-08 gdbarch change.
5424
5425 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5426
5427 * i386-linux-nat.c (suppy_gregset): Don't supply
5428 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5429 register cache.
5430 (fill_gregset): Don't fetch it under the same circumstances.
5431
5432 2002-06-09 Andrew Cagney <cagney@redhat.com>
5433
5434 * Makefile.in (callback_h): Define.
5435 (remote_sim_h): Update path to remote-sim.h.
5436 (remote-rdp.o): Add $(callback_h).
5437 (remote-sim.o): Use $(callback_h).
5438 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5439 * remote-rdp.c: Include "gdb/callback.h".
5440
5441 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5442
5443 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5444 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5445
5446 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5447
5448 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5449 * rdi-share/serpardr.c: Ditto.
5450 * rdi-share/unixcomm.c: Ditto.
5451 * rdi-share/serdrv.c: Ditto.
5452 * rdi-share/hostchan.h: Ditto.
5453 * rdi-share/hostchan.c: Ditto.
5454 * rdi-share/host.h: Ditto.
5455 * rdi-share/devsw.c: Ditto.
5456
5457 * objfiles.h: Change type of obj_private to void pointer.
5458 * pa64solib.c: Update copyright. Don't include "assert.h", use
5459 strcmp instead of STREQ, use LONGEST, do not use PTR
5460 * somsolib.c: Ditto.
5461
5462 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5463 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5464 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5465
5466 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5467
5468 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5469 (default_get_saved_register): Delete function.
5470 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5471 generic_unwind_get_saved_register.
5472 * gdbarch.h, gdbarch.c: Re-generate.
5473
5474 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5475
5476 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5477 generic_func_frame_chain_valid.
5478 * gdbarch.h, gdbarch.c: Re-generate.
5479 * blockframe.c (generic_func_frame_chain_valid): Only check
5480 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5481 passing FP to PC_IN_CALL_DUMMY.
5482 Fix PR gdb/360.
5483
5484 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5485
5486 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5487 (register_gdbarch_data): Initialize init_p.
5488 (gdbarch_data): Initialize data pointer using the init function.
5489 (init_gdbarch_data): Delete function.
5490 (gdbarch_update_p): Update.
5491 (initialize_non_multiarch): Update.
5492 (struct gdbarch): Add field initialized_p.
5493 * gdbarch.h, gdbarch.c: Re-generate.
5494
5495 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5496
5497 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5498 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5499 better do the things actually here.
5500 * x86-64-tdep.c (x86_64_register_name2nr): New.
5501 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5502 (x86_64_gdbarch_init): Respect the above change.
5503 * x86-64-tdep.h (x86_64_register_name2nr)
5504 (x86_64_register_nr2name): Add prototypes.
5505 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5506
5507 2002-06-06 Michael Snyder <msnyder@redhat.com>
5508
5509 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5510 Delete extra braces and re-indent.
5511 (d10v_store_return_value): Char return values
5512 must be shifted over by one byte in R0.
5513 (d10v_extract_return_value): Delete extra braces, re-indent.
5514
5515 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5516
5517 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5518 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5519 (d10v_integer_to_address): Rewrite.
5520 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5521 the d10v specific functions which take care of converting to the
5522 correct space.
5523
5524 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5525
5526 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5527 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5528
5529 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5530
5531 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5532 includes.
5533 * config/tm-linux.h: Ditto.
5534 * config/alpha/tm-alphalinux.h: Ditto.
5535 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5536 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5537 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5538 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5539 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5540 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5541 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5542 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5543 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5544 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5545 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5546 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5547 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5548 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5549 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5550 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5551 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5552 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5553 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5554 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5555 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5556 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5557 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5558 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5559 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5560 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5561 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5562 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5563 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5564 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5565 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5566 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5567 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5568 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5569 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5570 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5571 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5572
5573 2002-05-04 Aidan Skinner <aidan@velvet.net>
5574
5575 * ada-exp.tab.c: New file
5576 * ada-exp.y: New file
5577 * ada-lang.c: New file
5578 * ada-lang.h: New file
5579 * ada-lex.c: New file
5580 * ada-lex.l: New file
5581 * ada-tasks.c: New file
5582 * ada-typeprint.c: New file
5583 * ada-valprint.c: New file
5584
5585 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5586
5587 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5588 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5589
5590 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5591
5592 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5593 insetead of ppc-linux-tdep.o.
5594 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5595 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5596
5597 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5598
5599 2002-05-07 Christian Groessler <chris@groessler.org>
5600 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5601 bit register contents for little endian hosts.
5602
5603 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5604
5605 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5606 any maintainer.
5607
5608 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5609
5610 * gdbarch.h: Regenerate.
5611
5612 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5613
5614 * MAINTAINERS: Add everyone to write-after-approval list.
5615
5616 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5617
5618 * stack.c (frame_info): Use frame_register_unwind instead of
5619 saved_regs. Mention when the SP is on the stack or in a register.
5620
5621 * frame.h (frame_register_unwind_ftype): Define. Document.
5622 (struct frame_info): Add field register_unwind and
5623 register_unwind_cache.
5624 (frame_register_unwind): Declare.
5625 (generic_unwind_get_saved_register): Declare.
5626
5627 * frame.c (frame_register_unwind): New function.
5628 (generic_unwind_get_saved_register): New function.
5629
5630 * blockframe.c (generic_call_dummy_register_unwind): New function.
5631 (frame_saved_regs_register_unwind): New function.
5632 (set_unwind_by_pc): New function.
5633 (create_new_frame): New function.
5634 (get_prev_frame): New function.
5635
5636 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5637
5638 * a29k-share/: Delete directory.
5639 * remote-vx29k.c: Delete file.
5640
5641 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5642
5643 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5644 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5645
5646 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5647
5648 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5649 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5650 (sparc64nbsd-nat.o)
5651 (sparcnbsd-nat.o)
5652 (sparcnbsd-tdep.o): New dependency lists.
5653 * NEWS: Note new UltraSPARC NetBSD native configuration.
5654 * configure.host (sparc64-*-netbsd*): New host.
5655 * configure.tgt (sparc-*-netbsdelf*)
5656 (sparc-*-netbsd*): Set gdb_target to nbsd.
5657 (sparc64-*-netbsd*): New target.
5658 * sparc64nbsd-nat.c: New file.
5659 * sparcnbsd-nat.c: New file.
5660 * sparcnbsd-tdep.c: New file.
5661 * sparcnbsd-tdep.h: New file.
5662 * config/sparc/nbsd.mt: New file.
5663 * config/sparc/nbsd64.mh: New file.
5664 * config/sparc/nbsd64.mt: New file.
5665 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5666 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5667 (HOST_IPC): Remove.
5668 * config/sparc/nbsdaout.mt: Remove.
5669 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5670 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5671 (HOST_IPC): Remove.
5672 * config/sparc/nbsdelf.mt: Remove.
5673 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5674 sparc-nat.c compatiblity defines.
5675 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5676 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5677 * config/sparc/tm-nbsd64.h: New file.
5678 * config/sparc/tm-nbsdaout.h: Remove.
5679 * config/sparc/xm-nbsd.h: Remove.
5680
5681 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5682
5683 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5684 * sparc-tdep.c: Include osabi.h.
5685 (gdbarch_tdep): Add osabi member.
5686 (_initialize_sparc_tdep): Use gdbarch_register.
5687 (sparc_gdbarch_init): Use generic OS ABI framework.
5688 (sparc_dump_tdep): New function.
5689
5690 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5691
5692 * corefile.c (do_captured_read_memory_integer): Return non-zero
5693 result.
5694 (safe_read_memory_integer): Copy result of memory read when
5695 status is non-zero. Also, add comments.
5696
5697 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5698
5699 * Makefile.in (ppc_tdep_h): Define.
5700 (ppc-linux-nat.o)
5701 (ppc-linux-tdep.o)
5702 (rs6000-tdep.o): Use $(ppc_tdep_h).
5703 (ppc-sysv-tdep.o)
5704 (ppcnbsd-nat.o)
5705 (ppcnbsd-tdep.o): New dependency lists.
5706 * ppc-tdep.h: Use generic OS ABI framework.
5707 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5708 (ppc_linux_init_abi): New functions.
5709 (ppc_sysv_abi_broken_use_struct_convention)
5710 (ppc_sysv_abi_use_struct_convention)
5711 (ppc_sysv_abi_push_arguments): Move to...
5712 * ppc-sysv-tdep.c: ...here.
5713 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5714 * rs6000-tdep.c (process_note_abi_tag_sections)
5715 (get_elfosabi): Remove.
5716 (rs6000_gdbarch_init): Use generic OS ABI framework.
5717 (rs6000_dump_tdep): New function.
5718 (_initialize_rs6000_tdep): Use gdbarch_register.
5719 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5720 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5721 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5722 of ppc-linux-tdep.o.
5723 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5724 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5725 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5726 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5727 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5728 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5729
5730 2002-05-29 Jim Blandy <jimb@redhat.com>
5731
5732 * macroscope.c (default_macro_scope): Put `void' in empty argument
5733 list.
5734
5735 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5736
5737 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5738 * arch-utils.c: Include "sim-regno.h".
5739 * gdbarch.sh: Don't include "sim-regno.h".
5740 * gdbarch.h, gdbarch.c: Regenerate.
5741 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5742 here.
5743 * arch-utils.h (legacy_register_sim_regno): To here.
5744 * remote-sim.c (legacy_register_sim_regno): Move function from
5745 here.
5746 * arch-utils.c (legacy_register_sim_regno): To here.
5747
5748 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5749
5750 * sim-regno.h: New file.
5751 * Makefile.in (sim_regno_h): Define.
5752 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5753 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5754 (legacy_register_sim_regno): New function.
5755 (one2one_register_sim_regno): New function.
5756 (gdbsim_fetch_register): Rewrite.
5757 (gdbsim_store_register): Only store a register when
5758 REGISTER_SIM_REGNO is valid.
5759 * d10v-tdep.c: Include "sim-regno.h".
5760 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5761 (d10v_ts3_register_sim_regno): Ditto.
5762 * gdbarch.sh: Include "sim-regno.h".
5763 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5764 * gdbarch.h, gdbarch.c: Regenerate.
5765 * arch-utils.h (default_register_sim_regno): Delete declaration.
5766 * arch-utils.c (default_register_sim_regno): Delete function.
5767
5768 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5769
5770 * ppcnbsd-nat.c: Rewrite.
5771 * ppcnbsd-tdep.c: New file.
5772 * ppcnbsd-tdep.h: New file.
5773 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5774 solib.o, and solib-svr4.o.
5775 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5776 nbsd-tdep.o, and corelow.o.
5777
5778 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5779
5780 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5781 `tr' and `sed'. Mention that `broken' targets are not expected to
5782 build.
5783
5784 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5785
5786 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5787 Let PC point right after the prologue before looking up symbols.
5788
5789 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5790
5791 * i386-tdep.c (i386_register_virtual_type): Return
5792 builtin_type_vec128i for SSE registers.
5793
5794 * gdbtypes.h (builtin_type_vec128i): Declare.
5795
5796 * gdbtypes.c (build_builtin_type_vec128i): New function.
5797 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5798 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5799 (build_gdbtypes): Initialize new builtin vector types.
5800 (_initialize_gdbtypes): Register new vector types with gdbarch.
5801
5802 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5803
5804 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5805 since it has been multi-arch'd.
5806 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5807 Move Alpha and VAX multi-arch news entries to same section
5808 as other multi-arch news.
5809
5810 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5811
5812 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5813 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5814 static. Rename some register numbers to put them in ns32k-tdep
5815 private namespace.
5816 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5817 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5818 functions.
5819 (_initialize_ns32k_tdep): Use gdbarch_register.
5820 * ns32k-tdep.h: New file.
5821 * ns32knbsd-tdep.c: New file.
5822 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5823 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5824 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5825 REGISTER_BYTES, REGISTER_BYTE): Remove.
5826 * config/ns32k/tm-ns32k.h: New file.
5827 * config/ns32k/tm-umax.h: Remove.
5828
5829 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5830
5831 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5832 ns32k_store_struct_return, ns32k_extract_return_value,
5833 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5834 functions.
5835 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5836 ns32k_saved_pc_after_call.
5837 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5838 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5839 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5840 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5841 ns32k_extract_struct_value_address.
5842
5843 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5844
5845 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5846 ns32k_fix_call_dummy): New.
5847 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5848 ns32k_call_dummy_words.
5849 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5850 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5851 CALL_DUMMY_NARGS): Remove.
5852 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5853
5854 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5855
5856 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5857 ns32k_frame_saved_pc, ns32k_frame_args_address,
5858 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5859 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5860 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5861 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5862 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5863 (BREAKPOINT): Remove..
5864 (FRAME_CHAIN): Define as ns32k_frame_chain.
5865 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5866 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5867 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5868 (FRAME_FIND_SAVED_REGS): Remove.
5869 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5870 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5871 (POP_FRAME): Define as ns32k_pop_frame.
5872
5873 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5874
5875 * ns32k-tdep.c (ns32k_register_byte_32082,
5876 ns32k_register_byte_32382, ns32k_register_raw_size,
5877 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5878 functions.
5879 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5880 ns32k_register_byte_32382.
5881 * config/ns32k/tm-umax.h: Update copyright years.
5882 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5883 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5884 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5885 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5886 (ns32k_get_enter_addr): Fix prototype.
5887
5888 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5889
5890 * ns32k-tdep.c: Update copyright years.
5891 (ns32k_register_name_32082): New function.
5892 (ns32k_register_name_32382): Ditto.
5893 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5894 (REGISTER_NAME): Define as ns32k_register_name_32382.
5895 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5896 (REGISTER_NAME): Define as ns32k_register_name_32082.
5897
5898 2002-05-24 Jim Blandy <jimb@redhat.com>
5899
5900 * dwarf2read.c (free_line_header): Use xfree, not free.
5901
5902 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5903
5904 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5905 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5906
5907 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5908
5909 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5910
5911 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5912
5913 From Ross Alexander at NEC Europe:
5914 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5915
5916 2002-05-23 Michael Snyder <msnyder@redhat.com>
5917
5918 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5919 for input, rather than parse_and_eval_address.
5920
5921 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5922
5923 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5924 * Makefile.in (sim_d10v_h): Update definition.
5925
5926 2002-05-24 Andrew Cagney <cagney@redhat.com>
5927
5928 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5929 change `2002-05-22 Michael Snyder' below.
5930 (d10v_push_arguments): Ditto.
5931 (d10v_extract_return_value): Ditto.
5932
5933 2002-05-23 Jim Blandy <jimb@redhat.com>
5934
5935 * macrotab.c (check_for_redefinition): Don't complain if the new
5936 definition is the same as the previous one. Take more arguments
5937 to allow the comparison.
5938 (macro_define_object, macro_define_function): Pass more arguments
5939 to check_for_redefinition.
5940
5941 2002-05-22 Michael Snyder <msnyder@redhat.com>
5942
5943 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5944 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5945 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5946 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5947 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5948 Add a temp variable to save a call (and a memory read).
5949 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5950 if possible (so that PC_IN_CALL_DUMMY will work).
5951
5952 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5953
5954 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5955
5956 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5957
5958 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5959 fde->cie_ptr.
5960 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5961 (dwarf2_build_frame_info): Add offset to fde->initial_location
5962 so that frames of shared libraries are mapped correctly.
5963 (execute_stack_op): Change type of 'result' from ULONGEST to
5964 CORE_ADDR.
5965
5966 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5967
5968 * config/alpha/tm-nbsd.h: Include solib.h.
5969
5970 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5971
5972 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5973 assumptions about the host's byte order.
5974
5975 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5976
5977 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5978 to dependency list.
5979 * alphanbsd-tdep.c: Include solib-svr4.h.
5980 * shnbsd-tdep.c: Ditto.
5981
5982 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5983
5984 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5985 nbsd-tdep.h to dependency list.
5986 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5987 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5988 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5989 nbsdaout.mh and nbsdelf.mh consistently.
5990 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5991 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5992 nbsdaout.mt and nbsdelf.mh consistently.
5993 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5994 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5995 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5996 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5997 a.out shared library stuff from here...
5998 * config/nm-nbsdaout.h: ...to here.
5999 * config/tm-nbsd.h: Remove.
6000 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6001 * config/arm/nbsd.mh: Remove.
6002 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6003 nbsd-tdep.o.
6004 * config/arm/nbsdaout.mh: New file.
6005 * config/arm/nbsdelf.mh: New file.
6006 * config/arm/nm-nbsdaout.h: New file.
6007 * config/i386/nbsd.mh: Remove.
6008 * config/i386/nbsd.mt: Remove.
6009 * config/i386/nbsdaout.mh: New file.
6010 * config/i386/nbsdaout.mt: New file.
6011 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6012 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6013 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6014 i386_register_u_addr): Remove.
6015 * config/i386/nm-nbsdaout.h: New file.
6016 * config/i386/nm-nbsdelf.h: Remove.
6017 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6018 (USE_STRUCT_CONVENTION): Remove.
6019 * config/i386/tm-nbsdaout.h: New file.
6020 * config/i386/tm-nbsdelf.h: Remove.
6021 * config/m68k/nbsd.mh: Remove.
6022 * config/m68k/nbsd.mt: Remove.
6023 * config/m68k/nbsdaout.mh: New file.
6024 * config/m68k/nbsdaout.mt: New file.
6025 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6026 * config/m68k/nm-nbsdaout.h: New file.
6027 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6028 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6029 * config/ns32k/nbsd.mh: Remove.
6030 * config/ns32k/nbsd.mt: Remove.
6031 * config/ns32k/nbsdaout.mh: New file.
6032 * config/ns32k/nbsdaout.mt: New file.
6033 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6034 * config/ns32k/nm-nbsdaout.h: New file.
6035 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6036 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6037 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6038 (SVR4_SHARED_LIBS): Remove.
6039 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6040 * config/sparc/nbsd.mh: Remove.
6041 * config/sparc/nbsd.mt: Remove.
6042 * config/sparc/nbsdaout.mh: New file.
6043 * config/sparc/nbsdaout.mt: New file.
6044 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6045 * config/sparc/nbsdelf.mt: New file.
6046 * config/sparc/nm-nbsdaout.h: New file.
6047 * config/sparc/nm-nbsdelf.h: Remove.
6048 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6049 * config/sparc/tm-nbsdaout.h: New file.
6050
6051 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6052
6053 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6054 mipsnbsd-tdep.c
6055 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6056
6057 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6058
6059 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6060 shnbsd-nat.c.
6061 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6062
6063 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6064
6065 * NEWS: Note new MIPS NetBSD native configuration.
6066 * configure.host (mips*-*-netbsd*): New host.
6067 * configure.tgt (mips*-*-netbsd*): New target.
6068 * mipsnbsd-nat.c: New file.
6069 * mipsnbsd-tdep.c: New file.
6070 * mipsnbsd-tdep.h: New file.
6071 * config/mips/nbsd.mh: New file.
6072 * config/mips/nbsd.mt: New file.
6073 * config/mips/nm-nbsd.h: New file.
6074 * config/mips/tm-nbsd.h: New file.
6075
6076 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6077
6078 * Makefile.in (SFILES): Add osabi.c.
6079 (COMMON_OBS): Add osabi.o.
6080 (osabi.o): New dependency list.
6081 * osabi.c: New file.
6082 * osabi.h: New file.
6083 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6084
6085 * Makefile.in (alpha_tdep_h): Define and use instead of
6086 alpha-tdep.h.
6087 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6088 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6089 Remove.
6090 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6091 * alpha-tdep.h: Include osabi.h.
6092 (alpha_abi): Remove.
6093 (gdbarch_tdep): Use generic OS ABI framework.
6094 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6095 gdbarch_register_osabi.
6096 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6097 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6098 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6099
6100 * Makefile.in (sh_tdep_h): Add osabi.h.
6101 * sh-tdep.h (sh_osabi): Remove.
6102 (gdbarch_tdep): Use generic OS ABI framework.
6103 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6104 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6105 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6106 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6107
6108 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6109 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6110 gdbarch_register_osabi.
6111 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6112 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6113 (get_elfosabi): Rename to...
6114 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6115 ABI framework support routines.
6116 (arm_gdbarch_init): Use generic OS ABI framework.
6117 (arm_dump_tdep): Likewise.
6118 (_initialize_arm_tdep): Likewise.
6119 * arm-tdep.h: Include osabi.h.
6120 (arm_abi): Remove.
6121 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6122 osabi member.
6123 (arm_gdbarch_register_os_abi): Remove prototype.
6124 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6125 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6126
6127 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6128 * mips-tdep.c: Include osabi.h.
6129 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6130 OS ABI framework.
6131
6132 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6133
6134 * h8300-tdep.c: Fix formatting.
6135
6136 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6137
6138 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6139 printing vector registers.
6140
6141 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6142
6143 From Fernando Nasser:
6144 * remote.c (remote_async_open_1): Re-throw the exception when the
6145 connection fails.
6146 (remote_cisco_open): Ditto.
6147 (remote_open_1): Ditto.
6148
6149 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6150
6151 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6152 (remote_start_remote): Add uiout parameter. Pass through to
6153 remote_start_remote_dummy.
6154 (remote_open_1): Use catch_exception instead of catch_errors.
6155 (remote_async_open_1): Ditto.
6156 (remote_cisco_open): Ditto.
6157
6158 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6159
6160 * remote.c (remote_start_remote): Replace PTR with void pointer.
6161 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6162 static.
6163
6164 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6165
6166 * gdb_indent.sh: Allow the script to be run in the sim directory.
6167
6168 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6169
6170 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6171 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6172
6173 * corelow.c (core_open): Only call set_gdbarch_from_file if
6174 exec_bfd is NULL.
6175
6176 2002-05-17 Andrey Volkov <avolkov@transas.com>
6177
6178 * h8300-tdep.c: Add support of EXR register
6179 * config/h8300/tm-h8300.h: Ditto.
6180
6181 2002-05-17 Andrey Volkov <avolkov@transas.com>
6182
6183 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6184
6185 2002-05-17 Andrey Volkov <avolkov@transas.com>
6186
6187 * h8300-tdep.c: Change literal regnums to REGNO.
6188
6189 2002-05-17 Jim Blandy <jimb@redhat.com>
6190
6191 * NEWS: Note addition of macro support.
6192
6193 Expand preprocessor macros in C expressions.
6194 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6195 (scan_macro_expansion, scanning_macro_expansion,
6196 finished_macro_expansion): New function declarations.
6197 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6198 variable declarations.
6199 * parser-defs.h (expression_context_pc): New declaration.
6200 * parse.c (expression_context_pc): New variable.
6201 (parse_exp_1): Set expression_context_pc, as well as
6202 expression_context_block.
6203 * c-exp.y (yylex): If we're not already reading the result of a
6204 macro expansion, try to macro-expand the next token. When we're
6205 done scanning a macro expansion, switch back to the mainline text.
6206 Commas and `if's in a macro's expansion don't terminate the input.
6207 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6208 (macro_original_text, macro_expanded_text,
6209 expression_macro_lookup_func, expression_macro_lookup_baton): New
6210 variables.
6211 (scan_macro_expansion, scanning_macro_expansion,
6212 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6213 c_preprocess_and_parse): New functions.
6214 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6215 c_preprocess_and_parse, instead of c_parse.
6216 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6217 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6218
6219 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6220
6221 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6222 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6223 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6224
6225 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6226
6227 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6228
6229 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6230
6231 * Makefile.in (sh_tdep_h): Define and use.
6232 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6233 register enum): Move to...
6234 * * sh-tdep.h: ...here.
6235 * sh-tdep.c: Include sh-tdep.h.
6236 * sh3-rom.c: Likewise.
6237 * shnbsd-tdep.c: Likewise.
6238
6239 2002-05-16 Michael Snyder <msnyder@redhat.com>
6240
6241 * arm-tdep.c: Spelling fix in comment.
6242
6243 2002-05-16 Jim Blandy <jimb@redhat.com>
6244
6245 Add commands for manually expanding macros and showing their
6246 definitions.
6247 * macrocmd.c, macroscope.c, macroscope.h: New files.
6248 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6249 (macroscope_h): New variable.
6250 (HFILES_NO_SRCDIR): Add macroscope.h.
6251 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6252 (macroscope.o, macrocmd.o): New rules.
6253
6254 Teach the Dwarf 2 reader to read macro information.
6255 * dwarf2read.c: #include "macrotab.h".
6256 (dwarf_macinfo_buffer): New variable.
6257 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6258 dwarf_macinfo_size.
6259 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6260 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6261 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6262 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6263 dwarf2_macro_spaces_in_definition): New complaints.
6264 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6265 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6266 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6267 the partial symbol table.
6268 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6269 from what's recorded in the partial symbol table.
6270 (read_file_scope): If the compilation unit has a
6271 `DW_AT_macro_info' attribute, read its macro information.
6272 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6273
6274 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6275
6276 Fix PR gdb/546
6277 * ser-tcp.c: Don't include <netinet/udp.h>.
6278
6279 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6280
6281 * MAINTAINERS: Update my email address.
6282
6283 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6284
6285 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6286 include file of the same name.
6287
6288 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6289
6290 * configure.tgt: Mark v850 as multi-arched.
6291 * config/v850/tm-v850.h: Remove file.
6292 * config/v850/v850.mt: Eliminate TM_FILE.
6293
6294 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6295
6296 * v850-tdep.c: Full multi-arch.
6297 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6298 Define GDB_MULTI_ARCH to 2.
6299
6300 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6301
6302 * p-exp.y (current_type): New static variable.
6303 Carries the type of the expression at the position that is parsed.
6304 (push_current_type, pop_current_type): Two new functions. Used
6305 to store/restore current_type in expression on specific tokens.
6306 (search_field): New static variable. Set to one after parsing a point
6307 as at that point only a FIELDNAME token should be searched.
6308 (FIELDNAME): New token. After a point only a token belonging to
6309 current_type type definition is allowed.
6310 (all over token rules): reset and change current_type according
6311 to rules.
6312 (exp '[' rule): insert implicit array index field if
6313 exp is a pascal string type.
6314
6315 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6316
6317 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6318 frame info. Use frame_info's saved_regs instead of matching member
6319 in extra_frame_info throughout.
6320 (v850_frame_init_saved_regs): New function.
6321 (v850_init_extra_frame_info): Move most functionality into
6322 v850_frame_init_saved_regs().
6323 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6324 (v850_frame_find_saved_regs): Remove declaration.
6325 (FRAME_FIND_SAVED_REGS): Remove definition.
6326 (v850_frame_init_saved_regs): Add declaration.
6327 (FRAME_INIT_SAVED_REGS): Add definition.
6328
6329 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6330
6331 * v850-tdep.c: Begin multi-arch'ing v850.
6332 (v850_target_architecture_hook): Remove function.
6333 (v850_gdbarch_init): New function. Add code previously in
6334 v850_target_architecture_hook().
6335 (_initialize_v850_tdep): Don't set target_architecture_hook.
6336 Call register_gdbarch_init() instead.
6337
6338 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6339
6340 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6341 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6342 (fixup_class_method_type): Likewise.
6343
6344 2002-05-15 Jim Blandy <jimb@redhat.com>
6345
6346 Add macro structures to GDB's symbol tables. Nobody puts anything
6347 in them yet.
6348 * symtab.h (struct symtab): New member: `macro_table'.
6349 * buildsym.h (pending_macros): New global variable.
6350 * buildsym.c: #include "macrotab.h".
6351 (buildsym_init): Initialize `pending_macros'.
6352 (end_symtab): If we found macro information while reading a CU's
6353 debugging info, do build a symtab structure for it. Make the
6354 symtab point to the macro information, and clear the
6355 `pending_macros' pointer which held it while we were reading the
6356 debug info.
6357 (really_free_pendings): Free any pending macro table.
6358 * objfiles.h (struct objfile): New member: `macro_cache'.
6359 * objfiles.c (allocate_objfile): Set allocate and free functions
6360 for the macro cache's objstack.
6361 (free_objfile): Empty the macro cache's obstack.
6362 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6363 set new allocate and free functions for it.
6364 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6365 free functions for the macro cache's objstack. (Why is this
6366 function building its own objfile?)
6367 * symmisc.c (print_objfile_statistics): Print statistics on the
6368 macro bcache.
6369 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6370
6371 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6372
6373 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6374 (REGISTER_U_ADDR): Delete definition.
6375 (arm_register_u_addr): Delete declaration.
6376
6377 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6378
6379 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6380 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6381
6382 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6383
6384 * regcache.c (register_valid): Revise comments refering to "Not
6385 available" and "unavailable".
6386 * frame.c (frame_register_read): Ditto.
6387 * findvar.c (value_of_register): Ditto.
6388
6389 2002-05-15 Andrew Cagney <cagney@redhat.com>
6390
6391 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6392 (remote-sim.o): Update dependencies.
6393 (d10v-tdep.o): Specify dependencies.
6394 (sim_d10v_h): Define.
6395
6396 2002-05-14 Jim Blandy <jimb@redhat.com>
6397
6398 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6399 * macrotab.c (macro_lookup_inclusion, find_definition,
6400 new_macro_table): Same.
6401
6402 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6403 not `! strcmp ()'. This is a dubious improvement.
6404 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6405
6406 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6407 although it's not necessary, to avoid a warning.
6408
6409 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6410
6411 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6412 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6413 TYPE_INSTANCE_FLAGS.
6414 (struct main_type): New.
6415 (struct type): Move most members to struct main_type. Change
6416 cv_type and as_type to new type_chain member. Add instance_flags.
6417 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6418 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6419 (finish_cv_type): Remove prototype.
6420 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6421 Set TYPE_CHAIN.
6422 (alloc_type_instance): New function.
6423 (smash_type): New function.
6424 (make_pointer_type, make_reference_type, make_function_type)
6425 (smash_to_member_type, smash_to_method_type): Call smash_type.
6426 (make_qualified_type): New function.
6427 (make_type_with_address_space): Call make_qualified_type.
6428 (make_cv_type): Likewise.
6429 (finish_cv_type): Remove unnecessary function.
6430 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6431 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6432 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6433 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6434 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6435 * hpread.c (hpread_read_struct_type): Likewise.
6436 * stabsread.c (read_struct_type): Likewise.
6437
6438 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6439
6440 * configure.tgt: Add a catch all sh* target, for cases like
6441 sh[2,3,4]-elf and sh-hms.
6442
6443 2002-05-14 Keith Seitz <keiths@redhat.com>
6444
6445 * event-loop.c (create_file_handler): Don't do anything but
6446 update data when we are given a fd which we are already
6447 monitoring.
6448
6449 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6450
6451 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6452 (update_context): Use __func__ in warnings.
6453
6454 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6455
6456 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6457 and tcp_close to net_open and net_close.
6458 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6459 using UDP if requested. Don't try to disable Nagle on UDP
6460 sockets.
6461 * remote.c (remote_serial_open): New function. Warn about UDP.
6462 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6463
6464 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6465
6466 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6467
6468 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6469
6470 * configure.tgt: Remove sh-hms target.
6471 * MAINTAINERS: Don't list sh-hms as a separate target.
6472
6473 2002-05-13 Jim Blandy <jimb@redhat.com>
6474
6475 Add first preprocessor macro-expansion files.
6476 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6477 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6478 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6479 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6480 (COMMON_OBS): Add macrotab.o, macroexp.o.
6481 (macroexp.o, macrotab.o): New rules.
6482
6483 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6484
6485 * config/m88k/tm-m88k.h: Update copyright.
6486 (m88k_target_write_pc): Declare
6487 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6488 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6489 (SHIFT_INST_REGS): Update definition.
6490 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6491 using old definition of TARGET_WRITE_PC.
6492 * regcache.c (generic_target_write_pc): Delete code handling
6493 NNPC_REGNUM.
6494 * gdbarch.sh (NNPC_REGNUM): Delete.
6495 * gdbarch.h, gdbarch.c: Regenerate.
6496
6497 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6498
6499 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6500 builtin reg number.
6501
6502 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6503
6504 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6505 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6506 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6507 access macros.
6508 * c-typeprint.c (cp_type_print_method_args): Likewise.
6509 (c_type_print_args): Likewise.
6510 * d10v-tdep.c (d10v_push_arguments): Likewise.
6511 (d10v_extract_return_value): Likewise.
6512 * expprint.c (print_subexp): Likewise.
6513 * gdbtypes.c (lookup_primitive_typename): Likewise.
6514 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6515 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6516 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6517 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6518 (TYPE_VECTOR): Likewise.
6519 * hpread.c (hpread_read_struct_type)
6520 (fix_static_member_physnames, fixup_class_method_type)
6521 (hpread_type_lookup): Likewise.
6522 * mdebugread.c (parse_symbol, parse_type): Likewise.
6523 * p-lang.c (is_pascal_string_type): Likewise.
6524 * valops.c (hand_function_call): Likewise.
6525 * x86-64-tdep.c (classify_argument): Likewise.
6526
6527 * hpread.c (hpread_read_function_type)
6528 (hpread_read_doc_function_type): Call replace_type.
6529 * dstread.c (create_new_type): Delete.
6530 (decode_dst_structure, process_dst_function): Call alloc_type.
6531 Use type access macros.
6532
6533 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6534
6535 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6536 the're not supported by the current architecture.
6537 (i387_fill_fxsave): Likewise.
6538
6539 2002-05-12 Fred Fish <fnf@redhat.com>
6540
6541 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6542 sect_index_xxx members to index the first slot in section_offsets
6543 if all of the section_offsets are zero.
6544
6545 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6546
6547 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6548 checked in with last change.
6549
6550 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6551
6552 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6553 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6554 config.sub.
6555
6556 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6557
6558 * Makefile.in: Update dependencies.
6559
6560 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6561
6562 * language.c (local_hex_string_custom): Simplify. Do not depend
6563 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6564
6565 * memattr.c (mem_info_command): Replace calls to
6566 longest_local_hex_string and longest_local_hex_string_custom.
6567 * buildsym.c (make_blockvector): Ditto.
6568 * solib.c (info_sharedlibrary_command): Ditto.
6569 * tracepoint.c (tracepoints_info): Ditto.
6570 * symtab.c (print_msymbol_info): Ditto.
6571
6572 * language.c (local_hex_string): Delete.
6573 (local_hex_string_custom): Delete.
6574 (longest_local_hex_string): Rename to local_hex_string.
6575 (longest_local_hex_string_custom): Rename to
6576 local_hex_string_custom.
6577 * language.h (local_hex_string): Change parameter type to LONGEST.
6578 (local_hex_string_custom): Ditto.
6579 (longest_local_hex_string): Delete declaration.
6580 (longest_local_hex_string_custom): Ditto.
6581
6582 * solib.c: Update copyright.
6583 * memattr.c: Update copyright.
6584
6585 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6586
6587 * arch-utils.h (legacy_register_to_value): Declare.
6588 (legacy_value_to_register): Declare.
6589 (legacy_convert_register_p): Declare.
6590 * arch-utils.c (legacy_register_to_value): New function.
6591 (legacy_value_to_register): New function.
6592 (legacy_convert_register_p): New function.
6593
6594 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6595 (VALUE_TO_REGISTER): Define.
6596 (CONVERT_REGISTER_P): Define.
6597 * gdbarch.h, gdbarch.c: Regenerate.
6598
6599 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6600 VALUE_TO_REGISTER.
6601 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6602 CONVERT_REGISTER_P.
6603
6604 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6605 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6606
6607 * Makefile.in: Update dependencies for valops.c.
6608 * valops.c: Include "gdb_assert.h".
6609 (typecmp): Skip THIS parameter to methods.
6610 (find_method_list): Remove static_memfuncp argument,
6611 update callers. Check for stub methods.
6612 (find_value_oload_method_list): Don't set *static_memfuncp.
6613 (find_overload_match): Don't check for stub methods. Assert
6614 that methods are not stubbed. Handle static methods.
6615 (value_find_oload_method_list): Remove static_memfuncp argument.
6616 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6617 to the argument list for static stub methods.
6618 * value.h (value_find_oload_method_list): Update prototype.
6619
6620 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6621
6622 * arch-utils.h (generic_register_size): Declare.
6623 (generic_register_raw_size, generic_register_virtual_size): Delete
6624 declarations.
6625 * arch-utils.c (generic_register_raw_size): Delete.
6626 (generic_register_size): New function.
6627 (generic_register_virtual_size): Delete.
6628
6629 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6630 default generic_register_size.
6631 * gdbarch.h, gdbarch.c: Re-generate.
6632
6633 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6634 register_virtual_size.
6635 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6636 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6637
6638 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6639
6640 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6641 * gdbarch.h, gdbarch.c: Regenerate.
6642 * gnu-v3-abi.c: Update copyright.
6643 (vtable_address_point_offset): Update.
6644 (gnuv3_rtti_type): Update.
6645 (gnuv3_baseclass_offset): Update.
6646 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6647 (init_fetch_link_map_offsets): Update.
6648 * remote.c (get_remote_state): Update.
6649
6650 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6651
6652 * TODO: Remove value_headof/value_from_vtable_info comment.
6653 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6654 * values.c (value_headof, value_from_vtable_info): Delete.
6655 * value.h (value_from_vtable_info): Delete prototype.
6656
6657 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6658
6659 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6660 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6661 $(gdb_regex_h).
6662 (gdb_assert_h): Define.
6663 (gdb_wait_h): Define.
6664 (gdb_regex_h): Define.
6665
6666 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6667
6668 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6669 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6670
6671 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6672
6673 * nbsd-tdep.c: Fix comment.
6674
6675 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6676
6677 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6678 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6679 (nbsd-tdep.o): New dependency list.
6680 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6681 nbsd-tdep.h.
6682 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6683 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6684 * nbsd-tdep.c: New file.
6685 * nbsd-tdep.h: New file.
6686 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6687 nbsd-tdep.h.
6688 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6689 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6690 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6691 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6692
6693 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6694
6695 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6696 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6697 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6698 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6699 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6700 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6701
6702 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6703
6704 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6705 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6706 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6707 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6708 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6709 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6710 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6711
6712 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6713
6714 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6715 fetch_elfcore_registers to...
6716 * i386nbsd-tdep.c: ...here.
6717 (i386nbsd_use_struct_convention): Rename to...
6718 (i386nbsd_aout_use_struct_convention): ...this.
6719 (i386nbsd_supply_reg): New function.
6720 (i386nbsd_fill_reg): New function.
6721 (fetch_core_registers): Use i386nbsd_supply_reg.
6722 (fetch_elfcore_registers): Likewise.
6723 (_initialize_i386nbsd_tdep): New function.
6724 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6725 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6726 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6727 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6728 (i386nbsd_aout_use_struct_convention): ...this.
6729
6730 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6731
6732 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6733 (store_inferior_registers): Use shnbsd_fill_reg.
6734 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6735 sh_nbsd_supply_register): Collapse into...
6736 (shnbsd_supply_reg): ...this.
6737 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6738 (shnbsd_fill_reg): ...this.
6739 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6740 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6741 (fetch_core_registers): Use shnbsd_supply_reg.
6742 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6743 (sh_nbsd_core_fns): Rename to...
6744 (shnbsd_core_fns): ...this.
6745 (sh_nbsd_elfcore_fns): Rename to...
6746 (shnbsd_elfcore_fns): ...this.
6747 (sh_nbsd_init_abi): Rename to...
6748 (shnbsd_init_abi): ...this.
6749 (_initialize_sh_nbsd_tdep): Rename to...
6750 (_initialize_shnbsd_tdep): ...this.
6751 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6752 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6753 sh_nbsd_fill_register): Remove prototypes.
6754 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6755
6756 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6757
6758 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6759 (i387-nat.o): Delete dependency list.
6760 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6761 (x86-64-linux-nat.o): Likewise.
6762 * i387-nat.c: Delete file, moving contents to...
6763 * i387-tdep.c: ...here.
6764 * i387-nat.h: Rename...
6765 * i387-tdep.h: ...to this.
6766 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6767 * i386-linux-nat.c: Likewise.
6768 * i386bsd-nat.c: Likewise.
6769 * i386gnu-nat.c: Likewise.
6770 * i386nbsd-nat.c: Likewise.
6771 * i386v4-nat.c: Likewise.
6772 * x86-64-linux-nat.c: Likewise.
6773 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6774 * config/i386/go32.mh (NATDEPFILES): Likewise.
6775 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6776 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6777 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6778 * config/i386/linux.mh (NATDEPFILES): Likewise.
6779 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6780 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6781 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6782 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6783
6784 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6785
6786 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6787 (alphanbsd-nat.o): Remove dependency list.
6788 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6789 * alphanbsd-nat.c: Delete. Contents moved to...
6790 * alphanbsd-tdep.c: ...here.
6791 (_initialize_alphanbsd_tdep): Register core functions.
6792 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6793
6794 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6795
6796 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6797 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6798 (alphanbsd-nat.o): Likewise.
6799 (alphabsd-tdep.o): New dependency list.
6800 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6801 (fill_gregset): Use alphabsd_fill_reg.
6802 (supply_fpregset): Use alphabsd_supply_fpreg.
6803 (fill_fpregset): Use alphabsd_fill_fpreg.
6804 (fetch_inferior_registers): Use struct reg and struct fpreg
6805 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6806 and alphabsd_supply_fpreg.
6807 (store_inferior_registers): Use struct reg and struct fpreg
6808 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6809 and alphabsd_fill_fpreg.
6810 * alphabsd-tdep.c: New file.
6811 * alphabsd-tdep.h: New file.
6812 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6813 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6814 alphabsd_supply_fpreg.
6815 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6816 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6817
6818 2002-05-11 Eric Christopher <echristo@redhat.com>
6819
6820 * mips-tdep.c (mips_double_register_type): Fix thinko.
6821 (mips_single_register_type): Ditto.
6822 * MAINTAINERS: Add self.
6823
6824 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6825
6826 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6827 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6828 right thing on architectures with different endianness and/or
6829 integer sizes.
6830
6831 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6832
6833 From Christian Limpach <chris@Pin.LU>
6834 * configure.in: Change sed expression which comments out
6835 NATDEPFILES to also comment out continuation lines.
6836 * configure: Regenerate.
6837
6838 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6839
6840 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6841 big patch.
6842
6843 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6844
6845 * sh-tdep.c: Include correct file.
6846
6847 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6848
6849 New support for sh64-elf (sh5) target.
6850
6851 * configure.tgt: For sh64-elf target, default to sh-elf.
6852
6853 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6854 (struct gdbarch_tdep): Add new fields for new registers and ABI
6855 info.
6856
6857 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6858 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6859 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6860 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6861 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6862 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6863 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6864 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6865 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6866 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6867 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6868 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6869 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6870 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6871 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6872 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6873 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6874 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6875 sign_extend, sh64_nofp_frame_init_saved_regs,
6876 sh64_init_extra_frame_info, sh64_get_saved_register,
6877 sh64_extract_struct_value_address, sh64_pop_frame,
6878 sh64_push_arguments, sh64_extract_return_value,
6879 sh64_store_return_value, sh64_show_media_regs,
6880 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6881 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6882 sh_sh64_register_virtual_type,
6883 sh_sh64_register_convert_to_virtual,
6884 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6885 sh64_register_read, sh64_pseudo_register_write,
6886 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6887 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6888 sh64_do_pseudo_register, sh_compact_do_registers_info,
6889 sh64_do_registers_info, sh_gdbarch_init): New functions.
6890
6891 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6892
6893 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6894
6895 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6896
6897 * linespec.c (decode_line_1): Check for a double quote after
6898 a filename correctly.
6899
6900 2002-05-10 Jim Blandy <jimb@redhat.com>
6901
6902 Properly track the size of the current objfile's .debug_line section.
6903 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6904 (DWARF_LINE_SIZE): New macro.
6905 (dwarf2_build_psymtabs_hard): Record the line section's size in
6906 the partial symbol table.
6907 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6908 symbol table.
6909
6910 2002-05-10 Petr Sorfa <petrs@caldera.com>
6911
6912 * ia64-tdep.c: Handle breakpoints on L instruction type
6913 in MLX instruction bundle by moving the breakpoint to
6914 the third slot (X instruction type) as L holds only data.
6915
6916 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6917
6918 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6919 (process_one_symbol): Complain about discarding local symbols
6920 due to a misplaced N_LBRAC entry.
6921
6922 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6923
6924 From Daniel Berlin <dan@cgsoftware.com>
6925 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6926 decrease the depth we are at, in the case of templates.
6927
6928 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6929
6930 * mips-tdep.c (mips_float_register_type): New function.
6931 (mips_double_register_type): New function.
6932 (mips_print_register): Use them.
6933 (do_fp_register_row): Likewise.
6934
6935 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6936
6937 * signals/signals.c (signals): Remove conditional compilation around
6938 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6939 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6940
6941 2002-05-09 Michael Snyder <msnyder@redhat.com>
6942
6943 * remote-rdp.c (remote_rdp_can_run): Remove.
6944
6945 2002-05-09 Tom Tromey <tromey@redhat.com>
6946
6947 * jv-valprint.c (java_val_print): Handle `char' as a special case
6948 of TYPE_CODE_INT.
6949
6950 2002-05-09 Michael Snyder <msnyder@redhat.com>
6951
6952 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6953 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6954 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6955 str r(0123),[sp,#nn].
6956 (arm_skip_prologue): Ditto. Also make disassembly
6957 order-independent by placing it in a loop.
6958
6959 2002-05-06 Michael Snyder <msnyder@redhat.com>
6960
6961 * stabsread.c (read_type): Add recognition for new attribute:
6962 "@V;" means that an array type is actually a vector.
6963 This is analogous to the vector flag that's been added to dwarf2.
6964
6965 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6966
6967 * i386-tdep.h (i386_abi): New enum.
6968 (struct gdbarch_tdep): Replace os_ident member with abi.
6969 (i386_gdbarch_register_os_abi): New prototype.
6970 * i386-tdep.c (i386_abi_names): New array.
6971 (process_note_abi_tag_sections): Removed.
6972 (process_note_sections): New function.
6973 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6974 (struct i386_abi_handler): New struct.
6975 (i386_abi_handler_list): New variable.
6976 (i386_gdbarch_register_os_abi): New function.
6977 (i386_gdbarch_init): Adapt for the changes given above.
6978
6979 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6980
6981 * gregset.h: Say "GNU/Linux".
6982
6983 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6984
6985 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6986 (build_gdbtypes): Build builtin_type_v2_float.
6987 (_initialize_gdbtypes): Register new builtin type.
6988
6989 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6990
6991 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6992 (clear_gdbarch_swap): New function.
6993 (initialize_non_multiarch): Call.
6994 (gdbarch_update_p): Before calling init(), swap out and clear the
6995 existing architecture.
6996 * gdbarch.c: Regenerate.
6997
6998 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6999
7000 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7001 alphanbsd-tdep.c.
7002
7003 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7004
7005 * sh-nbsd-nat.c: Rename to...
7006 * shnbsd-nat.c: ...this.
7007 * sh-nbsd-tdep.c: Rename to...
7008 * shnbsd-tdep.c: ...this.
7009 * sh-nbsd-tdep.h: Rename to...
7010 * shnbsd-tdep.h: ...this.
7011 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7012 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7013
7014 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7015
7016 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7017 concatenation for command help messages.
7018
7019 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7020
7021 * NEWS: Note new sh*-*-netbsdelf* configuration.
7022 * configure.host: Set gdb_host_cpu to sh for all sh*.
7023 (sh*-*-netbsdelf*): New host.
7024 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7025 (sh*-*-netbsdelf*): New target.
7026 * sh-nbsd-nat.c: New file.
7027 * sh-nbsd-tdep.c: New file.
7028 * sh-nbsd-tdep.h: New file.
7029 * config/sh/nbsd.mh: New file.
7030 * config/sh/nbsd.mt: New file.
7031 * config/sh/nm-nbsd.h: New file.
7032 * config/sh/tm-nbsd.h: New file.
7033
7034 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7035
7036 * sh-tdep.c (sh_osabi_names): Declare.
7037 (process_note_abi_tag_sections): New function.
7038 (get_elfosabi): Ditto.
7039 (sh_gdbarch_register_os_abi): Ditto.
7040 (sh_dump_tdep): Ditto.
7041 _initialize_sh_tdep): Use gdbarch_register to register
7042 sh_gdbarch_init and sh_dump_tdep.
7043 * config/sh/tm-sh.h (sh_osabi): Declare.
7044 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7045
7046 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7047
7048 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7049 (thumb_scan_prologue): Ditto.
7050 (arm_find_callers_reg): Ditto.
7051 (arm_frame_chain): Ditto.
7052 (arm_init_extra_frame_info): Ditto.
7053 (arm_frame_saved_pc): Ditto.
7054 (arm_pop_frame): Ditto.
7055 (arm_push_return_address): New function.
7056 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7057 call_dummy_location, call_dummy_breakpoint_offset_p,
7058 call_dummy_breakpoint_offset, call_dummy_p,
7059 call_dummy_stack_adjust_p, call_dummy_words,
7060 sizeof_call_dummy_words, call_dummy_start_offset,
7061 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7062 call_dummy_address, push_return_address and push_dummy_frame for
7063 generic dummy frames.
7064
7065 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7066
7067 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7068 size computation for alloca.
7069 (sh_fp_frame_init_saved_regs): Likewise.
7070
7071 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7072
7073 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7074 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7075 * arm-tdep.c (arm_store_return_value): Use them.
7076 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7077 * remote-rdp.c (remote_rdp_fetch_register): Use
7078 ARM_MAX_REGISTER_RAW_SIZE.
7079 (remote_rdp_store_register): Likewise.
7080
7081 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7082
7083 * dwarf2cfi.c: Code cleanup, removed unused variables,
7084 added default labels to switch {} statements.
7085 * x86-64-tdep.c: Ditto.
7086 * x86-64-linux-nat.c: Ditto.
7087
7088 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7089
7090 * solib.h: Protect against multiple inclusion.
7091
7092 2002-05-06 Jim Blandy <jimb@redhat.com>
7093
7094 Add first preprocessor macro-expansion files.
7095 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7096 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7097 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7098 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7099 (COMMON_OBS): Add macrotab.o, macroexp.o.
7100 (macroexp.o, macrotab.o): New rules.
7101
7102 Separate the job of reading the line number info statement program
7103 header (...expialidocious) out into its own function.
7104 * dwarf2read.c (struct line_head, struct filenames, struct
7105 directories): Replace with...
7106 (struct line_header): New structure, containing the full
7107 contents of the statement program header, including the
7108 include directory and file name tables.
7109 (read_file_scope): If we have line number info, instead of just
7110 calling dwarf_decode_lines to do all the work, call
7111 dwarf_decode_line_header first to get a `struct line_header'
7112 containing the data in the statement program header, and then
7113 pass that to dwarf_decode_lines, which will pick up where that
7114 left off. Be sure to clean up the `struct line_header' object.
7115 (dwarf_decode_line_header, free_line_header, add_include_dir,
7116 add_file_name): New functions.
7117 (dwarf_decode_lines): Move all the code to read the statement
7118 program header into dwarf_decode_line_header. Take the line
7119 header it built as the first argument, instead of the offset to
7120 the compilation unit's line number info. Use the new `struct
7121 line_header' type instead of the old structures. No need to do
7122 cleanups here now, since we don't allocate anything.
7123 (dwarf2_statement_list_fits_in_line_number_section,
7124 dwarf2_line_header_too_long): New complaints.
7125
7126 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7127
7128 * gdbtypes.c (init_vector_type): New function.
7129 (build_builtin_type_vec128): Simplify the representation of SIMD
7130 registers.
7131 (build_gdbtypes): Initialize new builtin vector types.
7132 (_initialize_gdbtypes): Register new vector types with gdbarch.
7133 (builtin_type_v4_float, builtin_type_v4_int32,
7134 builtin_type_v8_int16, builtin_type_v16_int8,
7135 builtin_type_v2_int32, builtin_type_v4_int16,
7136 builtin_type_v8_int8): New (renamed) SIMD types.
7137
7138 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7139
7140 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7141 (i387_fill_fxsave): Likewise.
7142
7143 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7144
7145 * alpha-tdep.c (alpha_extract_return_value): Don't use
7146 non-constant array size in prototype.
7147
7148 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7149
7150 From Brian Taylor <briant at model dot com>:
7151 * ui-out.c (ui_out_field_core_addr): Use the function
7152 longest_local_hex_string_custom'to format addresses > 32 bits
7153 wide.
7154
7155 * ui-out.c (ui_out_field_core_addr): Update comment.
7156
7157 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7158
7159 * stack.c (select_and_print_frame): Make static. Delete the
7160 parameter `level'.
7161 (func_command): Update call.
7162 (select_frame_command): Delete code computing the frame level.
7163 * frame.h (select_and_print_frame): Delete declaration.
7164
7165 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7166
7167 * sparc-tdep.c (sparc_get_saved_register): Comment why
7168 get_prev_frame call is safe.
7169
7170 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7171
7172 * frame.h (select_frame): Delete level parameter.
7173 * stack.c (select_frame): Update. Use frame_relative_level to
7174 obtain the frame's level.
7175 (select_and_print_frame): Update call.
7176 (select_frame_command): Ditto.
7177 (up_silently_base): Ditto.
7178 (down_silently_base): Ditto.
7179 * ocd.c (ocd_start_remote): Ditto.
7180 * remote-rdp.c (remote_rdp_open): Ditto.
7181 * remote-mips.c (mips_initialize): Ditto.
7182 (common_open): Ditto.
7183 * remote-e7000.c (e7000_start_remote): Ditto.
7184 * m3-nat.c (select_thread): Ditto.
7185 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7186 (child_get_current_exception_event): Ditto.
7187 * varobj.c (varobj_create): Ditto.
7188 (varobj_update): Ditto.
7189 (c_value_of_root): Ditto.
7190 * tracepoint.c (finish_tfind_command): Ditto.
7191 * corelow.c (core_open): Ditto.
7192 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7193 * thread.c (info_threads_command): Ditto.
7194 (switch_to_thread): Ditto.
7195 * infrun.c (normal_stop): Ditto.
7196 (restore_selected_frame): Ditto.
7197 (restore_inferior_status): Ditto.
7198 * breakpoint.c (insert_breakpoints): Ditto.
7199 (watchpoint_check): Ditto.
7200 (bpstat_stop_status): Ditto.
7201 (do_enable_breakpoint): Ditto.
7202 * blockframe.c (flush_cached_frames): Ditto.
7203 (reinit_frame_cache): Ditto.
7204
7205 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7206
7207 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7208 maintainer.
7209
7210 2002-05-04 Jim Blandy <jimb@redhat.com>
7211
7212 * gdbtypes.c (replace_type): Doc fix.
7213
7214 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7215
7216 * valprint.c (strcat_longest): Delete commented out function.
7217 Update copyright.
7218
7219 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7220
7221 * MAINTAINERS: Mark a29k as deleted.
7222 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7223 Move new configurations to the top.
7224 * configure.tgt: Remove a29k.
7225 * config/a29k/tm-vx29k.h: Delete.
7226 * config/a29k/vx29k.mt: Delete.
7227 * config/a29k/tm-a29k.h: Delete.
7228 * config/a29k/a29k-udi.mt: Delete.
7229 * config/a29k/a29k.mt: Delete.
7230 * a29k-tdep.c: Delete.
7231 * remote-udi.c: Delete.
7232 * remote-mm.c: Delete.
7233 * remote-eb.c: Delete.
7234 * remote-adapt.c: Delete.
7235 * Makefile.in: Remove obsolete code.
7236 * config/s390/s390x.mt: Ditto.
7237 * config/s390/s390.mt: Ditto.
7238 * config/sparc/sparclynx.mh: Ditto.
7239 * config/sparc/linux.mh: Ditto.
7240 * config/pa/hppaosf.mh: Ditto.
7241 * config/pa/hppabsd.mh: Ditto.
7242 * config/ns32k/nbsd.mt: Ditto.
7243 * config/mips/vr5000.mt: Ditto.
7244 * config/m68k/sun3os4.mh: Ditto.
7245 * config/m68k/nbsd.mt: Ditto.
7246 * config/m68k/m68klynx.mh: Ditto.
7247 * config/m32r/m32r.mt: Ditto.
7248 * config/i386/x86-64linux.mt: Ditto.
7249 * config/i386/nbsdelf.mt: Ditto.
7250 * config/i386/nbsd.mt: Ditto.
7251 * config/i386/i386lynx.mh: Ditto.
7252
7253 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7254
7255 * target.c (debug_print_register): New function. Handle oversize
7256 registers.
7257 (debug_to_fetch_registers): Call.
7258 (debug_to_store_registers): Call.
7259
7260 2002-05-03 Jim Blandy <jimb@redhat.com>
7261
7262 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7263 (read_type): Doc fix.
7264 * gdbtypes.c (replace_type): Doc fix.
7265
7266 * stabsread.c (multiply_defined_struct): New complaint.
7267 (read_struct_type): If the type we were passed isn't empty, or
7268 incomplete, don't read the new struct type into it; complain,
7269 and return the original type unchanged. Take a new `type_code'
7270 argument, which is the type code for the new type.
7271 (read_type): Rather than storing the type's type code here, pass
7272 it as an argument to read_struct_type, and let that take care of
7273 storing it. That way, we don't overwrite the original type code,
7274 so read_struct_type can use it to decide whether we're overwriting
7275 something we shouldn't.
7276 (complain_about_struct_wipeout): New function.
7277
7278 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7279
7280 * gdbarch.sh: Assert that gdbarch is non-NULL.
7281 * gdbarch.c: Regenerate.
7282
7283 2002-05-03 Jason Merrill <jason@redhat.com>
7284
7285 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7286 and return NULL.
7287
7288 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7289
7290 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7291 (x86_64_dwarf2gdb_regno_map_length),
7292 (x86_64_dwarf2_reg_to_regnum): Added.
7293 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7294 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7295 (_initialize_x86_64_tdep): Synced with the change above.
7296 (x86_64_skip_prologue): Reformulated message.
7297
7298 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7299
7300 * f-exp.y: Also use new prev_lexptr variable
7301 to improve error reporting. Based on Michael Snyder
7302 2002-04-24 dated patch to c-exp.y.
7303 * jv-exp.y: Likewise.
7304 * m2-exp.y: Likewise.
7305
7306 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7307
7308 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7309 we are dealing with vectors.
7310
7311 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7312
7313 * config/m68k/tm-nbsd.h: Obvious fix,
7314 correct machine name.
7315
7316 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7317
7318 * p-typeprint.c (pascal_type_print_base): Add support
7319 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7320
7321 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7322
7323 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7324 for fondamental pascal 'char' type.
7325
7326 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7327
7328 * p-lang.h (is_pascal_string_type): Declaration changed,
7329 new sixth argument of type char ** added.
7330 * p-lang.c (is_pascal_string_type): Implementation
7331 changed. Args length_pos, length_size, string_pos, char_size
7332 can now be NULL. New argument arrayname set to the field
7333 name of the char array. Return value set to char array
7334 field index plus one.
7335 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7336 is_pascal_string_type function.
7337
7338 2002-05-02 Andrew Cagney <cagney@redhat.com>
7339
7340 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7341 <cagney@redhat.com> change.
7342 * gdbarch.c: Regenerate.
7343
7344 2002-05-02 Andrew Cagney <cagney@redhat.com>
7345
7346 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7347 before probing for a new one. Detect errorenous gdbarch_init
7348 functions.
7349 * gdbarch.c: Regenerate.
7350
7351 2002-05-01 Andrew Cagney <cagney@redhat.com>
7352
7353 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7354 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7355 * config/v850/tm-v850.h: Ditto. Update copyright.
7356
7357 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7358
7359 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7360 current_gdbarch.
7361
7362 2002-04-30 Michael Snyder <msnyder@redhat.com>
7363
7364 * arm-tdep.c: Whitespace clean-ups.
7365 (arm_skip_prologue): Fix thinko; two lines
7366 should have been removed as part of 4/24 change.
7367
7368 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7369
7370 * rs6000-tdep.c: Added comment describing how fpscr register
7371 numbers were chosen.
7372
7373 2002-04-30 Michael Snyder <msnyder@redhat.com>
7374
7375 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7376
7377 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7378
7379 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7380 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7381 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7382
7383 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7384
7385 From Louis Hamilton <hamilton@redhat.com>:
7386 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7387 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7388 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7389 not bfd-private xcoff data, to determine wordsize.
7390 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7391
7392 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7393
7394 GDB 5.2 released from 5.2 branch.
7395
7396 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7397
7398 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7399 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7400 (x86_64_register_info_table): Added comments with register numbers.
7401
7402 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7403
7404 * rs6000-tdep.c (rs6000_extract_return_value,
7405 rs6000_store_return_value): Handle returning vectors.
7406 (rs6000_gdbarch_init): Use
7407 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7408 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7409 New function.
7410 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7411 vectors.
7412 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7413 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7414
7415 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7416
7417 * hpread.c (hpread_psymtab_to_symtab_1,
7418 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7419 with fprintf_unfiltered (gdb_stderr,...).
7420
7421 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7422
7423 * remote-array.c (printf_monitor, write_monitor,
7424 array_insert_breakpoint, array_remove_breakpoint ):
7425 Replace fprintf (stderr,...
7426 with fprintf_unfiltered (gdb_stderr,....
7427 * remote-es.c: Likewise.
7428 * remote-os9k.c: Likewise.
7429 * remote-st.c: Likewise.
7430
7431 2002-04-28 Andreas Schwab <schwab@suse.de>
7432
7433 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7434 linux-proc.o and gcore.o.
7435
7436 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7437
7438 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7439 code without frame pointers.
7440
7441 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7442
7443 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7444 ON_STACK is needed.
7445
7446 2002-04-26 Ben Elliston <bje@redhat.com>
7447
7448 * target.c (do_xfer_memory): Correct reference to the new option
7449 "trust-readonly-sections".
7450
7451 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7452
7453 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7454 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7455 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7456 vectors.
7457 (read_array_type): Record the fact that this array type is really a
7458 vector (i.e. are passed in by value).
7459
7460 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7461
7462 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7463 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7464 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7465 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7466 * alpha-linux-tdep.c: Include frame.h.
7467 (alpha_linux_sigcontext_addr): New function.
7468 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7469 alpha_linux_sigcontext_addr.
7470 * alpha-osf1-tdep.c: Include gdbcore.h.
7471 (alpha_osf1_sigcontext_addr): New function.
7472 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7473 alpha_osf1_sigcontext_addr.
7474 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7475 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7476
7477 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7478
7479 * stack.c (selected_frame_level):
7480 (select_frame): Do not set selected_frame_level.
7481 * frame.h (selected_frame_level): Delete declaration.
7482
7483 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7484
7485 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7486 convert_from_func_ptr-addr when AIX / PowerOpen.
7487
7488 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7489
7490 * valops.c (hand_function_call): Call
7491 generic_save_call_dummy_addr.
7492 * frame.h (generic_save_call_dummy_addr): Declare.
7493 * blockframe.c (struct dummy_frame): Add fields call_lo and
7494 call_hi.
7495 (generic_find_dummy_frame): Check for PC in range call_lo to
7496 call_hi instead of entry_point_address.
7497 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7498 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7499 (generic_save_call_dummy_addr): New function.
7500
7501 2002-04-24 David S. Miller <davem@redhat.com>
7502
7503 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7504 sparc_skip_prologue.
7505 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7506 information to find prologue when possible.
7507 (sparc_prologue_frameless_p): Call examine_prologue directly.
7508 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7509 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7510 second argument.
7511 (SKIP_PROLOGUE): Likewise.
7512
7513 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7514
7515 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7516 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7517 indicate that the condition it was testing is always true.
7518 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7519 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7520 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7521
7522 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7523
7524 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7525 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7526 tdep->jb_pc and tdep->jb_elt_size.
7527 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7528 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7529 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7530 * alpha-nat.c (get_longjmp_target): Remove.
7531 (JB_ELEMENT_SIZE): Ditto.
7532 (JB_PC): Ditto.
7533 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7534 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7535 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7536 to alpha_get_longjmp_target.
7537 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7538 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7539 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7540
7541 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7542
7543 * README: Update to GDB 5.2.
7544
7545 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7546
7547 * gdbarch.sh (LC_ALL): Set to `c'.
7548
7549 2002-04-25 Theodore A. Roth <troth@verinet.com>
7550
7551 * avr-tdep.c: Ran through gdb_indent.sh.
7552
7553 2002-04-25 Theodore A. Roth <troth@verinet.com>
7554
7555 * MAINTAINERS: Add myself as AVR maintainer.
7556 * NEWS: Note new target avr.
7557
7558 2002-04-25 Theodore A. Roth <troth@verinet.com>
7559
7560 * Makefile.in: Add support for AVR target.
7561 * configure.tgt: Add support for AVR target.
7562 * avr-tdep.c: New file
7563 * config/avr/avr.mt: New file.
7564
7565 2002-04-25 Theodore A. Roth <troth@verinet.com>
7566
7567 * MAINTAINERS: Add myself to write-after-approval.
7568
7569 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7570
7571 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7572 with fprintf_unfiltered (gdb_stderr,....
7573
7574 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7575
7576 Fix PR gdb/508.
7577 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7578
7579 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7580
7581 * p-exp.y: Also use new prev_lexptr variable
7582 to improve error reporting. Based on Michael Snyder
7583 2002-04-24 dated patch to c-exp.y.
7584
7585 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7586
7587 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7588 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7589 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7590 to 0.
7591 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7592 and struct value.
7593 (FUNCTION_START_OFFSET): Remove.
7594 (BREAKPOINT): Ditto.
7595
7596 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7597
7598 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7599 * NEWS: Ditto.
7600
7601 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7602
7603 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7604 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7605 alpha_linux_pc_in_sigtramp.
7606 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7607 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7608 alpha_osf1_pc_in_sigtramp.
7609 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7610 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7611 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7612 alphafbsd_pc_in_sigtramp.
7613 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7614 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7615 alphanbsd_pc_in_sigtramp.
7616 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7617 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7618
7619 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7620
7621 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7622
7623 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7624
7625 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7626 alphanbsd-tdep.c.
7627 (alphanbsd-nat.o): New dependency list.
7628 (alphanbsd-tdep.o): Ditto.
7629 * NEWS: Note new native NetBSD/alpha configuration.
7630 * alphanbsd-nat.c: New file.
7631 * alphanbsd-tdep.c: Ditto.
7632 * configure.host (alpha*-*-netbsd*): New host.
7633 * configure.tgt (alpha*-*-netbsd*): New target.
7634 * config/alpha/nbsd.mh: New file.
7635 * config/alpha/nbsd.mt: Ditto.
7636 * config/alpha/nm-nbsd.h: Ditto.
7637 * config/alpha/tm-nbsd.h: Ditto.
7638
7639 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7640
7641 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7642 (alpha-osf1-tdep.o): New dependency list.
7643 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7644 and skip_sigtramp_frame members.
7645 * alpha-linux-tdep.c: Include gdbcore.h.
7646 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7647 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7648 * alpha-osf1-tdep.c: New file.
7649 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7650 alpha-osf1-dep.c.
7651 (alpha_frame_past_sigtramp_frame): New function.
7652 (alpha_dynamic_sigtramp_offset): Ditto.
7653 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7654 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7655 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7656 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7657 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7658 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7659 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7660 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7661 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7662 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7663 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7664 to find_solib_trampoline_target.
7665 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7666 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7667 (SKIP_TRAMPOLINE_CODE): Remove.
7668 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7669 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7670 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7671 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7672 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7673 (PROC_SIGTRAMP_MAGIC): Ditto.
7674 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7675 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7676 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7677 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7678 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7679
7680 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7681
7682 * NEWS: Note that Alpha targets are now multi-arch.
7683
7684 2002-04-24 Michael Snyder <msnyder@redhat.com>
7685
7686 * parser-defs.h (prev_lexptr): New external variable.
7687 * parse.c (parse_exp_1): Set prev_lexptr to null before
7688 calling the language-specific parser.
7689 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7690 (yyerror): Use prev_lexptr in error reporting.
7691
7692 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7693
7694 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7695 * gregset.h: If FILL_FPXREGSET is defined, provide
7696 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7697 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7698 is defined, call fill_fpxregset.
7699
7700 2002-04-24 Roland McGrath <roland@frob.com>
7701
7702 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7703 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7704 (supply_gregset, supply_fpregset): New functions.
7705
7706 * gnu-nat.c (gnu_find_memory_regions): New function.
7707 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7708 (gnu_xfer_memory): Add a cast.
7709
7710 2002-04-24 Michael Snyder <msnyder@redhat.com>
7711
7712 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7713 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7714 of argument regs ("str r(0123), [r11, #-nn"]).
7715 (arm_skip_prologue): Better handling for frameless functions.
7716 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7717 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7718
7719 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7720
7721 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7722 NUM_PSEUDO_REGS can be used.
7723
7724 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7725
7726 * arch-utils.h: Update copyright.
7727
7728 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7729 * gdbarch.h, gdbarch.c: Re-generate.
7730
7731 * inferior.h (IN_SIGTRAMP): Delete definition.
7732 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7733 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7734
7735 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7736 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7737 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7738 (find_proc_framesize): Ditto.
7739 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7740 (alpha_init_extra_frame_info): Ditto.
7741 * infrun.c (handle_inferior_event): Ditto.
7742 (handle_inferior_event): Ditto.
7743 (check_sigtramp2): Ditto.
7744 * blockframe.c (create_new_frame): Ditto.
7745 (get_prev_frame): Ditto.
7746 * ppc-linux-tdep.c: Update comments.
7747 * i386-linux-tdep.c: Update comments.
7748 * breakpoint.c (bpstat_what): Update comment.
7749
7750 2002-04-24 David S. Miller <davem@redhat.com>
7751
7752 * i960-tdep.c (register_in_window_p): New function.
7753 (i960_find_saved_register): Use it instead of
7754 REGISTER_IN_WINDOW_P.
7755 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7756
7757 * symtab.h (find_stab_function_addr): Kill extern.
7758 * minsyms.c (find_stab_function_addr): Remove from here...
7759 * dbxread.c: ... to here, and mark it static.
7760
7761 2002-04-20 David S. Miller <davem@redhat.com>
7762
7763 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7764 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7765
7766 2002-04-21 David S. Miller <davem@redhat.com>
7767
7768 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7769 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7770 (vx_write_register): Likewise.
7771
7772 2002-04-23 J. Brobecker <brobecker@gnat.com>
7773
7774 * source.c (is_regular_file): New function.
7775 (openp): Check wether file to open is a regular file
7776 to avoid opening directories.
7777
7778 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7779
7780 * findvar.c (extract_signed_integer): Cast printf argument
7781 to suppress format warning.
7782 (extract_unsigned_integer): Likewise.
7783 * infcmd.c (registers_info): Likewise.
7784 * top.c (get_prompt_1): Likewise.
7785 * valops.c (value_assign): Likewise.
7786 * valprint.c (print_decimal): Likewise.
7787
7788 2002-04-22 H.J. Lu (hjl@gnu.org)
7789
7790 * c-exp.y (typebase): Support
7791
7792 [long|long long|short] [signed|unsigned] [int|]
7793
7794 and
7795
7796 signed [long|long long|short] int
7797
7798 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7799
7800 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7801 and vax-tdep.h.
7802 * vax-tdep.h: New file.
7803 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7804 Make several routines static.
7805 (vax_get_saved_register): New function.
7806 (vax_gdbarch_init): New function.
7807 (_initialize_vax_tdep): Register vax_gdbarch_init.
7808 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7809 Remove macros now under the control of gdbarch.
7810
7811 2002-04-22 Michael Snyder <msnyder@redhat.com>
7812
7813 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7814 Some whitespace and coding standards tweaks.
7815
7816 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7817
7818 * vax-tdep.c: Include regcache.h.
7819 (vax_call_dummy_words): New.
7820 (sizeof_vax_call_dummy_words): New.
7821 (vax_fix_call_dummy): New function.
7822 (vax_saved_pc_after_call): Ditto.
7823 * config/vax/tm-vax.h: Don't include regcache.h.
7824 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7825 (CALL_DUMMY): Remove.
7826 (CALL_DUMMY_WORDS): Define.
7827 (SIZEOF_CALL_DUMMY_WORDS): Define.
7828 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7829
7830 2002-04-18 Michael Snyder <msnyder@redhat.com>
7831
7832 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7833
7834 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7835
7836 * vax-tdep.c (vax_frame_chain): New function.
7837 (vax_push_dummy_frame): Ditto.
7838 (vax_pop_frame): Ditto.
7839 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7840 (FRAMELESS_FUNCTION_INVOCATION): Use
7841 generic_frameless_function_invocation_not.
7842 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7843 (POP_FRAME): Use vax_pop_frame.
7844
7845 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7846
7847 * vax-tdep.c (vax_store_struct_return): New function.
7848 (vax_extract_return_value): Ditto.
7849 (vax_store_return_value): Ditto.
7850 (vax_extract_struct_value_address): Ditto.
7851 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7852 vax_store_struct_return.
7853 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7854 (STORE_RETURN_VALUE): Use vax_store_return_value.
7855 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7856
7857 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7858
7859 * vax-tdep.c (vax_frame_saved_pc): New function.
7860 (vax_frame_args_address_correct): Ditto.
7861 (vax_frame_args_address): Ditto.
7862 (vax_frame_locals_address): Ditto.
7863 (vax_frame_num_args): Move code to be in proximity to
7864 other frame-related functions.
7865 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7866 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7867 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7868 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7869 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7870
7871 2002-04-22 H.J. Lu (hjl@gnu.org)
7872
7873 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7874 includedir.
7875
7876 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7877
7878 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7879 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7880 (FRAME_INIT_SAVED_REGS): New macro.
7881
7882 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7883
7884 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7885
7886 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7887
7888 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7889 where needed.
7890 (fetch_osf_core_registers): Likewise.
7891 (supply_gregset): Likewise.
7892
7893 2002-04-22 J. Brobecker <brobecker@gnat.com>
7894
7895 * symfile.h (get_section_index): Define.
7896 * symfile.c (get_section_index): New function.
7897 * mdebugread.c (SC_IS_SBSS): New macro.
7898 (SC_IS_BSS): Return true for the scBss storage class only, as
7899 the scSBss storage class refers to the .sbss section.
7900 (parse_partial_symbols): Discard the symbols which associated
7901 section does not exist.
7902 Make sure to use the .sbss section index for symbols which
7903 storage class is scBss, rather than using the .bss section index.
7904
7905 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7906
7907 * vax-tdep.c: Update copyright years.
7908 (vax_register_name): New function.
7909 (vax_register_byte): Ditto.
7910 (vax_register_raw_size): Ditto.
7911 (vax_register_virtual_size): Ditto.
7912 (vax_register_virtual_type): Ditto.
7913 * config/vax/tm-vax.h: Update copyright years.
7914 (REGISTER_NAMES): Remove.
7915 (REGISTER_NAME): Define.
7916 (REGISTER_BYTE): Use vax_register_byte.
7917 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7918 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7919 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7920
7921 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7922
7923 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7924 declaration
7925 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7926
7927 2002-04-21 David S. Miller <davem@redhat.com>
7928
7929 * arch-utils.c (generic_prologue_frameless_p): Kill
7930 SKIP_PROLOGUE_FRAMELESS_P code.
7931 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7932 references.
7933 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7934 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7935 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7936 references.
7937 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7938 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7939 (sparc_gdbarch_init): Pass it to
7940 set_gdbarch_prologue_frameless_p.
7941
7942 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7943
7944 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7945 (alphabsd-nat.o): New dependency list.
7946
7947 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7948
7949 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7950 alphafbsd-tdep.c.
7951 (alpha-linux-tdep.o): New dependency list.
7952 (alphafbsd-tdep.o): Likewise.
7953
7954 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7955
7956 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7957 to here...
7958 * alpha-tdep.c: ...from here.
7959 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7960
7961 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7962
7963 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7964 prototype from here...
7965 * alpha-tdep.h: ...to here.
7966
7967 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7968
7969 * frame.h (selected_frame_level): Document as deprecated.
7970 (frame_relative_level): Declare.
7971 * stack.c (frame_relative_level): New function.
7972 (selected_frame_level): Document as deprecated.
7973 (select_frame): Do not set the selected_frame_level.
7974
7975 * stack.c (frame_info, record_selected_frame): Update.
7976 (frame_command, current_frame_command): Update.
7977 (up_silently_base, up_command, down_silently_base): Update.
7978 (down_command): Update.
7979 * inflow.c (kill_command): Update.
7980 * tracepoint.c (finish_tfind_command): Update.
7981 * corelow.c (core_open): Update.
7982 * thread.c (info_threads_command): Update.
7983 (do_captured_thread_select): Update.
7984 * infcmd.c (finish_command): Update.
7985 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7986
7987 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7988
7989 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7990
7991 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7992
7993 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7994 type const.
7995
7996 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7997
7998 * alphafbsd-tdep.c: Update copyright years. Include
7999 alpha-tdep.h.
8000 (alphafbsd_use_struct_convention): Make static.
8001 (alphafbsd_init_abi): New function.
8002 (_initialize_alphafbsd_tdep): New function.
8003 * config/alpha/tm-fbsd.h: Update copyright years.
8004 (USE_STRUCT_CONVENTION): Remove.
8005
8006 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8007
8008 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8009 an Alpha ABI variant.
8010 (alpha_abi_handler_list): Declare.
8011 (alpha_gdbarch_register_os_abi): New function.
8012 (alpha_gdbarch_init): Give registered ABI variant handlers a
8013 chance to tweak the gdbarch once we have set up defaults.
8014 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8015
8016 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8017
8018 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8019 to standard_coerce_float_to_double.
8020 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8021
8022 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8023
8024 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8025 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8026 from gdbarch_tdep rather than a constant.
8027 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8028 the default text address for all Alpha Unix ABIs.
8029 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8030 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8031
8032 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8033
8034 * alpha-tdep.h: New file. Includes several Alpha target constants
8035 taken from...
8036 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8037 let gdbarch deal with.
8038 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8039 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8040 to dependency list.
8041 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8042 Alpha target register names.
8043 * alphabsd-nat.c: Likewise.
8044 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8045 Alpha target register names. Make serveral routines static.
8046 (alpha_get_saved_register): New function.
8047 (alpha_abi_names): New.
8048 (process_note_abi_tag_sections): New function.
8049 (get_elfosabi): New function.
8050 (alpha_gdbarch_init): New function.
8051 (alpha_dump_tdep): New function.
8052 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8053
8054 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8055
8056 * frame.c (find_saved_register): Delete #ifdef
8057 HAVE_REGISTER_WINDOWS code.
8058 * config/sparc/tm-sparc.h: Update comments.
8059 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8060
8061 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8062
8063 * i960-tdep.c (i960_find_saved_register): New function.
8064 (i960_get_saved_register): New function.
8065 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8066 (i960_get_saved_register): Declare.
8067 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8068
8069 2002-04-20 David S. Miller <davem@redhat.com>
8070
8071 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8072
8073 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8074
8075 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8076 instead of NUM_PSEUDO_REGS.
8077
8078 2002-04-20 David S. Miller <davem@redhat.com>
8079
8080 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8081 GDB_MULTI_ARCH_PARTIAL
8082 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8083 define, let tm-sp64.h do it.
8084
8085 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8086
8087 * frame.c (find_saved_register): Avoid a NULL pointer
8088 dereference and actually walk the frame list.
8089
8090 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8091
8092 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8093 sorted in most most-recent-used order. Document.
8094 * gdbarch.h, gdbarch.c: Regenerate.
8095
8096 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8097
8098 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8099 instead of ->prev.
8100 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8101 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8102 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8103 instead of ->prev.
8104
8105 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8106
8107 Fix PR gdb/471.
8108 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8109 (build_builtin_type_vec128): Ditto.
8110 (append_composite_type_field): Fix calculation of type length in
8111 union case.
8112
8113 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8114
8115 * config/djgpp/README: Update.
8116
8117 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8118 compiler warnings.
8119
8120 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8121
8122 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8123 (alpha_setup_arbitrary_frame): ...to this.
8124 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8125 for alpha_setup_arbitrary_frame.
8126
8127 2002-04-18 Andrew Cagney <cagney@redhat.com>
8128
8129 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8130 * gdbarch.h, gdbarch.c: Regenerate.
8131
8132 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8133 * target.h (memory_breakpoint_from_pc): Update declaration.
8134 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8135
8136 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8137 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8138 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8139 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8140 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8141 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8142 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8143 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8144 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8145 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8146 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8147 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8148
8149 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8150 const pointer.
8151 * monitor.c (monitor_insert_breakpoint): Ditto.
8152 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8153
8154 * config/mcore/tm-mcore.h: Update copyright.
8155 * mem-break.c: Ditto.
8156 * xstormy16-tdep.c: Ditto.
8157
8158 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8159
8160 * p-exp.y: Add precedence rule for '^' token.
8161 This removes the shift/reduce conflicts.
8162 Remove the comment concerning these shift/reduce conflicts.
8163
8164 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8165
8166 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8167 (registers_powerpc_nofp): New register set for processors
8168 without floating point unit.
8169
8170 2002-04-18 David S. Miller <davem@redhat.com>
8171
8172 * MAINTAINERS: Add myself to write-after-approval.
8173
8174 2002-04-17 Michael Snyder <msnyder@redhat.com>
8175
8176 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8177
8178 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8179
8180 * rs6000-tdep.c (frame_initial_stack_address): Use
8181 frame_register_read to read the alloca_reg.
8182
8183 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8184
8185 * frame.c (find_saved_register): Find saved registers in the next
8186 not prev frame.
8187 Fix PR gdb/365.
8188
8189 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8190
8191 * gdbarch.sh (LANG): Set to ``c''.
8192
8193 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8194
8195 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8196
8197 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8198
8199 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8200 Update copyright.
8201
8202 * hpread.c (hpread_get_lntt): Add declaration.
8203 Also fix PR gdb/391.
8204
8205 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8206
8207 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8208 * aclocal.m4, configure: Re-generate.
8209 Fix PR gdb/391.
8210
8211 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8212
8213 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8214 instead of tm_print_insn.
8215
8216 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8217
8218 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8219
8220 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8221
8222 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8223 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8224 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8225
8226 2002-04-12 Don Howard <dhoward@redhat.com>
8227
8228 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8229 max_user_call_depth.
8230 (init_cmd_lists): Initialize the new value;
8231 * cli/cli-script.c (execute_user_command): Limit the call depth of
8232 user defined commands. This avoids a core-dump when user commands
8233 are infinitly recursive.
8234
8235 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8236
8237 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8238 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8239 from tdep struct instead of DEFAULT_LR_SAVE.
8240 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8241 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8242 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8243
8244 2002-04-12 Michael Snyder <msnyder@redhat.com>
8245
8246 * Remote.c: Spelling fix.
8247 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8248 If no symbol found for "sbrk", try "_sbrk".
8249 (make_output_phdrs): Use bfd_section_name.
8250 (gcore_copy_callback): Use bfd_section_name.
8251 * eval.c: Indentation fix-ups.
8252 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8253 in case it gets applied to an address that is already
8254 in the instruction space.
8255 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8256 * symfile.c: Fix indentation, long lines.
8257 * source.c: White space fix-up.
8258
8259 2002-04-12 Andrew Cagney <cagney@redhat.com>
8260
8261 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8262 * frame.c (frame_register_read): New function. Return non-zero on
8263 success.
8264 (read_relative_register_raw_bytes_for_frame): Delete.
8265 (read_relative_register_raw_bytes): Delete.
8266 * frame.h (frame_register_read): Declare.
8267 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8268 * sh-tdep.c: Ditto.
8269 * infcmd.c (do_registers_info): Ditto.
8270 * hppa-tdep.c: Ditto.
8271 * rs6000-tdep.c: Ditto.
8272 * h8500-tdep.c: Ditto.
8273 * mips-tdep.c: Ditto.
8274 * h8300-tdep.c: Ditto.
8275 * z8k-tdep.c: Ditto.
8276
8277 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8278
8279 From Jimi X <jimix@watson.ibm.com>:
8280 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8281 64-bit SysV ABI.
8282
8283 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8284
8285 From Jimi X <jimix@watson.ibm.com>:
8286 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8287 bfd info.
8288
8289 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8290
8291 From Jimi X <jimix@watson.ibm.com>:
8292 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8293 register sets for these processor variants.
8294
8295 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8296
8297 * regformats/reg-ppc.dat: Support FPSCR.
8298
8299 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8300
8301 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8302 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8303 Add fpscr as an invalid/unfetchable register.
8304 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8305 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8306 (fill_fpregset): Add support for register fpscr.
8307 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8308 (fill_gregset): Account for the fact that register ``mq'' might
8309 not exist.
8310 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8311 (registers_power): Add fpscr to register set at slot 71.
8312 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8313 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8314
8315 2002-04-11 Michael Snyder <msnyder@redhat.com>
8316
8317 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8318 * configure: Regenerate.
8319 * config.in: Regenerate.
8320 * acconfig.h: Add define for _SYSCALL32.
8321 * core-sol2.c: Remove #define _SYSCALL32.
8322 * solib-legacy.c: Remove #define _SYSCALL32.
8323
8324 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8325
8326 * stack.c (select_frame): Cleanup internal error message, do not
8327 use %p.
8328
8329 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8330
8331 * stack.c (select_frame): Check that selected_frame and the
8332 specified level are as expected.
8333 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8334 Update copyright.
8335 * frame.h (struct frame_info): Add field `level'. Update
8336 copyright.
8337 Work-in-progress PR gdb/464.
8338
8339 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8340
8341 * maint.c (maint_print_section_info): Rename print_section_info.
8342 (print_bfd_section_info, print_objfile_section_info): Update.
8343 * inferior.h (struct gdbarch): Add opaque declaration.
8344 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8345 * gdbarch.h: Regenerate.
8346
8347 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8348
8349 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8350 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8351 (kernel_u_size): Added.
8352 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8353 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8354
8355 2002-04-04 Jim Ingham <jingham@apple.com>
8356
8357 * valarith.c (find_size_for_pointer_math): New function, either returns
8358 the size for a pointer's target, returns 1 for void *, or errors for
8359 incomplete types.
8360 (value_add, value_sub): use find_size_for_pointer_math.
8361
8362 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8363
8364 * linux-low.c (linux_look_up_symbols): New hook.
8365 (linux_target_ops): Add linux_look_up_symbols.
8366 * remote-utils.c (decode_address): New function.
8367 (look_up_one_symbol): New function.
8368 * server.c (handle_query): Call target look_up_symbols hook.
8369 * server.h (look_up_one_symbol): Add prototype.
8370 * target.h (struct target_ops): Add look_up_symbols hook.
8371
8372 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8373
8374 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8375 override FP_REGNUM with frame->fp. Update copyright.
8376 * parse.c (num_std_regs, std_regs): Delete.
8377 (target_map_name_to_register): Do not search std_regs. Update
8378 function description.
8379 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8380 declarations. Update copyright.
8381 Fix PR gdb/251.
8382
8383 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8384
8385 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8386 after the last symbol in a block.
8387
8388 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8389
8390 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8391 is non zero as a found symbol.
8392
8393 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8394
8395 * findvar.c: Include "builtin-regs.h".
8396 (value_of_register): Call value_of_builtin_reg when applicable.
8397 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8398 (target_map_name_to_register): Call
8399 builtin_reg_map_name_to_regnum.
8400 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8401 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8402 (builtin_regs_h): Define.
8403 (builtin-regs.o): New target.
8404 (findvar.o): Add $(builtin_regs_h).
8405 * builtin-regs.c, builtin-regs.h: New files.
8406 * std-regs.c: New file.
8407 Partial fix for PR gdb/251.
8408
8409 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8410
8411 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8412 it's no longer required.
8413
8414 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8415
8416 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8417
8418 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8419
8420 From Jimi X <jimix@watson.ibm.com>:
8421 * rs6000-tdep.c (rs6000_software_single_step): Use
8422 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8423 and size. Use target_insert_breakpoint() and
8424 target_remove_breakpoint() to insert and remove breakpoints
8425 instead of explicit memory reads and writes.
8426
8427 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8428
8429 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8430 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8431 ELF_OBJECT_FORMAT ifdef.
8432
8433 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8434
8435 From Jimi X <jimix@watson.ibm.com>:
8436 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8437
8438 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8439
8440 From Jimi X <jimix@watson.ibm.com>:
8441 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8442 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8443
8444 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8445
8446 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8447 s/asprintf/xasprintf/.
8448 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8449
8450 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8451
8452 I believe Jeff Law denies responsability for this one:
8453 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8454 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8455 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8456 Work-around for PR gdb/366.
8457
8458 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8459
8460 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8461 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8462 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8463
8464 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8465
8466 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8467 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8468 information.
8469
8470 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8471
8472 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8473 maintainer.
8474
8475 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8476
8477 * README (Reporting Bugs in GDB): Document the bug web page as the
8478 prefered way of submitting bugs.
8479 Fix PR gdb/402.
8480
8481 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8482
8483 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8484 -1. Update comment.
8485 * gdbarch.h, gdbarch.c: Re-generate.
8486
8487 2002-04-07 Andreas Schwab <schwab@suse.de>
8488
8489 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8490 buffer to regcache_collect.
8491
8492 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8493
8494 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8495 * gdbarch.c, gdbarch.h: Re-generate.
8496
8497 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8498
8499 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8500 declaration. Fix -Werror.
8501
8502 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8503
8504 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8505 * gdbarch.c: Regenerate.
8506
8507 2002-04-05 Michael Snyder <msnyder@redhat.com>
8508
8509 * breakpoint.c (clear_command): Rewrite middle section to
8510 combine two loops with identical control conditions.
8511 Add a cleanup to eliminate a memory leak.
8512 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8513
8514 2002-04-05 H.J. Lu (hjl@gnu.org)
8515
8516 * solib-svr4.c (bkpt_names): Add "__start".
8517
8518 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8519
8520 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8521 as test for 64 bit target.
8522
8523 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8524
8525 * h8500-tdep.c (h8500_write_fp): Delete function.
8526 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8527 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8528 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8529 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8530 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8531 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8532 (s390_write_fp):
8533 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8534 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8535 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8536 (d10v_write_fp): Delete function.
8537 * inferior.h (write_fp, generic_target_write_fp): Delete
8538 declarations.
8539 * regcache.c (generic_target_write_fp): Delete function.
8540 (write_fp): Delete function.
8541 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8542 * gdbarch.h, gdbarch.c: Regenerate.
8543 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8544 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8545 (sparc64_write_fp): Delete declaration.
8546 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8547 (h8500_write_fp): Delete declaration.
8548
8549 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8550
8551 * sparc-tdep.c (sparc64_write_fp): Delete.
8552 (sparc_push_dummy_frame): Replace write_fp call with code to store
8553 the FP directly.
8554 (sparc_gdbarch_init): Do not initialize write_fp.
8555
8556 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8557
8558 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8559 clause.
8560
8561 2002-03-29 Jim Blandy <jimb@redhat.com>
8562
8563 * stack.c (get_selected_block): Add new argument `addr_in_block',
8564 used to return the exact code address we used to select the block,
8565 not just the block.
8566 * blockframe.c (get_frame_block, get_current_block): Same.
8567 * frame.h (get_frame_block, get_current_block,
8568 get_selected_block): Update declarations.
8569 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8570 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8571
8572 2002-04-05 Michael Snyder <msnyder@redhat.com>
8573
8574 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8575 warning message.
8576
8577 2002-04-05 J. Brobecker <brobecker@gnat.com>
8578
8579 * utils.c (xfullpath): New function.
8580 * defs.h (xfullpath): Add declaration.
8581 * source.c (openp): Use xfullpath in place of gdb_realpath to
8582 avoid resolving the basename part of filenames when the
8583 associated file is a symbolic link. This fixes a potential
8584 inconsistency between the filenames known to GDB and the
8585 filenames it prints in the annotations.
8586 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8587 to be able to match a filename with either the real filename, or
8588 the name of any symbolic link to this file.
8589 (lookup_partial_symtab): Ditto.
8590
8591 2002-04-04 Michael Snyder <msnyder@redhat.com>
8592
8593 * breakpoint.c: Add support for hardware breakpoints in overlays.
8594 (overlay_events_enabled): New state variable.
8595 (insert_breakpoints): Use overlay_events_enabled to decide
8596 whether to attempt to set a breakpoint at the overlay load addr.
8597 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8598 (remove_breakpoint): Use overlay_events_enabled to decide
8599 whether breakpoints need to be removed from overlay load addr.
8600 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8601 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8602 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8603 disable_overlay_breakpoints): Update overlay_events_enabled.
8604
8605 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8606
8607 * dwarf2read.c (struct function_range): New.
8608 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8609 (check_cu_functions): New.
8610 (read_file_scope): Initialize global function lists.
8611 Call dwarf_decode_line after processing children.
8612 (read_func_scope): Add to global function list.
8613 (dwarf_decode_lines): Call check_cu_functions everywhere
8614 record_line is called. Call record_line with a linenumber
8615 of 0 to mark sequence ends.
8616
8617 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8618
8619 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8620 change sync with glibc.
8621
8622 2002-04-03 Jim Blandy <jimb@redhat.com>
8623
8624 * configure.in: Call AC_C_INLINE.
8625 * configure: Regenerated.
8626
8627 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8628
8629 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8630 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8631
8632 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8633
8634 * NEWS: Mention gcore support on FreeBSD/i386.
8635
8636 * fbsd-proc.c: New file.
8637 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8638 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8639
8640 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8641 while statement.
8642
8643 2002-03-29 Jim Blandy <jimb@redhat.com>
8644
8645 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8646 unescaped newlines in string literals, but newer ones don't. So
8647 escape them.
8648
8649 2002-03-26 Michael Snyder <msnyder@redhat.com>
8650 Andrew Cagney <cagney@redhat.com>
8651
8652 * cli/cli-dump.c: New file. Dump memory to file,
8653 restore file to memory.
8654 * cli/cli-dump.h: New file.
8655 * Makefile.in: Add rules, dependencies for cli-dump.o.
8656 * NEWS: Mention new commands.
8657
8658 2002-03-28 Michael Snyder <msnyder@redhat.com>
8659
8660 * symfile.c (symbol_file_add): Move test for null symbols to later.
8661
8662 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8663
8664 From veksler at il.ibm.com:
8665 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8666 the xstrduped original path.
8667 Fix PR gdb/417.
8668
8669 2002-03-27 Michael Snyder <msnyder@redhat.com>
8670
8671 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8672 * infcmd.c (_initialize_infcmd): Ditto.
8673 * language.c (_initialize_language): Ditto.
8674 * symfile.c (_initialize_symfile): Ditto.
8675 * top.c (_init_main): Ditto.
8676 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8677
8678 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8679
8680 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8681 vector registers handling.
8682 (skip_prologue): Handle new AltiVec instructions. Fill in new
8683 fields of frame data.
8684 (frame_get_saved_regs): Fill in information for AltiVec registers.
8685
8686 2002-03-27 Jim Blandy <jimb@redhat.com>
8687
8688 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8689 a function; leave this macro here to invoke that function.
8690 (symbol_init_mangled_name): Declaration for that function.
8691 * symtab.c (symbol_init_mangled_name): New function.
8692
8693 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8694
8695 * valarith.c: Replace strerror with safe_strerror.
8696 * tracepoint.c: Ditto.
8697 * lin-lwp.c: Ditto.
8698 * go32-nat.c: Ditto.
8699 * inflow.c: Ditto.
8700 * gnu-nat.c: Ditto.
8701
8702 2002-03-27 Andreas Schwab <schwab@suse.de>
8703
8704 * event-top.c (command_line_handler): Remove useless if.
8705
8706 2002-03-27 Andreas Jaeger <aj@suse.de>
8707
8708 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8709 comment.
8710
8711 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8712
8713 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8714 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8715 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8716 (x86_64_linux_dr_get_status, supply_gregset),
8717 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8718 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8719 (x86_64_register_info_table): Add.
8720 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8721 (x86_64_register_raw_size, x86_64_register_virtual_type),
8722 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8723 general x86_64_register_info_table.
8724 (i386_gdbarch_init): gdbarch_register_bytes is now set
8725 dynamicaly during initialization.
8726 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8727 * gdbserver/linux-x86-64-low.c: Ditto.
8728
8729 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8730
8731 * gdbserver/server.c (main): Call target_signal_to_host_p
8732 and target_signal_to_host on signals received from the remote.
8733 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8734 target_signal_from_host on signals sent to the remote.
8735 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8736 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8737
8738 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8739
8740 * signals/signals.c: Include "server.h" in gdbserver build.
8741 (target_signal_from_name): Don't use STREQ.
8742 (_initialize_signals): Likewise. Don't include function in
8743 gdbserver build.
8744
8745 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8746
8747 * signals.c: Moved to...
8748 * signals/signals.c: Here.
8749 * Makefile (signals.o): Update.
8750
8751 2002-03-26 Jeff Law (law@redhat.com)
8752
8753 * somread.c (som_symtab_read): Remove some commented out code and
8754 updated related comments. Do not set the minimal symbol table to
8755 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8756 in a dynamic executable.
8757 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8758 where we are unable to find the minimal symbol for the given
8759 PC value.
8760
8761 2002-03-25 Jeff Law (law@redhat.com)
8762
8763 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8764
8765 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8766
8767 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8768
8769 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8770
8771 * command.h: Update copyright.
8772 (struct cmd_list_element): Replace definition with opaque
8773 declaration.
8774 (enum cmd_types): Document that it will eventually be moved to
8775 cli/cli-decode.h
8776 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8777 (MALLOCED_REPLACEMENT): Delete macro.
8778 * Makefile.in (cli_decode_h): Add $(command_h).
8779 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8780 * top.c: Include "cli/cli-decode.h".
8781 * completer.c: Include "cli/cli-decode.h".
8782 * maint.c: Include "cli/cli-decode.h".
8783 * cli/cli-decode.h: Include "command.h".
8784 (enum command_class): Delete.
8785 (enum cmd_types): Comment out.
8786 (enum cmd_auto_boolean): Delete.
8787 (enum var_types): Delete.
8788
8789 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8790
8791 * cli/cli-decode.c: Include "gdb_assert.h".
8792 (add_set_or_show_cmd): New static function.
8793 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8794 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8795 all fields, such as func, from the set command.
8796
8797 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8798
8799 * MAINTAINERS (sh-elf): Change warning flag to -w.
8800
8801 2002-03-23 Andrew Cagney <cagney@redhat.com>
8802
8803 * defs.h (error): Add printf format attribute.
8804 * thread-db.c (thread_from_lwp): Fix error format string.
8805 * stack.c (parse_frame_specification): Ditto.
8806 * cli/cli-decode.c (undef_cmd_error): Ditto.
8807 * scm-lang.c (scm_lookup_name): Ditto.
8808 * tracepoint.c (trace_error): Ditto.
8809 * remote-utils.c (usage): Ditto.
8810 * remote.c (compare_sections_command): Ditto.
8811 Fix PR gdb/328.
8812
8813 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8814
8815 * gdbtypes.c (append_composite_type_field): New function.
8816 (init_composite_type): New function.
8817 * gdbtypes.h (append_composite_type_field): Declare.
8818 (init_composite_type): Ditto.
8819
8820 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8821
8822 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8823 function.
8824 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8825 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8826 structure returning convention for SYSV ABI case, but not
8827 for GNU/Linux, FreeBSD, or NetBSD.
8828
8829 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8830
8831 * symtab.h (lookup_block_symbol): Add mangled_name argument
8832 to prototype.
8833
8834 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8835 with new mangled_name argument.
8836 * linespec.c (decode_line_1): Likewise.
8837 * valops (value_of_this): Likewise.
8838 * symtab.c (lookup_transparent_type): Likewise.
8839 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8840 (lookup_symbol): If we are given a mangled name, pass it down
8841 to lookup_symbol_aux.
8842 (lookup_block_symbol): If we are given a mangled name to check
8843 against, only return symbols which match it.
8844
8845 2002-03-22 Christopher Faylor <cgf@redhat.com>
8846
8847 * win32-nat.c (child_create_inferior): Check for proper shell to use
8848 here, in case the user changes it on the fly.
8849 (_initialize_inftarg): Remove shell path considerations.
8850
8851 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8852
8853 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8854 for gdbarch_max_register_raw_size and max_register_virtual_size.
8855 Adjust copyright year.
8856
8857 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8858
8859 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8860 in a function to cover the entire beginning of the function
8861 as well if it does not already.
8862
8863 2002-03-21 Tom Rix <trix@redhat.com>
8864
8865 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8866 (rs6000_ptrace64): Renamed from ptrace64.
8867
8868 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8869
8870 * gdbserver/remote-utils.c (remote_open): Don't call
8871 getprotobyname, we're all using TCP here so just use
8872 IPPROTO_TCP.
8873 * gdbserver/gdbreplay.c (remote_open): Ditto.
8874
8875 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8876
8877 * regcache.c (_initialize_regcache): No need to call
8878 build_regcache() at this time; it gets called whenever
8879 the gdbarch changes.
8880
8881 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8882
8883 * sparc-nat.c: Include sys/param.h where possible.
8884
8885 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8886
8887 Fix PR gdb/422.
8888 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8889 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8890 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8891 complex types.
8892 * stabsread.c (rs6000_builtin_type): Likewise.
8893 (read_sun_floating_type): Likewise.
8894
8895 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8896
8897 * stabsread.c (read_member_functions): Remove skip code for duplicate
8898 constructor/destructor methods. Use standard parsing for these
8899 methods and just do not chain them to the list of methods after
8900 parsing.
8901
8902 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8903
8904 * coffread.c: Remove redundant static declarations. Replace
8905 occurrences of `PTR' with `void *'.
8906 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8907 * top.h (quit_cover): Likewise.
8908 * defs.h (catch_errors): Likewise.
8909
8910 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8911
8912 * defs.h (XMALLOC): Define.
8913 * gdb-events.sh (XMALLOC): Delete macro.
8914 * gdb-events.c, gdb-events.h: Regenerate.
8915 * gdbarch.sh (XMALLOC): Delete macro.
8916 * gdbarch.c: Regenerate.
8917 * serial.c (XMALLOC): Delete macro.
8918 * ui-file.c (XMALLOC): Ditto.
8919 * ser-unix.h (XMALLOC): Ditto.
8920 * sh-tdep.c (XMALLOC): Ditto.
8921 * ui-out.c (XMALLOC): Ditto.
8922 * utils.c (XMALLOC): Ditto.
8923 * i386-tdep.c (XMALLOC): Ditto.
8924 * gdb-events.c (XMALLOC): Ditto.
8925 * d10v-tdep.c (XMALLOC): Ditto.
8926 * cli-out.c (XMALLOC): Ditto.
8927
8928 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8929 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8930 * ui-file.c, ui-out.c: Ditto.
8931
8932 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8933
8934 * command.h (struct cmd_list_element): Add field context.
8935 (set_cmd_context, get_cmd_context): Declare.
8936 * cli/cli-decode.h: Ditto.
8937 * cli/cli-decode.c (get_cmd_context): New function.
8938 (set_cmd_context): New function.
8939 (add_cmd): Initialize context.
8940 Part of fixing PR gdb/145 and PR gdb/146.
8941
8942 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8943
8944 * cli/cli-decode.c (cmd_type): New function.
8945 * command.h (cmd_type): Declare.
8946 * infrun.c (set_schedlock_func): Call function cmd_type.
8947 * kod.c (kod_set_os): Call cmd_type.
8948 * cris-tdep.c (cris_version_update): Use function cmd_type.
8949 (cris_mode_update, cris_abi_update): Ditto.
8950
8951 * command.h: (execute_cmd_post_hook): Declare.
8952 (execute_cmd_pre_hook): Declare.
8953 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8954 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8955 functions. Execute pre/post hook while ensuring that afterwords
8956 hook_in is cleared.
8957 * top.c (execute_command): Use execute_cmd_post_hook, and
8958 execute_cmd_pre_hook to execute pre/post commands.
8959 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8960 hook_stop_stub.
8961 (hook_stop_stub): Call execute_cmd_pre_hook.
8962
8963 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8964
8965 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8966 set'' and this leads to a core dump. Move xstrdup of
8967 operating_system to after check that it is not NULL.
8968
8969 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8970
8971 * kod.c (kod_set_os): Remove unnecessary check that
8972 ``command->type'' is set_cmd.
8973
8974 * valprint.c (set_input_radix): Use input_radix.
8975 (set_output_radix): Use output_radix.
8976 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8977 isn't reverted.
8978
8979 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8980
8981 * value.h (struct value): Delete field ``substring_addr''. Change
8982 aligner fields to force_doublest_align, force_longest_align,
8983 force_core_addr_align and force_pointer_aligh.
8984
8985 * value.h (struct value): Fix typo in above change.
8986
8987 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8988
8989 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8990 to fix internal_error from ``maintenance print architecture''.
8991
8992 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8993
8994 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8995 for gcc versions after gcc-2.8.1.
8996
8997 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8998
8999 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9000 for method resolution. Restore adjustment of ``this'' pointer after
9001 calling value_struct_elt, which was accidentally removed during the
9002 HP merge.
9003
9004 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9005
9006 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9007 value_of_register.
9008 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9009 get_saved_register.
9010 * value.h (value_of_register): Update.
9011
9012 2002-03-14 Richard Henderson <rth@redhat.com>
9013
9014 * configure.in: Detect declaration for canonicalize_file_name.
9015 * utils.c (canonicalize_file_name): Declare, if needed.
9016 (gdb_realpath): Prefer realpath if available and usable.
9017 * config.in, configure: Rebuild.
9018
9019 2002-03-14 Richard Henderson <rth@redhat.com>
9020
9021 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9022 a constant array bound.
9023
9024 * MAINTAINERS: Add myself to write-after-approval.
9025
9026 2002-03-14 Michael Snyder <msnyder@redhat.com>
9027
9028 * symfile.c (syms_from_objfile): Return immediately if no syms.
9029 (symbol_file_add): Return immediately if no syms.
9030 (find_sym_fns): Return immediately if no syms.
9031
9032 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9033
9034 * gdbserver/remote-util.c (remote_open): Print remote-side's
9035 IP address when remote debugging over the network.
9036
9037 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9038
9039 * config/sparc/fbsd.mh: Fix copyright.
9040 * config/sparc/fbsd.mt: Likewise.
9041
9042 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9043
9044 * MAINTAINERS: Fix typo in name of gdb warnings option.
9045 (x86-64): Fix formating so that this can be parsed by awk.
9046
9047 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9048
9049 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9050 * defs.h: Include "gdb/signals.h".
9051 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9052
9053 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9054
9055 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9056 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9057 from x86-64-tdep.h
9058
9059 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9060 Don Howard <dhoward@redhat.com>
9061
9062 * mips-tdep.c (ST0_FR): Define.
9063 (mips2_fp_compat): New function, temporarily disabled.
9064 (mips_read_fp_register_single): New function.
9065 (mips_read_fp_register_double): New function.
9066 (mips_print_register): Use them.
9067 (do_fp_register_row): Likewise.
9068
9069 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9070
9071 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9072 approval''.
9073
9074 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9075
9076 * stabsread.c (read_member_functions): Fix is_stub test for
9077 static member functions, improve comment.
9078
9079 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9080
9081 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9082 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9083 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9084 commands that set boolean values.
9085 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9086 (arm_rdi_resume): Always initialize PC.
9087 (arm_rdi_open): Don't use rslt as a boolean.
9088 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9089 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9090 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9091 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9092
9093 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9094
9095 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9096 * configure: Rebuilt.
9097
9098 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9099
9100 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9101 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9102
9103 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9104
9105 * cli/cli-decode.c (set_cmd_completer): New function.
9106 * command.h (set_cmd_completer): Declare.
9107 * cli/cli-decode.h (set_cmd_completer): Ditto.
9108
9109 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9110 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9111 * win32-nat.c (_initialize_inftarg): Ditto.
9112 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9113 * proc-api.c (_initialize_proc_api): Ditto.
9114 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9115 * source.c (_initialize_source): Ditto.
9116 * exec.c (_initialize_exec): Ditto.
9117 * solib.c (_initialize_solib): Ditto.
9118 * top.c (init_main): Ditto.
9119 * tracepoint.c (_initialize_tracepoint): Ditto.
9120 * symfile.c (_initialize_symfile): Ditto.
9121 * printcmd.c (_initialize_printcmd): Ditto.
9122 * infcmd.c (_initialize_infcmd): Ditto.
9123 * corefile.c (_initialize_core): Ditto.
9124
9125 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9126
9127 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9128
9129 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9130
9131 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9132
9133 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9134
9135 * NEWS: Update headings, 5.2 has branched.
9136
9137 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9138
9139 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9140 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9141 (register_addr, REGISTER_RAW_SIZE): Likewise.
9142 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9143 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9144
9145 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9146
9147 * MAINTAINERS (x86-64): Add myself.
9148 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9149 changed value_ptr -> struct value *
9150
9151 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9152
9153 * configure.host (sparc64-*-freebsd): Add.
9154 * configure.tgt: Likewise.
9155 * config/sparc/fbsd.mh: New file.
9156 * config/sparc/fbsd.mt: Likewise.
9157 * config/sparc/nm-fbsd.h: Likewise.
9158 * config/sparc/tm-fbsd.h: Likewise.
9159
9160 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9161
9162 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9163 regformats/reg-s390x.dat.
9164
9165 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9166
9167 * utils.c: Add FIXME explaining true/false problem.
9168
9169 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9170
9171 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9172
9173 2002-02-28 Michael Chastain <mec@shout.net>
9174
9175 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9176
9177 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9178
9179 * gdbserver/linux-s390-low.c: New file.
9180 * regformats/reg-s390.dat: New file.
9181 * regformats/reg-s390x.dat: New file.
9182 * gdbserver/configure.srv: Add S/390.
9183 * gdbserver/Makefile.in: Add S/390.
9184 * configure.tgt: Enable gdbserver for S/390.
9185
9186 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9187
9188 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9189 first line of the doc string for "info dos", except at the end of
9190 the sentence, since the short help stops at the first period.
9191
9192 2002-02-28 Jason Merrill <jason@redhat.com>
9193
9194 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9195
9196 2002-02-27 Fred Fish <fnf@redhat.com>
9197
9198 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9199 comment (dumy -> dummy).
9200
9201 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9202
9203 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9204
9205 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9206
9207 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9208
9209 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9210
9211 * gdbserver/acconfig.h: New file.
9212 * gdbserver/i387-fp.c: New file.
9213 * gdbserver/i387-fp.h: New file.
9214 * gdbserver/linux-x86-64.c: New file.
9215 * regformats/reg-x86-64.dat: New file.
9216 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9217 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9218 * gdbserver/configure.in: Add support for regsets.
9219 * gdbserver/config.in: Regenerate.
9220 * gdbserver/configure: Regenerate.
9221 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9222 * gdbserver/linux-low.h: New file.
9223 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9224 for regsets.
9225 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9226 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9227 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9228 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9229 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9230 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9231 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9232 "i387-fp.h". Add PTRACE_GETREGS and friends.
9233 * gdbserver/regcache.c (supply_register): New function.
9234 (supply_register_by_name): New function.
9235 (collect_register): New function.
9236 (collect_register_by_name): New function.
9237
9238 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9239
9240 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9241 (config.status): Add configure.srv dependency.
9242 (server_h): Add config.h dependency.
9243
9244 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9245
9246 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9247 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9248 * gdbserver/configure.srv: Change i386-*-linux* to use
9249 reg-i386-linux.o.
9250
9251 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9252
9253 * x86-64-tdep.c: Re-indent. Update copyright date.
9254
9255 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9256
9257 From Michal Ludvig <mludvig@suse.cz>:
9258 * x86-64-tdep.c (value.h): Delete.
9259 (gdb_assert.h): Include.
9260 (x86_64_register_convert_to_virtual,
9261 x86_64_register_convert_to_raw ): Add check which lets only
9262 floating-point values to be converted.
9263 (value_push): Delete.
9264 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9265 (i386_gdbarch_init): Number of register_bytes fixed.
9266
9267 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9268
9269 * MAINTAINERS: Add x86-64 target.
9270
9271 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9272
9273 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9274 * osfsolib.c (solib_map_sections): Ditto.
9275 * irix5-nat.c (solib_map_sections): Ditto.
9276 * corelow.c (gdb_check_format): Ditto.
9277 * symfile.c (symfile_bfd_open): Ditto.
9278 * solib.c (solib_map_sections): Ditto.
9279 Fix PR gdb/354.
9280
9281 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9282
9283 * remote.c (_initialize_remote): By default, disable ``e'' and
9284 ``E'' step out-of-range packets.
9285
9286 2002-02-26 Andreas Schwab <schwab@suse.de>
9287
9288 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9289 m68k_linux_frame_saved_pc.
9290 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9291 in_sigtramp.
9292 (SIGCONTEXT_PC_OFFSET): Remove.
9293 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9294 m68k_linux_sigtramp_saved_pc): New functions.
9295 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9296 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9297 (UCONTEXT_PC_OFFSET): Define.
9298 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9299 non-RT and RT signal trampolines.
9300
9301 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9302
9303 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9304 (TARGET_NBPG, STACK_END_ADDR): Delete
9305 (VARIABLES_INSIDE_BLOCK): Delete.
9306
9307 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9308
9309 * utils.c (perror_with_name): Make string parameter constant.
9310 (print_sys_errmsg): Ditto.
9311 (query): Ditto.
9312 * defs.h (perror_with_name): Update.
9313 (print_sys_errmsg): Update.
9314 (query): Update.
9315
9316 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9317
9318 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9319 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9320
9321 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9322
9323 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9324 if it already matches the current architecture from the exec file.
9325 Include arch-utils.h for gdbarch_info_init prototype.
9326 * Makefile.in (rs6000-nat.o): Update dependencies.
9327
9328 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9329
9330 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9331 list of exported variables.
9332
9333 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9334
9335 * gdbserver/configure.srv: New file.
9336 * gdbserver/configure.in: Use configure.srv instead
9337 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9338 from it.
9339 * gdbserver/configure: Regenerated.
9340 * gdbserver/terminal.h: New file.
9341 * gdbserver/Makefile.in: Update for configure changes. Remove
9342 more unneeded include paths.
9343
9344 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9345
9346 From wiz at danbala:
9347 * config/sparc/tm-sp64.h: Fix grammar and typos.
9348 Fix PR gdb/287.
9349
9350 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9351
9352 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9353 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9354 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9355 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9356 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9357 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9358 * s390-tdep.c: Ditto.
9359 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9360 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9361 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9362 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9363 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9364 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9365 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9366 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9367 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9368 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9369 Fix PR gdb/378.
9370
9371 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9372
9373 * lin-thread.c: Delete file.
9374 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9375 to gdb_proc_service.h.
9376 * configure: Re-generate.
9377
9378 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9379 * serial.c (serial_open): Delete check for "ocd".
9380 Fix PR gdb/349.
9381
9382 * Makefile.in (linux-thread.o): Delete target.
9383 * linux-thread.c: Delete file.
9384
9385 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9386 renamed SH files to be consistent.
9387
9388 * symtab.c (sort_search_symbols): Use xfree.
9389
9390 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9391
9392 * arm-linux-tdep.c (arm_linux_init_abi): Register
9393 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9394 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9395 definition with undef, since we don't want the sysvr4 definition.
9396 (SKIP_TRAMPOLINE_CODE): Likewise.
9397
9398 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9399
9400 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9401
9402 * configure.in: (AC_CHECK_FUNCS) Added test for
9403 canonicalize_file_name Regenerated.
9404 * config.in, configure: Regenerated.
9405 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9406 defined use canonicalize_file_name.
9407
9408 2002-02-23 Michael Chastain <mec@shout.net>
9409
9410 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9411
9412 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9413
9414 * README: Remove references to cygnus.com.
9415 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9416 dot com'' form. Remove references to cygnus.com and sourceware.
9417
9418 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9419
9420 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9421 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9422 1003.1-2001 no longer allows "head -1".
9423 * gdb/Makefile.in (version.c): Likewise.
9424 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9425 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9426 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9427
9428 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9429
9430 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9431 * command.h (cmd_cfunc_eq): Declare.
9432 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9433
9434 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9435 ``struct cmd_list_element *''.
9436 * cli/cli-cmds.c (is_complete_command): Update. Use
9437 cmd_cfunc_eq.
9438 * top.c (execute_command): Pass the command to
9439 is_complete_command.
9440 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9441
9442 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9443
9444 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9445 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9446 architecture defines.
9447 * s390-tdep.c (s390_gdbarch_init): Likewise.
9448
9449 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9450
9451 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9452 (arm_linux_push_arguments): Likewise.
9453 (arm_linux_init_abi): Register them. Also register linux-specific
9454 call_dummy_words.
9455 (find_minsym_and_objfile): Use strcmp, not STREQ.
9456 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9457 (arm_linux_call_dummy_words): Delete declaration.
9458 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9459 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9460 declarations.
9461 (LOWEST_PC): Delete.
9462
9463 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9464
9465 * maint.c (print_section_info): Do not prepend `0x' to filepos
9466 output, it will be handled by local_hex_string_custom.
9467
9468 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9469
9470 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9471 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9472 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9473
9474 2002-02-22 Jim Blandy <jimb@redhat.com>
9475
9476 Indicate that the bcache functions don't change the strings
9477 they're passed.
9478 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9479 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9480
9481 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9482
9483 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9484
9485 2002-02-21 Christopher Faylor <cgf@redhat.com>
9486
9487 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9488 find the complete path to a loaded DLL.
9489
9490 2002-02-21 Fred Fish <fnf@redhat.com>
9491
9492 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9493 that marks the end of the range of a function, enter a line number
9494 entry that has a line number of zero and a PC offset that matches
9495 the end of the function. This starts a range of PC's for which no
9496 line number information is known.
9497 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9498 PC's for which no line number info is found (line number is zero)
9499 then we didn't find any valid line information.
9500 * symtab.h: Document use of zero line number entry.
9501
9502 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9503
9504 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9505 (have_ptrace_getvrregs): Define for run time checks.
9506 (gdb_vrregset_t): New type for Altivec register handling.
9507 (fetch_register, store_register): Fetch/store altivec register
9508 when needed.
9509 (fetch_altivec_register, store_altivec_register): New functions.
9510 (supply_vrregset, fill_vrregset): New functions.
9511 (fetch_altivec_registers, store_altivec_registers): New functions.
9512 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9513 registers as well.
9514
9515 2002-02-21 Jiri Smid <smid@suse.cz>
9516
9517 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9518
9519 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9520
9521 * Makefile.in (armnbsd-nat.o): Update dependencies.
9522 * armnbsd-nat.c (supply_gregset): New function. Common code to
9523 supply the integer register set.
9524 (supply_fparegset): New function. Similar for FPA registers.
9525 (fetch_regs, fetch_fp_regs): Use them.
9526 (fetch_core_registers): Likewise.
9527 (fetch_elfcore_registers): New function.
9528 (arm_netbsd_elfcore_fns): New core-file type specification.
9529 (_initialize_arm_netbsd_nat): Register it.
9530
9531 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9532
9533 * armnbsd-nat.c: Include gdbcore.h.
9534 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9535 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9536 'void' to declaration, to shut up ARI.
9537 (fetch_core_registers): Make static. Rewrite using supply_register.
9538 (arm_netbsd_core_fns): New core-file type specification.
9539 (_initialize_arm_netbsd_nat): New function.
9540
9541 2002-02-21 Christopher Faylor <cgf@redhat.com>
9542
9543 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9544 value.
9545
9546 2002-02-20 Christopher Faylor <cgf@redhat.com>
9547
9548 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9549 fails.
9550
9551 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9552
9553 * jv-exp.y (parse_number): Change type of implicit longs
9554 to builtin_type_uint64.
9555
9556 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9557
9558 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9559 to be an integer instead of a `union wait'.
9560
9561 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9562
9563 * mips-linux-nat.c: Call the operating system GNU/Linux.
9564 * mips-linux-tdep.c: Likewise.
9565 * mips-tdep.c: Likewise.
9566
9567 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9568
9569 Fix PR gdb/265.
9570 * jv-exp.y (parse_number): Handle 64-bit integers.
9571
9572 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9573
9574 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9575 AC_STDC_HEADERS to AC_HEADER_STDC.
9576 * gdbserver/configure: Regenerated.
9577
9578 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9579
9580 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9581 is defined.
9582 * sparc-tdep.c (get_longjmp_target): Likewise.
9583
9584 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9585
9586 * News: Add news about ARM and Multi-arch. Mention the new target
9587 arm*-*-netbsd*.
9588
9589 2002-02-19 Jim Blandy <jimb@redhat.com>
9590
9591 * stabsread.c (error_type_complaint): Improve error message.
9592
9593 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9594
9595 * gdbserver/README: Update documentation.
9596 * gdbserver/configure.in: Update configury to match documentation.
9597 * gdbserver/Makefile.in: Likewise.
9598 * gdbserver/configure: Regenerated.
9599 * gdbserver/aclocal.m4: New file, generated by aclocal.
9600 * gdbserver/config.in: New file, generated by autoheader.
9601
9602 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9603
9604 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9605 armnbsd-nat.c.
9606
9607 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9608
9609 * arm-tdep.h (enum arm_float_model): New enum.
9610 (struct gdbarch_tdep): Add fp_model.
9611 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9612 up floating-point conversions until we know the floating-point model
9613 in use by the inferior. Don't complain about being unable to
9614 determine the ABI of the inferior when we don't have one.
9615 (arm_extract_return_value): Support different floating-point models.
9616 (arm_store_return_value): Likewise.
9617 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9618 ARM_FLOAT_SOFT.
9619 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9620
9621 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9622
9623 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9624 of ``current_gdbarch''.
9625
9626 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9627
9628 * armnbsd-nat.c : ANSIfy all function declarations.
9629 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9630 (fetch_inferior_registers): Re-implement in terms of above.
9631 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9632 (store_inferior_registers): Re-implement in terms of above.
9633
9634 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9635
9636 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9637 kernel.
9638 * arm-linux-tdep.c: Likewise.
9639 * config/arm/tm-linux.h: Likewise.
9640
9641 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9642
9643 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9644 * config/arm/nbsd.mt (TM_FILE): Delete.
9645 * config/arm/tm-nbsd.h: Delete.
9646
9647 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9648
9649 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9650 Initialize CALL_DUMMY_LENGTH.
9651
9652 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9653
9654 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9655 function.
9656 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9657 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9658 defines one thing and that is incorrect for this port.
9659 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9660
9661 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9662
9663 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9664
9665 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9666
9667 * win32-nat.c (display_selector): New function. Displays information
9668 about the information returned by GetThreadSelectorEntry API function.
9669 (display_selectors): New function. Displays the infomation of
9670 the selector given as argument, or of CS, DS ans FS selectors
9671 if no argument is given.
9672 ( _initialize_inftarg): Add "w32" as info prefix command.
9673 Add "info w32 selector" as command calling display_selectors.
9674
9675 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9676
9677 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9678 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9679 if not defined.
9680
9681 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9682
9683 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9684
9685 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9686
9687 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9688 (arm_fix_call_dummy): Call it.
9689 (arm_call_dummy_breakpoint_offset): Delete.
9690 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9691 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9692
9693 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9694
9695 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9696 Default to func_frame_chain_valid.
9697 * gdbarch.h, gdbarch.c: Re-generate.
9698 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9699
9700 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9701
9702 * ppc-linux-nat.c: Update copyright.
9703 (fetch_register, store_register): Add tid parameter, don't compute
9704 tid here.
9705 (fetch_ppc_registers, store_ppc_registers): Add tid
9706 parameter. Pass it along to callees.
9707 (fetch_inferior_registers, store_inferior_registers): Compute tid
9708 here, and pass it to calleed functions.
9709 (fill_gregset, supply_fpregset): Clean up formatting.
9710
9711 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9712
9713 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9714 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9715
9716 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9717
9718 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9719 * gdbarch.c gdbarch.h: Regenerate.
9720 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9721 function.
9722 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9723 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9724 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9725
9726 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9727 * arm-tdep.c (arm_get_longjmp_target): New function.
9728 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9729 this to a positive value register arm_get_longjmp_target as the
9730 longjmp handler.
9731 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9732 (arm_linux_init_abi): Set up longjmp description in tdep.
9733 * armnbsd-nat.c (get_longjmp_target): Delete.
9734 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9735 description in tdep.
9736 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9737 (get_longjmp_target): Delete declaration.
9738 (GET_LONGJMP_TARGET): Delete.
9739 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9740 (GET_LONGJMP_TARGET): Delete.
9741
9742 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9743
9744 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9745 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9746 of ``current_gdbarch''.
9747
9748 2002-02-17 Tom Tromey <tromey@redhat.com>
9749
9750 * cli/cli-cmds.c (compare_strings): New function.
9751 (complete_command): Only print each unique item once.
9752 * completer.h (complete_line): Declare.
9753 * completer.c (complete_line): New function.
9754 (line_completion_function): Use it.
9755
9756 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9757
9758 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9759 * gdbarch.h, gdbarch.c: Re-generate.
9760
9761 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9762
9763 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9764
9765 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9766
9767 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9768 * valops.c (value_arg_coerce): Don't take the address of a reference
9769 to convert an argument to a reference.
9770
9771 2002-02-15 Christopher Faylor <cgf@redhat.com>
9772
9773 * win32-nat.c (get_image_name): New function.
9774 (handle_load_dll): Use get_image_name function.
9775 (get_child_debug_event): Avoid registering debug events until possibly
9776 execed process is started.
9777 (child_create_inferior): Allow invocation via shell so that command
9778 line redirection, etc. works ok.
9779 (_initialize_inftarg): Add new command: "set shell" to control whether
9780 a shell is used to start a process.
9781
9782 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9783
9784 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9785 instead of find_register_by_number.
9786 (cannot_store_register): Likewise.
9787
9788 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9789
9790 * dwarf2read.c: Replace fprintf (stderr, ...) by
9791 fprintf_unfiltered (gdb_stderr, ...).
9792
9793 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9794
9795 * gdbserver/gdbserver.1: Document --attach.
9796
9797 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9798
9799 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9800 descriptions.
9801 * arm-tdep.c (arm_default_arm_le_breakpoint)
9802 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9803 (arm_default_thumb_be_breakpoint): New. Initialize them from
9804 traditional breakpoint defines.
9805 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9806 (arm_gdbarch_init): Initialize new breakpoint variables.
9807 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9808 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9809 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9810 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9811 code out to ...
9812 (arm_netbsd_init_abi_common): ... here; new function.
9813 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9814 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9815 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9816 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9817
9818 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9819
9820 * arm-tdep.h (enum arm_abi): New enum.
9821 (struct gdbarch_tdep): New structure.
9822 (LOWEST_PC): Provide a default.
9823 (arm_gdbarch_register_os_abi): Declare new function.
9824 * arm-tdep.c (arm_abi_names): New array.
9825 (process_note_abi_tag_sections): New function.
9826 (get_elfosabi): New function.
9827 (arm_gdbarch_register_os_abi): New function.
9828 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9829 support for that ABI has been built in, then call the appropriate
9830 configuration routine. Use gdbarch_num_regs() to get the number
9831 of registers.
9832 (arm_dump_tdep): New function.
9833 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9834 place-holder functions.
9835 (_initialize_arm_tdep): Register them.
9836 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9837
9838 * armnbsd-tdep.c: New file.
9839 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9840 * config/arm/nbsd.mt (TDEPFILES): Add it.
9841 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9842
9843 * armnbsd-nat.c: Include regcache.h.
9844 * Makefile.in (armnbsd-nat.o): Update dependency list.
9845
9846 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9847
9848 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9849
9850 * gdbserver/Makefile.in: Fix typos in target rules.
9851
9852 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9853
9854 Fix part of PR gdb/267.
9855 * linespec.c (find_methods): Handle constructors specially for now.
9856
9857 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9858
9859 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9860 handling.
9861 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9862 standard_coerce_float_to_double().
9863
9864 2002-02-14 Christopher Faylor <cgf@redhat.com>
9865
9866 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9867 GDBINIT_FILENAME.
9868
9869 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9870
9871 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9872 find_variant_by_name, because it confuses the multiarch
9873 framework. Return NULL if there isn't an architecture with the
9874 user supplied name, instead of forcing a different one without
9875 recording the change with the multiarch machinery.
9876 (find_variant_by_name): Delete.
9877
9878 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9879
9880 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9881 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9882
9883 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9884
9885 * stack.c (print_frame_info_base): When calling
9886 print_frame_info_listing_hook, set current_source_symtab.
9887
9888 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9889
9890 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9891 and remove unused $(INCLUDE_DIR).
9892 Add regcache.c to OBS.
9893 Add generated register protocol files to clean target.
9894 Update dependencies for new objects, obsolete old target code.
9895
9896 * gdbserver/linux-low.c: Remove all platform-specific code to
9897 new files. Remove various dead code. Update to use regcache
9898 functionality.
9899 * gdbserver/remote-utils.c (fromhex): Add return statement
9900 to quiet warning.
9901 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9902 constant.
9903 (input_interrupt): Add integer parameter to match prototype
9904 of a signal handler.
9905 (outreg): Use register_data ().
9906 (prepare_resume_reply): Use gdbserver_expedite_regs.
9907 * gdbserver/server.c (main): Dynamically allocate own_buf because
9908 PBUFSIZ is no longer constant. Use registers_to_string () and
9909 registers_from_string ().
9910 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9911 for error (), fatal (), and warning (). Update definition of
9912 PBUFSIZ to use regcache functionality. Add include guard.
9913 * gdbserver/utils.c (fatal): Add missing ``const''.
9914 (warning): New function.
9915
9916 * regformats/regdat.sh: Include "regcache.h" in generated files.
9917 Provide init_registers () function.
9918 * regformats/regdef.h: Add prototype for set_register_cache ().
9919 Add include guard.
9920
9921 * gdbserver/linux-arm-low.c: New file.
9922 * gdbserver/linux-i386-low.c: New file.
9923 * gdbserver/linux-ia64-low.c: New file.
9924 * gdbserver/linux-m68k-low.c: New file.
9925 * gdbserver/linux-mips-low.c: New file.
9926 * gdbserver/linux-ppc-low.c: New file.
9927 * gdbserver/linux-sh-low.c: New file.
9928
9929 * gdbserver/regcache.c: New file.
9930 * gdbserver/regcache.h: New file.
9931
9932 * gdbserver/low-linux.c: Removed obsolete file.
9933
9934 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9935
9936 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9937 * config/i386/linux.mt: Likewise.
9938 * config/ia64/linux.mt: Likewise.
9939 * config/m68k/linux.mh: Likewise.
9940 * config/powerpc/linux.mh: Likewise.
9941 * config/mips/linux.mt: Likewise.
9942
9943 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9944
9945 * config/i386/i386lynx.mh: Mark gdbserver variables
9946 as (currently) obsolete for this target.
9947 * config/i386/nbsd.mt: Likewise.
9948 * config/i386/nbsdelf.mt: Likewise.
9949 * config/m32r/m32r.mt: Likewise.
9950 * config/m68k/m68klynx.mh: Likewise.
9951 * config/m68k/nbsd.mt: Likewise.
9952 * config/m68k/sun3os4.mh: Likewise.
9953 * config/mips/vr5000.mt: Likewise.
9954 * config/ns32k/nbsd.mt: Likewise.
9955 * config/pa/hppabsd.mh: Likewise.
9956 * config/pa/hppaosf.mh: Likewise.
9957 * config/powerpc/nbsd.mt: Likewise.
9958 * config/rs6000/rs6000lynx.mh: Likewise.
9959 * config/s390/s390.mt: Likewise.
9960 * config/s390/s390x.mt: Likewise.
9961 * config/sparc/sparclynx.mh: Likewise.
9962 * config/sparc/sun4os4.mh: Likewise.
9963 * config/i386/x86-64linux.mt: Likewise.
9964 * config/sparc/linux.mh: Likewise.
9965
9966 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9967
9968 * configure.tgt: Configure gdbserver only for known working
9969 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9970 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9971 SUBDIRS if it is configured. Update comment for ${nativefile}.
9972 * configure: Regenerated.
9973
9974 2002-02-13 Michael Snyder <msnyder@redhat.com>
9975
9976 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9977
9978 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9979 (default_gcore_mach): Just return 0, work around a problem in bfd.
9980 (default_gcore_target): OK to return NULL if exec_bfd is null.
9981 (make_mem_sec): Use a cast, avoid a warning.
9982
9983 * procfs.c (find_memory_regions_callback): Use a cast instead of
9984 calling host_pointer_to_address (which complains if
9985 sizeof (host pointer) != sizeof (target pointer)).
9986 (procfs_make_note_section): Avoid overflow in psargs string.
9987
9988 * procfs.c (procfs_make_note_section): Make the default
9989 implementation return an error.
9990
9991 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9992
9993 * procfs.c (procfs_make_note_section): Provide a default definition
9994 (for alpha-dec-osf4.0f). Fix typos.
9995
9996 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9997
9998 * linux-proc.c: Add include of regcache.h.
9999 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10000
10001 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10002
10003 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10004 * memattr.c (create_mem_region): Disallow useless empty region.
10005 Regions are half-open intervals, so allow [A..B) [B..C) as
10006 non-overlapping.
10007
10008 2002-02-13 Michael Chastain <mec@shout.net>
10009
10010 * defs.h: Kill CONST_PTR.
10011 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10012 * c-lang.c (c_builtin_types): Likewise.
10013 * ch-lang.c (ch_builtin_types): Likewise.
10014 * f-lang.c (f_builtin_types): Likewise.
10015 * language.c (unknown_builtin_types): Likewise.
10016 * m2-lang.c (m2_builtin_types): Likewise.
10017 * p-lang.c (pascal_builtin_types): Likewise.
10018 * scm-lang.c (c_builtin_types): Likewise.
10019
10020 2002-02-13 Keith Seitz <keiths@redhat.com>
10021
10022 * arm-tdep.h (arm_get_next_pc): Add declaration.
10023
10024 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10025
10026 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10027 with other related struct-returning functions.
10028 (arm_extract_struct_value_address): New function.
10029 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10030 initialize float_format, double_format and long_double_format as
10031 appropriate to the endianness of the target.
10032 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10033 (arm_use_struct_convention): Delete declaration.
10034 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10035
10036 2002-02-13 Keith Seitz <keiths@redhat.com>
10037
10038 * defs.h (core_addr_to_string_nz): New function.
10039
10040 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10041
10042 Apply missing bits of 2002-01-15 patch.
10043 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10044 (fill_fpregset): Use i387_fill_fsave.
10045
10046 2002-02-12 Keith Seitz <keiths@redhat.com>
10047
10048 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10049 (core_addr_to_string_nz): New function.
10050
10051 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10052
10053 * arm-linux-nat.c: Really include arm-tdep.h.
10054 * config/arm/tm-linux.h (struct type, struct value): Declare.
10055
10056 2002-02-11 Michael Snyder <msnyder@redhat.com>
10057
10058 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10059 (gcore section): Ifdef for Solaris and Unixware only.
10060 (procfs_do_thread_registers): Unixware needs one lwpstatus
10061 per thread (not one prstatus or pstatus).
10062 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10063 not over all gdb threads. For unixware, call elfcore_write_pstatus
10064 once before iterating over threads.
10065
10066 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10067
10068 * arm-tdep.h: New file.
10069 * arm-tdep.c: Include arm-tdep.h.
10070 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10071 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10072 (arm_print_float_info, arm_register_type, convert_to_extended)
10073 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10074 (arm_extract_return_value, arm_register_name): Make static.
10075 (arm_software_single_step): Similarly. Fix types in declaration.
10076 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10077 (arm_store_return_value, arm_store_struct_return): New functions.
10078 (arm_gdbarch_init): Register the above functions. Also register
10079 call_dummy_start_offset, sizeof_call_dummy_words,
10080 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10081 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10082 max_register_virtual_size, register_size. Set up
10083 prologue_cache.saved_regs here, rather than ...
10084 (_initialize_arm_tdep): ... here.
10085 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10086 declarations.
10087 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10088 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10089 (arm_print_float_info, arm_register_type, convert_to_extended)
10090 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10091 (arm_extract_return_value, arm_register_name): Delete declarations.
10092 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10093 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10094 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10095 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10096 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10097 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10098 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10099 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10100 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10101 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10102 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10103 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10104 interface.
10105 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10106 * remote-rdi.c remote-rdp.c: Likewise.
10107 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10108 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10109 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10110 definition.
10111
10112 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10113 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10114 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10115 from non-ARM_ prefixed definitions.
10116 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10117 all uses of above.
10118 * remote-rdi.c remote-rdp.c: Likewise.
10119 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10120
10121 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10122
10123 * arm-tdep.c (arm_frameless_function_invocation)
10124 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10125 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10126 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10127 (arm_pop_frame, arm_get_next_pc): Make static.
10128 (arm_gdbarch_init): Register above in gdbarch structure.
10129 (arm_read_fp): Renamed from arm_target_read_fp.
10130 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10131 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10132 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10133 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10134 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10135 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10136 (arm_pc_is_thumb_dummy): Delete declarations.
10137 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10138 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10139 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10140 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10141
10142 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10143
10144 * symtab.c (compare_search_syms): New function.
10145 (sort_search_symbols): New function.
10146 (search_symbols): Sort symbols after searching rather than
10147 before.
10148
10149 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10150
10151 * NEWS: Linux -> GNU/Linux.
10152
10153 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10154
10155 * gdbarch.sh: For for level one methods, disallow a definition
10156 when partially multi-arched. Add comments explaining rationale.
10157 * gdbarch.h: Re-generate.
10158
10159 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10160
10161 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10162 multi-arch partial.
10163
10164 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10165
10166 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10167 field. Use diff -u.
10168 * gdbarch.c: Re-generate.
10169
10170 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10171
10172 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10173 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10174 partial.
10175
10176 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10177
10178 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10179 multi-arch partial.
10180 (PUSH_ARGUMENTS): Switch to using predefault.
10181 * gdbarch.c: Regenerate.
10182
10183 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10184
10185 * valops.c (PUSH_ARGUMENTS): Delete definition.
10186 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10187 partial. Default to default_push_arguments.
10188 * gdbarch.h, gdbarch.c: Regenerate.
10189
10190 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10191
10192 * defs.h (throw_exception): Rename return_to_top_level. Update
10193 comments.
10194 * utils.c (error_stream, internal_verror, quit): Ditto.
10195 * top.c (throw_exception, catcher): Ditto.
10196 * sparclet-rom.c (sparclet_load): Ditto.
10197 * remote.c (interrupt_query, minitelnet): Ditto.
10198 * remote-sds.c (interrupt_query): Ditto.
10199 * remote-mips.c (mips_error, mips_kill): Ditto.
10200 * ocd.c (interrupt_query): Ditto.
10201 * monitor.c (monitor_interrupt_query): Ditto.
10202 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10203 * target.h: Update comment.
10204
10205 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10206
10207 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10208
10209 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10210 default_double_format.
10211 * gdbarch.h, gdbarch.c: Re-generate.
10212 * findvar.c (floatformat_unknown): Delete variable definition.
10213 * doublest.h (floatformat_unknown): Delete variable declaration.
10214
10215 2002-02-09 Jim Blandy <jimb@redhat.com>
10216
10217 * stabsread.c (read_type): Add code to parse Sun's syntax for
10218 prototyped function types.
10219
10220 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10221
10222 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10223 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10224
10225 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10226
10227 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10228 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10229 now _initialize_xcoffsolib gets called again and overrides the
10230 commands from solib.c in a native configuration.
10231
10232 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10233
10234 * doublest.c (store_typed_floating): Don't try to return a value.
10235 Fixes PR gdb/290.
10236
10237 2002-02-08 Jim Blandy <jimb@redhat.com>
10238
10239 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10240 is prototyped and has no arguments, print its argument list as
10241 `(void)'.
10242
10243 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10244
10245 * MAINTAINERS (write-after-approval): Add myself.
10246 (paper-trail): I've escaped!
10247
10248 2002-02-08 Christopher Faylor <cgf@redhat.com>
10249
10250 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10251 changes.
10252 (_initialize_check_for_gdb_ini): Ditto.
10253
10254 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10255
10256 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10257 xaprintf -> xasprintf.
10258
10259 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10260
10261 * win32-nat.c: Remove use of printf and sprintf functions.
10262
10263 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10264
10265 * arm-tdep.c (arm_frame_chain_valid): Make static.
10266 (arm_push_arguments): Likewise.
10267 (arm_gdbarch_init): New function.
10268 (_initialize_arm_tdep): Call it.
10269 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10270 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10271 (FRAME_CHAIN_VALID): Delete.
10272 (arm_frame_chain_valid): Delete declaration.
10273 (PUSH_ARGUMENTS): Delete.
10274 (arm_push_arguments): Delete declaration.
10275 (CALL_DUMMY_P): Delete.
10276
10277 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10278 Corinna Vinschen <vinschen@redhat.com>
10279
10280 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10281 on builtin float types.
10282
10283 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10284
10285 * utils.c: Include <curses.h> before "bfd.h".
10286 * tui/tui-hooks.c: Likewise.
10287 * tui/tui.c: Likewise.
10288 * tui/tuiCommand.c: Likewise.
10289 * tui/tuiData.c: Likewise.
10290 * tui/tuiDataWin.c: Likewise.
10291 * tui/tuiDisassem.c: Likewise.
10292 * tui/tuiGeneralWin.c: Likewise.
10293 * tui/tuiIO.c: Likewise.
10294 * tui/tuiLayout.c: Likewise.
10295 * tui/tuiRegs.c: Likewise.
10296 * tui/tuiSource.c: Likewise.
10297 * tui/tuiSourceWin.c: Likewise.
10298 * tui/tuiStack.c: Likewise.
10299 * tui/tuiWin.c: Likewise.
10300
10301 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10302
10303 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10304 to include space for pseudoregs as well. Update loops accordingly.
10305 (sh_fp_frame_init_saved_regs): Ditto.
10306 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10307
10308 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10309
10310 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10311 Add Richard Earnshaw to Arm maintainers.
10312
10313 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10314
10315 * defs.h (warning_begin): Delete declaration.
10316
10317 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10318 Delete macro.
10319
10320 2002-02-07 Michael Snyder <msnyder@redhat.com>
10321
10322 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10323 Logic bug, remove misplaced else.
10324
10325 2002-02-07 Klee Dienes <klee@apple.com>
10326
10327 * fork-inferior.c (fork_inferior): Add '!' to the list of
10328 characters that need to be quoted when building a string for the
10329 shell. Quote '!' specifically with a backslash, since CSH chokes
10330 when trying to evaluate "str!str".
10331
10332 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10333
10334 * rdi-share/host.h: Only provide a typedef for bool if it is not
10335 defined.
10336
10337 2002-02-04 Michael Snyder <msnyder@redhat.com>
10338
10339 * breakpoint.h (enum bptype): Add new overlay event bp type.
10340 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10341
10342 * breakpoint.c (create_internal_breakpoint): New function.
10343 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10344 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10345 (create_thread_event_breakpoint): Ditto.
10346 (create_solib_event_breakpoint): Ditto.
10347 (create_overlay_event_breakpoint): New function.
10348 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10349 (update_breakpoints_after_exec): Delete and re-initialize
10350 overlay event breakpoints after an exec. Add FIXME comment
10351 about longjmp breakpoint.
10352 (print_it_typical): Ignore overlay event breakpoints.
10353 (print_one_breakpoint): Ditto.
10354 (mention): Ditto.
10355 (bpstat_what): Do not stop for overlay event breakpoints.
10356 (delete_breakpoint): Don't delete overlay event breakpoints.
10357 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10358 (breakpoint_re_set): Re-create overlay event breakpoint.
10359
10360 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10361 (overlay_manual_command): Disable overlay breakpoints.
10362 (overlay_off_command): Disable overlay breakpoints.
10363
10364 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10365
10366 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10367 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10368 to here from config/tm-arm.h.
10369 (coff_sym_is_thumb): Make static.
10370 (arm_elf_make_msymbol_special): New function.
10371 (arm_coff_make_msymbol_special): New function.
10372 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10373 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10374 (coff_sym_is_thumb): Delete declaration.
10375 (arm_elf_make_msymbol_special): Declare.
10376 (arm_coff_make_msymbol_special): Declare.
10377 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10378 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10379
10380 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10381
10382 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10383
10384 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10385
10386 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10387 * gdbarch.c gdbarch.h: Regenerate.
10388 * arch-utils.c (default_print_float_info): New function.
10389 * arch-utils.h (default_print_float_info): Prototype it.
10390 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10391 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10392 (PRINT_FLOAT_INFO): Document it.
10393
10394 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10395 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10396 (PRINT_FLOAT_INFO): Define.
10397
10398 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10399
10400 * win32-nat.c (_initialize_check_for_gdb_ini):
10401 Add typecast to sprintf argument to suppress a warning.
10402
10403 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10404
10405 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10406 to allow easier handling of pass state.
10407 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10408 that gives exception name and address.
10409 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10410 and set last_sig value to ourstatus->value.sig. Some missing
10411 exceptions added.
10412 (child_continue): Correctly report continue_status.
10413 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10414 TARGET_SIGNAL_0 (new default value).
10415 (child_resume): consider sig argument passed to decide if
10416 the exception should be passed to debuggee or not.
10417
10418 2002-02-05 Michael Snyder <msnyder@redhat.com>
10419
10420 * regcache.c (fetch_register): Call target_fetch_register
10421 only if we don't call FETCH_PSEUDO_REGISTER.
10422 (store_register): Call target_store_register only if we
10423 don't call STORE_PSEUDO_REGISTER.
10424
10425 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10426
10427 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10428 ELF_MAKE_MSYMBOL_SPECIAL.
10429 * gdbarch.c, gdbarch.h: Regenerate.
10430 * arch-utils.c (default_make_msymbol_special): New function.
10431 * arch-utils.h (default_make_msymbol_special): Export.
10432 * elfread.c (elf_symtab_read): Compile use of
10433 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10434 multiarched.
10435 * coffread.c (coff_symtab_read): Ditto, for
10436 COFF_MAKE_MSYMBOL_SPECIAL.
10437
10438 2002-02-05 Jim Blandy <jimb@redhat.com>
10439
10440 * solib-svr4.c (svr4_truncate_ptr): New function.
10441 (svr4_relocate_section_addresses): Do the address arithmetic with
10442 the appropriate truncation for target addresses, even when
10443 CORE_ADDR is larger than a target address.
10444
10445 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10446
10447 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10448 to (int *).
10449
10450 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10451
10452 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10453 code.
10454
10455 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10456
10457 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10458
10459 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10460
10461 * gdbserver/linux-low.c: Remove unused include files.
10462
10463 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10464
10465 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10466 (read_inferior_memory): Use it.
10467 (write_inferior_memory): Likewise.
10468
10469 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10470
10471 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10472 grubbing through sys_errlist.
10473
10474 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10475
10476 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10477
10478 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10479 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10480
10481 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10482
10483 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10484 (do_sfunc, set_cmd_sfunc): New functions.
10485
10486 * command.h (struct cmd_list_element): Add field func.
10487 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10488 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10489 * cli/cli-decode.h: Ditto.
10490
10491 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10492 (help_all, help_cmd_list): Ditto.
10493 (find_cmd, complete_on_cmdlist): Ditto.
10494 * top.c (execute_command): Ditto.
10495
10496 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10497 function.sfunc.
10498
10499 * infcmd.c (notice_args_read): Fix function signature.
10500
10501 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10502 * cli/cli-decode.c (add_set_cmd): Ditto.
10503 * utils.c (initialize_utils): Ditto.
10504 * maint.c (_initialize_maint_cmds): Ditto.
10505 * infrun.c (_initialize_infrun): Ditto.
10506 * demangle.c (_initialize_demangler): Ditto.
10507 * remote.c (add_packet_config_cmd): Ditto.
10508 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10509 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10510 * proc-api.c (_initialize_proc_api): Ditto.
10511 * kod.c (_initialize_kod): Ditto.
10512 * valprint.c (_initialize_valprint): Ditto.
10513 * top.c (init_main): Ditto.
10514 * infcmd.c (_initialize_infcmd): Ditto.
10515 * corefile.c (_initialize_core): Ditto.
10516 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10517 * arch-utils.c (initialize_current_architecture): Ditto.
10518 (_initialize_gdbarch_utils): Ditto.
10519 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10520
10521 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10522 * wince.c (_initialize_inftarg): Ditto.
10523 * symfile.c (_initialize_symfile): Ditto.
10524 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10525 * language.c (_initialize_language): Ditto.
10526 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10527
10528 2002-02-04 Michael Snyder <msnyder@redhat.com>
10529
10530 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10531
10532 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10533
10534 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10535 Add rules for building the register data files.
10536
10537 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10538
10539 * regformats/regdat.sh: Add braces to the definition of
10540 expedite_regs_${arch}.
10541
10542 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10543
10544 * regformats/regdef.h (struct reg): Add comment describing the
10545 requirements for offset and size fields.
10546
10547 2002-02-04 Andreas Schwab <schwab@suse.de>
10548
10549 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10550 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10551
10552 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10553
10554 * gdbarch.sh (copyright): Update years in generated header.
10555 (SMASH_TEXT_ADDRESS): Add rule.
10556 * gdbarch.h, gdbarch.c: Re-generate.
10557 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10558 * dbxread.c: Likewise.
10559 * dwarfread.c: Likewise.
10560 * elfread.c: Likewise.
10561 * somread.c: Likewise.
10562
10563 * arm-tdep.c (arm_smash_text_address): New function.
10564 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10565
10566 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10567
10568 Add support for hardware watchpoints on win32 native.
10569 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10570 CONTEXT_DEBUG_REGISTERS.
10571 (dr variable): New variable. Static array containing a local copy
10572 of debug registers.
10573 (debug_registers_changed): New variable. Reflects when debug registers
10574 are changed and need to be written to inferior.
10575 (debug_registers_used): New variable. Reflects when any debug register
10576 was set, used when new threads are created.
10577 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10578 i386-nat code.
10579 (thread_rec): Set dr array if id is the thread of current_event .
10580 (child_continue, child_resume): Change the debug registers for all
10581 threads if debug_registers_changed.
10582 (child_add_thread): Change the debug registers if debug_registers_used.
10583 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10584 Link nm.h to new nm-cygwin.h file.
10585 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10586 of hardware registers.
10587
10588 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10589
10590 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10591 Restore behavour broken by 2002-01-20 Andrew Cagney
10592 <ac131313@redhat.com> IEEE_FLOAT removal.
10593
10594 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10595
10596 * c-valprint.c (c_val_print): Pass a proper valaddr to
10597 cp_print_class_method.
10598 * valops.c (search_struct_method): If there is only one method
10599 and args is NULL, return that method.
10600
10601 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10602
10603 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10604 accessing tag_name directly.
10605
10606 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10607
10608 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10609 of accessing tag_name directly.
10610
10611 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10612
10613 PR gdb/280
10614 * gdbtypes.c (replace_type): New function.
10615 * gdbtypes.h (replace_type): Add prototype.
10616 * stabsread.c (read_type): Use replace_type.
10617
10618 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10619
10620 * Makefile.in (memattr.o): Add missing dependencies rule.
10621
10622 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10623
10624 * breakpoint.c (break_at_finish_command): Really export.
10625 (break_at_finish_at_depth_command): Ditto.
10626 (tbreak_at_finish_command): Ditto.
10627 * hppa-tdep.c: Include completer.h.
10628 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10629 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10630
10631 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10632
10633 * utils.c (do_write): New function.
10634 (error_stream): Rewrite combining the code from error_begin and
10635 verror.
10636 (verror): Rewrite using error_stream.
10637 (error_begin): Delete function.
10638
10639 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10640
10641 * utils.c (error_begin): Make static.
10642 * defs.h (error_begin): Delete declaration.
10643
10644 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10645 (decode_line_1): Use cplusplus_error instead of error_begin,
10646 cplusplus_hint and return_to_top_level.
10647 * coffread.c (coff_symfile_read): Use error instead of error_begin
10648 and return_to_top_level.
10649 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10650
10651 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10652
10653 * language.h (type_error, range_error): Make string parameter
10654 constant.
10655 * language.c (warning_pre_print): Delete extern declaration.
10656 * dwarfread.c (warning_pre_print): Ditto.
10657 * language.c (type_error, range_error): Rewrite to use verror and
10658 vwarning instead of warning_begin.
10659
10660 2002-02-01 Michael Snyder <msnyder@redhat.com>
10661
10662 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10663 (set_ignore_count): Move misplaced comment back where it belongs.
10664
10665 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10666
10667 * command.h (NO_FUNCTION): Delete macro.
10668 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10669 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10670 * tracepoint.c (_initialize_tracepoint): Ditto.
10671 * cli/cli-decode.c (add_set_cmd): Ditto.
10672 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10673
10674 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10675
10676 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10677 Update ``this'' pointer when calling virtual functions.
10678
10679 2002-02-01 Michael Snyder <msnyder@redhat.com>
10680
10681 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10682 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10683
10684 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10685
10686 * regformats/reg-arm.dat: New file.
10687 * regformats/reg-i386.dat: New file.
10688 * regformats/reg-ia64.dat: New file.
10689 * regformats/reg-m68k.dat: New file.
10690 * regformats/reg-mips.dat: New file.
10691 * regformats/reg-ppc.dat: New file.
10692 * regformats/reg-sh.dat: New file.
10693 * regformats/regdef.h: New file.
10694 * regformats/regdat.sh: New file.
10695
10696 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10697
10698 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10699 (arm_frame_args_address, arm_frame_locals_address): New functions.
10700 (arm_frame_num_args): New function.
10701 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10702 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10703 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10704
10705 2002-01-31 Michael Snyder <msnyder@redhat.com>
10706
10707 * breakpoint.c (break_at_finish_command): Export.
10708 (break_at_finish_at_depth_command): Export.
10709 (tbreak_at_finish_command): Export.
10710 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10711 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10712 "txbreak" commands, which are HPPA specific.
10713
10714 * printcmd.c (disassemble_command): Remove an ancient
10715 artifact of an old merge.
10716
10717 * symfile.h (enum overlay_debugging_state):
10718 Define enum constant values for overlay mode.
10719 * symfile.c (overlay_debugging): Use enums instead of literals.
10720 (overlay_is_mapped, overlay_auto_command,
10721 overlay_manual_command): Ditto.
10722
10723 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10724 breakpoint_here_p, breakpoint_inserted_here_p,
10725 breakpoint_thread_match, bpstat_stop_status,
10726 describe_other_breakpoints, check_duplicates, clear_command):
10727 Coding standard fixes.
10728
10729 * target.c (target_xfer_memory): Add spaces, coding standard.
10730 (do_xfer_memory): Add missing line to trust-readonly
10731 code: check bfd SEC_READONLY flag for section.
10732
10733 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10734
10735 * PROBLEMS: Fix typo, 5.1->5.1.1.
10736
10737 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10738
10739 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10740 data symbols, since we search based on textlow and texthigh.
10741 (find_pc_sect_symtab): Likewise.
10742
10743 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10744
10745 * defs.h (vwarning): Declare.
10746 * utils.c (vwarning): New function.
10747 (warning): Call vwarning.
10748 (warning_begin): Delete function.
10749
10750 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10751 the warning message.
10752 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10753 warning_begin.
10754
10755 2002-01-30 Michael Snyder <msnyder@redhat.com>
10756
10757 * NEWS: Mention "set trust-readonly-sections" command.
10758 Mention generate-core-file command.
10759
10760 2002-01-15 Michael Snyder <msnyder@redhat.com>
10761
10762 * target.c: New command, "set trust-readonly-sections on".
10763 (do_xfer_memory): Honor the suggestion to trust readonly sections
10764 by reading them from the object file instead of from the target.
10765 (initialize_targets): Register command "set trust-readonly-sections".
10766
10767 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10768
10769 * parse.c (target_map_name_to_register): Simplify, search regs and
10770 pseudo-regs using a single loop.
10771
10772 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10773
10774 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10775
10776 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10777
10778 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10779 * config/i386/i386v42mp.mh: Add i387-nat.o .
10780 * i386v4-nat.c: Include i387-nat.h.
10781 (supply_fpregset): Use i387_supply_fsave.
10782 (fill_fpregset): Use i387_fill_fsave.
10783
10784 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10785
10786 * arm-tdep.c (arm_call_dummy_words): Define.
10787 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10788 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10789 (CALL_DUMMY_WORDS): Define.
10790 (arm_call_dummy_words): Declare.
10791 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10792 (arm_linux_call_dummy_words): Declare.
10793
10794 2002-01-30 Andreas Schwab <schwab@suse.de>
10795
10796 * m68klinux-nat.c: Fix last change to use regcache_collect
10797 instead of referencing registers[] directly.
10798
10799 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10800
10801 * parse.c (target_map_name_to_register): Delete code wrapped in
10802 #ifdef REGISTER_NAME_ALIAS_HOOK.
10803
10804 2002-01-28 Michael Snyder <msnyder@redhat.com>
10805
10806 * regcache.c (legacy_read_register_gen): Need to be able to
10807 read pseudo-register as well as real register.
10808 (legacy_write_register_gen): Ditto.
10809
10810 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10811
10812 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10813 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10814 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10815 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10816 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10817 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10818 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10819 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10820 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10821 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10822 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10823 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10824 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10825 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10826 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10827 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10828 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10829 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10830 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10831 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10832
10833 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10834
10835 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10836 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10837 (initialize_current_architecture): Update target_byte_order using
10838 information from BFD.
10839 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10840 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10841
10842 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10843
10844 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10845 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10846
10847 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10848 #ifdef INVALID_FLOAT.
10849 * infcmd.c (do_registers_info): Ditto.
10850 * values.c (unpack_double): Ditto. Add comment.
10851
10852 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10853 already commented out.
10854
10855 2002-01-26 Andreas Schwab <schwab@suse.de>
10856
10857 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10858 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10859 registers and add support for PTRACE_GETREGS.
10860
10861 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10862
10863 GDB 5.1.1 released from 5.1 branch.
10864 * NEWS: Add 5.1.1 news.
10865 * README: Sync with 5.1 branch.
10866
10867 2002-01-23 Fred Fish <fnf@redhat.com>
10868
10869 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10870 stabstring on initial malloc. Reallocing will copy it for us,
10871 if necessary.
10872
10873 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10874
10875 * Makefile.in (hpread_h): Delete.
10876 (HFILES_NO_SRCDIR): Remove hpread.h.
10877 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10878 (hpread.o): Update dependencies.
10879 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10880
10881 * hp-psymtab-read.c: Remove file.
10882 * hp-symtab-read.c: Remove file.
10883 * hpread.h: Remove file.
10884
10885 * hpread.c: Merge all contents of hp-psymtab-read.c,
10886 hp-symtab-read.c and hpread.h into this file, as it was prior to
10887 January 1999.
10888
10889 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10890 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10891 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10892 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10893
10894 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10895
10896 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10897 fill_gregset): Call gdbarch_tdep() just once, assign result to
10898 variable and use that, instead of calling the function several
10899 times.
10900
10901 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10902
10903 * configure.host: Accept sparcv9 as alias for sparc64.
10904 * configure.tgt: Likewise.
10905
10906 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10907
10908 * solib-aix5.c (build_so_list_from_mapfile)
10909 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10910 arguments is not reversed.
10911 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10912 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10913
10914 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10915
10916 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10917 modified version of obsolete sh_fetch_pseudo_register.
10918 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10919 (sh4_register_read): New function.
10920 (sh_pseudo_register_write): New function. Renamed and modified
10921 version of obsolete sh_store_pseudo_register.
10922 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10923 (sh4_register_write): New function.
10924 (sh_gdbarch_init): Remove setting of gdbarch function
10925 fetch_pseudo_register and store_pseudo_register. Remove setting of
10926 register_convert_to_raw, register_convert_to_virtual,
10927 register_convertible.
10928 (sh_sh4_register_convertible): Delete. No longer needed. All is
10929 taken care by architecture specific functions
10930 register_read/register_write.
10931 (sh_sh4_register_convert_to_virtual): Make static.
10932 (sh_sh4_register_convert_to_raw): Ditto.
10933
10934 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10935
10936 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10937 (floatformat_is_nan, floatformat_mantissa): Ditto.
10938
10939 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10940 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10941 builtin_type_ieee_double_little,
10942 builtin_type_ieee_double_littlebyte_bigword,
10943 builtin_type_m68881_ext, builtin_type_i960_ext,
10944 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10945 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10946 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10947 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10948
10949 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10950
10951 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10952 parameter. Set frameless flag if it exists and depended of
10953 whether the scanned function is frameless or not.
10954 (xstormy16_skip_prologue): If function is frameless, return
10955 result of xstormy16_scan_prologue().
10956 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10957 call.
10958
10959 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10960
10961 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10962 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10963 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10964 sh_sh4_register_byte, sh_sh4_register_raw_size,
10965 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10966 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10967 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10968 sh_store_pseudo_register, sh_do_pseudo_register): Call
10969 gdbarch_tdep() just once, assign result to variable and use that,
10970 instead of calling the function several times.
10971
10972 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10973
10974 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10975 macros instead of LAST_FPU_CTRL_REGNUM.
10976 (store_register): Likewise.
10977
10978 2002-01-21 Jim Blandy <jimb@redhat.com>
10979
10980 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10981 is up-to-date before running the program, not just when a program
10982 exits.
10983
10984 2002-01-21 Fred Fish <fnf@redhat.com>
10985
10986 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10987 when we have found all instructions we are looking for.
10988
10989 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10990
10991 * arm-tdep.c (arm_register_name): New function.
10992 (arm_registers_names): Make static.
10993 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10994 (arm_register_name): Declare.
10995 (REGISTER_NAME): Use it.
10996
10997 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10998 Kevin Buettner <kevinb@redhat.com>
10999
11000 Convert arm targets to new FRAME interface.
11001 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11002 (arm_frame_find_save_regs): Delete.
11003 (arm_frame_init_saved_regs): New.
11004 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11005 Allocate extra_info as required. Convert all uses of fsr.regs
11006 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11007 to use extra_info.
11008 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11009 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11010 (check_prologue_cache, save_prologue_cache): Likewise.
11011 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11012 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11013 (FRAME_FIND_SAVED_REGS): Delete.
11014 (arm_frame_find_saved_regs): Delete prototype.
11015 (arm_frame_init_saved_regs): New prototype.
11016 (FRAME_INIT_SAVED_REGS): Define.
11017
11018 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11019
11020 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11021
11022 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11023
11024 From Jeff Law <law@redhat.com>:
11025 * infttrace.c: Include <sys/pstat.h>.
11026 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11027 exec file if the ttrace equivalent fails.
11028
11029 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11030
11031 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11032 (closeLogFile): Ditto.
11033
11034 2002-01-20 Michael Chastain <mec@shout.net>
11035
11036 * top.c (print_gdb_version): Bump copyright year to 2002.
11037
11038 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11039
11040 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11041 Zannoni and Eli Zaretskii.
11042
11043 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11044
11045 * buildsym.c: Update copyright years.
11046 * c-typeprint.c: Likewise.
11047 * dwarf2read.c: Likewise.
11048 * f-typeprint.c: Likewise.
11049 * gdbtypes.c: Likewise.
11050 * gdbtypes.h: Likewise.
11051 * hp-symtab-read.c: Likewise.
11052 * hpread.c: Likewise.
11053 * mdebugread.c: Likewise.
11054 * p-typeprint.c: Likewise.
11055
11056 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11057
11058 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11059 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11060 byte-order selectable.
11061 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11062 * arch-utils.c: Ditto.
11063 (set_endian): Ditto.
11064 (set_endian_from_file): Ditto.
11065 * gdbserver/low-sim.c (create_inferior): Ditto.
11066 * gdbarch.sh: Ditto.
11067 * gdbarch.h: Re-generate.
11068 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11069 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11070 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11071 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11072 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11073 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11074 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11075 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11076 macro definition.
11077 * config/mips/tm-wince.h: Remove #undef of macro
11078 TARGET_BYTE_ORDER_SELECTABLE.
11079 * config/sh/tm-wince.h: Ditto.
11080
11081 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11082
11083 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11084 member function fields. Add accessor macro
11085 TYPE_FN_FIELD_ARTIFICIAL.
11086 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11087 * c-typeprint.c (c_type_print_base): Skip artificial member
11088 functions.
11089
11090 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11091
11092 * f-typeprint.c: Delete unused function f_type_print_args.
11093 * p-typeprint.c: Delete unused function pascal_type_print_args.
11094
11095 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11096
11097 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11098 comment. Add ``artificial'' to ``union field_location''.
11099
11100 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11101
11102 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11103 * mdebugread.c (parse_symbol): Likewise.
11104 * stabsread.c (define_symbol): Likewise.
11105 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11106 initializing TYPE_FIELD_BITPOS to n (obsolete).
11107 (hpread_doc_function_type): Likewise.
11108 * hpread.c (hpread_function_type): Likewise.
11109
11110 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11111
11112 * configure.in (host_makefile_frag): Only require a host makefile
11113 fragment when a native build.
11114 * configure: Re-generate.
11115
11116 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11117
11118 * doublest.h (floatformat_from_type): Declare.
11119 * doublest.c (floatformat_from_type): New function.
11120 (convert_typed_floating): Use.
11121
11122 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11123 call to function floatformat_from_type.
11124
11125 * gdbarch.sh (IEEE_FLOAT): Delete.
11126 * gdbarch.h, gdbarch.c: Re-generate.
11127 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11128 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11129 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11130 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11131 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11132 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11133 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11134 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11135 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11136 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11137 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11138 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11139
11140 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11141 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11142 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11143 * sh-tdep.c (sh_gdbarch_init): Ditto.
11144 * mips-tdep.c (mips_gdbarch_init): Ditto.
11145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11146 * cris-tdep.c (cris_gdbarch_init): Ditto.
11147
11148 2002-01-20 Jiri Smid <smid@suse.cz>
11149
11150 * configure.host, configure.tgt: Support x86-64.
11151 * NEWS: Note new target x86-64.
11152
11153 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11154 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11155 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11156 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11157 x86-64-linux-nat.o): Fix dependencies.
11158
11159 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11160
11161 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11162 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11163 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11164 * config/sparc/xm-sun4os4.h: Delete file.
11165 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11166
11167 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11168
11169 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11170 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11171 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11172 * config/i386/i386lynx.mh (XM_FILE): Delete.
11173 * config/rs6000/xm-rs6000ly.h: Delete file.
11174 * config/sparc/xm-sparclynx.h: Delete file.
11175 * config/m68k/xm-m68klynx.h: Delete file.
11176 * config/i386/xm-i386lynx.h: Delete file.
11177 * config/xm-lynx.h: Delete file.
11178 * config/djgpp/fnchange.lst: Update.
11179
11180 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11181
11182 * alpha-tdep.c (alpha_register_byte): New function.
11183 (alpha_register_raw_size): Ditto.
11184 (alpha_register_virtual_size): Ditto.
11185 (alpha_skip_prologue_internal): Renamed from
11186 alpha_skip_prologue.
11187 (alpha_skip_prologue): New version that calls
11188 alpha_skip_prologue_internal.
11189 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11190 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11191 second argument from alpha_skip_prologue.
11192 (REGISTER_BYTE): Use alpha_register_byte.
11193 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11194 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11195 (FRAMELESS_FUNCTION_INVOCATION): Use
11196 generic_frameless_function_invocation_not.
11197 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11198 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11199
11200 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11201
11202 * config/mips/xm-news-mips.h: Delete file.
11203 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11204
11205 * config/m88k/xm-m88k.h: Delete file.
11206 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11207 * config/m88k/xm-delta88v4.h: Ditto.
11208 * config/m88k/xm-delta88.h: Ditto.
11209
11210 * config/alpha/xm-fbsd.h: Delete file.
11211 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11212
11213 * config/sparc/xm-sparc.h: Delete file.
11214 * Makefile.in (xm-sun4os4.h): Delete dependency.
11215 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11216 * config/sparc/xm-sun4os4.h: Ditto.
11217 * config/sparc/xm-linux.h: Ditto.
11218
11219 * config/i386/xm-windows.h: Delete file.
11220
11221 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11222
11223 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11224 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11225
11226 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11227
11228 * alpha-tdep.c (alpha_call_dummy_words): New.
11229 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11230 (CALL_DUMMY_P): Define.
11231 (CALL_DUMMY_WORDS): Define.
11232 (SIZEOF_CALL_DUMMY_WORDS): Define.
11233
11234 2002-01-19 Per Bothner <per@bothner.com>
11235
11236 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11237 isn't NULL, which can happen with some gcj-3.x-produced code.
11238
11239 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11240
11241 * alpha-tdep.c (alpha_register_virtual_type): New function.
11242 (alpha_init_frame_pc_first): Ditto.
11243 (alpha_fix_call_dummy): Ditto.
11244 (alpha_store_struct_return): Ditto.
11245 (alpha_extract_struct_value_address): Ditto.
11246 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11247 alpha_register_virtual_type.
11248 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11249 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11250 alpha_extract_struct_value_address.
11251 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11252 (INIT_FRAME_PC): Use init_frame_pc_noop.
11253 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11254
11255 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11256
11257 * i386gnu-nat.c: Include "i386-tdep.h".
11258 (fetch_fpregs): Simplify code dealing with uninitialized floating
11259 point states such that it doesn't require FP7_REGNUM.
11260
11261 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11262
11263 * alpha-tdep.c (frame_extra_info): New.
11264 (alpha_find_saved_regs): Make static. Use
11265 frame->extra_info.
11266 (alpha_frame_init_saved_regs): New function.
11267 (alpha_frame_saved_pc): Use frame->extra_info.
11268 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11269 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11270 (init_extra_frame_info): Rename to...
11271 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11272 (alpha_print_extra_frame_info): New function.
11273 (alpha_frame_locals_address): Ditto.
11274 (alpha_frame_args_address): Ditto.
11275 (alpha_pop_frame): Use frame->extra_info.
11276 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11277 alpha_frame_args_address.
11278 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11279 (alpha_find_saved_regs): Remove prototype.
11280 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11281 (EXTRA_FRAME_INFO): Remove.
11282 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11283 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11284
11285 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11286
11287 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11288 (alpha_cannot_fetch_register): Ditto.
11289 (alpha_cannot_store_register): Ditto.
11290 (alpha_register_convertible): Ditto.
11291 (alpha_use_struct_convention): Ditto.
11292 * config/alpha/tm-alpha.h: Update copyright years.
11293 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11294 (INNER_THAN): Use core_addr_lessthan.
11295 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11296 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11297 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11298 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11299 (FRAME_CHAIN): Remove unnecessary cast.
11300
11301 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11302
11303 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11304 obsolete.
11305
11306 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11307
11308 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11309 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11310 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11311 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11312 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11313 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11314 * x86-64-linux-nat.c: Ditto.
11315
11316 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11317
11318 * alpha-tdep.c (alpha_register_name): New function.
11319 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11320 (REGISTER_NAME): Define.
11321
11322 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11323
11324 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11325
11326 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11327
11328 * alpha-tdep.c: Update copyright years.
11329 (alpha_next_pc): New function.
11330 (alpha_software_single_step): Ditto.
11331 * config/alpha/tm-alpha.h: Add prototype for
11332 alpha_software_single_step.
11333
11334 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11335
11336 * alphabsd-nat.c: Update copyright years.
11337 (fill_gregset): Use regcache_collect.
11338 (fill_fpregset): Likewise.
11339 (fetch_inferior_registers): Only fetch integer registers
11340 if requested to do so.
11341 (store_inferior_registers): Only store integer registers
11342 if requested to do so.
11343
11344 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11345
11346 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11347 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11348 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11349 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11350 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11351 * config/arm/linux.mh (XDEPFILES): Delete.
11352 * config/arm/nbsd.mh (XDEPFILES): Delete.
11353 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11354 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11355 * config/i386/i386m3.mh (XDEPFILES): Delete.
11356 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11357 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11358 * config/i386/fbsd.mh (XDEPFILES): Delete.
11359 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11360 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11361 * config/i386/i386v4.mh (XDEPFILES): Delete.
11362 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11363 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11364 * config/i386/i386aix.mh (XDEPFILES): Delete.
11365 * config/i386/go32.mh (XDEPFILES): Delete.
11366 * config/i386/cygwin.mh (XDEPFILES): Delete.
11367 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11368 * config/i386/i386mach.mh (XDEPFILES): Delete.
11369 * config/i386/i386v32.mh (XDEPFILES): Delete.
11370 * config/i386/linux.mh (XDEPFILES): Delete.
11371 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11372 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11373 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11374 * config/i386/i386sco.mh (XDEPFILES): Delete.
11375 * config/i386/i386v.mh (XDEPFILES): Delete.
11376 * config/i386/nbsd.mh (XDEPFILES): Delete.
11377 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11378 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11379 * config/i386/symmetry.mh (XDEPFILES): Delete.
11380 * config/i386/obsd.mh (XDEPFILES): Delete.
11381 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11382 * config/ia64/linux.mh (XDEPFILES): Delete.
11383 * config/ia64/aix.mh (XDEPFILES): Delete.
11384 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11385 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11386 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11387 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11388 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11389 * config/m68k/linux.mh (XDEPFILES): Delete.
11390 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11391 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11392 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11393 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11394 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11395 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11396 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11397 * config/m88k/delta88.mh (XDEPFILES): Delete.
11398 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11399 * config/m88k/m88k.mh (XDEPFILES): Delete.
11400 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11401 * config/mips/linux.mh (XDEPFILES): Delete.
11402 * config/mips/irix6.mh (XDEPFILES): Delete.
11403 * config/mips/irix5.mh (XDEPFILES): Delete.
11404 * config/mips/irix4.mh (XDEPFILES): Delete.
11405 * config/mips/irix3.mh (XDEPFILES): Delete.
11406 * config/mips/decstation.mh (XDEPFILES): Delete.
11407 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11408 (NATDEPFILES): Move core-aout.o to here.
11409 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11410 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11411 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11412 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11413 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11414 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11415 * config/pa/hpux11.mh (XDEPFILES): Delete.
11416 * config/powerpc/aix.mh (XDEPFILES): Delete.
11417 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11418 * config/powerpc/linux.mh (XDEPFILES): Delete.
11419 * config/romp/rtbsd.mh: Rename XDEPFILES.
11420 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11421 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11422 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11423 * config/s390/s390.mh (XDEPFILES): Delete.
11424 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11425 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11426 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11427 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11428 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11429 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11430 * config/sparc/linux.mh (XDEPFILES): Delete.
11431 * config/vax/vaxult.mh (XDEPFILES): Delete.
11432 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11433 * Makefile.in (DEPFILES): Remove XDEPFILES.
11434
11435 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11436
11437 * utils.c (internal_verror): Fix comments, default is yes not no.
11438 Update queries to match. Default to quit and dump core.
11439
11440 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11441
11442 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11443 copyright.
11444 * defs.h, event-top.c, gdbcmd.h: Ditto.
11445 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11446 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11447 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11448 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11449 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11450 * mi/mi-main.c:Ditto.
11451
11452 * stack.c, symfile.c: Update copyright.
11453
11454 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11455
11456 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11457 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11458 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11459 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11460
11461 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11462
11463 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11464 * gdbserver/low-lynx.c (myattach): Likewise.
11465 * gdbserver/low-nbsd.c (myattach): Likewise.
11466 * gdbserver/low-sim.c (myattach): Likewise.
11467 * gdbserver/low-sparc.c (myattach): Likewise.
11468 * gdbserver/low-sun3.c (myattach): Likewise.
11469
11470 * gdbserver/low-linux.c (myattach): New function.
11471
11472 * gdbserver/server.c (attach_inferior): New function.
11473 (main): Handle "--attach".
11474
11475 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11476
11477 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11478 maintainer.
11479
11480 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11481
11482 * c-typeprint.c (is_type_conversion_operator): Add additional
11483 check for non-conversion operators.
11484
11485 2002-01-15 Michael Snyder <msnyder@redhat.com>
11486
11487 * linux-proc.c: Add "info proc" command, a la procfs.c.
11488 (read_mapping): New function, abstract and re-use code.
11489 (linux_find_memory_regions): Use new func read_mapping.
11490 (linux_info_proc_cmd): New function, implement "info proc".
11491 (_initialize_linux_proc): Add new command "info proc".
11492
11493 2002-01-15 Michael Snyder <msnyder@redhat.com>
11494
11495 * symfile.c (generic_load): Use bfd_map_over_sections method
11496 instead of manipulating bfd structure members directly.
11497 (add_section_size_callback): New function, bfd sections callback
11498 used by generic_load.
11499 (load_sections_callback): New function, bfd sections callback
11500 used by generic_load.
11501
11502 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11503
11504 [Based on work by Jim Blandy]
11505 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11506 (builtin_type_vec128): Export.
11507 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11508 types.
11509 (builtin_type_vec128): New builtin type for 128 bit vector
11510 registers.
11511 (build_gdbtypes): Initialize builtin_type_v16qi and
11512 builtin_type_v8hi. Create the vec128 register builtin type
11513 structure.
11514 (build_builtin_type_vec128): New function.
11515 (_initialize_gdbtypes): Register builtin_type_v16qi and
11516 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11517 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11518 AltiVec register to new builtin type.
11519
11520 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11521
11522 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11523 to make_cv_type.
11524
11525 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11526
11527 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11528 CLEAN_UP_REGISTER_VALUE.
11529 * regcache.c (supply_register): Update only call.
11530
11531 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11532
11533 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11534 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11535 a29k-*-vxworks* targets as obsolete.
11536
11537 2002-01-14 Michael Snyder <msnyder@redhat.com>
11538
11539 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11540 until we can resolve portability issues.
11541 * gregset.h: Remove references to fpxregs.
11542 * gcore.c (gcore_command): Initialize note_sec to NULL.
11543
11544 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11545
11546 * signals.c (target_signal_to_name): Rewrite. Only use
11547 signals[].name when in bounds and non-NULL.
11548
11549 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11550
11551 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11552 * signals.c (target_signal_to_name): Verify that SIG is within the
11553 bounds of the signals array.
11554
11555 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11556
11557 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11558
11559 2002-01-13 Keith Seitz <keiths@redhat.com>
11560
11561 * stack.c (print_frame_info_base): Print the frame's pc
11562 only if when print_frame_info_listing_hook is not defined.
11563
11564 2002-01-13 Keith Seitz <keiths@redhat.com>
11565
11566 * varobj.c (varobj_set_value): Make sure that there were no
11567 errors evaluating the object before attempting to set its
11568 value.
11569 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11570 so this offset adjustment is no longer necessary.
11571 (create_child): Don't set the error flag if the child is
11572 a CPLUS_FAKE_CHILD.
11573 (value_of_child): If value_fetch_lazy fails, return NULL
11574 so that callers will be notified that an error occurred.
11575 (c_value_of_variable): Delay check of variable's validity
11576 until later. We actually want all structs and unions to have
11577 the value "{...}".
11578 Do not return "???" for variables which could not be evaluated.
11579 This error condition must be returned to the caller so that it
11580 can get the error condition from gdb.
11581 (cplus_name_of_child): Adjust index for vptr before figuring
11582 out the name of the child.
11583 (cplus_value_of_child): If a child's (real) parent is not valid,
11584 don't even bother trying to give a value for it. Just return
11585 an error. Change all instances in this function.
11586 (cplus_type_of_child): If our parent is one of the "fake"
11587 parents, we need to get at the type of the real parent, and
11588 derive the child's true type using this information.
11589
11590 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11591
11592 From 2002-01-09 John Marshall <johnm@falch.net>:
11593 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11594 sources.redhat.com, and tweak some related URLs which had
11595 suffered from linkrot.
11596
11597 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11598
11599 From Jeff law:
11600 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11601 structures passed in registers.
11602
11603 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11604
11605 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11606 white space which prevented compilation. Reported by DSK
11607 <dsk@student.unsw.edu.au>.
11608
11609 2002-01-11 Michael Snyder <msnyder@redhat.com>
11610
11611 * symfile.c (build_section_addr_info_from_section_tab):
11612 Use bfd access method instead of manipulating bfd directly.
11613 (syms_from_objfile): Ditto.
11614 (simple_overlay_update_1): Ditto.
11615 (simple_overlay_update): Ditto.
11616 (generic_load): Ditto.
11617 (overlay_unmapped_address): FIXME comment, bfd access methods.
11618 (sections_overlap): FIXME comment, bfd access methods.
11619 (pc_in_mapped_range): FIXME comment, bfd access methods.
11620 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11621 (section_is_mapped): FIXME comment, bfd access methods.
11622 (section_is_overlay): FIXME comment, bfd access methods.
11623
11624 * symfile.c (generic_load): Whitespace and long line cleanups.
11625 Remove duplicate variable, change several local variables to
11626 more appropriate data types.
11627 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11628
11629 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11630
11631 From Peter Schauer:
11632 * language.c (longest_local_hex_string_custom): Use phex_nz to
11633 convert NUM to a hex string.
11634
11635 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11636
11637 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11638 the function.
11639 Update Copyright year.
11640
11641 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11642
11643 * language.c (longest_raw_hex_string): Delete unused function.
11644
11645 2002-01-11 Petr Sorfa <petrs@caldera.com>
11646
11647 * MAINTAINERS (write-after-approval): Add myself.
11648 * dwarf2read.c (read_tag_string_type): Handling of
11649 DW_AT_byte_size.
11650 (read_tag_string_type): FORTRAN fix to prevent propagation of
11651 first string size.
11652 (set_cu_language): Handling of DW_LANG_Fortran95
11653
11654 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11655
11656 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11657 GETPID(inferior_ptid).
11658 (store_inferior_registers): Likewise.
11659
11660 2002-01-10 Jason Merrill <jason@redhat.com>
11661
11662 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11663 Fix DW_OP_minus.
11664
11665 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11666
11667 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11668 and bfd/elf32-sh-nbsd.c.
11669
11670 2002-01-10 Michael Snyder <msnyder@redhat.com>
11671
11672 * NEWS: Mention --pid and corefile/proc-id behavior change.
11673
11674 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11675 * gcore.c: Include cli/cli-decode.h instead of command.h.
11676
11677 * main.c (captured_main): Add new command line option "--pid".
11678 If the second command line argument (following the symbol-file)
11679 begins with a digit, try to attach to it before trying to open
11680 it as a corefile.
11681 (print_gdb_help): Document the "--pid" argument.
11682
11683 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11684
11685 * completer.c (command_completer): New function.
11686
11687 * completer.h <command_completer>: Add prototype.
11688
11689 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11690 completer for the "help" command.
11691
11692 2002-01-09 Jason Merrill <jason@redhat.com>
11693
11694 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11695
11696 2002-01-09 Michael Snyder <msnyder@redhat.com>
11697
11698 * i386-linux-nat.c (fill_fpxregset): Make global.
11699 (store_fpxregset): Ditto.
11700
11701 * gregset.h (gdb_fpxregset_t): Define.
11702 (supply_fpxregset): Prototype.
11703 (fill_fpxregset): Prototype.
11704
11705 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11706
11707 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11708
11709 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11710 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11711 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11712
11713 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11714
11715 * MAINTAINERS: Update target maintainer rules so that any
11716 Maintainer can approve a tested patch for a maintenance-only
11717 target.
11718
11719 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11720
11721 * MAINTAINERS (write-after-approval): Add myself.
11722
11723 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11724 IN_SIGTRAMP.
11725
11726 2002-01-08 Michael Snyder <msnyder@redhat.com>
11727
11728 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11729 real name of the executable, rather than the /proc name.
11730
11731 2002-01-03 Michael Snyder <msnyder@redhat.com>
11732
11733 Implement a "generate-core-file" command in gdb, save target state.
11734 * gcore.c: New file. Implement new command 'generate-core-file'.
11735 Save a corefile image of the current state of the inferior.
11736 * linux-proc.c: Add linux-specific code for saving corefiles.
11737 * target.h (struct target_ops): Add new target vectors for saving
11738 corefiles; to_find_memory_regions and to_make_corefile_notes.
11739 (target_find_memory_regions): New macro.
11740 (target_make_corefile_notes): New macro.
11741 * target.c (update_current_target): Inherit new target methods.
11742 (dummy_find_memory_regions): New place-holder method.
11743 (dummy_make_corefile_notes): New place-holder method.
11744 (init_dummy_target): Initialize new dummy target vectors.
11745 * exec.c (exec_set_find_memory_regions): New function.
11746 Allow the exec_ops vector for memory regions to be taken over.
11747 (exec_make_note_section): New function, target vector method.
11748 * defs.h (exec_set_find_memory_regions): Export prototype.
11749 * procfs.c (proc_find_memory_regions): New function, corefile method.
11750 (procfs_make_note_section): New function, corefile method.
11751 (init_procfs_ops): Set new target vector pointers.
11752 (find_memory_regions_callback): New function.
11753 (procfs_do_thread_registers): New function.
11754 (procfs_corefile_thread_callback): New function.
11755 * sol-thread.c (sol_find_memory_regions): New function.
11756 (sol_make_note_section): New function.
11757 (init_sol_thread_ops): Initialize new target vectors.
11758 * inftarg.c (inftarg_set_find_memory_regions): New function.
11759 Allow to_find_memory_regions vector to be taken over.
11760 (inftarg_set_make_corefile_notes): New function.
11761 Allow to_make_corefile_notes vector to be taken over.
11762 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11763 interface layer if not target_has_execution (may be a corefile).
11764 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11765 * config/sparc/sun4sol2.mh: Ditto.
11766 * config/alpha/alpha-linux.mh: Ditto.
11767 * config/arm/linux.mh: Ditto.
11768 * config/i386/x86-64linux.mh: Ditto.
11769 * config/ia64/linux.mh: Ditto.
11770 * config/m68k/linux.mh: Ditto.
11771 * config/mips/linux.mh: Ditto.
11772 * config/powerpc/linux.mh: Ditto.
11773 * config/sparc/linux.mh: Ditto.
11774
11775 2002-01-07 Michael Snyder <msnyder@redhat.com>
11776
11777 * arm-linux-nat.c: Remove references to regcache.c internal data
11778 (registers[] and register_valid[]).
11779
11780 2002-01-07 Michael Snyder <msnyder@redhat.com>
11781
11782 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11783 so that attaching to a pid will automatically read the process's
11784 symbol file and shlibs.
11785 * Makefile.in: Add rule for linux-proc.o.
11786 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11787 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11788 * config/arm/linux.mh: Ditto.
11789 * config/i386/linux.mh: Ditto.
11790 * config/i386/x86-64linux.mh: Ditto.
11791 * config/ia64/linux.mh: Ditto.
11792 * config/m68k/linux.mh: Ditto.
11793 * config/mips/linux.mh: Ditto.
11794 * config/powerpc/linux.mh: Ditto.
11795 * config/sparc/linux.mh: Ditto.
11796
11797 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11798
11799 * win32-nat.c: Add i386-tdep.h dependency.
11800
11801 2002-01-07 Michael Snyder <msnyder@redhat.com>
11802
11803 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11804 instead of bfd_get_arch_size. Don't bail out just because
11805 there's no exec_bfd.
11806
11807 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11808 * p-valprint.c (pascal_object_print_value): Ditto.
11809 * somread.c (som_symtab_read): Ditto.
11810 * symfile.c (simple_free_overlay_region_table): Ditto.
11811 * valops.c (value_assign): Ditto.
11812
11813 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11814 use tilde_expand and strerror for opening save-tracepoints file.
11815
11816 * thread-db.c (thread_db_new_objfile): Indendation fix.
11817
11818 * infptrace.c (GDB_MAX_ALLOCA): New define.
11819 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11820 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11821 can be overridden with whatever value is appropriate to the host).
11822 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11823 alloca to allocate potentially large buffer.
11824 * rs6000-nat.c (child_xfer_memory): Ditto.
11825 * symm-nat.c (child_xfer_memory): Ditto.
11826 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11827
11828 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11829
11830 From Nick Clifton <nickc@redhat.com>
11831 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11832
11833 2002-01-07 Michael Snyder <msnyder@redhat.com>
11834
11835 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11836 Don't use exec_bfd if it's NULL.
11837
11838 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11839
11840 * valops.c (value_arg_coerce): Fix formatting.
11841
11842 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11843
11844 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11845 * gnu-nat.c: Ditto.
11846
11847 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11848
11849 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11850 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11851 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11852 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11853 z8k-coff have not been multi-arched. Update z8k-coff build
11854 status.
11855
11856 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11857
11858 * MAINTAINERS: Mark a29k target as obsolete.
11859 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11860 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11861 comments.
11862 * NEWS: Note that a29k targets are obsolete.
11863 * a29k-tdep.c: Mark as obsolete.
11864 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11865 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11866 a29k-*-vxworks* targets as obsolete.
11867 * remote-adapt.c: Obsolete.
11868 * remote-eb.c: Obsolete.
11869 * remote-mm.c: Obsolete.
11870 * remote-udi.c: Obsolete.
11871 * config/a29k/a29k-udi.mt: Obsolete.
11872 * config/a29k/a29k.mt: Obsolete.
11873 * config/a29k/tm-a29k.h: Obsolete.
11874 * config/a29k/tm-vx29k.h: Obsolete.
11875 * config/a29k/vx29k.mt: Obsolete.
11876
11877 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11878
11879 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11880 with BFD_ENDIAN_BIG.
11881
11882 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11883
11884 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11885 * configure, config.in: Re-generate.
11886 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11887 * defs.h: Do not include <endian.h>.
11888
11889 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11890
11891 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11892 * config.in: Regenerate.
11893 * configure.in: Update copyright years.
11894 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11895 * configure: Regenerate.
11896 * i386bsd-nat.c: Update copyright years.
11897 (fill_gregset): Use regcache_collect.
11898 (fetch_inferior_registers): Only fetch integer registers
11899 if requested to do so. Add support for XMM registers
11900 using PT_GETXMMREGS.
11901 (store_inferior_registers): Only store integer registers
11902 if requested to do so. Add support for XMM registers
11903 using PT_SETXMMREGS.
11904 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11905 (store_inferior_registers): Remove.
11906 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11907 (fetch_elfcore_registers): New function.
11908 (i386nbsd_elfcore_fns): New.
11909 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11910 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11911 i386bsd-nat.o.
11912 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11913 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11914 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11915 * config/i386/tm-nbsd.h: Update copyright years.
11916 (HAVE_SSE_REGS): Define.
11917 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11918 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11919 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11920 (SIGCONTEXT_PC_OFFSET): Remove.
11921 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11922
11923 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11924
11925 * configure.tgt: Remove powerpc-*-macos* target.
11926 * config/m68k/xm-mpw.h: Delete file.
11927 * config/xm-mpw.h: Delete file.
11928 * ser-mac.c: Delete file.
11929 * mpw-make.sed: Delete file.
11930 * mpw-config.in: Delete file.
11931 * mac-xdep.c: Delete file.
11932 * mac-gdb.r: Delete file.
11933 * mac-defs.h: Delete file.
11934 * mac-nat.c: Delete file.
11935 * config/powerpc/macos.mh: Delete file.
11936 * config/powerpc/macos.mt: Delete file.
11937 * config/powerpc/nm-macos.h: Delete file.
11938 * config/powerpc/tm-macos.h: Delete file.
11939 * source.c (openp, open_source_file): Remove obsolete code.
11940 * top.c (gdb_readline): Ditto.
11941 * utils.c (query): Ditto.
11942 * event-top.c (display_gdb_prompt): Ditto.
11943 * Makefile.in (ser-mac.o): Delete obsolete target.
11944 * NEWS: Update.
11945
11946 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11947
11948 * defs.h (BIG_ENDIAN): Delete macro definition.
11949 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11950 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11951 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11952 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11953 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11954 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11955 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11956 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11957 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11958 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11959 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11960 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11961 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11962 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11963 * gdbarch.c: Re-generate.
11964
11965 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11966
11967 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11968 for core files.
11969
11970 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11971
11972 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11973
11974 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11975
11976 * value.h (value_ptr): Delete typedef.
11977
11978 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11979
11980 * i386nbsd-nat.c: Update copyright years.
11981 Include i386-tdep.h.
11982
11983 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11984
11985 * stabsread.c: Update copyright years.
11986
11987 From Debashis Mahata <debashis.mahata@wipro.com>:
11988 (read_struct_fields): Deal with Sun C compiler erroneous stab
11989 output for structs and unions.
11990 Fix PR gdb/269.
11991
11992 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11993
11994 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11995 prototype.
11996
11997 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11998
11999 * cp-abi.c: Fix whitespace.
12000 (baseclass_offset): New wrapper function.
12001 * cp-abi.h (baseclass_offset): Add prototype.
12002 (struct cp_abi_ops): Add baseclass_offset pointer.
12003
12004 * valops.c (vb_match): Move to...
12005 * gnu-v2-abi.c (vb_match): here.
12006 * valops.c (baseclass_offset): Move to...
12007 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12008
12009 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12010
12011 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12012 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12013 * hpacc-abi.c (init_hpacc_ops): Likewise.
12014
12015 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12016
12017 * valops.c (find_overload_match): Accept obj as a
12018 reference parameter. Update it before returning.
12019 * value.h (find_overload_match): Update prototype.
12020 * eval.c (evaluate_subexp_standard): Pass object to
12021 find_overload_match by reference.
12022
12023 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12024
12025 * valarith.c: Replace value_ptr with struct value pointer. Remove
12026 register attribute from value declarations.
12027 * valops.c: Ditto.
12028 * value.h: Ditto.
12029 * scm-lang.c (scm_lookup_name): Ditto.
12030
12031 2002-01-03 Michael Snyder <msnyder@redhat.com>
12032
12033 Abstract the functionality of iterating over mapped memory
12034 regions into a general purpose iterator function.
12035 * procfs.c (iterate_over_mappings): New function, general purpose
12036 iterator for memory sections.
12037 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12038 (solib_mappings_callback): New function, callback for above.
12039 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12040 (info_mappings_callback): New function, callback for above.
12041
12042 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12043
12044 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12045
12046 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12047 * i386-tdep.c: Include "elf-bfd.h".
12048 (process_note_abi_tag_sections): New function.
12049 (i386_gdbarch_init): Add code to recognize various OS/ABI
12050 combinations.
12051
12052 * maint.c (_initialize_maint_cmds): Add missing \ in
12053 string-literal.
12054
12055 For older changes see ChangeLog-2001
12056 \f
12057 Local Variables:
12058 mode: change-log
12059 left-margin: 8
12060 fill-column: 74
12061 version-control: never
12062 End: