* solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2
3 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
4 to allocate partial syms and macro byte caches.
5
6 2002-10-18 David Carlton <carlton@math.stanford.edu>
7
8 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
9
10 2002-10-18 Adam Fedor <fedor@gnu.org>
11
12 * stabsread.c (find_name_end): New function.
13 (define_symbol): Use it.
14
15 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
16
17 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
18 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
19 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
20 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
21
22 2002-10-17 David Carlton <carlton@math.stanford.edu>
23
24 * symfile.h: Add opaque declaration for struct obstack.
25 Declare obsavestring to take a const char *.
26 * symfile.c (obsavestring): Make first argument a const char *.
27
28 2002-10-16 Adam Fedor <fedor@gnu.org>
29
30 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
31 names when matching breakpoints in current file.
32
33 2002-10-16 Kevin Buettner <kevinb@redhat.com>
34
35 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
36 (read_tag_pointer_type): Add address class support.
37 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
38 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
39 New methods.
40 * gdbarch.h, gdbarch.c: Regenerate.
41 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
42 (make_type_with_address_space, recursive_type_dump): Add address
43 class support.
44 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
45 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
46 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
47
48 2002-10-16 Klee Dienes <kdienes@apple.com>
49
50 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
51 to get the last character of a char[] buffer, not
52 name[sizeof(vptr_name)-1].
53
54 2002-10-14 Adam Fedor <fedor@gnu.org>
55
56 * symtab.h: New objc_specific struct.
57 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
58 (SYMBOL_DEMANGLED_NAME): Likewise.
59
60 2002-10-14 Adam Fedor <fedor@gnu.org>
61
62 * symfile.c (init_filename_language_table): Add ObjC file extension.
63
64 2002-10-14 Adam Fedor <fedor@gnu.org>
65
66 * utils.c (puts_filtered_tabular): New function.
67 (fprintf_symbol_filtered): Get ObjC demangled name.
68 * defs.h (puts_filtered_tabular): Declared.
69
70 2002-10-14 Kevin Buettner <kevinb@redhat.com>
71
72 * c-lang.h (c_type_print_varspec_prefix): Delete.
73 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
74 ``need_post_space'' parameter. Adjust all callers.
75
76 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
77
78 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
79 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
80 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
81 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
82
83 2002-10-13 Adam Fedor <fedor@gnu.org>
84
85 * source.c (print_source_lines): Update comments.
86
87 2002-10-13 Adam Fedor <fedor@gnu.org>
88
89 * valops.c (value_of_local): New function.
90 (value_of_this): Use it.
91 * value.h (value_of_local): Declared.
92
93 2002-10-13 Adam Fedor <fedor@gnu.org>
94
95 * parse.c: (length_of_subexp, prefixify_subexp): Handle
96 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
97
98 2002-10-12 Adam Fedor <fedor@gnu.org>
99
100 * language.c (binop_result_type): Add language_objc to case.
101 (integral_type): Likewise.
102 (character_type): Likewise.
103 (string_type): Likewise.
104 (boolean_type): Likewise.
105 (structured_type): Likewise.
106 (binop_type_check): Likewise.
107
108 2002-10-11 Adam Fedor <fedor@gnu.org>
109
110 * printcmd.c (address_info): Print 'self' for ObjC.
111
112 2002-10-11 Adam Fedor <fedor@gnu.org>
113
114 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
115 OP_SELF.
116
117 2002-10-11 Adam Fedor <fedor@gnu.org>
118
119 * language.h (CAST_IS_CONVERSION): Add language_objc.
120
121 2002-10-11 Adam Fedor <fedor@gnu.org>
122
123 * defs.h (enum language): Add language_objc.
124
125 2002-10-11 Klee Dienes <kdienes@apple.com>
126
127 * findvar.c (read_memory_typed_address): New function.
128 * gdbcore.h (read_memory_typed_address): Add prototype.
129 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
130 to read a value destined for a CORE_ADDR, not read_memory_integer.
131 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
132 (f77_get_dynamic_lowerbound): Ditto.
133
134 2002-10-11 Martin M. Hunt <hunt@redhat.com>
135
136 * utils.c (string_to_core_addr): After turning string into
137 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
138 which will do necessary sign-extension, etc.
139
140 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
141
142 * c-exp.y (THIS): Delete token and grammar rule.
143 (yylex): Don't return THIS.
144 * cp-valprint.c (vtbl_ptr_name_old): Delete.
145 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
146 * demangle.c (cplus_markers): Update comment. Put '$'
147 first. Remove CPLUS_MARKER.
148 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
149 * jv-exp.y (THIS): Delete token and grammar rule.
150 (yylex): Don't return THIS.
151 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
152 * objc-exp.y (THIS): Delete token and grammar rule.
153 (yylex): Don't return THIS.
154 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
155 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
156 (read_member_functions): Likewise for opname.
157 (read_tilde_fields): Use is_cplus_marker.
158
159 * defs.h (CPLUS_MARKER): Don't define.
160 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
161 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
162 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
163 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
164 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
165
166 * config/i386/tm-i386v4.h: Delete file.
167 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
168 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
169 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
170 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
171 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
172 * config/i386/i386sco5.mt (TM_FILE): Likewise.
173 * config/i386/i386v4.mt (TM_FILE): Likewise.
174 * config/i386/ncr3000.mt (TM_FILE): Likewise.
175
176 2002-10-10 Marko Mlinar <markom@opencores.org>
177
178 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
179 accidentially not commited 2002-10-09
180 * gdbarch.h, gdbarch.c: Re-generate.
181
182 2002-10-09 Marko Mlinar <markom@opencores.org>
183
184 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
185 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
186 * gdbarch.h, gdbarch.c: Re-generate.
187
188 2002-10-08 Petr Sorfa <petrs@caldera.com>
189
190 Revised and re-submitted by John Wolfe <jlw@caldera.com>
191
192 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
193 so we can work on more than one compilation unit at a time. This
194 helps prepare GDB to handle inter-CU die references.
195 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
196 the code to be defined before struct comp_unit_head.
197 (comp_unit_head): Added new members - offset, cu_head,
198 begin_die, next and dwarf2_abbrevs.
199 (dwarf2_abbrevs): Removed single static var; now member of
200 struct comp_unit_head.
201 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
202 members.
203 (psymtab_to_symtab_1): Changed to work with the new
204 struct comp_unit_head.
205 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
206 constructs the dwarf2_abbrevs[] inside the cu_header.
207 (dwarf2_empty_abbrev_table): Now expects a ptr to a
208 dwarf2_abbrev table to clean up.
209 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
210 handling of dwarf2_abbrevs inside the cu_header.
211 (read_partial_die): Now supports the call to the new
212 dwarf2_lookup_abbrev.
213 (read_full_die): Now supports the call to the new
214 dwarf2_lookup_abbrev.
215
216 2002-10-06 Christopher Faylor <cgf@redhat.com>
217
218 * Makefile.in (install-gdbtk): Add missing continuation backslash to
219 insure that shell variables, such as "transformed_name" are propagated
220 to later shell statements in rule.
221
222 2002-10-06 Mark Kettenis <kettenis@gnu.org>
223
224 * config/i386/nm-i386sco.h: Add protection against
225 multiple-inclusion. Include "i386/nm-i386v.h".
226 (REGISTER_U_ADDR): Remove define.
227 (i386_register_u_addr): Remove prototype.
228
229 2002-10-04 Michael Snyder <msnyder@redhat.com>
230
231 * m32r-stub.c (handle_exception): Make sure exception is "trap"
232 before treating it as a single-step event.
233
234 2002-10-03 Adam Fedor <fedor@gnu.org>
235
236 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
237 (objc_demangle): Remove assignment in if statements, Replace
238 free with xfree.
239 (add_msglist): Likewise.
240 (end_msglist): Likewise.
241 (complare_selectors): Likewise.
242 (selectors_info): Likewise.
243 (compare_classes): Likewise.
244 (classes_info): Likewise.
245 (print_object_command): Likewise.
246 (find_objc_msgcall_submethod): Replace PTR with void *.
247 * objc-lang.h: Remove check for __STDC__.
248
249 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
250
251 * ui-out.h (ui_out_field_fmt_int): New prototype.
252 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
253 of field width and alignment.
254 * stack.c (print_frame_info_base): When printing frame level, use
255 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
256 PR gdb/192
257
258 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
259
260 * MAINTAINERS: Add self to Write After Approval list.
261
262 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
263
264 * infcmd.c (interrupt_target_command_wrapper): Delete.
265 (interrupt_target_command): Make non static.
266 (nofp_registers_info): Make static.
267 * stack.c (return_command_wrapper): Delete.
268 (return_command): Make non static.
269
270 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
271
272 * event-top.c (gdb_setup_readline): New function. Code moved from
273 _initialize_event_loop().
274 (_initialize_event_loop): Call gdb_setup_readline().
275
276 2002-10-02 Andrew Cagney <ac131313@redhat.com>
277
278 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
279 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
280 * gdbarch.h, gdbarch.c: Re-generate.
281
282 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
283
284 Fix PR gdb/778
285 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
286 before recursing.
287 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
288 of fill_in_vptr_fieldno.
289
290 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
291
292 * inferior.h (registers_info, stepi_command, nexti_command,
293 continue_command, interrupt_target_command): Export from infcmd.c.
294 * frame.h (args_info, selected_frame_level_changed_hook,
295 return_command): Export from stack.c.
296 * v850ice.c (stepi_command, nexti_command, continue_command): use
297 prototypes from inferior.h.
298 * tracepoint.c (registers_info, args_info, locals_info): Use
299 prototypes from frame.h and inferior.h.
300 * Makefile.in (mi-main.o): Add dependency on frame.h.
301
302 2002-10-02 Andrew Cagney <ac131313@redhat.com>
303
304 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
305 value in register 3 adjusted by ppc_gp0_regnum.
306
307 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
308
309 2002-10-02 Marko Mlinar <markom@opencores.org>
310
311 * MAINTAINERS: Add myself to the Write After Approval list.
312
313 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
314
315 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
316 of the section for the N64 ABI, fixed.
317
318 * config/mips/tm-irix6.h: Include solib.h.
319
320 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
321
322 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
323 GNU operators.
324
325 2002-10-01 Andrew Cagney <ac131313@redhat.com>
326
327 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
328 and that "mi0" syntax has been removed.
329
330 2002-09-30 David Carlton <carlton@math.stanford.edu>
331
332 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
333 * ppc-sysv-tdep.c: #include "gdb_string.h".
334 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
335 pacify GCC.
336
337 2002-10-01 Andrew Cagney <ac131313@redhat.com>
338
339 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
340 "vrsave"'s register number.
341
342 2002-09-30 Andrew Cagney <ac131313@redhat.com>
343
344 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
345 use frame_unwind_signed_register to obtain the PC.
346 (mips_frame_chain): Handle a generic dummy frame.
347 (mips_init_extra_frame_info): When a generic dummy frame, don't
348 re-compute the frame base.
349 (mips_pop_frame): Handle generic dummy frames.
350 (mips_gdbarch_init): When generic dummy frames, set
351 use_generic_dummy_frames, push_dummy_frame to
352 generic_push_dummy_frame, pc_in_call_dummy to
353 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
354 generic_save_dummy_frame_tos.
355
356 2002-09-30 Andrew Cagney <ac131313@redhat.com>
357
358 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
359 against TOP when TOP was explictly set.
360 (generic_push_dummy_frame): Set TOP to zero.
361
362 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
363
364 * event-loop.c (start_event_loop): Rename variable 'result' to
365 'gdb_result', to avoid conflicts with upcoming intepreters changes.
366
367 2002-09-30 Keith Seitz <keiths@redhat.com>
368
369 * gdb-events.sh (selected_thread_changed): New event.
370 * gdb-events.c: Regenerated.
371 * gdb-events.h: Regenerated.
372
373 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
374
375 * MAINTAINERS: Add self to Write After Approval list.
376
377 2002-09-30 Fernando Nasser <fnasser@redhat.com>
378
379 * disasm.c: New file.
380 * disasm.h: New file.
381 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
382 (compare_lines): Ditto.
383 (dump_insns): Ditto.
384 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
385 argument.
386 (do_assembly_only): Ditto.
387 (do_disassembly): Renamed to gdb_disassembly and moved to
388 disasm.c. Sdded uiout argument.
389 * Makefile.in: Add new files. Reorder SFILES list. Update
390 dependencies. Include libgdb.a later in the insight executable.
391
392 2002-09-29 Andrew Cagney <ac131313@redhat.com>
393
394 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
395 bfd/elf64-alpha-fbsd.c.
396
397 2002-09-29 Andrew Cagney <ac131313@redhat.com>
398
399 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
400 i386gnu-tdep.c.
401
402 2002-09-29 Andrew Cagney <ac131313@redhat.com>
403
404 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
405 __FUNCTION__.
406 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
407 function name.
408 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
409 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
410 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
411 (S_msg_sig_post_reply): Ditto.
412
413 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
414
415 * sh-tdep.c (sh_use_struct_convention): Use definition according
416 to ABI.
417 (sh_push_arguments): Store in register with correct endianess.
418 (sh_default_store_return_value): Ditto.
419 (sh_gdbarch_init): Set sizeof long double to 8.
420
421 2002-09-27 Mark Kettenis <kettenis@gnu.org>
422
423 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
424 Fix some whitespace problems.
425
426 2002-09-27 David Carlton <carlton@math.stanford.edu>
427
428 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
429 (mcore-tdep.o): Ditto.
430 (ns32k-tdep.o): Ditto.
431 (ns32knbsd-tdep.o): Ditto.
432 (sh3-rom.o): Ditto.
433 (vax-tdep.o): Ditto.
434 * cris-tdep.c: #include "gdb_string.h"
435 * mcore-tdep.c: Ditto.
436 * ns32k-tdep.c: Ditto.
437 * ns32knbsd-tdep.c: Ditto.
438 * sh3-rom.c: Ditto.
439 * vax-tdep.c: Ditto.
440
441 2002-09-27 David Carlton <carlton@math.stanford.edu>
442
443 * config/djgpp/fnchange.lst: Add entries for
444 gdb/testsuite/gdb.c++/m-static files.
445
446 2002-09-27 Jim Wilson <wilson@redhat.com>
447
448 * MAINTAINERS: Add myself to the Write After Approval list.
449
450 2002-09-26 Martin M. Hunt <hunt@redhat.com>
451
452 * mips-tdep.c (find_proc_desc): Initialize startaddr.
453
454
455 2002-09-26 Andrew Cagney <ac131313@redhat.com>
456
457 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
458 frame.
459
460 2002-09-26 Andrew Cagney <ac131313@redhat.com>
461
462 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
463 (rs6000_struct_return_address): Delete variable.
464 (rs6000_store_struct_return): Update.
465 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
466 deprecated_extract_struct_value_address.
467 (rs6000_frame_align): New function.
468 (rs6000_gdbarch_init): Set frame_align.
469
470 2002-09-26 Andrew Cagney <ac131313@redhat.com>
471
472 From Grace Sainsbury <graces@redhat.com>:
473 * Makefile.in (gdbtk-main.o): New target.
474 (gdb.o): New target.
475 (main_h): Define.
476 (main.o): Update dependencies.
477 (gdb$(EXEEXT)): Add gdb.o.
478 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
479 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
480 (SUBDIR_GDBTK_CLEAN): Set.
481 (install-gdbtk): Install the insight binary.
482 (uninstall-gdbtk): New target.
483 (all-gdbtk, clean-gdbtk): New rule.
484 * top.c (use_windows): Default to zero.
485 * main.c: Include "main.h".
486 (main): Delete.
487 (struct captured_main_args): Delete.
488 (gdb_main): New function.
489 * main.h: New file.
490 * gdb.c: New File.
491
492 2002-09-25 Andrew Cagney <cagney@redhat.com>
493
494 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
495 (frame_map_regnum_to_name): New function.
496 (frame_map_name_to_regnum): New function.
497 * frame.h (frame_map_name_to_regnum): Declare.
498 (frame_map_regnum_to_name): Declare.
499 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
500 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
501 * parse.c: Do not include "builtin-regs.h".
502 (target_map_name_to_register): Delete function.
503 (write_dollar_variable): Use frame_map_name_to_regnum.
504 * parser-defs.h (target_map_name_to_register): Delete declaration.
505 * expprint.c: Include "frame.h".
506 (print_subexp): Use frame_map_regnum_to_name.
507 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
508 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
509
510 2002-09-25 Andrew Cagney <ac131313@redhat.com>
511
512 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
513 wasn't saved, and the next innermost frame is a dummy, return the
514 dummy frame's link register.
515
516 2002-09-24 Jim Blandy <jimb@redhat.com>
517
518 Fix from Paul Breed:
519 * main.c (captured_main): Add a `break' after the case for 'b'.
520
521 2002-09-24 Keith Seitz <keiths@redhat.com>
522
523 * varobj.c (c_type_of_child): Use get_target_type instead
524 of TYPE_TARGET_TYPE.
525
526 2002-09-22 Fernando Nasser <fnasser@redhat.com>
527
528 * source.c (get_current_or_default_source_symtab_and_line): Remove
529 function.
530 (set_default_source_symtab_and_line): New function. Attempts to
531 determine a source file to list lines from if one is not currently
532 defined.
533 (get_current_source_symtab_and_line): Initialize sal.pc and
534 sal.end fields.
535 (set_current_source_symtab_and_line): Mark argument as const.
536 * source.h: Update declarations and comments.
537 * linespec.c (decode_line_1): Replace call to removed routine above.
538 * stack.c (print_frame_info_base): Ditto.
539 * cli/cli-cmds.c (edit_command): Ditto.
540 (list_command): Ditto.
541
542 2002-09-22 Fernando Nasser <fnasser@redhat.com>
543
544 * source.c (get_current_or_default_source_symtab_and_line): Initialize
545 sal.pc and sal.end fields.
546 (get_current_or_default_source_symtab_and_line): Ditto.
547 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
548 so we do not cause a new source symtab to be searched for (reverting an
549 unintentional change from the 2002-09-20 patch).
550 * scm-lang.c (scm_unpac): Ditto.
551
552 2002-09-21 Andrew Cagney <cagney@redhat.com>
553
554 * complaints.c (symfile_explanations): Remove new-line from
555 ``isolated_message''.
556 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
557 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
558
559 2002-09-20 Nick Clifton <nickc@redhat.com>
560
561 * NEWS: Announce that V850EA ISA is no longer supported.
562 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
563
564 2002-09-20 David Carlton <carlton@math.stanford.edu>
565
566 * Makefile.in (c-lang.o): Correct dependencies.
567 (utils.o): Gather dependencies.
568 (charset.o): Move.
569 * c-lang.c: #include "gdb_string.h"
570
571 2002-09-20 Fernando Nasser <fnasser@redhat.com>
572
573 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
574 * cli/cli-cmds.c (list_command): New function. Implements the new
575 cli edit command.
576 (_init_cli_cmds): Add new command definition.
577 * gdb.1: Document edit command.
578 * doc/gdb.texinfo: Document edit command.
579
580 2002-09-20 Fernando Nasser <fnasser@redhat.com>
581
582 * source.c: Make global variables current_source_symtab and
583 current_source_line static.
584 (list_command): Moved to cli/cli-cmds.c.
585 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
586 (get_first_line_listed): New accessor function.
587 (get_lines_to_list): New accessor function.
588 (get_current_source_symtab_and_line): New function. Retrieves the
589 position in the source code that we consider current.
590 (get_current_or_default_source_symtab_and_line): New function.
591 Like the above but attempts to determine a default position if one
592 is not currently defined.
593 (set_current_source_symtab_and_line): New function. Sets the source
594 code position considered current and returns the previously set one.
595 (clear_current_source_symtab_and_line): Reset stored information about
596 a current source line.
597 (_initialize_source): Remove registration for the "list" command and
598 its alias.
599 * source.h: Add declarations for the new functions above.
600 * symtab.h: Remove declarations for the global variables mentioned
601 above.
602 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
603 obtain current source line.
604 * linespec.c (decode_line_1): Ditto.
605 * macroscope.c (default_macro_scope): Ditto.
606 * scm-lang.c (scm_unpac): Ditto.
607 * stack.c (print_frame_info_base): Ditto.
608 * symfile.c (clear_symtab_users): Ditto.
609 * symtab.c (decode_line_spec): Ditto.
610 * cli/cli-cmds.c (list_command): Moved here from source.c.
611 (ambiguous_line_spec): Moved here from source.c.
612 (_init_cli_cmds): Add definition for "list" and its alias.
613 * Makefile.in: Update dependencies.
614
615 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
616
617 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
618 with what gcc thinks is correct.
619
620 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
621
622 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
623 multiple register push instruction.
624
625 2002-09-19 Jim Blandy <jimb@redhat.com>
626
627 Add support for distinct host and target character sets.
628 * charset.c, charset.h: New files.
629 * c-exp.y: #include "charset.h".
630 (yylex): Convert character and string literals to the target
631 character set, before returning them as the semantic value of the
632 token.
633 * c-lang.c: #include "charset.h".
634 (c_emit_char): Use charset-specific methods to recognize
635 characters with backslash escape forms, to decide which characters
636 to print literally and which to print using numeric escape
637 sequences, and to convert target characters to host characters
638 before printing.
639 * utils.c: #include "charset.h".
640 (no_control_char_error): New function.
641 (parse_escape): Use charset-specific methods to recognize
642 backslash escapes, parse `control character' notation, and convert
643 characters from the host character set to the target character set.
644 * configure.in: Set the default host character set.
645 Check where to find iconv, and what its argument types might be.
646 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
647 * Makefile.in (SFILES): List charset.c.
648 (COMMON_OBS): List charset.o.
649 (charset.o): New rule.
650 (charset_h): New header dependency variable.
651 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
652 (LIBICONV): New variable, set by configure.
653 (CLIBS): Include $(LIBICONV) here.
654 * aclocal.m4, config.in, configure: Regenerated.
655
656 2002-09-19 Joel Brobecker <brobecker@gnat.com>
657
658 * ada-exp.y: Add missing semicolons to end rules. Fixes a
659 bison 1.35 warning.
660
661 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
662
663 * gdb_mbuild.sh: New file.
664
665 2002-09-19 Andrew Cagney <ac131313@redhat.com>
666
667 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
668
669 2002-09-18 Andrew Cagney <ac131313@redhat.com>
670
671 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
672 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
673 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
674 valops.c, value.h: Revert previous change.
675
676 2002-09-18 Michael Snyder <msnyder@redhat.com>
677
678 Preliminary support for Objective-C:
679 * defs.h (language_objc): New enum value.
680 (puts_filtered_tabular): Declaration only, exported from utils.c.
681 (skip_quoted): Delete, declared in completer.h.
682 * c-exp.y: Include completer.h.
683 * p-exp.y: Ditto.
684 * jv-exp.y: Ditto.
685 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
686 New operator enum values.
687 * language.h (CAST_IS_CONVERSION): Test for language_objc.
688 * language.c (binop_result_type): Handle language_objc case.
689 (integral_type, character_type, string_type, boolean_type,
690 structured_type, binop_type_check): Ditto.
691 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
692 (struct objc_specific): Add to general_symbol_info.
693 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
694 (SYMBOL_DEMANGLED_NAME): Handle objc case.
695 * parser-defs.h (struct objc_class_str): New struct type.
696 (start_msglist, end_msglist, add_msglist): Declaration only,
697 exported from objc-lang.c.
698 * value.h (value_of_local, value_nsstring,
699 call_function_by_hand_expecting_type): Exported from valops.c.
700 * valops.c (find_function_addr): Export.
701 (call_function_by_hand_expecting_type): New function.
702 (value_of_local): New function.
703 * symfile.c (init_filename_language_table): Add ".m" extension
704 for Objective-C.
705 * utils.c (puts_filtered_tabular): New function.
706 (fprintf_symbol_filtered): Add objc demangling support (disabled).
707 (set/show demangle): Extend help-string to refer to ObjC.
708 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
709 * stabsread.c (symbol_reference_defined): Objective-C symbols
710 may contain colons: make allowances when scanning stabs strings
711 for colons.
712 (objc_find_colon): New function.
713 * printcmd.c (address_info): If language == objc then print
714 "self" instead of "this".
715 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
716 OP_NSSTRING, and OP_SELF.
717 (prefixify_subexp): Ditto.
718 * source.c (print_source_lines): Mention objc in comment.
719 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
720 method names.
721
722 2002-09-18 Andrew Cagney <ac131313@redhat.com>
723
724 * complaints.h: Update copyright.
725 (struct complaints): Declare.
726 (struct complaint): Make `message' constant.
727 (internal_complaint): Declare.
728 (complaint): Declare.
729 (complaint_root): Delete declaration.
730 (symfile_complaints): Delete declaration.
731 (struct complaints): Add opaque declaration.
732 (clear_complaints): Add a complaints parameter.
733 * complaints.c: Update copyright.
734 (enum complaint_series): Define.
735 (complaint_root): Delete.
736 (struct complaints): Define.
737 (complaint_sentinel, symfile_complaint_book): New variables.
738 (symfile_explanations, symfile_complaints): New variables.
739 New variables.
740 (get_complaints): New function.
741 (vcomplaint): New function.
742 (complaint): New function.
743 (internal_complaint): New function.
744 (complain): Call vcomplain with symfile_complaint.
745 (clear_complaints): Rewrite.
746 (_initialize_complaints): Use add_setshow_command.
747 * Makefile.in (complaints.o): Update dependencies.
748 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
749 to call to clear_complaints.
750 (new_symfile_objfile, reread_symbols): Ditto.
751 (oldsyms_complaint): Delete.
752 (empty_symtab_complaint, unknown_option_complaint): Delete.
753 (free_named_symtabs): Use complaint instead of complain.
754
755 2002-09-18 Michael Snyder <msnyder@redhat.com>
756
757 Contributed by Apple Computer, Inc. Merged with current sources
758 by Adam Fedor <fedor@doc.com> [cagney].
759
760 * objc-lang.c: First clean-up round: comments, indentation.
761 * objc-lang.h: Ditto.
762 * objc-lang.y: Ditto.
763
764 2002-09-18 Andrew Cagney <ac131313@redhat.com>
765
766 * maint.c (maintenance_internal_error): Print the parameter as the
767 error message.
768 (maintenance_internal_warning): New function.
769 (_initialize_maint_cmds): Add command `maint internal-warning'.
770
771 * defs.h (internal_warning, internal_vwarning): Declare.
772 * utils.c (struct internal_problem): Define.
773 (internal_vproblem): New function.
774 (internal_warning): New function.
775 (internal_vwarning): New function.
776 (internal_warning_problem, internal_error_problem): New variables.
777 (internal_verror): Just call internal_vproblem.
778
779 2002-09-18 Michael Snyder <msnyder@redhat.com>
780
781 * objc-lang.c: New file, support for Objective-C.
782 Preliminary check-in, not yet integrated into gdb.
783 * objc-lang.h: New file.
784 * objc-exp.y: New file.
785
786 2002-09-18 Andrew Cagney <ac131313@redhat.com>
787
788 * infrun.c (signal_stop_update): Convert definition to ISO C.
789 (signal_print_update): Ditto.
790 (signal_pass_update): Ditto.
791 * inflow.c (terminal_save_ours): Ditto.
792
793 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
794 comments.
795
796 * config/djgpp/fnchange.lst: Handle name clashes between
797 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
798 bfd/coff-tic80.c.
799
800 * i386-linux-tdep.h: Fix tipo.
801
802 2002-09-18 Adam Fedor <fedor@gnu.org>
803
804 * MAINTAINERS: Add myself to the Write After Approval list.
805
806 2002-09-18 Jim Blandy <jimb@redhat.com>
807
808 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
809 texthigh and textlow to reader-specific structs caused
810 objfile_relocate to miss them. This is fixable, but the work that
811 the change was supposed to prepare GDB for never got done anyway.
812
813 2002-09-18 David Carlton <carlton@math.stanford.edu>
814
815 * MAINTAINERS: Alphabetize Write After Approval list.
816
817 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
818
819 Fix PR gdb/709
820 * values.c (value_static_field): Call read_var_value.
821
822 2002-09-18 Andrew Cagney <ac131313@redhat.com>
823
824 * valops.c (hand_function_call): Align the initial stack pointer
825 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
826 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
827 return value.
828 * mips-tdep.c (mips_frame_align): New function.
829 (mips_gdbarch_init): Set frame_align.
830 * gdbarch.sh (FRAME_ALIGN): New method.
831 * gdbarch.h, gdbarch.c: Re-generate.
832
833 2002-09-18 Michal Ludvig <mludvig@suse.cz>
834
835 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
836 registers.
837
838 2002-09-17 Andrew Cagney <ac131313@redhat.com>
839
840 * NEWS: Mention that MIPS $fp behavior changed.
841 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
842 reference to FP_REGNUM.
843 (mipsnbsd_cannot_store_register): Ditto.
844 * mips-linux-nat.c: Update copyright.
845 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
846 (mips_linux_cannot_store_register): Ditto.
847 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
848 * config/mips/tm-mips.h: Update copyright.
849 (FP_REGNUM): Delete macro.
850 (MIPS_REGISTER_NAMES): Replace "fp" with "".
851 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
852 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
853 (mips_r3041_reg_names, mips_r3051_reg_names)
854 (mips_r3081_reg_names): Replace "fp" with "".
855 Fix PR gdb/480.
856
857 2002-09-17 Theodore A. Roth <troth@verinet.com>
858
859 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
860 generic_read_register_dummy() (PR gdb/703).
861 (avr_push_return_address): #if 0 out unused vars.
862 (avr_gdbarch_init): Enable use of avr_push_return_address().
863
864 2002-09-17 Michael Snyder <msnyder@redhat.com>
865
866 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
867 RTE will take care of it.
868
869 2002-09-17 Andrew Cagney <ac131313@redhat.com>
870
871 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
872 invalid, return SP_REGNUM.
873
874 2002-09-17 Michael Snyder <msnyder@redhat.com>
875
876 * mips-tdep.c (mips_pop_frame): Read saved values of floating
877 point registers without sign extension.
878
879 2002-09-17 Andrew Cagney <cagney@redhat.com>
880
881 * blockframe.c (deprecated_read_register_dummy): Rename
882 generic_read_register_dummy.
883 * frame.c (frame_unwind_signed_register): New function.
884 (frame_unwind_unsigned_register): New function.
885 * frame.h (frame_unwind_signed_register): Declare.
886 (frame_unwind_unsigned_register): Declare.
887 (deprecated_read_register_dummy): Rename
888 generic_read_register_dummy.
889
890 * h8300-tdep.c (h8300_frame_chain): Update.
891 (h8300_frame_saved_pc): Update.
892 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
893 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
894 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
895 (s390_frame_chain): Update.
896 * v850-tdep.c (v850_find_callers_reg): Update.
897 (v850_frame_saved_pc): Update.
898 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
899 (m32r_find_callers_reg): Update.
900 (m32r_frame_saved_pc): Update.
901 * sh-tdep.c (sh_find_callers_reg): Update.
902 (sh64_get_saved_pr): Update.
903 (sh_init_extra_frame_info): Update.
904 (sh_init_extra_frame_info): Update.
905 (sh64_init_extra_frame_info): Update.
906 (sh64_init_extra_frame_info): Update.
907 * mcore-tdep.c (mcore_find_callers_reg): Update.
908 (mcore_frame_saved_pc): Update.
909 (mcore_init_extra_frame_info): Update.
910 * i386-tdep.c (i386_frame_saved_pc): Update.
911 * ia64-tdep.c (ia64_frame_saved_pc): Update.
912 (ia64_init_extra_frame_info): Update.
913 (ia64_init_extra_frame_info): Update.
914 * d10v-tdep.c (d10v_frame_saved_pc): Update.
915 * cris-tdep.c (cris_init_extra_frame_info): Update.
916 * avr-tdep.c (avr_frame_chain): Update.
917 (avr_init_extra_frame_info): Update.
918 (avr_frame_saved_pc): Update.
919 * arm-tdep.c (arm_find_callers_reg): Update.
920 (arm_init_extra_frame_info): Update.
921 (arm_frame_saved_pc): Update.
922
923 2002-09-17 Tom Tromey <tromey@redhat.com>
924
925 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
926 is "'".
927
928 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
929
930 * MAINTAINERS: Remove "non multi-arched" text from h8300.
931 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
932 NEXT_PROLOGUE_INSN.
933 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
934 NEXT_PROLOGUE_INSN.
935
936 2002-09-16 Joel Brobecker <brobecker@gnat.com>
937
938 * osfsolib.c: Remove file, replaced by solib-osf.c.
939 * Makefile.in: Remove compilation rules for osfsolib.c.
940
941 2002-09-16 David Carlton <carlton@math.stanford.edu>
942
943 * cp-valprint.c (cp_print_class_method): Correct args to
944 check_stub_method_group.
945
946 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
947
948 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
949 `set architecture'. Unify naming convention of functions.
950 (h8300_skip_prologue): Improve prologue analysis.
951 (h8300_push_arguments): Rewritten to more closely match GCC's
952 bizarre argument-passing behavior, along with the comment describing
953 said behavior.
954 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
955 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
956 sim, remote-e7000.c, remote-hms.c and remote.c
957
958 2002-09-15 Mark Kettenis <kettenis@gnu.org>
959
960 * i386-tdep.c (gdb_print_insn_i386): Removed.
961 (i386_print_insn): New function.
962 (i386_gdbarch_init): Set print_insn to i386_print_insns.
963 (_initialize_i386_tdep): Don't initialize tm_print_insn and
964 tm_print_insn_info.
965
966 2002-09-14 Mark Kettenis <kettenis@gnu.org>
967
968 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
969 zero.
970
971 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
972
973 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
974 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
975 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
976
977 2002-09-13 Christopher Faylor <cgf@redhat.com>
978
979 * win32-nat.c (child_create_inferior): Honor 'tty' command.
980
981 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
982
983 * gdbtypes.c (check_stub_method): Make static.
984 (check_stub_method_group): New function.
985 * gdbtypes.h: Update prototypes.
986 * cp-support.c: New file.
987 * cp-support.h: New file.
988
989 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
990 (update_method_name_from_physname): New function.
991 (read_member_functions): Correct method names for operators
992 and v3 constructors/destructors. Separate v2 constructors and
993 destructors.
994 * Makefile.in (stabsread.o): Update dependencies.
995 (SFILES): Add cp-support.c.
996 (COMMON_OBS): Add cp-support.o.
997 (cp_support_h, cp-support.o): Add.
998
999 * cp-valprint.c (cp_print_class_method): Call
1000 check_stub_method_group instead of check_stub_method. Remove
1001 extraneous QUITs.
1002 * p-valprint.c (pascal_object_print_class_method): Likewise.
1003 * valops.c (search_struct_method): Likewise.
1004 (find_method_list, value_struct_elt_for_reference): Likewise.
1005
1006 2002-09-13 Andrew Cagney <cagney@redhat.com>
1007
1008 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1009 * gdbarch.h, gdbarch.c: Regenerate.
1010
1011 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1012
1013 * frame.c (find_saved_register): Delete function.
1014 * frame.h (find_saved_register): Delete declaration.
1015 Fix PR gdb/631.
1016
1017 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1018
1019 * mips-tdep.c (read_next_frame_reg): Re-hack using
1020 frame_register_unwind.
1021
1022 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1023
1024 * mips-tdep.c (mips_get_saved_register): Re-hack using
1025 frame_register_unwind.
1026
1027 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1028
1029 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1030 vector. Will be useful for Interix.
1031 * gdbarch.h, gdbarch.c: Regenerate.
1032
1033 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1034 name of the malloc function by NAME_OF_MALLOC.
1035
1036 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1037
1038 * value.h (find_function_in_inferior): Add const keyword to
1039 one of the parameters. Allows us to invoke this function with
1040 a const char *.
1041 * valops.c (find_function_in_inferior): Likewise.
1042
1043 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1044
1045 * exec.c (xfer_memory): Fix compilation warning with old versions
1046 of GCC.
1047 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1048
1049 2002-09-12 David Carlton <carlton@math.stanford.edu>
1050
1051 * symtab.h: Run through gdb_indent.h.
1052 Add 2002 to Copyright year list.
1053
1054 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1055
1056 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1057 mach constants.
1058 * MAINTAINERS: Add myself to write after approval list.
1059
1060 2002-09-11 J. Brobecker <brobecker@gnat.com>
1061
1062 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1063
1064 2002-09-11 J. Brobecker <brobecker@gnat.com>
1065
1066 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1067 Interix.
1068
1069 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1070
1071 * procfs.c (do_detach): Clear current signal, not just fault.
1072 Corrects problem with breakpoint trap signal leaking to detached
1073 process on Tru64.
1074
1075 2002-09-10 Michael Snyder <msnyder@redhat.com>
1076
1077 * buildsym.c (finish_block): Protect against null pointer.
1078
1079 2002-09-10 Andrew Cagney <cagney@redhat.com>
1080
1081 * infcmd.c (default_print_registers_info): Send all output to
1082 ``file'' instead of ``gdb_stdout''.
1083
1084 2002-09-10 Michael Snyder <msnyder@redhat.com>
1085
1086 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1087 LONGEST, and use signed register read (addresses are sign-
1088 extended for mips).
1089
1090 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1091
1092 * event-loop.c (gdb_do_one_event): Make public.
1093 * event-loop.h (gdb_do_one_event): Declare.
1094
1095 2002-09-10 Jeff Law <law@redhat.com>
1096
1097 * infttrace.c (child_resume): Simplify and rework to avoid
1098 TT_PROC_CONTINUE.
1099
1100 2002-09-09 Fred Fish <fnf@intrinsity.com>
1101
1102 * printcmd.c (print_scalar_formatted): "len" is the number of
1103 target bytes, NOT the number of target bits.
1104
1105 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1106
1107 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1108 * top.c (init_main): Set rl_terminal_name.
1109
1110 2002-09-08 Aidan Skinner <aidan@velvet.net>
1111
1112 * ada-lang.c (ada_array_bound, ada_type_match,
1113 _initialize_ada_language): Fix K&R definitions.
1114 * ada-tasks.c (get_current_task): Fix K&R definitions.
1115 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1116
1117 2002-09-07 Christopher Faylor <cgf@redhat.com>
1118
1119 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1120 Add XP.
1121
1122 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1123
1124 * i386-tdep.c (i386_register_virtual_type,
1125 i386_register_convertible, i386_register_convert_to_virtual,
1126 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1127 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1128 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1129 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1130 Don't set push_arguments twice.
1131
1132 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1133 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1134 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1135 sigtramp_end to NULL.
1136 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1137 defines.
1138 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1139
1140 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1141 whitespace.
1142
1143 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1144 * gdbarch.h, gdbarch.c: Re-generate.
1145 * blockframe.c (find_pc_sect_partial_function): Convert to use
1146 SIGTRAMP_START_P predicate.
1147
1148 2002-09-05 Michael Snyder <msnyder@redhat.com>
1149
1150 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1151 generic_dummy_frame method and old method. Also distinguish
1152 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1153 (arm_extract_return_value): Use new regcache method.
1154
1155 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1156 adjustment that doesn't conform to the ABI.
1157 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1158 saved regcache, not from current regcache.
1159
1160 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1161
1162 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1163 * README: Update.
1164
1165 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1166
1167 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1168 if arm_apcs_32 is false.
1169
1170 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1171
1172 GDB 5.3 branch created.
1173
1174 2002-09-03 Theodore A. Roth <troth@verinet.com>
1175
1176 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1177 generic_unwind_get_saved_register.
1178
1179 2002-09-03 David Carlton <carlton@math.stanford.edu>
1180
1181 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1182 argument (PR gdb/653). Update call to smash_to_method_type.
1183 (read_structure_scope): Update call to dwarf2_add_member_fn.
1184
1185 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1186
1187 * x86-64-linux-tdep.c: Include gdb_string.h
1188 * x86-64-linux-nat.c: Ditto.
1189
1190 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1191
1192 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1193 when YYDEBUG is set to 1.
1194 * c-exp.y: Likewise.
1195 * f-exp.y: Likewise.
1196 * jv-exp.y: Likewise.
1197 * m2-exp.y: Likewise.
1198 * p-exp.y: Likewise.
1199
1200 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1201
1202 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1203 dependency list.
1204 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1205 solib_svr4_fetch_link_map_offsets to
1206 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1207 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1208 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1209 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1210 solib-svr4.o, and solib-legacy.o.
1211 * config/i386/tm-nbsd.h: Include solib.h.
1212
1213 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1214
1215 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1216 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1217 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1218 comment noting that this needs its own target configuration.
1219 * config/i386/nbsd.mt: New file.
1220 * config/i386/nbsdaout.mt: Remove.
1221 * config/i386/nbsdelf.mt: Ditto.
1222 * config/i386/tm-nbsdaout.h: Ditto.
1223
1224 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1225
1226 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1227 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1228 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1229 tdep->sigtramp_end.
1230 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1231 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1232 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1233
1234 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1235
1236 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1237 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1238 * i386-tdep.h (i386bsd_init_abi): New prototype.
1239 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1240 function declaration.
1241 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1242 for NetBSD-a.out or NetBSD-ELF.
1243 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1244 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1245 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1246 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1247 and nbsd-tdep.h.
1248 (i386nbsd_pc_in_sigtramp): New function.
1249 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1250 i386nbsd_pc_in_sigtramp.
1251 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1252 and i386nbsdelf_init_abi OS ABI handlers.
1253 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1254 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1255
1256 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1257
1258 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1259 registers if the target really has them.
1260
1261 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1262
1263 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1264 than nbsd-tdep.h.
1265
1266 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1267
1268 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1269 list.
1270 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1271 (alphanbsd_skip_sigtramp_frame): New functions.
1272 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1273 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1274 to alphanbsd_sigcontext_addr.
1275
1276 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1277
1278 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1279 list.
1280 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1281 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1282 nbsd_pc_in_sigtramp.
1283 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1284 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1285 * nbsd-tdep.c: Include gdb_string.h.
1286 (nbsd_pc_in_sigtramp): New function.
1287 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1288 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1289 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1290 ppcnbsd_pc_in_sigtramp.
1291 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1292 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1293 shnbsd_pc_in_sigtramp.
1294 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1295 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1296 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1297
1298 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1299
1300 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1301 watchpoints to NULL.
1302 (insert_breakpoints): set val field of watchpoints if NULL.
1303
1304
1305 2002-08-29 Jim Blandy <jimb@redhat.com>
1306
1307 * symtab.c (lookup_symbol_aux): In the cases where we find a
1308 minimal symbol of an appropriate name and use its address to
1309 select a symtab to read and search, use `name' (as passed to us)
1310 as the demangled name when searching the symtab's global and
1311 static blocks, not the minsym's name.
1312
1313 2002-08-29 Keith Seitz <keiths@redhat.com>
1314
1315 * stack.c (print_frame_info_base): Always set current_source_symtab
1316 and current_source_line.
1317
1318 2002-08-29 Donn Terry <donnte@microsoft.com>
1319
1320 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1321
1322 2002-08-28 Keith Seitz <keiths@redhat.com>
1323
1324 * stack.c (select_frame): Add FIXME concerning selected-frame
1325 events.
1326 (select_frame_command): Send selected-frame-level-changed
1327 event notification, but only if the level actually changed.
1328 (up_silently_base): Add selected-frame-level-changed event
1329 notification.
1330 (down_silently_base): Likewise.
1331
1332 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1333
1334 * Makefile.in: Update dependencies for all gdb/*.c files.
1335
1336 2002-08-27 Tom Tromey <tromey@redhat.com>
1337
1338 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1339 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1340 Update dependencies.
1341 * i387-tdep.c: Include gdb_string.h.
1342 * osabi.c: Likewise.
1343 * i386-linux-nat.c: Likewise.
1344 * lin-lwp.c: Likewise.
1345 * ax-gdb.c: Likewise.
1346 * signals/signals.c: Likewise.
1347 * jv-valprint.c: Likewise.
1348 * p-lang.c: Likewise.
1349 * c-valprint.c: Likewise.
1350 * cp-abi.c: Likewise.
1351
1352 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1353
1354 * cli/cli-script.h (copy_command_lines): Export.
1355 * breakpoint.c: Include cli/cli-script.h.
1356 * Makefile.in (breakpoint.o): Update dependencies.
1357
1358 2002-08-26 Michael Snyder <msnyder@redhat.com>
1359
1360 * breakpoint.c (insert_breakpoints): Protect all references
1361 to 'process_warning'. Shorten long lines.
1362
1363 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1364
1365 * cli/cli-script.c (copy_command_lines): New function.
1366 * defs.h (copy_command_lines): Export.
1367 * testsuite/gdb.base/commands.exp: New tests for commands
1368 attached to a temporary breakpoint, and for commands that
1369 delete the breakpoint they are attached to.
1370
1371 2002-08-26 Michael Snyder <msnyder@redhat.com>
1372
1373 * breakpoint.c (bpstat_stop_status): Instead of copying the
1374 pointer to the breakpoint commands struct, make a new copy
1375 of the struct and point to that.
1376 (bpstat_clear): Free the commands struct.
1377 (bpstat_clear_actions): Free the commands struct.
1378 (bpstat_do_actions): Free the command actions. Also execute
1379 the local cleanups, instead of deleting them.
1380 (delete_breakpoint): Leave the commands field of the bpstat
1381 chain alone -- it will be freed later.
1382
1383 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1384
1385 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1386 deleted in 2002-08-20 commit. This function is still used by
1387 ppc-linux-nat.c.
1388
1389 2002-08-26 Keith Seitz <keiths@redhat.com>
1390
1391 * gdb-events.sh: Add selected-frame-level-changed event.
1392 * gdb-events.c: Regenerated.
1393 * gdb-events.h: Regenerated.
1394
1395 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1396
1397 Fix PR gdb/393:
1398 * inflow.c (terminal_save_ours): New function to save terminal
1399 settings.
1400 * inferior.h (terminal_save_ours): Declare.
1401 * target.c (debug_to_terminal_save_ours): New function.
1402 (cleanup_target): Defaults to_terminal_save_ours.
1403 (update_current_target): Inherit to_terminal_save_ours.
1404 (setup_target_debug): Set to_terminal_save_ours.
1405 * target.h (target_terminal_save_ours): New to save terminal settings.
1406 (target_ops): New member to_terminal_save_ours.
1407 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1408 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1409 * inftarg.c (init_child_ops): Likewise.
1410 * m3-nat.c (init_m3_ops): Likewise.
1411 * procfs.c (init_procfs_ops): Likewise.
1412 * wince.c (init_child_ops): Likewise.
1413 * win32-nat.c (init_child_ops): Likewise.
1414 * sol-thread.c (init_sol_thread_ops): Likewise.
1415
1416 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1417
1418 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1419 use regcache_* functions.
1420 (i386_gdbarch_init): Set store_return_value instead of
1421 deprecated_store_return_value.
1422
1423 * regcache.c (regcache_raw_write_signed,
1424 regcache_raw_write_unsigned): New functions.
1425 * regcache.h (regcache_raw_write_signed,
1426 regcache_raw_write_unsigned): New prototypes.
1427
1428 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1429
1430 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1431 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1432 source file dependencies. Cleanup corresponding generator rules.
1433
1434 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1435
1436 * regcache.h (register_offset_hack): Declare.
1437 (regcache_cooked_read_using_offset_hack): Declare.
1438 (regcache_cooked_write_using_offset_hack): Declare.
1439
1440 * regcache.c (register_offset_hack): New function.
1441 (regcache_cooked_read_using_offset_hack): New function.
1442 (regcache_cooked_write_using_offset_hack): New function.
1443 (regcache_dump): Check that the registers, according to their
1444 offset, are packed hard against each other.
1445 (cooked_xfer_using_offset_hack): New function.
1446
1447 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1448
1449 * regcache.c (struct regcache_descr): Add field register_type.
1450 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1451 in as a parameter
1452 (init_regcache_descr): Initialize register_type. Pass the descr
1453 to init_legacy_regcache_descr. Use register_type instead of
1454 REGISTER_VIRTUAL_TYPE.
1455 (register_type): New function.
1456 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1457 * regcache.h (register_type): Declare.
1458
1459 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1460
1461 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1462 instead of deprecated_store_return_value. Fix fallout from
1463 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1464
1465 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1466
1467 * regcache.c (max_register_size): New function.
1468 (init_legacy_regcache_descr): Ensure that max_register_size is
1469 large enough for REGISTER_VIRTUAL_SIZE.
1470 * regcache.h (max_register_size): Declare.
1471
1472 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1473
1474 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1475 store_return_value.
1476 (e500_extract_return_value): Change type of valbuf pointer to
1477 void.
1478
1479 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1480
1481 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1482 workaround.
1483
1484 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1485 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1486 long long) to prevent compiler warning on 64-bit systems.
1487
1488 2002-08-23 Andrew Cagney <cagney@redhat.com>
1489
1490 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1491 (DEPRECATED_STORE_RETURN_VALUE): New method.
1492 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1493 * gdbarch.h, gdbarch.c: Re-generate.
1494
1495 * values.c (set_return_value): Pass current_regcache to
1496 STORE_RETURN_VALUE.
1497 * arch-utils.h (legacy_store_return_value): Declare.
1498 * arch-utils.c (legacy_store_return_value): New function.
1499 (legacy_extract_return_value): Update parameters.
1500
1501 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1502 STORE_RETURN_VALUE.
1503 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1504 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1505 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1506 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1507 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1508 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1509 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1510 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1511 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1512 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1513
1514 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1515 * i386-tdep.c (i386_extract_return_value): Update.
1516 * arch-utils.c (legacy_extract_return_value): Update.
1517 * frv-tdep.c (frv_gdbarch_init): Update.
1518 * cris-tdep.c (cris_gdbarch_init): Update.
1519 * d10v-tdep.c (d10v_gdbarch_init): Update.
1520 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1521 * m68k-tdep.c (m68k_gdbarch_init): Update.
1522 * mcore-tdep.c (mcore_gdbarch_init): Update.
1523 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1524 * s390-tdep.c (s390_gdbarch_init): Update.
1525 * sparc-tdep.c (sparc_gdbarch_init): Update.
1526 * sh-tdep.c (sh_gdbarch_init): Update.
1527 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1528 * v850-tdep.c (v850_gdbarch_init): Update.
1529 * avr-tdep.c (avr_gdbarch_init): Update.
1530 * ia64-tdep.c (ia64_gdbarch_init): Update.
1531 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1532 * vax-tdep.c (vax_gdbarch_init): Update.
1533 * alpha-tdep.c (alpha_gdbarch_init): Update.
1534 * arm-tdep.c (arm_gdbarch_init): Update.
1535 * mips-tdep.c (mips_gdbarch_init): Update.
1536 * i386-tdep.c (i386_gdbarch_init): Update.
1537
1538 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1539
1540 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1541 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1542
1543 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1544
1545 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1546 problems.
1547
1548 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1549
1550 * infrun.c (handle_inferior_event): Move a comment outside of a
1551 function call, in order to avoid indent reformatting this part
1552 of the code in an unreadable way.
1553
1554 2002-08-23 Grace Sainsbury <graces@redhat.com>
1555
1556 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1557 when breakpoints fail. Move general breakpoint error messages to
1558 insert_breakpoints.
1559 * breakpoint.c (insert_breakpoints): Change warnings when
1560 breakpoints are nto inserted to specify the type. Remove call to
1561 memory_error when hardware breakpoints can't be inserted. Remove
1562 multiple calls to warning so all messages are sent to the user at
1563 once.
1564 (delete_breakpoints): Make insert error messsages more explicit.
1565
1566 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1567
1568 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1569 gdbserver/ChangeLog.
1570
1571 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1572
1573 * i386-tdep.c: Include "objfiles.h".
1574 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1575 skip_trampoline_code.
1576 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1577 (CPLUS_MARKER): Define to '.'.
1578
1579 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1580 member.
1581 (linux_corefile_thread_callback): Increase args->num_notes.
1582 (linux_make_note_section): Initialize thread_args.num_notes, and
1583 use it to determine whether notes for any threads were created.
1584
1585 2002-08-23 Donn Terry <donnte@microsoft.com>
1586
1587 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1588 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1589 and PCUNKILL.
1590 (write_with_trace): Conditionalize out the switch branch handling
1591 PCSHOLD if the corresponding macro is not defined. Likewise for
1592 PRSABORT and PRSTOP.
1593 This change will be needed by the Interix port.
1594
1595 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1596
1597 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1598 write_register wherever possible instead of manipulating the
1599 register bytes directly.
1600 Assign VALUE_CONTENTS to a variable and use that.
1601 The GPR numbers are now dependent on the architecture.
1602
1603 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1604
1605 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1606 ev_offset fields.
1607 (skip_prologue): Add support for BookE/e500 instructions.
1608 (e500_extract_return_value): New function.
1609 (frame_get_saved_regs): Add support for saving ev registers and
1610 pseudo gpr's.
1611 (e500_store_return_value): New function.
1612 (rs6000_gdbarch_init): Move up default intializations of
1613 deprecated_extract_return_value and store_return_value. Overwrite
1614 init of store_return_value with e500 specific version.
1615 Set extract_return_value for e500.
1616
1617 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1618
1619 * blockframe.c (generic_call_dummy_register_unwind): Use
1620 regcache_cooked_read to catch cases in which the variable is
1621 stored in a pseudo register.
1622
1623 2002-08-22 Andrew Cagney <cagney@redhat.com>
1624
1625 * NEWS: Mention that the i960 has been made obsolete.
1626 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1627 i960-tdep.c
1628 (remote-nrom.o): Obsolete target.
1629 (remote-nindy.o, i960-tdep.o): Ditto.
1630 * remote-nrom.c: Make file obsolete.
1631 * remote-nindy.c, remote-vx960.c: Ditto.
1632 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1633 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1634 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1635 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1636 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1637 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1638 i960-*-vxworks* obsolete.
1639 * MAINTAINERS: Note that the i960 is obsolete.
1640
1641 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1642
1643 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1644 detach to allow reinitialization.
1645
1646 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1647
1648 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1649 attempt).
1650
1651 2002-08-22 Jim Blandy <jimb@redhat.com>
1652
1653 * coffread.c (coff_symfile_read): Don't try to read the line
1654 number table from disk if the image file doesn't have a symbol
1655 table; we'll never actually look at the info anyway, and Windows
1656 ships DLL's with bogus file offsets for the line number data.
1657
1658 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1659
1660 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1661 an e500 executable.
1662
1663 2002-08-21 Michael Snyder <msnyder@redhat.com>
1664
1665 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1666 (MSYMBOL_SIZE): Replace macro with function.
1667 (DEFAULT_MIPS_TYPE): Delete unused macro.
1668 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1669 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1670
1671 2002-08-21 Jim Blandy <jimb@redhat.com>
1672
1673 * valops.c (value_cast): Simplify and correct logic for doing a
1674 static cast from a pointer to a base class to a pointer to a
1675 derived class.
1676
1677 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1678
1679 * infcmd.c (default_print_registers_info): Replace
1680 do_registers_info.
1681 (registers_info): Use gdbarch_print_registers_info instead of
1682 DO_REGISTERS_INFO.
1683 * inferior.h (default_print_registers_info): Replace
1684 do_registers_info.
1685 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1686 (DO_REGISTERS_INFO): Change to a predicate function.
1687 * gdbarch.h, gdbarch.c: Regenerate.
1688
1689 2002-08-21 Keith Seitz <keiths@redhat.com>
1690
1691 * gdb-events.sh: Add target-changed event.
1692 * gdb-events.c: Regenerated.
1693 * gdb-events.c: Regenerated.
1694 * valops.c (value_assign): Add target-changed event notification
1695 to inlval_register, lval_memory, and lval_reg_frame_relative.
1696
1697 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1698
1699 * NEWS: Add an entry regarding the improvement of the next/step
1700 operation on Alpha Tru64 multi-processor machines.
1701
1702 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1703
1704 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1705 directores.
1706 * Makefile.in: Update all _h macro definitions.
1707 * Makefile.in (install-gdbtk): Move to install section.
1708 (rdi-share/libangsd.a): Move to end of file.
1709
1710 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1711
1712 * frame.c (frame_register_unwind): When a register, set addrp to
1713 the register's byte.
1714
1715 2002-08-20 Michael Snyder <msnyder@redhat.com>
1716
1717 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1718 used locally, so move them from the target machine header to here.
1719 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1720 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1721 Make static.
1722 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1723
1724 2002-08-20 Andrew Cagney <cagney@redhat.com>
1725
1726 * NEWS: Mention that the Apollo line was made obsolete.
1727 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1728 m68*-hp-hpux* obsolete.
1729 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1730 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1731 * buildsym.c (make_blockvector): Make static.
1732 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1733 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1734 (ALLDEPFILES): Remove dstread.c.
1735 (dstread.o): Obsolete make rule.
1736 * dstread.c: Makefile obsolete.
1737 * dst.h: Ditto.
1738 * config/m68k/hp300hpux.mt: Ditto.
1739 * config/m68k/hp300hpux.mh: Ditto.
1740 * config/m68k/hp300bsd.mt: Ditto.
1741 * config/m68k/hp300bsd.mh: Ditto.
1742 * config/m68k/apollo68b.mt: Ditto.
1743 * config/m68k/apollo68v.mh: Ditto.
1744 * config/m68k/apollo68b.mh: Ditto.
1745
1746 2002-08-20 Michael Snyder <msnyder@redhat.com>
1747
1748 * mips-tdep.c (mips_in_return_stub): Make static.
1749 (mips_gdbarch_init): Set in_solib_return_trampoline.
1750 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1751
1752 2002-08-20 Michael Snyder <msnyder@redhat.com>
1753
1754 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1755 * gdbarch.c, gdbarch.h: Regenerate.
1756 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1757 Add.
1758 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1759
1760 2002-08-20 Michael Snyder <msnyder@redhat.com>
1761
1762 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1763 (mips_gdbarch_init): Set skip_trampoline_code,
1764 in_solib_call_trampoline.
1765 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1766 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1767
1768 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1769
1770 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1771
1772 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1773 vector type for ev registers.
1774 (e500_pseudo_register_read): New function.
1775 (e500_pseudo_register_write): New function.
1776 (e500_dwarf2_reg_to_regnum): New function.
1777 (PPC_UISA_NOFP_SPRS): New macro.
1778 (PPC_EV_REGS): New macro.
1779 (PPC_GPRS_PSEUDO_REGS): New macro.
1780 (registers_e500): New register set for e500.
1781 (variants): Add e500 variant.
1782 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1783 before setting architectural dependent variations. Initialize ev
1784 registers numbers. Add case for e500 architecture. Set the
1785 number of pseudo registers.
1786
1787 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1788
1789 * rs6000-tdep.c: Clean up comments.
1790
1791 2002-08-20 Andrew Cagney <cagney@redhat.com>
1792
1793 * h8300-tdep.c: Re-indent file.
1794
1795 2002-08-20 Jim Blandy <jimb@redhat.com>
1796
1797 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1798 default for this.
1799
1800 2002-08-20 Keith Seitz <keiths@redhat.com>
1801
1802 * breakpoints.c (watch_command_1): Use internal breakpoint
1803 when setting a watchpoint_scope breakpoint.
1804
1805 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1806
1807 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1808 (build_builtin_type_vec64i): Ditto.
1809 (build_builtin_type_vec128): Ditto.
1810 (build_builtin_type_vec128i): Ditto.
1811
1812 2002-08-19 Michael Snyder <msnyder@redhat.com>
1813
1814 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1815 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1816 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1817 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1818 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1819 CALL_DUMMY_ADDRESS): Delete.
1820 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1821 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1822 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1823 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1824 push_return_address.
1825 (mips_register_raw_size, mips_eabi_use_struct_convention,
1826 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1827 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1828 mips_init_extra_frame_info, mips_eabi_push_arguments,
1829 mips_n32n64_push_arguments, mips_push_return_address,
1830 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1831 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1832
1833 2002-08-19 Michael Snyder <msnyder@redhat.com>
1834
1835 * mips-tdep.c (mips_frame_num_args): New function.
1836 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1837 frame_saved_pc, frame_args_address, frame_locals_address,
1838 frame_num_args, and frame_args_skip.
1839 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1840 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1841 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1842 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1843
1844 2002-08-20 Michael Snyder <msnyder@redhat.com>
1845
1846 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1847 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1848 * mips-tdep.c (mips_store_struct_return): New function.
1849 (mips_extract_struct_value_address): New function.
1850 (mips_gdbarch_init): Set store_struct_return and
1851 extract_struct_value_address.
1852
1853 2002-08-20 David Carlton <carlton@math.stanford.edu>
1854
1855 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1856 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1857 (read_file_scope): Check that line_header is nonzero before
1858 decoding macro information.
1859
1860 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1861
1862 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1863 flag the general-purpose registers as floating-point on targets
1864 that don't support the floating-point registers.
1865
1866 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1867
1868 * rs6000-tdep.c (altivec_register_p): Delete.
1869 (rs6000_do_altivec_registers): Delete.
1870 (rs6000_altivec_registers_info): Delete.
1871 (rs6000_do_registers_info): Delete.
1872 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1873 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1874
1875 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1876
1877 * infcmd.c (do_registers_info): Print vector registers in hex
1878 format only.
1879 (print_vector_info): Check that printing registers
1880 makes sense.
1881 (print_float_info): Ditto.
1882
1883 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1884
1885 * mips-tdep.c (mips_gdbarch_init): Update.
1886 (mips_o32_extract_return_value): Rewrite.
1887 (mips_o32_store_return_value): Rewrite.
1888 (mips_o32_xfer_return_value): New function.
1889 (mips_xfer_register): Tweak debug print message. Allow for
1890 buf_offset when dumping the value transfered.
1891
1892 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1893
1894 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1895 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1896 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1897 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1898 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1899
1900 2002-08-14 Michael Snyder <msnyder@redhat.com>
1901
1902 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1903
1904 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1905
1906 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1907 register.
1908 (P): New macro to define a register as a pseudo register.
1909 (R, R4, R8, R16, FR32, R64, R0): Updated.
1910 (struct variant): Add new fields for number of pseudo registers
1911 and number of total registers.
1912 (tot_num_registers): New macro replacing....
1913 (num_registers): ...deleted macro.
1914 (num_registers): New function.
1915 (num_pseudo_registers): New function.
1916 (variants): Update all variants to intialize new fields correctly.
1917 Postpone initialization of number of pseudo regs and real regs.
1918 (init_variants): New function.
1919 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1920 registers offsets.
1921
1922 2002-08-19 David Carlton <carlton@math.stanford.edu>
1923
1924 * valops.c (search_struct_field): Change error message to treat
1925 return value of 0 from value_static_field as meaning that field is
1926 optimized out.
1927 (value_struct_elt_for_reference): Ditto.
1928 * values.c (value_static_field): Treat an unresolved location the
1929 same as a nonexistent symbol. Fix PR gdb/635.
1930 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1931 enclosed. Fix PR gdb/574.
1932 * MAINTAINERS: Add self to Write After Approval list.
1933
1934 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1935
1936 * mips-tdep.c (mips_xfer_register): New function.
1937 (mips_n32n64_extract_return_value): Rewrite.
1938 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1939 instead of deprecated_extract_return_value.
1940
1941 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1942
1943 * rs6000-tdep.c (TDEP): Delete macro.
1944 (branch_dest): Replace use of TDEP macro with its body.
1945 (rs6000_pop_frame): Ditto.
1946 (rs6000_push_arguments): Ditto.
1947 (rs6000_skip_trampoline_code): Ditto.
1948 (rs6000_frame_saved_pc): Ditto.
1949 (rs6000_frame_chain): Ditto.
1950 (rs6000_register_name): Ditto.
1951 (rs6000_register_byte): Ditto.
1952 (rs6000_register_raw_size): Ditto.
1953 (rs6000_register_virtual_type): Ditto.
1954 (rs6000_register_convertible): Ditto.
1955 (rs6000_convert_from_func_ptr_addr): Ditto.
1956
1957 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1958
1959 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1960 conditionally.
1961 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1962 MIPS_LINUX_JB_ELEMENT_SIZE.
1963 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1964 for MAX_REGISTER_RAW_SIZE arrays.
1965 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1966 MIPS_LINUX_JB_ELEMENT_SIZE.
1967
1968 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1969
1970 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1971
1972 2002-08-19 Aidan Skinner <aidan@velvet.net>
1973
1974 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1975 ada-valprint.c ada-tasks.c.
1976 (YYFILES): Add ada-exp.y.
1977 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1978 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1979 (ada-exp.tab.o): New target.
1980
1981 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1982
1983 * regcache.c (regcache_xfer_part): New function.
1984 (regcache_raw_read_part): New function.
1985 (regcache_raw_write_part): New function.
1986 (regcache_cooked_read_part): New function.
1987 (regcache_cooked_write_part): New function.
1988 * regcache.h (regcache_raw_read_part): Declare.
1989 (regcache_raw_write_part): Declare.
1990 (regcache_cooked_read_part): Declare.
1991 (regcache_cooked_write_part): Declare.
1992
1993 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1994
1995 * remote.c (remote_open_1): Add async_p.
1996 (remote_async_open_1): Delete.
1997 (open_remote_target): Delete.
1998 (remote_open, extended_remote_open): Update calls to remote_open_1.
1999 (remote_async_open, extended_remote_async_open): Call
2000 remote_open_1 instead of remote_async_open_1.
2001
2002 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2003
2004 * blockframe.c: Fix a few coding standard violations.
2005
2006 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2007
2008 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2009 here from ...
2010 * config/i386/tm-i386sco5.h: ... here. File removed.
2011 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2012
2013 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2014 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2015 (TM_FILE): Set to tm-i386.h.
2016 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2017 * config/i386/tm-i386v.h: Remove file.
2018 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2019 instead of "i386/tm-i386v.h".
2020 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2021 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2022 "i386/tm-i386v.h".
2023 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2024 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2025 "i386/tm-i386.h".
2026
2027 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2028
2029 * config/i386/nm-i386v.h: Add protection against
2030 multiple-inclusion.
2031 (i386_register_u_addr): Remove prototype.
2032 (register_u_addr): New prototype.
2033 (REGISTER_U_ADDR): Redefine accordingly.
2034 * i386v-nat.c: Improve several comments.
2035 (i386_register_u_addr): Change signature and rename to
2036 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2037 ubase variable.
2038
2039 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2040
2041 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2042 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2043 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2044 deprecated_extract_return_value.
2045 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2046 rename mips_o32o64_push_arguments.
2047 (mips_gdbarch_init): Update.
2048 (mips_extract_return_value): Delete.
2049 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2050 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2051 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2052 (mips_n32n64_extract_return_value): Clone
2053 mips_extract_return_value.
2054 (mips_store_return_value): Delete.
2055 (mips_o32_store_return_value): Clone mips_store_return_value.
2056 (mips_o64_store_return_value): Clone mips_store_return_value.
2057 (mips_eabi_store_return_value): Clone mips_store_return_value.
2058 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2059
2060 2002-08-18 Aidan Skinner <aidan@velvet.net>
2061
2062 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2063 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2064
2065 2002-08-18 Aidan Skinner <aidan@velvet.net>
2066
2067 * ada-lang.c: Run through gdb_indent.sh.
2068 * ada-lang.h: Run through gdb_indent.sh.
2069 * ada-tasks.c: Run through gdb_indent.sh.
2070 * ada-typeprint.c: Run through gdb_indent.sh.
2071 * ada-valprint.c: Run through gdb_indent.sh.
2072
2073 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2074
2075 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2076 ABI.
2077
2078 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2079
2080 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2081
2082 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2083 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2084
2085 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2086 write_register_gen instead of write_register_bytes.
2087
2088 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2089 i[3456]-*-osf1mk* configurations have been made obsolete.
2090 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2091 i[3456]86-*-osf1mk* hosts obsolete.
2092 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2093 targets obsolete.
2094 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2095 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2096 config/i386/i386m3.mt, config/i386/nm-m3.h,
2097 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2098 config/i386/i386mk.mh, config/i386/i386mk.mt,
2099 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2100 obsolete.
2101 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2102 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2103 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2104
2105 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2106
2107 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2108 (hppa_value_returned_from_stack): Declare.
2109 (hppa_extract_return_value): Declare.
2110 * config/pa/hppa.mt: New file.
2111 * configure.tgt: Recognize hppa*-*-*.
2112 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2113
2114 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2115
2116 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2117 comment.
2118
2119 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2120
2121 * top.c (gdb_rl_operate_and_get_next): Make sure
2122 operate-and-get-next functions correctly even when the history
2123 list is completely filled.
2124
2125 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2126
2127 * MAINTAINERS (Target Instruction Set Architectures): Rename
2128 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2129 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2130 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2131 already listed under Host/Native.
2132
2133 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2134 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2135 mips*-*-*.
2136
2137 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2138
2139 * config/ia64/ia64.mt: New file.
2140 * config/alpha/alpha.mt: New file.
2141 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2142 ia64-linux-gnu. Mention that ia64-elf is broken.
2143 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2144
2145 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2146
2147 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2148 generic_func_frame_valid instead of func_frame_valid.
2149
2150 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2151
2152 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2153 procfs appears to be broken when debugging on multi-processor
2154 machines. So enable software single stepping in order to avoid
2155 using the procfs interface to do next/step operations, using
2156 internal breakpoints instead.
2157
2158 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2159 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2160 make this pc address equal to the value it would have if the
2161 system stepping capability was used. Also set a new flag used
2162 to ensure that we don't readjust the PC one more time later.
2163
2164 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2165 address by DECR_PC_AFTER_BREAK when software single step is
2166 in use for this architecture, as this has already been taken
2167 care of in handle_inferior_event().
2168
2169 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2170
2171 * infrun.c (handle_inferior_event): Minor reformatting, to make
2172 a rather long condition expression easier to read.
2173
2174 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2175
2176 * Makefile.in (gdbtk.o): Move to end of file.
2177 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2178 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2179 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2180 (gdbtk-wrapper.o, gdbres.o): Ditto.
2181
2182 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2183
2184 * Makefile.in (copying.o): Separate out compile rule.
2185 (hpux-thread.o, procfs.o, signals.o): Ditto.
2186 (v850ice.o, z8k-tdep.o): Ditto.
2187 (tui-file.o): Move to TUI section.
2188 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2189 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2190
2191 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2192
2193 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2194 skip_trampoline_code, for better namespace-proofing.
2195
2196 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2197
2198 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2199
2200 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2201
2202 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2203
2204 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2205 signal, check whether we hit a breakpoint before checking for a
2206 single step breakpoint. Otherwise, GDB fails to notice that a
2207 breakpoint has been hit when stepping onto a breakpoint.
2208
2209 2002-08-16 Keith Seitz <keiths@redhat.com>
2210
2211 * gdb-events.sh (clear_gdb_event_hooks): New function.
2212 * gdb-events.c: Regenerate.
2213 * gdb-events.h: Regenerate.
2214
2215 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2216
2217 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2218 not_a_sw_breakpoint.
2219 * breakpoint.h (bpstat_stop_status): Add parameter names.
2220
2221 2002-08-16 Grace Sainsbury <graces@redhat.com>
2222
2223 * remote.c (remote_insert_hw_breakpoint)
2224 (remote_remove_hw_breakpoint): Fix calculation of length field
2225 for Z-packet.
2226
2227 2002-08-15 Michael Snyder <msnyder@redhat.com>
2228
2229 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2230 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2231 (supply_fpregset): Ditto.
2232
2233 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2234 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2235 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2236 (TARGET_READ_SP): Delete.
2237 (DO_REGISTERS_INFO): Delete.
2238 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2239 Delete.
2240 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2241 from macros to functions.
2242
2243 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2244 (mips_register_convertible, mips_register_convert_to_virtual,
2245 mips_register_convert_to_raw): Make static.
2246 (mips_read_sp): New function.
2247 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2248 (mips_do_registers_info): Make static.
2249 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2250 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2251 (mips_register_convert_from_type, mips_register_convert_to_type):
2252 New functions.
2253 (mips_gdbarch_init): Set up function_start_offset,
2254 register_virtual_size, pc_in_sigtramp.
2255
2256 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2257
2258 * infcmd.c (vector_info): New function.
2259 (_initialize_infcmd): Add command "info vector".
2260 (print_vector_info): New function.
2261
2262 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2263 * gdbarch.h, gdbarch.c: Regenerate.
2264
2265 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2266
2267 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2268 ``print_all''. Only print vector registers when ``print_all''.
2269
2270 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2271
2272 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2273 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2274
2275 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2276 Add `args' parameter.
2277 * gdbarch.h, gdbarch.c: Regenerate.
2278
2279 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2280
2281 * infcmd.c (float_info): Call print_float_info.
2282 (print_float_info): New function. By default, print the
2283 floating-point registers.
2284
2285 * arch-utils.h (default_print_float_info): Delete declaration.
2286 * arch-utils.c (default_print_float_info): Delete function.
2287
2288 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2289
2290 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2291 out define.
2292
2293 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2294 FRAME.
2295
2296 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2297 * configure.host: Make i[3456]86-*-aix host obsolete.
2298 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2299 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2300 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2301 config/i386/xm-i386aix.h: Make files obsolete.
2302 * i386aix-nat.c: Make file obsolete.
2303 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2304 (i386aix-nat.o): Make target obsolete.
2305
2306 * config/i386/nm-gnu.h: Removed.
2307 * config/i386/nm-i386gnu.h: New file.
2308 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2309 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2310 Moved here from ...
2311 * config/i386/tm-i386gnu.h: ... here. Removed.
2312 * config/i386/xm-i386gnu.h: Removed.
2313 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2314 (NAT_FILE): Set to nm-i386gnu.h.
2315 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2316 * i386-tdep.c: New file.
2317 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2318 (i386gnu-tdep.o): Specify dependencies.
2319
2320 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2321
2322 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2323 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2324 Adjust a few comments to reflect reality a bit closer.
2325 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2326 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2327 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2328 target_insert_watchpoint, target_remove_watchpoint):
2329 Move defines to ...
2330 * config/i386/nm-i386sco5.h: ... here.
2331 (kernel_u_size): Add prototype. Improve a few comments and add
2332 protection against multiple inclusion.
2333
2334 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2335 out define.
2336
2337 * uw-thread.c (SP_ARG0): Define if not already defined.
2338 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2339
2340 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2341
2342 * config/i386/tm-i386.h: Don't include "regcache.h".
2343
2344 * i387-tdep.h (i387_print_float_info): New prototype.
2345 * i387-tdep.c (print_i387_value, print_i387_ext,
2346 print_i387_status_word, print_i387_control_word): Add `struct
2347 ui_file *' argument and use it for output.
2348 (i387_print_float_info): Renamed from i387_float_info. Add
2349 `struct gdbarch *' and `struct ui_file *' arguments and use the
2350 latter for output.
2351 * i386-tdep.c: Include "i387-tdep.h".
2352 (i386_gdbarch_init): Set print_float_info.
2353 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2354 (FLOAT_INFO): Remove define.
2355
2356 2002-08-13 Michael Snyder <msnyder@redhat.com>
2357
2358 * mips-tdep.c (mips_push_arguments): Rename to
2359 mips_eabi_push_arguments, and tune for EABI.
2360 (MIPS_REGS_HAVE_HOME_P): Delete.
2361 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2362 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2363 Delete references to mips_regs_have_home_p.
2364
2365 2002-08-14 Keith Seitz <keiths@redhat.com>
2366
2367 * Makefile.in (install-gdbtk): Create insight plugin directory.
2368 Install plugins.tcl file.
2369
2370 2002-08-14 Keith Seitz <keiths@redhat.com>
2371
2372 * configure.in: Move SUBDIRS to near top of the file so that
2373 --enable options may add things to it.
2374 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2375 * configure: Regenerate.
2376
2377 2002-08-13 Michael Snyder <msnyder@redhat.com>
2378
2379 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2380 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2381 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2382
2383 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2384
2385 * vax-tdep.c (vax_get_saved_register): Delete function.
2386 (vax_gdbarch_init): Update.
2387 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2388 (ns32k_gdbarch_init): Update.
2389 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2390 (alpha_gdbarch_init): Update.
2391
2392 2002-08-13 Andrew Cagney <cagney@redhat.com>
2393
2394 * regcache.c (init_regcache_descr): Overallocate the
2395 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2396 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2397 nr_raw_registers.
2398 (set_register_cached): Add range checking assertions. Use
2399 current_regcache.
2400
2401 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2402
2403 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2404 numbers for MMX registers.
2405
2406 2002-08-13 Andrew Cagney <cagney@redhat.com>
2407
2408 * i386-tdep.c (i386_gdbarch_init): Use
2409 generic_unwind_get_saved_register.
2410
2411 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2412
2413 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2414 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2415 target vector.
2416 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2417 Delete. Add comment regarding this now-deleted target method.
2418
2419 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2420
2421 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2422 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2423 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2424 real PC and the page number (if it's within the memory bank window).
2425 (m68hc11_pseudo_register_write): Likewise when saving.
2426 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2427 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2428 (m68hc11_register_raw_size): And use 32-bit for it.
2429 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2430 16K memory bank is used by the prog; also use the virtual pc.
2431
2432 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2433
2434 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2435 (m68hc11_gdbarch_init): Install it in gdbarch.
2436 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2437 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2438 (MSYMBOL_SIZE): New for documentation.
2439 (insn_return_kind): Enum to specify how a function returns.
2440 (frame_extra_info): Cleanup and record the return mode.
2441 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2442 register in address computation.
2443 (m68hc11_get_return_insn): New to obtain the return instruction used
2444 by the function.
2445 (m68hc11_frame_init_saved_regs): Take into account the return
2446 instruction used by the function for far and interrupt functions.
2447 (m68hc11_init_extra_frame_info): Take into account page register.
2448 (m68hc11_frame_args_address): Adjust according to the return mode.
2449 (show_regs): Print page register only when it's used.
2450
2451 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2452
2453 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2454 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2455 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2456 registers.
2457 (m68hc11_register_raw_size): Likewise.
2458
2459 2002-08-13 Andrew Cagney <cagney@redhat.com>
2460
2461 * i386-tdep.c (i386_register_name): Handle mmx registers.
2462 (mmx_regnum_p): New function.
2463 (i386_mmx_names): New array.
2464 (mmx_num_regs): New variable.
2465 (i386_pseudo_register_read): New function.
2466 (i386_pseudo_register_write): New function.
2467 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2468
2469 * regcache.c (regcache_raw_read_unsigned): New function.
2470 (regcache_raw_read_signed): New function.
2471 * regcache.h (regcache_raw_read_unsigned): Declare.
2472 (regcache_raw_read_signed): Declare.
2473
2474 2002-08-13 Andrew Cagney <cagney@redhat.com>
2475
2476 * regcache.c (regcache_raw_read_as_address): Delete function.
2477 (regcache_cooked_read_signed): New function.
2478 (regcache_cooked_read_unsigned): New function.
2479 * regcache.h (regcache_cooked_read_signed): Declare.
2480 (regcache_cooked_read_unsigned): Declare.
2481 (regcache_raw_read_as_address): Delete declaration.
2482
2483 * blockframe.c (generic_read_register_dummy): Use
2484 regcache_cooked_read_unsigned.
2485 * i386-tdep.c (i386_extract_struct_value_address): Use
2486 regcache_cooked_read_unsigned.
2487
2488 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2489
2490 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2491 double sizes according to ELF ABI flags.
2492 (gdbarch_tdep): Record elf_flags.
2493
2494 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2495
2496 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2497 (m6812_prolog): They can appear in 68HC12 function prologue.
2498 (m68hc11_frame_chain): Cleanup.
2499
2500 2002-08-12 Andrew Cagney <cagney@redhat.com>
2501
2502 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2503 declarations.
2504 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2505 (i386_linux_register_raw_size): Delete function.
2506 (i386_linux_init_abi): Update.
2507 * i386-tdep.c (i386_register_raw_size): Delete function.
2508 (i386_register_byte): Delete function.
2509 (i386_gdbarch_init): Update.
2510 (i386_register_size): Delete array.
2511 (i386_register_offset): Delete array.
2512
2513 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2514 (REGISTER_RAW_SIZE): Delete macro.
2515 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2516 (REGISTER_BYTE): Delete macro.
2517
2518 2002-08-11 Aidan Skinner <aidan@velvet.net>
2519
2520 * ada-lang.c (ada_lookup_partial_symbol)
2521 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2522 prototype names so that grep ^func works properly.
2523
2524 * ada-lang.c (ada_array_element_type)
2525 (ada_lookup_partial_symbol): Fix typos in parameter list.
2526
2527 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2528 Fix prototype names so that grep ^func works properly.
2529
2530 2002-08-10 Andrew Cagney <cagney@redhat.com>
2531 Elena Zannoni <ezannoni@redhat.com>
2532 Martin M. Hunt <hunt@redhat.com>
2533
2534 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2535 (build_builtin_type_vec128i): Set the vector bit.
2536 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2537 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2538 (build_builtin_type_vec64): New function.
2539 (build_builtin_type_vec64i): New function.
2540 (build_gdbtypes): Initialize builtin_type_vec64 and
2541 builtin_type_vec64i.
2542
2543 2002-08-09 Andrew Cagney <cagney@redhat.com>
2544
2545 * regcache.c (regcache_dump): Compare the register offset
2546 with REGISTER_BYTE.
2547 * arch-utils.c (generic_register_byte): New function.
2548 * arch-utils.h (generic_register_byte): Declare.
2549 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2550 * gdbarch.h, gdbarch.c: Regenerate.
2551
2552 2002-08-09 Andrew Cagney <cagney@redhat.com>
2553
2554 * regcache.c: Include "gdbcmd.h"
2555 (_initialize_regcache): Add commands "maintenance print
2556 registers", "maintenance print raw-registers" and "maintenance
2557 print cooked-registers".
2558 (enum regcache_dump_what): Define.
2559 (dump_endian_bytes): New function.
2560 (regcache_dump): New function.
2561 (regcache_print): New function.
2562 (maintenance_print_registers): New function.
2563 (maintenance_print_raw_registers): New function.
2564 (maintenance_print_cooked_registers): New function.
2565 * Makefile.in (regcache.o): Update dependencies.
2566
2567 2002-08-09 Michael Snyder <msnyder@redhat.com>
2568
2569 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2570 (mips_push_arguments): Correct some comments. Use paddr_nz
2571 for printing addresses in debug output. Replace static
2572 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2573 (mips_n32n64_push_arguments): New function, cloned from
2574 mips_push_arguments and tuned for the n32/n64 ABI.
2575 (mips_push_register): Buffer needs dynamic allocation.
2576 (mips_print_register): Ditto.
2577 (do_gp_register_row): Ditto.
2578 (mips_store_return_value): Ditto.
2579 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2580
2581 2002-08-09 Don Howard <dhoward@redhat.com>
2582
2583 * memattr.c (mem_info_command): Print special case of upper bound
2584 as max CORE_ADDR + 1.
2585
2586 2002-08-08 Michael Snyder <msnyder@redhat.com>
2587
2588 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2589 returns structs by ref if they're too big to fit in two registers.
2590
2591 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2592
2593 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2594 saved regs value.
2595 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2596 mips_find_saved_regs().
2597 (mips_pop_frame): Likewise.
2598
2599 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2600
2601 * blockframe.c (frame_saved_regs_register_unwind): Revise
2602 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2603 frames are in use.
2604
2605 2002-08-09 Grace Sainsbury <graces@redhat.com>
2606
2607 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2608 T-packets; the 'a' is not taken as a register number.
2609 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2610 (remote_stopped_data_address): New functions; add to target
2611 vector.
2612 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2613 prototypes to match other implementations of this
2614 function. replace integer argument with pointer -- the length
2615 field in the Z-packet is the length of what is pointed to or 1 if
2616 pointer is null. Add to target vector.
2617 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2618 target vector.
2619
2620 From Mark Salter:
2621 * remote.c (remote_wait): Add support to extract optional
2622 watchpoint information from T-packet. Ignore unrecognized
2623 optional info in T-packet.
2624 (remote_async_wait): Ditto.
2625
2626 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2627
2628 * cli/cli-dump.c: Change fopen modes to use binary open modes
2629 as defined in include/fopen-bin.h throughout.
2630
2631 2002-08-08 Michael Snyder <msnyder@redhat.com>
2632
2633 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2634
2635 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2636
2637 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2638 assertion failure by returning early after a warning.
2639
2640 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2641
2642 * mips-tdep.c (mips_find_saved_regs): Make static.
2643 (mips_frame_init_saved_regs): New function.
2644 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2645 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2646 (mips_find_saved_regs): Delete declaration.
2647
2648 2002-08-08 Grace Sainsbury <graces@redhat.com>
2649
2650 * remote.c (remote_wait, remote_async_wait): Change
2651 thread_num from int to ULONGEST.
2652 (unpack_varlen_hex): Change result parameter from
2653 int * to ULONGEST *.
2654
2655 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2656
2657 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2658 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2659 powerpc*-*-*.
2660 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2661
2662 2002-08-08 Andrew Cagney <cagney@redhat.com>
2663
2664 * gcore.c (override_derive_stack_segment): Delete variable.
2665 (preempt_derive_stack_segment): Delete function.
2666 (derive_stack_segment): Delete function.
2667 (default_derive_stack_segment): Renamed to derive_stack_segment.
2668 (override_derive_heap_segment): Delete variable.
2669 (preempt_derive_heap_segment): Delete function.
2670 (derive_heap_segment): Delete function.
2671 (default_derive_heap_segment): Rename to derive_heap_segment.
2672
2673 2002-08-06 Michael Snyder <msnyder@redhat.com>
2674
2675 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2676 * mips-tdep.c (mips_EABI_use_struct_convention,
2677 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2678 New functions. (mips_use_struct_convention): Delete.
2679 (mips_gdbarch_init): set use_gdbarch_convention.
2680
2681 2002-08-06 Michael Snyder <msnyder@redhat.com>
2682
2683 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2684 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2685 mips_o32_reg_struct_has_addr): New functions.
2686 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2687
2688 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2689
2690 * regcache.c (pseudo_register): Delete function.
2691 (fetch_register): Delete function.
2692 (store_register): Delete function.
2693 (regcache_raw_read, legacy_read_register_gen): Use
2694 target_fetch_registers instead of fetch_register.
2695 (legacy_write_register_gen, regcache_raw_write): Use
2696 target_store_register instead of store_register.
2697 (write_register_bytes): Ditto.
2698
2699 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2700 (STORE_PSEUDO_REGISTER): Delete.
2701 * gdbarch.h, gdbarch.c: Regenerate.
2702
2703 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2704
2705 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2706 write dump file binary.
2707
2708 2002-08-05 Michael Snyder <msnyder@redhat.com>
2709
2710 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2711 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2712 (mips_gdbarch_init): Set N32 target to be mips64.
2713
2714 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2715
2716 * frame.c (find_saved_register): Break out of loop once saved
2717 register address is found. Don't mention sparc in loop comment
2718 anymore.
2719
2720 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2721
2722 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2723 mips_default_saved_regsize to 8.
2724
2725 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2726
2727 * gcore.c: Do not include <sys/procfs.h>.
2728 * Makefile.in (gcore.o): Update dependencies.
2729
2730 2002-08-06 Andrew Cagney <cagney@redhat.com>
2731
2732 * configure.tgt: Make arc-*-* obsolete.
2733 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2734 * MAINTAINERS: Make arc-elf obsolete.
2735 * arc-tdep.c: Make file obsolete.
2736 * config/arc/arc.mt: Ditto.
2737 * config/arc/tm-arc.h: Ditto.
2738
2739 2002-08-05 Theodore A. Roth <troth@verinet.com>
2740
2741 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2742
2743 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2744
2745 * mcore-tdep.c (mcore_gdbarch_init): Use
2746 generic_unwind_get_saved_register instead of
2747 generic_get_saved_register.
2748 * v850-tdep.c (v850_gdbarch_init): Ditto.
2749 * frv-tdep.c (frv_gdbarch_init): Ditto.
2750 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2751 * s390-tdep.c (s390_gdbarch_init): Ditto.
2752 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2753 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2754 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2755
2756 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2757
2758 * objfiles.h: Add missing #include "symfile.h"
2759
2760 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2761
2762 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2763
2764 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2765 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2766 of FIELD_BITSIZE.
2767
2768 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2769
2770 * NEWS: Cleanup and nitpick.
2771
2772 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2773
2774 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2775
2776 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2777
2778 * Makefile.in (gdbtk-bp.o): Update dependencies.
2779 (gdbtk-register.o): Ditto.
2780 (gdbtk-varobj.o): Ditto.
2781
2782 2002-08-03 Andrew Cagney <cagney@redhat.com>
2783
2784 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2785 m68hc11_fetch_pseudo_register.
2786 (m68hc11_pseudo_register_write): Replace
2787 m68hc11_store_pseudo_register.
2788 (m68hc11_gdbarch_init): Update.
2789
2790 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2791
2792 * gdbarch.sh: Include "gdb_string.h".
2793 * gdbarch.c: Regenerate.
2794
2795 * regcache.c: Include "gdb_string.h".
2796 * ax-general.c: Ditto.
2797 * varobj.c: Ditto.
2798 * std-regs.c: Ditto.
2799 * fbsd-proc.c: Ditto.
2800 * thread.c: Ditto.
2801
2802 * Makefile.in (regcache.o): Update dependencies.
2803 (thread.o, gdbarch.o): Ditto.
2804 (ax-general.o, gdbarch.o): Ditto.
2805 (varobj.o, std-regs.o): Ditto.
2806 (fbsd-proc.o): Specify dependencies.
2807
2808 2002-08-02 Andrew Cagney <cagney@redhat.com>
2809
2810 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2811 regnum.
2812 (regcache_cooked_write): Ditto.
2813
2814 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2815
2816 * regcache.c (regcache_cooked_read): New function.
2817 (regcache_cooked_write): New function.
2818 (read_register_gen): Rewrite using regcache_cooked_read.
2819 (write_register_gen): Rewrite using regcache_cooked_write.
2820
2821 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2822 Declare.
2823
2824 2002-08-02 Andrew Cagney <cagney@redhat.com>
2825
2826 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2827 Replace the architecture methods register_read and register_write.
2828 * gdbarch.h, gdbarch.c: Regenerate.
2829 * regcache.c (init_regcache_descr): Update.
2830 (read_register_gen): Update.
2831 (write_register_gen): Update.
2832 (supply_register): Update comment.
2833
2834 * sh-tdep.c (sh_gdbarch_init): Update.
2835 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2836 `regcache' and `gdbarch' parameters. Make `buffer' a void
2837 pointer. Update code.
2838 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2839 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2840 void pointer. Update code.
2841 (sh64_register_write): Delete.
2842 (sh4_register_read): Delete.
2843 (sh64_register_read): Delete.
2844 (sh4_register_write): Delete.
2845 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2846 void pointer, `to' parameter a void pointer.
2847 (sh_sh64_register_convert_to_raw): Ditto.
2848
2849 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2850
2851 * mips-tdep.c (mips_register_virtual_type): Use architecture
2852 invariant return values.
2853
2854 2002-08-01 Andrew Cagney <cagney@redhat.com>
2855
2856 * linux-proc.c: Include "gdb_string.h".
2857 * Makefile.in (linux-proc.o): Update dependency list.
2858
2859 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2860
2861 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2862 comment.
2863
2864 2002-08-01 Grace Sainsbury <graces@redhat.com>
2865
2866 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2867 to_insert_watchpoint, to_remove_watchpoint,
2868 to_stopped_by_watchpoint, to_stopped_data_address,
2869 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2870 target vecctor. Define their corresponding macros so they call
2871 them.
2872
2873 * target.c: Add default and debug versions of for
2874 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2875 to_insert_watchpoint, to_remove_watchpoint,
2876 to_stopped_by_watchpoint, to_stopped_data_address,
2877 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2878
2879 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2880
2881 * mips-tdep.c (mips_register_virtual_type): New function.
2882 (mips_gdbarch_init): Register mips_register_virtual_type()
2883 with gdbarch machinery.
2884 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2885 this file instead of tm-bigmips.h.
2886 (MIPS_REGSIZE): Delete this macro.
2887 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2888 multiarch version in mips-tdep.c will be found.
2889
2890 2002-08-01 Andrew Cagney <cagney@redhat.com>
2891
2892 * NEWS: Menion that CHILL has been made obsolete.
2893
2894 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2895 * stabsread.c (read_range_type): Ditto.
2896 * gdbtypes.h: Ditto.
2897 * language.c (binop_type_check): Ditto.
2898 (binop_result_type): Ditto.
2899 (integral_type): Ditto.
2900 (character_type): Ditto.
2901 (string_type): Ditto.
2902 (boolean_type): Ditto.
2903 (structured_type): Ditto.
2904 (lang_bool_type): Ditto.
2905 (binop_type_check): Ditto.
2906 * language.h (_LANG_chill): Ditto.
2907 * dwarfread.c (set_cu_language): Ditto.
2908 * dwarfread.c (CHILL_PRODUCER): Ditto.
2909 * dwarfread.c (handle_producer): Ditto.
2910 * expression.h (enum exp_opcode): Ditto.
2911 * eval.c: Ditto for comments.
2912 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2913 * expprint.c (print_subexp): Ditto.
2914 (print_subexp): Ditto.
2915 * valops.c (value_cast): Ditto.
2916 (search_struct_field): Ditto.
2917 * value.h (COERCE_VARYING_ARRAY): Ditto.
2918 * symfile.c (init_filename_language_table): Ditto.
2919 (add_psymbol_with_dem_name_to_list): Ditto.
2920 * valarith.c (value_binop): Ditto.
2921 (value_neg): Ditto.
2922 * valops.c (value_slice): Ditto.
2923 * symtab.h (union language_specific): Ditto.
2924 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2925 (SYMBOL_DEMANGLED_NAME): Ditto.
2926 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2927 * defs.h (enum language): Ditto.
2928 * symtab.c (got_symtab): Ditto.
2929 * utils.c (fprintf_symbol_filtered): Ditto.
2930
2931 * ch-typeprint.c: Make file obsolete.
2932 * ch-valprint.c: Make file obsolete.
2933 * ch-lang.h: Make file obsolete.
2934 * ch-exp.c: Make file obsolete.
2935 * ch-lang.c: Make file obsolete.
2936
2937 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2938 CHILL_LIB.
2939 (TARGET_FLAGS_TO_PASS): Ditto.
2940 (CHILLFLAGS): Obsolete.
2941 (CHILL): Obsolete.
2942 (CHILL_FOR_TARGET): Obsolete.
2943 (CHILL_LIB): Obsolete.
2944 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2945 ch-valprint.c.
2946 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2947 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2948 ch-lang.o.
2949 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2950 targets.
2951
2952 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2953
2954 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2955 This does not change anything at the moment, but will be helpful
2956 later when full Ada support is integrated.
2957
2958 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2959
2960 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2961 help message.
2962
2963 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2964
2965 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2966 and save it in a local variable. Use variable in later test.
2967
2968 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2969
2970 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2971 test. (Thanks to Daniel Jacobowitz.)
2972
2973 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2974
2975 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2976 (mips_abi_strings): Add "n64".
2977 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2978
2979 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2980
2981 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2982 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2983
2984 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2985
2986 * utils.c (host_pointer_to_address, address_to_host_pointer):
2987 Use gdb_assert() instead of explicit call to internal_error().
2988
2989 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2990
2991 * Makefile.in (rs6000-nat.o): Update dependencies.
2992
2993 From Nicholas Duffek:
2994 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2995 (aix-thread.o): New rule.
2996 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2997 * config/powerpc/aix432.mh: New file.
2998
2999 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3000
3001 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3002 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3003 (fetch_core_registers, ppc_linux_supply_gregset)
3004 (ppc_linux_supply_fpregset): New functions.
3005 (ppc_linux_regset_core_fns): New.
3006 (_initialize_ppc_linux_tdep): Call add_core_fns.
3007 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3008 and ppc_linux_supply_gregset.
3009 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3010 (supply_fpregset): Call ppc_linux_supply_fpregset.
3011 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3012 corelow.o.
3013 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3014
3015 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3016
3017 * symtab.c (lookup_symbol): Demangle before lowercasing.
3018
3019 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3020
3021 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3022 declaration.
3023 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3024 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3025 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3026 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3027 "gdb_string.h".
3028 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3029 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3030 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3031 (avr-tdep.o, mon960-rom.o): Ditto.
3032 (aout_stabs_gnu_h): Define.
3033 (symtab_h): Remove $(gdb_obstack_h).
3034
3035 2002-07-30 Jim Blandy <jimb@redhat.com>
3036
3037 Patch from David Carlton <carlton@math.stanford.edu>:
3038 * gdbinit.in: Move the `dir' commands that add GDB's own source
3039 directory to the search path to the end, so that the `gdb' source
3040 directory will be searched first.
3041
3042 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3043
3044 * gdb_obstack.h: New file.
3045 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3046 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3047 * objfiles.h: Include "gdb_obstack.h".
3048 * Makefile.in (gdb_obstack_h): Define.
3049 (symtab_h): Add $(gdb_obstack_h).
3050 (objfiles_h): Add $(gdb_obstack_h).
3051
3052 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3053 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3054 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3055 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3056 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3057 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3058 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3059 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3060
3061 * Makefile.in (bcache.o): Update dependencies.
3062 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3063 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3064 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3065 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3066 (stabsread.o, symfile.o, symmisc.o): Ditto.
3067 (symtab.o, typeprint.o, macroexp.o): Ditto.
3068 (macrotab.o, mdebugread.o): Ditto.
3069 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3070 (coff_ecoff_h, aout_aout64_h): Define.
3071 (aout_stabs_gnu_h, libaout_h): Define.
3072
3073 2002-07-29 Andrew Cagney <cagney@redhat.com>
3074
3075 * regcache.c (struct regcache_descr): Rename nr_registers to
3076 nr_cooked_registers. Revise comments describing the structure
3077 member fields.
3078 (init_regcache_descr): Update.
3079 (init_legacy_regcache_descr): Update.
3080 (read_register_gen, write_register_gen): When a cooked register in
3081 the raw register range, directly access the value from the raw
3082 register cache.
3083
3084 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3085
3086 * z8k-tdep.c: Do not include "obstack.h".
3087 * h8300-tdep.c, h8500-tdep.c: Ditto.
3088 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3089 * valprint.c, v850-tdep.c: Ditto.
3090 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3091 * mn10200-tdep.c: Ditto.
3092
3093 * Makefile.in (z8k-tdep.o): Update dependencies.
3094 (m68hc11-tdep.o, valprint.o): Ditto.
3095 (v850-tdep.o, d10v-tdep.o): Ditto.
3096 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3097 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3098 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3099 (sh_opc_h, gdb_sim_sh_h): Define.
3100 (elf_sh_h, elf_bfd_h): Define.
3101 (opcode_m68hc11_h): Define.
3102 (OPCODES_SRC, OPCODES_DIR): define.
3103 (OPCODES): Use $(OPCODES_DIR).
3104 (gdb_sim_d10v_h): Rename sim_d10v_h.
3105 (gdb_sim_arm_h): Rename sim_arm_h.
3106
3107 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3108
3109 * utils.c (host_pointer_to_address, address_to_host_pointer):
3110 Change internal_error() message to indicate function responsible
3111 for the error.
3112
3113 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3114
3115 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3116 calls to local_hex_string_custom().
3117
3118 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3119
3120 * irix5-nat.c: Move IRIX shared library support from here...
3121 * solib-irix.c: ...to here. Revised substantially to work with
3122 generic solib framework.
3123
3124 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3125 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3126 * mips-irix-tdep.c: New file.
3127
3128 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3129 (mips-irix-tdep.o, solib-irix.o): New rules.
3130 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3131 solib-irix.o.
3132 * config/mips/irix6.mt (TDEPFILES): Likewise.
3133 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3134
3135 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3136
3137 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3138 disabled (via ``#if 0'') includes.
3139
3140 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3141
3142 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3143 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3144 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3145 Add support for the fpscr register.
3146 * rs6000-nat.c (regmap, fetch_inferior_registers)
3147 (store_inferior_registers, fetch_core_registers): Likewise.
3148
3149 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3150
3151 * rs6000-nat.c (language.h): Include.
3152 (special_regs): Delete this array.
3153 (regmap): New function.
3154 (fetch_register, store_register): Use regmap() to map gdb
3155 register numbers to ptrace register numbers. Also, use
3156 outputs from regmap() to make decisions regarding type of
3157 ptrace() call to make. In particular, don't compare against
3158 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3159 (fetch_inferior_registers, store_inferior_registers): Where
3160 possible, obtain register numbers from tdep struct. Don't
3161 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3162 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3163 (LAST_UISA_SP_REGNUM): Delete.
3164
3165 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3166
3167 * rs6000-nat.c (ppc-tdep.h): Include.
3168 (fetch_registers, store_register, fetch_core_registers): Don't
3169 access registers[] directly. Instead, use supply_register() or
3170 regcache_collect() as appropriate.
3171 (find_toc_address): Format hex address with local_hex_string().
3172
3173 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3174
3175 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3176 bfd/elf32-frv.c.
3177
3178 2002-07-24 Tom Tromey <tromey@redhat.com>
3179
3180 * jv-exp.y: Marked all strings with _().
3181 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3182 internal_error.
3183 (MethodInvocation, CastExpression, parse_number, yyerror,
3184 java_type_from_name, push_expression_name, yylex): Typo fixes.
3185
3186 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3187
3188 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3189 (tee_file_flush, tee_file_write, tee_file_fputs)
3190 (tee_file_isatty): New.
3191 * ui-file.h (tee_file_new): Add prototype.
3192
3193 2002-07-24 Aidan Skinner <aidan@velvet.net>
3194
3195 * ada-lang.c: Change k&r style function definitions to prototyped
3196 form.
3197 * ada-typeprint.c: Change k&r style function definitions to prototyped
3198 form.
3199 * ada-valprint.c: Change k&r style function definitions to prototyped
3200 form.
3201
3202 2002-07-24 Andrew Cagney <cagney@redhat.com>
3203
3204 * README: Remove reference to remote-bug.
3205 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3206 remote-bug.c.
3207 (m88k-nat.o): Delete rule.
3208 (m88k-tdep.o): Delete rule.
3209 (remote-bug.o): Delete rule.
3210 * MAINTAINERS: Mark as obsolete.
3211 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3212 * m88k-tdep.c: Make file obsolete.
3213 * config/m88k/m88k.mh: Ditto.
3214 * config/m88k/delta88v4.mh: Ditto.
3215 * config/m88k/delta88v4.mt: Ditto.
3216 * config/m88k/delta88.mt: Ditto.
3217 * config/m88k/delta88.mh: Ditto.
3218 * remote-bug.c: Ditto.
3219 * config/m88k/tm-delta88.h: Ditto.
3220 * config/m88k/nm-delta88v4.h: Ditto.
3221 * config/m88k/xm-delta88.h: Ditto.
3222 * config/m88k/xm-dgux.h: Ditto.
3223 * config/m88k/tm-m88k.h: Ditto.
3224 * config/m88k/nm-m88k.h: Ditto.
3225 * config/m88k/tm-delta88v4.h: Ditto.
3226 * m88k-nat.c: Ditto.
3227 * cxux-nat.c: Ditto.
3228 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3229 and m88*-*-* obsolete.
3230 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3231 m88*-*-* obsolete.
3232
3233 2002-07-24 Andrew Cagney <cagney@redhat.com>
3234
3235 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3236 constant. Same for local pointer variables.
3237 (extract_signed_integer): Ditto.
3238 * defs.h (extract_unsigned_integer): Update.
3239 (extract_signed_integer): Update.
3240
3241 2002-07-24 Andrew Cagney <cagney@redhat.com>
3242
3243 * regcache.c (regcache_raw_write): Change buf parameter to a
3244 constant void pointer.
3245 (regcache_raw_read): Change buf parameter to a void pointer.
3246 (legacy_write_register_gen): Change myaddr parameter a constant
3247 void pointer.
3248 (supply_register): Change val parameter to a const void pointer.
3249 * regcache.h (regcache_raw_write): Update declaration.
3250 (regcache_raw_read): Update declaration.
3251 (supply_register): Update declaration.
3252
3253 2002-07-24 Tom Tromey <tromey@redhat.com>
3254
3255 * defs.h (gdb_readline_wrapper): Declare.
3256 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3257 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3258 * top.c (gdb_readline_wrapper): New function.
3259 (command_line_input): Use it.
3260
3261 2002-07-24 Andrew Cagney <cagney@redhat.com>
3262
3263 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3264 regcache_read and regcache_write.
3265 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3266 * regcache.c: Update.
3267 * sh-tdep.c (sh64_push_arguments): Update comment.
3268 (sh_pseudo_register_read): Update.
3269 (sh_pseudo_register_write): Update.
3270 (sh4_register_read): Update.
3271 (sh4_register_write): Update.
3272 (sh64_pseudo_register_read): Update.
3273 (sh64_pseudo_register_write): Update.
3274 (sh64_register_read): Update.
3275 (sh64_register_write): Update.
3276 * i386-tdep.c (i386_extract_return_value): Update.
3277 (i386_extract_struct_value_address): Update.
3278 (i386_extract_return_value): Update.
3279 * blockframe.c (generic_read_register_dummy): Update.
3280 (generic_call_dummy_register_unwind): Update
3281 * infrun.c (write_inferior_status_register): Update.
3282
3283 2002-07-23 Jim Blandy <jimb@redhat.com>
3284
3285 * parser-defs.h (expression_context_pc): Make this extern.
3286 (Thanks to Michael Snyder.)
3287
3288 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3289
3290 GDB 5.2.1 released from 5.2 branch.
3291 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3292 * README: Update to mention 5.2.1.
3293
3294 2002-07-23 Mark Salter <msalter@redhat.com>
3295
3296 * remote.c (remote_read_bytes): Fix check for error.
3297
3298 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3299
3300 * aix-thread.c (language.h): Include.
3301 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3302 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3303 Print newlines at end of debug messages.
3304 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3305 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3306
3307 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3308
3309 * aix-thread.c (ppc-tdep.h): Include.
3310 (special_register_p): New function.
3311 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3312 (store_regs_user_thread): Use register number information from
3313 gdbarch_tdep struct instead of hardcoded offsets relative to
3314 FIRST_UISA_SP_REGNUM.
3315 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3316 special_register_p() instead of using FPLAST_REGNUM and
3317 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3318 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3319 will be MQ's register number.
3320
3321 2002-07-22 Michael Snyder <msnyder@redhat.com>
3322
3323 * aix-thread.c (ops): Rename to aix_thread_ops.
3324 (base_ops): Rename to base_target.
3325 (ops_attach): Rename to aix_thread_attach.
3326 (ops_detach): Rename to aix_thread_detach.
3327 (ops_resume): Rename to aix_thread_detach.
3328 (ops_wait): Rename to aix_thread_wait.
3329 (ops_kill): Rename to aix_thread_kill.
3330 (init_ops): Rename to init_aix_thread_ops.
3331 (ops_fetch_register): Rename to aix_thread_fetch_register.
3332 (ops_store_register): Rename to aix_thread_store_register.
3333 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3334 (ops_thread_alive): Rename to aix_thread_thread_alive.
3335 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3336 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3337 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3338 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3339 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3340 (store_regs_lib): Rename to store_regs_user_thread.
3341 (store_regs_kern): Rename to store_regs_kernel_thread.
3342
3343 2002-07-22 Michael Snyder <msnyder@redhat.com>
3344
3345 * aix-thread.c (ops_prepare_to_store): Eliminate.
3346 (init_ops): Don't initialize ops.prepare_to_store.
3347 (store_regs_kern): Pre-fetch register buffers from child,
3348 because some registers may not be in the cache. Copy
3349 regs from register cache only if they are cached.
3350 (store_regs_lib): Copy regs from register cache only
3351 if they are cached.
3352 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3353 fill_gprs64): Ditto.
3354
3355 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3356
3357 * aix-thread.c (gdb_assert.h): Include.
3358 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3359 register sizes (from register cache) match size of buffer holding
3360 register data.
3361 (fill_sprs32): Change parameter types to match those in the ptrace()
3362 buffer.
3363 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3364 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3365
3366 2002-07-22 Michael Snyder <msnyder@redhat.com>
3367
3368 * aix-thread.c (supply_sprs64): Cosmetic change.
3369 (supply_sprs32): Cosmetic change.
3370 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3371 (fill_sprs64): Use regcache_collect instead of read_register.
3372 (store_regs_lib): Use regcache_collect instead of
3373 read_register. Use fill_sprs32 instead of fill_sprs64,
3374 if debugging a 32-bit architecture.
3375 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3376 out of the register cache, instead of passing a pointer into
3377 the register cache directly to ptrace. Use regcache_collect
3378 insteaad of read_register.
3379 (ops_prepare_to_store): Use target_read_registers instead
3380 of read_register_bytes.
3381
3382 2002-07-20 Aidan Skinner <aidan@velvet.net>
3383
3384 * MAINTAINERS: Add self under write after approval.
3385
3386 2002-07-20 Aidan Skinner <aidan@velvet.net>
3387
3388 * ada-tasks.c: Change k&r style function definitions to prototyped
3389 form.
3390
3391 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3392
3393 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3394 * x86-64-tdep.c: Include "objfiles.h".
3395 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3396 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3397
3398 2002-07-17 Michal Ludvig <michal@suse.cz>
3399
3400 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3401 (update_context): Initialise cfa variable.
3402
3403 2002-07-17 Michael Snyder <msnyder@redhat.com>
3404
3405 * aix-thread.c: Shorten some long lines.
3406 Bring comments into line with code spec.
3407
3408 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3409
3410 * infrun.c: Re-indent using gdb_indent.sh.
3411
3412 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3413
3414 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3415 Leave the indentation temporarily untouched, to minimize the diffs.
3416
3417 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3418
3419 * stabsread.c: Make os9k sections of the code obsolete,
3420 for real this time.
3421 * stabsread.h: Make os9k sections of the code obsolete.
3422
3423 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3424
3425 * linux-low.c (regsets_store_inferior_registers): Add free()
3426 at the end of a loop to prevent memory leak.
3427 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3428 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3429 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3430 line a comment.
3431 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3432
3433 2002-07-17 Jim Blandy <jimb@redhat.com>
3434
3435 * macrocmd.c (info_macro_command): Remove newline from error
3436 message.
3437
3438 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3439
3440 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3441 (sh_gdbarch_init): Use it for sh-dsp.
3442
3443 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3444
3445 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3446 64-bit DWARF2 format.
3447
3448 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3449
3450 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3451 <sys/proc.h> when not available.
3452
3453 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3454
3455 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3456 * stabsread.c: Make os9k sections of the code obsolete.
3457 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3458 * config/i386/i386os9k.mt: Make file obsolete.
3459 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3460 (COMMON_OBS): Remove os9kread.o
3461 (SFILES): Remove os9kread.c.
3462 (os9kread.o, remote-os9k.o): Make target obsolete.
3463 * remote-os9k.c: Make file obsolete.
3464 * os9kread.c: Make file obsolete.
3465 * Makefile.in
3466
3467 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3468
3469 * NEWS: Mention that the FR30 has been made obsolete.
3470 * fr30-tdep.c: Make file obsolete.
3471 * config/fr30/tm-fr30.h: Ditto.
3472 * config/fr30/fr30.mt: Ditto.
3473 * configure.tgt: Make fr30-*-elf obsolete.
3474 * MAINTAINERS: Make fr30-elf obsolete.
3475
3476 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3477
3478 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3479 found is not inside a section.
3480
3481 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3482
3483 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3484 strerror().
3485 (pdc_realloc): Use xrealloc() instead of realloc().
3486
3487 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3488
3489 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3490 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3491 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3492 macros.
3493
3494 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3495
3496 * aix-thread.c (ptrace_check): Eliminate goto.
3497 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3498 problem.
3499
3500 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3501
3502 * aix-thread.c (gdbcmd.h): Include.
3503 (DEBUG, DBG, DBG2, dbg): Eliminate.
3504 (debug_aix_thread): New static global.
3505 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3506 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3507 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3508 invocations to DBG and DBG2 macros to test against
3509 ``debug_aix_thread'' and call fprintf_unfiltered().
3510 (_initialize_aix_thread): Add new command "set debug aix-thread".
3511
3512 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3513
3514 From Gerhard Tonn <TON@de.ibm.com>:
3515 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3516 instead of supply_register.
3517
3518 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3519
3520 * dwarf2cfi.c: Include "gdb_assert.h".
3521 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3522 non-NULL.
3523 (update_context): Do not use __func__. Add missing ``break''.
3524 (update_context): Do not use __func__.
3525
3526 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3527
3528 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3529 and its setting. Set gdbarch instruction printing functions
3530 directly. For non-rs6000 case use new function
3531 gdb_print_insn_powerpc.
3532 (gdb_print_insn_powerpc): New function.
3533
3534 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3535
3536 * NEWS: Mention that the d30v has been marked obsolete.
3537 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3538 * configure.tgt: Mark d30v-*-* as obsolete.
3539 * d30v-tdep.c: Mark file as obsolete.
3540 * config/d30v/d30v.mt: Ditto.
3541 * config/d30v/tm-d30v.h: Ditto.
3542
3543 2002-07-13 Aidan Skinner <aidan@velvet.net>
3544
3545 * ada-tasks.c (add_task_entry): replace calls to
3546 malloc() with xmalloc
3547 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3548
3549 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3550 ada_finish_decode_line_1, all_sals_for_line
3551 ada_breakpoint_rewrite): replace calls to free() with xfree()
3552
3553 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3554
3555 From Nicholas Duffek (with minor changes by Martin Hunt,
3556 Louis Hamilton, and Kevin Buettner):
3557 * aix-thread.c: New file.
3558
3559 2002-07-12 Petr Sorfa <petrs@caldera.com>
3560
3561 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3562 complaint for invalid attribute class or form.
3563 (read_func_scope): DW_AT_frame_base
3564 better handling of DW_AT_block*.
3565 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3566 better handling of DW_AT_block*.
3567 (read_common_block): DW_AT_location
3568 better handling of DW_AT_block*.
3569 (read_partial_die): DW_AT_location better handling
3570 of DW_AT_block*.
3571 (new_symbol): DW_AT_external better handling of
3572 DW_AT_block*. Proper initialization of variable
3573 "addr".
3574 (attr_form_is_block): New function that returns true
3575 if the attribute's form is of DW_FORM_block*.
3576
3577 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3578
3579 * valops.c (find_method_list): Remove comment about
3580 removed STATIC_MEMFUNCP argument.
3581 (value_find_oload_method_list): Likewise.
3582
3583 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3584
3585 From Nicholas Duffek:
3586 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3587 target_new_objfile_hook.
3588
3589 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3590
3591 From Nicholas Duffek:
3592 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3593 csect.
3594
3595 2002-07-12 Andrew Cagney <cagney@redhat.com>
3596
3597 * MAINTAINERS: Mention --enable-sim-build-warnings.
3598 (m68hc11-elf): Disable sim build warnings.
3599 (m32r-elf): Mark as broken obsolete candidate.
3600 (x86_64-linux-gnu): Mark as buildable with -Werror.
3601 (arm-elf): Change -w to ``,'' which enables warnings but not
3602 -Werror.
3603
3604 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3605
3606 * bcache.h: Update copyright.
3607 (struct bstring, struct bcache): Move definition to "bcache.c".
3608 Replaced by opaque declaration.
3609 (bcache_xfree): Replace free_bcache.
3610 (bcache_xmalloc, bcache_memory_used): Declare.
3611
3612 * bcache.c: Update copyright.
3613 (struct bstring, struct bcache): Moved to here from "bcache.h".
3614 Update comments.
3615 (bcache_xmalloc, bcache_memory_used): New functions.
3616 (bcache_xfree): Replace function free_bcache.
3617
3618 * Makefile.in (objfiles.o): Add $(bcache_h).
3619 (objfiles_h): Remove $(bcache_h).
3620 (symfile.o): Add $(bcache_h).
3621
3622 * symmisc.c: Update copyright.
3623 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3624 (print_objfile_statistics): Use bcache_memory_used.
3625
3626 * symfile.c: Include "bcache.h".
3627 (reread_symbols): Use bcache_xfree.
3628 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3629 (add_psymbol_to_list): Pass psymbol_cache by value.
3630 (add_psymbol_with_dem_name_to_list): Ditto.
3631
3632 * objfiles.h: Update copyright.
3633 (struct bcache): Declare opaque. Do not include "bcache.h".
3634 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3635 bcache'' pointers.
3636 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3637
3638 * objfiles.c: Include "bcache.h". Update copyright.
3639 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3640 macro_cache.
3641 (free_objfile): Use bcache_xfree.
3642
3643 2002-07-11 Grace Sainsbury <graces@redhat.com>
3644
3645 * monitor.c (monitor_fetch_register): Make name a constant.
3646 (monitor_store_register): Same.
3647
3648 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3649
3650 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3651 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3652 (finish_block) For non-function blocks, hash the symbol table. For
3653 function blocks, mark the symbol table as unhashed.
3654 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3655 (msymbol_hash_iw): Likewise.
3656 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3657 value.
3658 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3659 (lookup_minimal_symbol): Likewise for both.
3660 * symtab.h (struct block): Add `hashtable' flag. Comment the
3661 hashtable.
3662 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3663 (ALL_BLOCK_SYMBOLS): Update.
3664 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3665 (struct symbol): Add `hash_next' pointer.
3666 * symtab.c (lookup_block_symbol): Search using the hash table when
3667 possible.
3668 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3669 (search_symbols, find_addr_symbol): Likewise.
3670
3671 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3672 (read_dst_symtab): Likewise.
3673 * jv-lang.c (get_java_class_symtab): Likewise.
3674 * mdebugread.c: Include "gdb_assert.h".
3675 (shrink_block): Assert that the block being modified is not hashed.
3676 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3677 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3678 symbols.
3679 (dump_symtab): Recognize hashed blocks.
3680 * printcmd.c (print_frame_args): Assert that function blocks do not
3681 have hashed symbol tables.
3682 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3683 (fill_in_ada_prototype, debug_print_block): Likewise.
3684 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3685
3686 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3687
3688 * stack.c (print_frame): Use result of frame_address_in_block()
3689 instead of fi->pc when evaluating symbols.
3690 (backtrace_command_1): Ditto.
3691
3692 2002-07-11 Andrew Cagney <cagney@redhat.com>
3693
3694 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3695 Make static.
3696
3697 * arm-tdep.c (arm_register_name): Make return type constant.
3698
3699 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3700
3701 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3702 prototype.
3703 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3704 * s390-tdep.c (s390_fp_regnum): Ditto.
3705 (s390_read_fp): Ditto.
3706 (s390_pop_frame): Ditto.
3707 (_initialize_s390_tdep): Ditto.
3708 * remote.c (get_remote_state): Ditto.
3709 * procfs.c (mappingflags): Ditto.
3710 * memattr.c (_initialize_mem): Ditto.
3711 * mcore-tdep.c (mcore_pop_frame): Ditto.
3712 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3713 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3714 * language.c (set_case_str): Ditto.
3715 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3716 * frv-tdep.c (new_variant): Ditto.
3717 (frv_stopped_data_address): Ditto.
3718 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3719 (context_alloc): Ditto.
3720 (frame_state_alloc): Ditto.
3721 (unwind_tmp_obstack_init): Ditto.
3722 (unwind_tmp_obstack_free): Ditto.
3723 (cfi_read_fp): Ditto.
3724 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3725 (cris_pop_frame): Ditto.
3726 * c-lang.c (scanning_macro_expansion): Ditto.
3727 (finished_macro_expansion): Ditto.
3728 (c_preprocess_and_parse): Ditto.
3729 * gdbarch.sh: Ditto.
3730 * gdbarch.h, gdbarch.c: Regenerate.
3731 * config/mn10200/tm-mn10200.h: Adjust indentation.
3732 * target.c: Adjust indentation.
3733 * symtab.h: Adjust indentation.
3734 * stabsread.h: Adjust indentation.
3735 * remote-es.c: Adjust indentation.
3736 * os9kread.c: Adjust indentation.
3737
3738 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3739
3740 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3741 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3742
3743 2002-07-10 Grace Sainsbury <graces@redhat.com>
3744
3745 * NEWS: Mention m68k, mcore multi-arching.
3746 * MAINTAINERS: Change status of m68k, mcore to reflect
3747 multi-arching.
3748
3749 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3750
3751 * valops.c (find_overload_match): Free oload_syms.
3752
3753 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3754
3755 Define HAVE_SYS_PROC_H if sys/proc.h exists
3756 * configure.in: Add check for sys/proc.h
3757 * config.in: Regenerate.
3758 * configure: Regenerate.
3759
3760 2002-07-09 Grace Sainsbury <graces@redhat.com>
3761
3762 * config/m68k/tm-m68k.h: Remove macros wrapped in
3763 #if !GDB_MULTI_ARCH.
3764
3765 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3766
3767 * config.in, configure: Regenerate.
3768
3769 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3770
3771 * dwarf2cfi.c: Include "gcore.h".
3772 (execute_stack_op): Fix implementation of the
3773 DW_OP_deref and DW_OP_deref_size operators by letting do their
3774 lookup in the target.
3775
3776 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3777
3778 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3779 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3780 tdep->sc_sp_offset.
3781
3782 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3783
3784 Fix PR gdb/595, gdb/602
3785 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3786 Don't call value_cast, just read the vtable pointer; update comments
3787 to match.
3788
3789 2002-07-05 Grace Sainsbury <graces@redhat.com>
3790
3791 * config/mcore/tm-mcore.h: Remove file.
3792 * config/mcore/mcore.mt: Remove definition of TM_FILE
3793 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3794
3795 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3796
3797 * i386bsd-tdep.c: Include "gdb_string.h".
3798
3799 2002-07-04 Grace Sainsbury <graces@redhat.com>
3800
3801 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3802 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3803 mcore-tdep.
3804 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3805 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3806 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3807 (RETVAL_REGNUM): Move macros from tm-mcore.h
3808 (mcore_reg_struct_has_addr): New function.
3809 (mcore_gdbarch_init): Added initializations for the macros removed
3810 from tm-mcore.h.
3811
3812 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3813
3814 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3815 traditonal string branding within the ELF header.
3816
3817 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3818
3819 * symtab.c (remove_params): New function.
3820 (make_symbol_overload_list): Use it instead of cplus_demangle.
3821 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3822
3823 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3824
3825 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3826
3827 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3828 New variables.
3829 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3830 and tdep->sigtramp_end.
3831 * i386obsd-nat.c: New file.
3832 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3833
3834 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3835 Don't call get_current_frame().
3836
3837 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3838
3839 * i386-nat.c (child_post_startup_inferior): New function
3840 calling i386_cleanup_dregs if
3841 I386_USE_GENERIC_WATCHPOINTS is defined.
3842 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3843 conditional to acknowledge that i386-nat.c has its
3844 own child_post_startup_inferior function.
3845
3846 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3847
3848 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3849 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3850 instead of MAX_REGISTER_RAW_SIZE.
3851 (i386_extract_return_value, i386_extract_struct_value_address):
3852 Convert to use regcache.
3853 (i386_gdbarch_init): Set max_register_raw_size and
3854 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3855 Set extract_return_value and extract_struct_value_address instead
3856 of their deprecated variants.
3857
3858 Convert i386 target to generic dummy frames.
3859 * i386-tdep.c: Include "symfile.h".
3860 (i386_frameless_signal_p): Consider a function to be frameless if
3861 the pc points at the first instruction of the function.
3862 (i386_frame_chain): Handle (generic) call dummies.
3863 (i386_frame_saved_pc): Likewise.
3864 (i386_frame_init_saved_regs): Remove code dealing with call
3865 dummies on the stack.
3866 (i386_push_dummy_frame): Removed.
3867 (i386_call_dummy_words): Removed.
3868 (i386_fix_call_dummy): Removed.
3869 (i386_push_return_address): New function.
3870 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3871 parameter, and don't call get_current_frame.
3872 (i386_pop_frame): New function.
3873 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3874 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3875 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3876 call_dummy_length to 0, set call_dummy_words to NULL, set
3877 sizeof_call_dummy_words to 0, set fix_call_dummy to
3878 generic_fix_call_dummy, set pc_in_call_dummy to
3879 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3880 generic_push_dummy_frame, set push_return_address to
3881 i386_push_return_address and set frame_chain_valid to
3882 generic_file_frame_chain_valid.
3883
3884 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3885
3886 * gdbarch.sh (struct regcache): Add opaque declaration.
3887 (EXTRACT_RETURN_VALUE): New architecture method.
3888 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3889 * gdbarch.h, gdbarch.c: Regenerate.
3890 * arch-utils.c (legacy_extract_return_value): New function.
3891 * arch-utils.h (legacy_extract_return_value): Declare.
3892 * values.c (value_being_returned): Re-enable code handling
3893 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3894 deprecated_grub_regcache_for_registers call to block handling
3895 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3896 (EXTRACT_RETURN_VALUE): Do not define.
3897
3898 2002-07-03 Grace Sainsbury <graces@redhat.com>
3899
3900 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3901 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3902 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3903 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3904 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3905 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3906 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3907 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3908 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3909 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3910 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3911 argument so the function fits the prototype in the architecture
3912 vector.
3913 (mcore_pop_frame): Remove argument so the function fits the
3914 prototype. Use get_current_frame instead of the argument.
3915 (mcore_push_arguments): Change type of struct_return so the
3916 function can be used in the architecture vector.
3917 (mcore_store_struct_return): Add.
3918 (mcore_frame_init_saved_regs): Add.
3919 (mcore_gdbarch_init): Add function calls to replace the macros
3920 removed from tm-mcore.h
3921
3922 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3923
3924 * infcmd.c (print_return_value): Remove compatibility code calling
3925 deprecated_grub_regcache_for_registers.
3926
3927 * values.c: Include "regcache.h".
3928 (value_being_returned): Update. Use
3929 deprecated_grub_regcache_for_registers to extract the register
3930 buffer address.
3931 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3932 ``struct regcache''.
3933 * Makefile.in (values.o): Add dependency on $(regcache_h).
3934
3935 * inferior.h (run_stack_dummy): Change type of second parameter to
3936 a ``struct regcache''.
3937 * valops.c (hand_function_call): Change type of retbuf to ``struct
3938 regcache''. Allocate using regcache_xmalloc, clean using
3939 make_cleanup_regcache_xfree.
3940 * infcmd.c (run_stack_dummy): Update. Use
3941 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3942
3943 * regcache.c (do_regcache_xfree): New function.
3944 (make_cleanup_regcache_xfree): New function.
3945 * regcache.h (make_cleanup_regcache_xfree): Declare.
3946
3947 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3948
3949 * event-top.c (command_line_handler): Don't read past
3950 beginning of buffer.
3951
3952 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3953
3954 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3955 struct frame_id.
3956 (varobj_create): Store frame_id for root.
3957 (varobj_gen_name): Use xasprintf.
3958 (varobj_update): Save and restore frame using get_frame_id() and
3959 frame_find_by_id().
3960 (create_child): Use xasprintf.
3961 (new_root_variable): Initialize frame_id.
3962 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3963 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3964 to prevent memory leak.
3965
3966 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3967
3968 * valops.c (hand_function_call): Move declaration of retbuf to
3969 start of function, allocate using malloc, add a cleanup but before
3970 the inf_status cleanup, cleanup the buffer. Rename local variable
3971 old_chain to inf_status_cleanup.
3972
3973 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3974
3975 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3976
3977 * cli/cli-decode.c (cmd_func_p): New function.
3978 (cmd_func): New function.
3979
3980 * command.h: Add cmd_func() and cmd_func_p().
3981
3982 2002-07-03 Grace Sainsbury <graces@redhat.com>
3983
3984 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3985 (REGISTER_SIZE): Remove.
3986 (MAX_REGISTER_RAW_SIZE): Remove.
3987 (REGISTER_VIRTUAL_TYPE): Remove.
3988 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3989 (REGISTER_NAME): Remove.
3990 (USE_GENERIC_DUMMY_FRAMES): Remove.
3991 (CALL_DUMMY): Remove.
3992 (CALL_DUMMY_START_OFFSET): Remove.
3993 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3994 (CALL_DUMMY_LOCATION): Remove.
3995 (FIX_CALL_DUMMY): Remove.
3996 (CALL_DUMMY_ADDRESS): Remove.
3997 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3998 (SAVE_DUMMY_FRAME_TOS): Remove.
3999 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4000 (mcore_register_virtual_type): New function.
4001 (mcore_register_byte): New function.
4002 (mcore_register_size): New function.
4003 (mcore_register_name): New function.
4004 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4005 macros removed from tm-mcore.h.
4006 (mcore_dump_tdep): Add.
4007 (_initialize_mcore_tdep): Add gdbarch_register call.
4008
4009 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4010
4011 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4012 frameless_look_for_prologue, such that we actually call this
4013 function.
4014
4015 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4016
4017 * frame.h (frame_address_in_block): New function.
4018
4019 * blockframe.c (frame_address_in_block): New function extracted
4020 from get_frame_block().
4021 (get_frame_block): Use frame_address_in_block().
4022 (block_innermost_frame): Use frame_address_in_block() to match
4023 the frame pc address against the block boundaries rather than
4024 the frame pc directly. This prevents a failure when a frame pc
4025 is actually a return-address pointing immediately after the end
4026 of the given block.
4027
4028 2002-07-02 Grace Sainsbury <graces@redhat.com>
4029
4030 * MAINTAINERS: Add self under write after approval.
4031
4032 2002-07-02 Grace Sainsbury <graces@redhat.com>
4033
4034 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4035 used in architecture vector. The default is
4036 m68k_local_breakpoint_from_pc.
4037 (m68k_local_breakpoint_from_pc): Add.
4038 (enum): Add register numbers from tm-m68k.h.
4039 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4040 vector.
4041 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4042 GDB_MULTI_ARCH_PARTIAL.
4043 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4044 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4045 m68k-tdep.c.
4046 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4047 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4048 to enum in m68k-tdep.c
4049
4050 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4051
4052 * solib-osf.c (open_map): Compute the list of shared libraries
4053 loaded by the inferior, rather than the list of libraries loaded
4054 by GDB itself. Otherwise, GDB ends up reading the symbols from
4055 the wrong shared libraries...
4056
4057 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4058
4059 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4060 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4061 macros.
4062 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4063 Remove functions.
4064 (FRAMELESS_SIGNAL): Remove function.
4065 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4066 i386_linux_saved_pc_after_call): Removed.
4067 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4068 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4069 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4070
4071 * i386-tdep.c (i386_frameless_signal_p): New function.
4072 (i386_frame_chain): Deal with frameless signals.
4073 (i386_sigtramp_saved_sp): New function.
4074 (i386_frame_saved_pc): Deal with frameless signals.
4075 (i386_saved_pc_after_call): Make sure the correct value is
4076 returned just after entry into a sigtramp.
4077 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4078 i386fbsd4_sc_sp_offset): New variables.
4079 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4080 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4081 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4082 similiar to what we already did for sc_pc_offset.
4083 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4084 tdep->sc_sp_offset.
4085
4086 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4087
4088 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4089
4090 * config/i386/tm-x86-64linux.h: New.
4091 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4092 definitions.
4093 * config/i386/nm-x86-64.h: Rename to ...
4094 * config/i386/nm-x86-64linux.h: ... this one.
4095 * config/i386/x86-64linux.mh: Reflect the above change.
4096
4097 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4098
4099 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4100 with sigcontext_addr. Add sc_sp_offset.
4101 (i386bsd_sigtramp_saved_pc): Remove prototype.
4102 (i386bsd_sicontext_addr): Add prototype.
4103 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4104 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4105 (i386_svr4_sigtramp_saved_pc): Removed.
4106 (i386_svr4_sigcontext_addr): New function.
4107 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4108 Initialize tdep->sigcontext_addr instead. Initialize
4109 tdep->sc_pc_offset and tdep->sc_sp_offset.
4110 (i386_gdbarch_init): Likewise.
4111 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4112 any more.
4113 (i386bsd_sigtramp_saved_pc): Remove function.
4114 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4115 Initialize tdep->sigcontext_addr instead. Initialize
4116 tdep->sc_pc_offset.
4117 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4118 of tdep->sigtramp_saved_pc.
4119 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4120 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4121 instead.
4122
4123 * i386-tdep.c (i386_frameless_function_invocation,
4124 i386_frame_num_args, i386_frame_init_saved_regs,
4125 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4126 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4127 i386_extract_return_value, i386_store_return_value,
4128 i386_extract_struct_value_address, i386_register_virtual_type,
4129 i386_register_convertible, i386_register_convert_to_virtual,
4130 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4131 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4132 static.
4133
4134 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4135
4136 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4137
4138 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4139 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4140 this macro. Include "value.h".
4141
4142 2002-06-30 Aidan Skinner <aidan@velvet.net>
4143
4144 * ada-exp.tab.c: remove as it's a generated file
4145 * ada-lex.c: remove as it's a generated file
4146
4147 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4148
4149 * config/i386/tm-i386.h (struct frame_info, struct
4150 frame_saved_regs, struct value, struct type): Remove forward
4151 declarations.
4152
4153 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4154 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4155 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4156 (FILL_FPXREGSET): Define.
4157
4158 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4159
4160 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4161 i[3456]86-*-netbsd* case.
4162 * config/i386/tm-obsd.h: Removed.
4163 * config/i386/obsd.mt: Removed.
4164 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4165 core-aout.o.
4166 (MH_CFLAGS): Add -DYYDEBUG=0.
4167
4168 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4169 i386nbsd_sc_pc_offset on OpenBSD too.
4170
4171 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4172 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4173 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4174 define.
4175 * i386bsd-tdep.c: Include "arch-utils.h".
4176 (i386bsd_aout_in_solib_call_trampoline): New function.
4177 (i386bsd_init_abi): Set in_solib_call_trampoline to
4178 i386bsd_aout_in_solib_call_trampoline.
4179 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4180 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4181
4182 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4183
4184 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4185 (struct obstack, struct bcache): Add opaque declarations.
4186 * Makefile.in (macrotab_h): Update
4187
4188 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4189
4190 * blockframe.c (generic_find_dummy_frame): Change return type to
4191 ``struct regcache''.
4192 (struct dummy_frame): Replace field ``registers'' with regcache, a
4193 struct regcache object.
4194 (generic_find_dummy_frame): Update.
4195 (generic_push_dummy_frame): Update. Use regcache_xfree,
4196 regcache_xmalloc and regcache_cpy.
4197 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4198 regcache_xfree.
4199 (deprecated_generic_find_dummy_frame): Update.
4200 (generic_read_register_dummy): Update. Use
4201 regcache_read_as_address.
4202 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4203 (generic_get_saved_register): Update. Use regcache_read.
4204
4205 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4206
4207 * Makefile.in (objfiles_h): Add $(bcache_h).
4208 * objfiles.h: Include "bcache.h".
4209
4210 * Makefile.in (symtab_h): Remove $(bcache_h).
4211 * symtab.h: Do not include "bcache.h".
4212
4213 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4214
4215 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4216 generic_func_frame_chain_valid.
4217
4218 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4219
4220 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4221 * config/i386/tm-fbsd.h: Likewise.
4222
4223 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4224
4225 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4226 generic_unwind_get_saved_register.
4227
4228 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4229
4230 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4231 * regcache.c (supply_register): Add missing argument to
4232 register_buffer call.
4233
4234 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4235
4236 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4237 Solaris /bin/grep does not not like it. From Peter Schauer.
4238
4239 2002-06-26 Tom Tromey <tromey@redhat.com>
4240
4241 * command.h (add_setshow_cmd): Declare.
4242 (add_setshow_cmd_full): Declare.
4243 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4244 returns void. Use add_setshow_cmd_full.
4245 (add_setshow_cmd_full): New function.
4246 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4247 (add_setshow_boolean_cmd): Likewise.
4248
4249 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4250
4251 * config/vax/tm-vax.h: Protect from multiple inclusion.
4252 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4253 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4254 * config/vax/tm-vaxbsd.h: ...here. New file.
4255 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4256
4257 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4258
4259 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4260 (BELIEVE_PCC_PROMOTION): Remove.
4261 (AP_REGNUM): Move to...
4262 * config/vax/nm-vax.h: ...here.
4263 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4264 (vax_breakpoint_from_pc): New function.
4265 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4266 and gdbarch_believe_pcc_promotion.
4267
4268 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4269
4270 * Makefile.in (vax_tdep_h): Define.
4271 (vax-tdep.o): Use $(vax_tdep_h).
4272 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4273 (vax_dump_tdep): New function.
4274 (_initialize_vax_tdep): Register vax_dump_tdep.
4275 * vax-tdep.h: Include osabi.h.
4276 (struct gdbarch_tdep): New.
4277
4278 2002-06-26 Andrew Cagney <cagney@redhat.com>
4279
4280 * frame.h (deprecated_generic_find_dummy_frame): Rename
4281 generic_find_dummy_frame.
4282 * blockframe.c (generic_find_dummy_frame): Make static.
4283 (deprecated_generic_find_dummy_frame): New function.
4284 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4285 generic_find_dummy_frame with deprecated_find_dummy_frame.
4286 (sh64_nofp_frame_init_saved_regs): Ditto.
4287 (sh_fp_frame_init_saved_regs): Ditto.
4288 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4289 (s390_frame_chain): Ditto.
4290 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4291
4292 2002-06-26 Grace Sainsbury <graces@redhat.com>
4293
4294 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4295 gdbarch vector are at the top.
4296 (NUM_REGS): Remove.
4297 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4298 (FRAME_ARGS_ADDRESS): Remove.
4299 (FRAME_LOCALS_ADDRESS): Remove.
4300 (FRAME_NUM_ARGS): Remove.
4301 (FRAME_ARGS_SKIP): Remove.
4302 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4303 (m68k_gdbarch_init): Add gdbarch initializations for macros
4304 undefined in tm-m68k.h
4305
4306 2002-06-26 Grace Sainsbury <graces@redhat.com>
4307
4308 * monitor.h: Add the function regname to monitor_ops
4309 structure. This way NUM_REGS does not have to be a constant.
4310 * monitor.c (monitor_fetch_register): Added support for regname
4311 function. The function is called if the array regnames is NULL.
4312 (monitor_store_register): Same.
4313 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4314 regnames array.
4315 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4316 cpu32bug_cmds.regname to point to new function.
4317 * abug-rom.c (abug_regname): Same as above.
4318 (init_abug_cmds): Same.
4319 * dbug-rom.c (dbug_regname): Same as above.
4320 (init_dbug_cmds): Same.
4321 * remote-est.c (est_regname): Same.
4322 (init_est_cmds): Same.
4323 * rom68k-rom.c (rom68k_regname): Same.
4324 (init_rom68k_cmds): Same.
4325
4326 2002-06-25 Tom Tromey <tromey@redhat.com>
4327
4328 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4329
4330 2002-06-25 Andrew Cagney <cagney@redhat.com>
4331
4332 * infrun.c (stop_registers): Change variable's type to ``struct
4333 regcache'''.
4334 (xmalloc_inferior_status): Delete function.
4335 (free_inferior_status): Delete function.
4336 (normal_stop): Use regcache_cpy.
4337 (struct inferior_status): Change type of fields ``stop_registers''
4338 and ``registers'' to ``struct regcache''.
4339 (write_inferior_status_register): Use regcache_write.
4340 (save_inferior_status): Instead of calling
4341 xmalloc_inferior_status, allocate the inf_status buffer directly.
4342 Use regcache_dup_no_passthrough and regcache_dup to save the
4343 buffers.
4344 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4345 Replace the stop_registers regcache instead of overriding it. Use
4346 regcache_xfree. Instead of calling free_inferior_status, xfree
4347 the buffer directly.
4348 (discard_inferior_status): Use regcache_xfree. Instead of calling
4349 free_inferior_status, xfree the buffer directly.
4350 (build_infrun): Use regcache_xmalloc.
4351 (_initialize_infrun): Delete redundant call to build_infrun.
4352
4353 * Makefile.in (infcmd.o): Add $(regcache_h).
4354
4355 * infcmd.c: Include "regcache.h".
4356 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4357 obtain the address of `stop_registers' register buffer.
4358 (print_return_value): Ditto.
4359
4360 * inferior.h (struct regcache): Add opaque declaration.
4361 (stop_registers): Change variable's declared type to ``struct
4362 regcache''.
4363
4364 2002-06-24 Tom Tromey <tromey@redhat.com>
4365
4366 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4367 * target.c (initialize_targets): Fixed typo in
4368 trust-readonly-sections `show' documentation.
4369
4370 * main.c: Marked all strings with _().
4371
4372 2002-06-24 Don Howard <dhoward@redhat.com>
4373
4374 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4375 that means max CORE_ADDR+1.
4376 (lookup_mem_region): Ditto.
4377 (mem_info_command): Ditto.
4378
4379 2002-06-24 Grace Sainsbury <graces@redhat.com>
4380
4381 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4382 (REGISTER_BYTES_OK): Remove.
4383 (REGISTER_BYTES): Remove.
4384 (STORE_STRUCT_RETURN): Remove.
4385 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4386 (STORE_RETURN_VALUE): Remove.
4387 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4388 (FRAME_CHAIN): Remove.
4389 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4390 (FRAME_SAVED_PC): Remove.
4391 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4392 (m68k_store_struct_return): Add.
4393 (m68k_deprecated_extract_return_value): Add.
4394 (m68k_deprecated_extract_struct_value_address): Add.
4395 (m68k_store_return_value): Add.
4396 (m68k_frame_chain): Add.
4397 (m68k_frameless_function_invocation): Add.
4398 (m68k_frame_saved_pc): Add.
4399 (m68k_gdbarch_init): added set_gdbarch calls for new
4400 functions and deleted macros.
4401
4402 2002-06-23 Tom Tromey <tromey@redhat.com>
4403
4404 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4405 (ALLDEPFILES): Likewise.
4406 (udiheaders): Removed.
4407 (udip2soc.o): Likewise.
4408 (udi2go32.o): Likewise.
4409 (udr.o): Likewise.
4410 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4411
4412 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4413
4414 * infrun.c (_initialize_infrun): Delete unnecessary call to
4415 build_infrun.
4416
4417 * regcache.h: Update comments describing the regcache_cpy family
4418 of functions.
4419 (regcache_save, regcache_restore): Delete declaration.
4420 (regcache_save_no_passthrough): Delete declaration.
4421 (regcache_restore_no_passthrough): Delete declaration.
4422 * regcache.c (regcache_save): Delete function.
4423 (regcache_save_no_passthrough): Delete function.
4424 (regcache_restore): Delete function.
4425 (regcache_restore_no_passthrough): Delete function.
4426
4427 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4428
4429 * config/m68k/tm-m68k.h: Fix typo.
4430 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4431 (m68k_frame_init_saved_regs): Declare.
4432
4433 2002-06-21 Jim Blandy <jimb@redhat.com>
4434
4435 Remove some vestiges of Harris 88k support.
4436 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4437 register numbering quirk.
4438 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4439 odd symbols occurring in Harris 88k ELF targets.
4440
4441 2002-06-21 Tom Tromey <tromey@redhat.com>
4442
4443 * gdb_locale.h: New file.
4444 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4445 (defs_h): Added gdb_locale.h.
4446 * configure, config.in: Rebuilt.
4447 * configure.in (PACKAGE): Define.
4448 * defs.h: Include gdb_locale.h.
4449 * main.c (captured_main): Call setlocale, bindtextdomain,
4450 textdomain.
4451
4452 2002-06-21 Dave Brolley <brolley@redhat.com>
4453
4454 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4455 * config/frv/frv.mt: New file.
4456 * config/frv/tm-frv.h: New file.
4457 * configure.tgt: Support frv-*-*.
4458 * Makefile.in (frv-tdep.o): New target.
4459 * frv-tdep.c: New file.
4460 * NEWS: Mention frv.
4461
4462 2002-06-21 Dave Brolley <brolley@redhat.com>
4463
4464 * MAINTAINERS: Add self to "Write After Approval" list.
4465
4466 2002-06-21 Grace Sainsbury <graces@redhat.com>
4467
4468 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4469 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4470 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4471 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4472 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4473
4474 * m68k-tdep.c: Include arch-utils.h
4475 (m68k_register_raw_size): Add.
4476 (m68k_register_virtual_size): Add.
4477 (m68k_register_virtual_type): Add.
4478 (m68k_register_name): Add.
4479 (m68k_stack_align): Add.
4480 (m68k_register_byte): Add.
4481 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4482 tm-m68k.h.
4483
4484 2002-06-21 Grace Sainsbury <graces@redhat.com>
4485
4486 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4487 m68k_find_saved_regs.
4488 (m68k_pop_frame): Removed saved_regs structure, and replaced
4489 references to it with frame->saved_regs.
4490 (m68k_gdbarch_init): Added function calls to initialize the
4491 gdbarch structure.
4492 (m68k_fix_call_dummy): Add.
4493 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4494 (CALL_DUMMY): Remove.
4495 (CALL_DUMMY_LENGTH): Remove.
4496 (CALL_DUMMY_START_OFFSET): Remove.
4497 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4498 (FIX_CALL_DUMMY): Remove.
4499 (PUSH_DUMMY_FRAME): Remove.
4500 (POP_FRAME): Remove.
4501
4502 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4503
4504 * parse.c (parse_fprintf): New function used to avoid calls to
4505 fprintf in bison parser generated debug code.
4506 * parser-defs.h: Declaration of new parse_fprintf function.
4507 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4508 Set YYDEBUG to 1 by default.
4509 Set YYFPRINTF as parse_fprintf.
4510
4511 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4512
4513 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4514 encoding anymore.
4515 (pointer_encoding, enum ptr_encoding): New.
4516 (execute_cfa_program): Take care about pointer encoding.
4517 (dwarf2_build_frame_info): Only call parse_frame_info for
4518 .debug_frame and .eh_frame.
4519 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4520 fixed augmentation handling, added relative addressing,
4521 ignore duplicate FDEs. Added comments.
4522 * dwarf2cfi.c: Reindented.
4523
4524 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4525
4526 * event-top.c (command_handler): Don't use space_at_cmd_start
4527 unless there is sbrk() on the host. Assign time and space data
4528 to union fields of the appropriate length.
4529
4530 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4531
4532 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4533 x86_64_register_name. Return type changed to 'const char *'.
4534 (x86_64_register_name2nr): Rename to x86_64_register_number.
4535 (x86_64_gdbarch_init): Update to reflect the change.
4536 * x86-64-tdep.h: Ditto.
4537 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4538 (supply_fpregset): Ditto.
4539
4540 2002-06-19 Andrew Cagney <cagney@redhat.com>
4541
4542 * regcache.h: Update copyright.
4543 (struct regcache, struct gdbarch): Add opaque declarations.
4544 (current_regcache): Declare global variable.
4545 (regcache_read, regcache_write): Add gdbarch parameter.
4546 (regcache_save, regcache_save_no_passthrough)
4547 (regcache_restore, regcache_restore_no_passthrough)
4548 (regcache_dup, regcache_dup_no_passthrough)
4549 (regcache_cpy, regcache_cpy_no_passthrough)
4550 (deprecated_grub_regcache_for_registers)
4551 (deprecated_grub_regcache_for_register_valid)
4552 (regcache_valid_p): Add function declarations.
4553
4554 * regcache.c: Update copyright.
4555 (regcache_descr_handle): New global variable.
4556 (struct regcache_descr): Define.
4557 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4558 (regcache_descr, xfree_regcache_descr): New functions.
4559 (struct regcache): Define.
4560 (regcache_xmalloc, regcache_xfree): New functions.
4561 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4562 (regcache_dup, regcache_dup_no_passthrough): New functions.
4563 (regcache_valid_p, regcache_read_as_address): New functions.
4564 (deprecated_grub_regcache_for_registers): New function.
4565 (deprecated_grub_regcache_for_register_valid): New function.
4566 (current_regcache): New global variable.
4567 (register_buffer): Add regcache parameter. Update calls.
4568 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4569 (read_register_gen, write_register_gen): Update register_buffer
4570 call. Test for legacy_p instead of gdbarch_register_read_p or
4571 gdbarch_register_write_p.
4572 (regcache_collect): Update register_buffer call.
4573 (build_regcache): Rewrite. Use deprecated grub functions.
4574 (regcache_save, regcache_save_no_passthrough): New functions.
4575 (regcache_restore, regcache_restore_no_passthrough): New
4576 functions.
4577 (_initialize_regcache): Create the regcache_data_handle. Swap
4578 current_regcache global variable.
4579
4580 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4581 parameter to regcache_read and regcache_write calls.
4582 (sh4_register_read): Ditto.
4583 (sh64_pseudo_register_read): Ditto.
4584 (sh64_register_read): Ditto.
4585 (sh_pseudo_register_write): Ditto.
4586 (sh4_register_write): Ditto.
4587 (sh64_pseudo_register_write): Ditto.
4588 (sh64_register_write): Ditto.
4589
4590 * defs.h (XCALLOC): Define.
4591
4592 2002-06-19 Grace Sainsbury <graces@redhat.com>
4593
4594 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4595 * m68k-tdep.c (m68k_gdbarch_init): Added.
4596 (m68k_dump_tdep): Added.
4597
4598 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4599
4600 * ada-lang.c (fill_in_ada_prototype): Update comment.
4601
4602 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4603
4604 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4605 MIPS_ABI_LAST.
4606 (mips_abi_string, mips_abi_strings): New.
4607 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4608 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4609 tdep->mips_abi_string. Honor mips_abi_string. Default to
4610 O32 if no ABI is found.
4611 (mips_dump_tdep): Use mips_abi_strings.
4612 (mips_abi_update): New function.
4613 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4614 ``set mips abi'' and ``show mips abi''. Check the size of
4615 mips_abi_strings.
4616
4617 2002-06-19 Andrew Cagney <cagney@redhat.com>
4618
4619 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4620 constant.
4621
4622 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4623
4624 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4625 current frame using only the first stack size adjustment. All
4626 subsequent size adjustments are not considered to be part of
4627 the "static" part of the current frame.
4628 Compute the address of the saved registers relative to the
4629 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4630 in use in this frame.
4631
4632 2002-06-18 Don Howard <dhoward@redhat.com>
4633
4634 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4635 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4636 suggesting this solution.
4637
4638 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4639
4640 * config/romp/xm-rtbsd.h: Delete file.
4641 * config/romp/rtbsd.mh: Delete file.
4642
4643 2002-06-18 Keith Seitz <keiths@redhat.com>
4644
4645 * breakpoint.c (condition_command): Post breakpoint_modify
4646 when a condition is added to an existing breakpoint.
4647 (commands_command): Likewise for commands.
4648 (set_ignore_count): Likewise for ignore counts.
4649 If no tty, do not simply return, still need to send event
4650 notification.
4651 (ignore_command): Only print a newline if the command came
4652 from a tty.
4653 Don't call breakpoints_changed, since this is now properly
4654 handled by set_ignore_count.
4655
4656 2002-06-18 Andrew Cagney <cagney@redhat.com>
4657
4658 * MAINTAINERS: Note that cris-elf target can be compiled with
4659 -Werror.
4660 * cris-tdep.c (cris_register_name): Make return type constant.
4661 (cris_breakpoint_from_pc): Ditto.
4662
4663 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4664
4665 * frame.h (struct frame_info): Change type of context to
4666 'struct context'.
4667
4668 2002-06-17 Andrew Cagney <cagney@redhat.com>
4669
4670 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4671 pointer.
4672 * gdbarch.h, gdbarch.c: Regenerate.
4673 * config/mips/tm-mips.h (mips_register_name): Update.
4674 * i386-tdep.h (i386_register_name): Update.
4675 * mips-tdep.c (mips_register_name): Update
4676 * alpha-tdep.c (alpha_register_name): Update.
4677 * arch-utils.c (legacy_register_name): Update.
4678 * arch-utils.h (legacy_register_name): Update.
4679 * avr-tdep.c (avr_register_name): Update.
4680 * ia64-tdep.c (ia64_register_name): Update.
4681 * i386-tdep.c (i386_register_name): Update.
4682 * sparc-tdep.c (sparc32_register_name): Update.
4683 (sparc64_register_name): Update.
4684 (sparclite_register_name): Update.
4685 (sparclet_register_name): Update.
4686 * sh-tdep.c (sh_generic_register_name): Update.
4687 (sh_sh_register_name): Update.
4688 (sh_sh3_register_name): Update.
4689 (sh_sh3e_register_name): Update.
4690 (sh_sh_dsp_register_name): Update.
4691 (sh_sh3_dsp_register_name): Update.
4692 (sh_sh4_register_name): Update.
4693 (sh_sh64_register_name): Update.
4694 * s390-tdep.c (s390_register_name): Update.
4695 * rs6000-tdep.c (rs6000_register_name): Update.
4696 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4697 (ns32k_register_name_32382): Update.
4698 * d10v-tdep.c (d10v_ts2_register_name): Update.
4699 (d10v_ts3_register_name): Update.
4700 * xstormy16-tdep.c (xstormy16_register_name): Update.
4701 * vax-tdep.c (vax_register_name): Update.
4702 * v850-tdep.c (v850_register_name): Update.
4703 * m68hc11-tdep.c (m68hc11_register_name): Update.
4704 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4705 (am33_register_name): Update.
4706
4707 2002-06-17 Grace Sainsbury <graces@redhat.com>
4708
4709 * m68k-tdep.c: Reindented.
4710
4711 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4712
4713 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4714 list of predefined types.
4715
4716 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4717
4718 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4719 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4720 REGISTER_CONVERT_TO_RAW): Remove defines.
4721 (i386_register_virtual_type, i386_register_convertible,
4722 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4723 Remove prototypes.
4724 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4725 macros mentioned above.
4726
4727 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4728 (i386lynx_saved_pc_after_call): Remove prototype.
4729 * i386ly-tdep.c: Include "i386-tdep.h".
4730 (i386lynx_saved_pc_after_call): Make static. Use
4731 read_memory_nobpt instead of read_memory. Use
4732 read_memory_unsigned_integer instead of read_memory_integer.
4733 (i386lynx_init_abi): New function.
4734 (i386lynx_coff_osabi_sniffer): New function.
4735 (_initialize_i386bsd_tdep): New function.
4736
4737 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4738 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4739 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4740 (i386_fix_call_dummy): Remove prototype.
4741 * i386-tdep.c (i386_call_dummy_words): New variable.
4742 (i386_gdbarch_init): Adjust for removal of the
4743 macros mentioned above.
4744
4745 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4746
4747 * command.h (add_setshow_auto_boolean_cmd): Replace
4748 add_set_auto_boolean_cmd.
4749 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4750 add_set_auto_boolean_cmd.
4751 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4752 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4753 mask-address'' command.
4754 (show_mask_address): Add cmd parameter.
4755 * remote.c (add_packet_config_cmd): Update. Change type of
4756 set_func and show_func to cmd_sfunc_ftype.
4757 (_initialize_remote): Update `set remote Z-packet'
4758 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4759 (show_remote_protocol_e_packet_cmd): Ditto.
4760 (show_remote_protocol_E_packet_cmd): Ditto.
4761 (show_remote_protocol_P_packet_cmd): Ditto.
4762 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4763 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4764 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4765 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4766 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4767 (show_remote_protocol_Z_packet_cmd): Ditto.
4768 (show_remote_protocol_binary_download_cmd): Ditto.
4769 (show_remote_cmd): Pass NULL to all of above.
4770
4771 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4772
4773 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4774 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4775 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4776 POP_FRAME): Remove defines.
4777 (i386_push_arguments, i386_store_struct_return,
4778 i386_extract_return_value, i386_store_return_value,
4779 i386_extract_struct_value_address, i386_push_dummy_frame,
4780 i386_pop_frame): Renove prototypes.
4781 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4782 macros mentioned above.
4783
4784 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4785
4786 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4787 add_set_boolean_cmd.
4788 (add_setshow_cmd): New function.
4789 * command.h (add_setshow_boolean_cmd): Replace
4790 add_set_boolean_cmd.
4791 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4792 and ``set rdiromatzero''.
4793 * maint.c (_initialize_maint_cmds): Update commented out code.
4794 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4795 * target.c (initialize_targets): Update `set
4796 trust-readonly-sections'.
4797 * remote.c (_initialize_remote): Update `set remotebreak'.
4798
4799 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4800
4801 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4802 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4803 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4804 fit into multi-arch framework.
4805 (i386_breakpoint_from_pc): New function.
4806 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4807 above.
4808
4809 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4810 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4811 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4812 (i386_frameless_function_invocation, i386_frame_num_args,
4813 i386_frame_init_saved_regs): Remove prototypes.
4814 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4815 macros mentioned above.
4816
4817 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4818
4819 * cli/cli-decode.c (set_cmd_cfunc): Update.
4820 (set_cmd_sfunc): Update.
4821 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4822 (set_cmd_sfunc, set_cmd_cfunc): Update.
4823 * cli/cli-decode.h: Update.
4824
4825 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4826
4827 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4828 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4829
4830 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4831
4832 * defs.h (auto_boolean): Declare enum.
4833 * command.h (cmd_auto_boolean): Delete enum.
4834 * mips-tdep.c (mask_address_var): Update.
4835 (mips_mask_address_p): Update.
4836 (show_mask_address): Update.
4837 * remote.c (struct packet_config): Update.
4838 (update_packet_config): Update.
4839 (show_packet_config_cmd): Update.
4840 (packet_ok): Update.
4841 (add_packet_config_cmd): Update.
4842 (_initialize_remote):
4843 * command.h: Update.
4844 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4845 (do_setshow_command): Update.
4846 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4847 * cli/cli-decode.h: Update.
4848
4849 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4850
4851 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4852 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4853 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4854 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4855 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4856 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4857
4858 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4859 list of DJGPP COFF targets.
4860
4861 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4862 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4863 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4864 (FP0_REGNUM): Remove define.
4865 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4866 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4867 (i386_register_virtual_size): Remove protoype.
4868 * i386-tdep.c (i386_register_virtual_size): Removed.
4869 (i386_extract_return_value, i386_store_return_value): Use
4870 FP0_REGNUM instead of NUM_FREGS to determine whether the
4871 floating-point registers are available.
4872 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4873 Adjust for removal of macros mentioned above.
4874
4875 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4876
4877 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4878 comments.
4879 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4880 Remove prototypes.
4881 (supply_gregset, fill_gregset): Remove use of register keyword and
4882 remove declaration for regmap. Use I386_NUM_GREGS instead of
4883 NUM_REGS and NUM_FREGS.
4884 (FPREGSET_FSAVE_OFFSET): Remove.
4885 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4886 NUM_FREGS to determine whether the floating-point registers are
4887 available.
4888
4889 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4890 gnu_store_registers): Replace usage of NUM_GREGS with
4891 I386_NUM_GREGS.
4892
4893 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4894 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4895 usage of NUM_GREGS with I386_NUM_GREGS.
4896
4897 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4898
4899 * i386bsd-nat.c: Include "i386-tdep.h".
4900 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4901 I386_NUM_GREGS.
4902
4903 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4904 and associated comment. They no longer make any sense, since we
4905 don't use this file anymore on Linux.
4906
4907 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4908 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4909 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4910 elements in these arrays.
4911 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4912 MAX_NUM_REGS.
4913
4914 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4915
4916 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4917 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4918
4919 2002-06-14 Andrew Cagney <cagney@redhat.com>
4920
4921 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4922 EXTRACT_RETURN_VALUE.
4923 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4924 EXTRACT_STRUCT_VALUE_ADDRESS.
4925 * gdbarch.h, gdbarch.c: Regenerate.
4926
4927 * values.c (value_being_returned): Handle
4928 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4929 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4930
4931 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4932 * arm-tdep.c (arm_gdbarch_init): Update.
4933 * avr-tdep.c (avr_gdbarch_init): Update.
4934 * cris-tdep.c (cris_gdbarch_init): Update.
4935 * d10v-tdep.c (d10v_gdbarch_init): Update.
4936 * ia64-tdep.c (ia64_gdbarch_init): Update.
4937 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4938 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4939 * s390-tdep.c (s390_gdbarch_init): Update.
4940 * sh-tdep.c (sh_gdbarch_init): Update.
4941 * s390-tdep.c (s390_gdbarch_init): Update.
4942 * sparc-tdep.c (sparc_gdbarch_init): Update.
4943 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4944 * v850-tdep.c (v850_gdbarch_init): Update.
4945 * vax-tdep.c (vax_gdbarch_init): Update.
4946 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4947 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4948
4949 * config/arc/tm-arc.h: Update.
4950 * config/d30v/tm-d30v.h: Update.
4951 * config/fr30/tm-fr30.h: Update.
4952 * config/h8300/tm-h8300.h: Update.
4953 * config/h8500/tm-h8500.h: Update.
4954 * config/i386/tm-i386.h: Update.
4955 * config/i386/tm-ptx.h: Update.
4956 * config/i386/tm-symmetry.h: Update.
4957 * config/i960/tm-i960.h: Update.
4958 * config/m32r/tm-m32r.h: Update.
4959 * config/m68k/tm-delta68.h: Update.
4960 * config/m68k/tm-linux.h: Update.
4961 * config/m68k/tm-m68k.h: Update.
4962 * config/m88k/tm-m88k.h: Update.
4963 * config/mcore/tm-mcore.h: Update.
4964 * config/mips/tm-mips.h: Update.
4965 * config/mn10200/tm-mn10200.h: Update.
4966 * config/pa/tm-hppa.h: Update.
4967 * config/pa/tm-hppa64.h: Update.
4968 * config/sparc/tm-sp64.h: Update.
4969 * config/sparc/tm-sparc.h: Update.
4970 * config/sparc/tm-sparclet.h: Update.
4971 * config/z8k/tm-z8k.h: Update.
4972
4973 2002-06-14 Andrew Cagney <cagney@redhat.com>
4974
4975 * Makefile.in (i386_linux_tdep_h): Define.
4976 (i386_tdep_h, i387_tdep_h): Define.
4977 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4978 $(i386_tdep_h) and $(i387_tdep_h).
4979 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4980
4981 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4982
4983 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4984 Already covered by the default.
4985
4986 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4987 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4988 (i386_gdbarch_init): Initialize long_double_format and long_double
4989 bit.
4990
4991 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4992 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4993 Move these to ...
4994 * config/i386/i386sol2.mh: ... here.
4995 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4996 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4997 (SIGCONTEXT_PC_OFFSET): Remove define.
4998 (IN_SIGTRAMP): Remove define.
4999 * i386-sol2-tdep.c: New file.
5000
5001 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5002 * config/i386/tm-i386nw.h: Removed.
5003
5004 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5005 USE_STRUCT_CONVENTION): Remove defines.
5006 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5007 (get_longjmp_target): Remove prototype.
5008 (IN_SIGTRAMP): Remove define.
5009 (i386bsd_in_sigtramp): Remove prototype.
5010 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5011 function. Update comment accordingly
5012 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5013 (FRAME_SAVED_PC): Remove define.
5014 (i386bsd_frame_saved_pc): Remove prototype.
5015 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5016 GET_LONGJMP_TARGET): Remove defines.
5017 (get_longjmp_target): Remove prototype.
5018 (IN_SIGTRAMP): Remove define.
5019 (i386bsd_in_sigtramp): Remove prototype.
5020 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5021 function. Update comment accordingly
5022 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5023 (FRAME_SAVED_PC): Remove define.
5024 (i386bsd_frame_saved_pc): Remove prototype.
5025 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5026 Remove prototype.
5027 (USE_STRUCT_CONVENTION): Remove prototype.
5028 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5029 declaration.
5030 (_initialize_i386bsd_nat): Revise logic to determine some
5031 constants at compile time when compiling a native GDB. Warn if
5032 things don't match up with what we expect.
5033 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5034 Remove variables.
5035 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5036 to use date stored in `struct gdbarch_tdep'.
5037 (i386bsd_sigcontext_offset): Remove varaible.
5038 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5039 stored in `struct gdbarch_tdep'.
5040 (i386bsd_frame_saved_pc): Make static.
5041 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5042 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5043 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5044 i386fbsd4_sc_pc_offset): New variables.
5045 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5046 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5047 functions.
5048 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5049 functions.
5050 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5051 Modify the value of i386fbsd_sigtramp_start and
5052 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5053 i386fbsd_sigtramp_end.
5054 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5055 function.
5056
5057 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5058 define to i386-linux-tdep.h.
5059 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5060 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5061 defines.
5062 (i386_linux_register_name, i386_linux_register_byte,
5063 i386_linux_register_raw_size): Remove prototypes.
5064 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5065 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5066 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5067 TARGET_WRITE_PC): Remove defines.
5068 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5069 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5070 i386_linux_write_pc): Remove prototypes.
5071 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5072 (get_longjmp_target): Remove prototype.
5073 * i386-linux-tdep.h: New file.
5074 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5075 * i386-linux-tdep.c: Include "i386-tdep.h" and
5076 "i386-linux-tdep.h".
5077 (i386_linux_register_name, i386_linux_register_byte,
5078 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5079 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5080 Make static.
5081 (i386_linux_init_abi): New function.
5082 (_initialize_i386_linux_tdep): New function.
5083
5084 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5085 (i386_saved_pc_after_call): Remove prototype.
5086 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5087 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5088 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5089 (i386_register_name, i386_stab_reg_to_regnum,
5090 i386_dwarf_reg_to_regnum): Remove prototypes.
5091 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5092 SIZEOF_SSE_REGS): Remove defines.
5093 (REGISTER_BYTES): Remove define.
5094 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5095 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5096 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5097 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5098 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5099 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5100 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5101 (get_longjmp_target): Remove prototype.
5102 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5103 (sigtramp_saved_pc): Remove define.
5104 (i386v4_sigtramp_saved_pc): Remove prototype.
5105 * config/i386/tm-go32.h (FRAME_CHAIN,
5106 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5107 (i386go32_frame_saved_pc): Remove prototype.
5108 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5109 (get_longjmp_target): Remove prototype.
5110 * i386-tdep.h: Include "osabi.h".
5111 (enum i386_abi): Removed.
5112 (enum struct_return): New enum.
5113 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5114 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5115 sc_pc_offset members.
5116 (i386_gdbarch_register_os_abi): Remove prototype.
5117 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5118 I386_SSE_NUM_REGS): New defines.
5119 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5120 I386_SSE_SIZEOF_REGS): New defines.
5121 (i386_register_name, i386_register_byte, i386_register_raw_size):
5122 New prototypes.
5123 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5124 (i386bsd_sigtramp_saved_pc): New prototype.
5125 * i386-tdep.c: Don't include "elf-bfd.h".
5126 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5127 i386_frame_chain, i386_saved_pc_after_call): Make static.
5128 (i386_frame_saved_pc): Rewrite to call architecture dependent
5129 function to deal with signal handlers. Make static.
5130 (i386go32_frame_saved_pc): Removed.
5131 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5132 Removed.
5133 (i386_get_longjmp_target): New function.
5134 (default_struct_convention, pcc_struct_convention,
5135 reg_struct_convention, valid_conventions, struct_convention): New
5136 variables.
5137 (i386_use_struct_convention): New function.
5138 (i386v4_sigtramp_saved_pc): Renamed to
5139 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5140 (i386_pc_in_sigtramp): New function.
5141 (i386_abi_names): Removed.
5142 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5143 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5144 Removed.
5145 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5146 i386_gdbarch_register_os_abi): Removed.
5147 (struct i386_abi_handler): Removed.
5148 (i386_abi_handler_list): Removed.
5149 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5150 functions.
5151 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5152 i386_nw_init_abi): New functions.
5153 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5154 Use set_gdbarch_xxx() calls instead of relying on macros for a
5155 number of calls.
5156 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5157 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5158 Register the various architecture variants defined in this file.
5159
5160 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5161
5162 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5163 (struct main_type): Remove arg_types member. Update comments for
5164 struct field.
5165 (TYPE_ARG_TYPES): Remove.
5166 (TYPE_FN_FIELD_ARGS): Update.
5167 (smash_to_method_type): Update prototype.
5168
5169 * c-typeprint.c (cp_type_print_method_args): Take method type
5170 instead of argument list. Use new argument layout. Simplify.
5171 (c_type_print_args): Use new argument layout. Simplify.
5172 (c_type_print_base): Update call to cp_type_print_method_args.
5173 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5174 argument; use die->type instead. Update call to
5175 smash_to_method_type.
5176 (read_structure_scope): Update call to dwarf2_add_member_fn.
5177 * gdbtypes.c (allocate_stub_method): Update comment.
5178 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5179 Use new argument layout.
5180 (check_stub_method): Use new argument layout. Don't count
5181 void as an argument.
5182 (print_arg_types): Update comments. Use new argument layout.
5183 (recursive_dump_type): Don't print arg_types member.
5184 * hpread.c (hpread_read_struct_type): Use new argument layout.
5185 (fixup_class_method_type): Likewise.
5186 (hpread_type_lookup): Likewise.
5187 * stabsread.c (read_type): Update calls to read_args and
5188 smash_to_method_type.
5189 (read_args): Use new argument layout. Simplify.
5190 * valops.c (typecmp): Use new argument layout. Update parameters
5191 and comments. Simplify.
5192 (hand_function_call): Use new argument layout.
5193 (search_struct_method): Update call to typecmp.
5194 (find_overload_match): Use new argument layout.
5195
5196 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5197
5198 * NEWS: Mention multithreaded debug support for gdbserver.
5199
5200 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5201
5202 * MAINTAINERS: Mention NEWS.
5203
5204 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5205
5206 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5207 (struct mips_objfile_private, compare_pdr_entries): New.
5208 (non_heuristic_proc_desc): Read the ".pdr" section if it
5209 is present.
5210
5211 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5212
5213 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5214 (arm_debug): New static variable.
5215 (_initialize_arm_tdep): Add ``set debug arm'' command.
5216
5217 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5218
5219 * Makefile.in (sim_arm_h): Define.
5220 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5221 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5222 (arm_register_sim_regno): New function, map an internal REGNUM
5223 onto a simulator register number.
5224 (arm_gdbarch_init): Set register_sim_regno.
5225
5226 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5227
5228 * MAINTAINERS: Add self.
5229
5230 2002-06-11 Jim Blandy <jimb@redhat.com>
5231
5232 * source.c (source_info): Mention whether the symtab has
5233 information about preprocessor macros.
5234
5235 Call the command `info macro', not `show macro'.
5236 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5237 Fix error message.
5238 (_initialize_macrocmd): Register `info_macro_command' in
5239 `infolist', not `showlist'.
5240
5241 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5242
5243 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5244 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5245 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5246 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5247 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5248 unconditionally.
5249 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5250 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5251 (_initialize_mips_tdep): Remove dead code.
5252 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5253 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5254 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5255 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5256 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5257 MIPS_LAST_FP_ARG_REGNUM): Remove.
5258
5259 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5260
5261 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5262 (unwind_tmp_obstack_free, parse_frame_info)
5263 (update_context, cfi_read_fp, cfi_write_fp)
5264 (cfi_frame_chain, cfi_init_extra_frame_info)
5265 (cfi_virtual_frame_pointer): Use the above function.
5266 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5267
5268 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5269
5270 * v850-tdep.c (v850_type_is_scalar): New function.
5271 (v850_use_struct_convention): Match current gcc implementation
5272 as close as possible.
5273 (v850_push_arguments): Fix stack_offset handling. Don't write
5274 struct_addr into register. This is done by v850_store_struct_return.
5275 (v850_extract_return_value): Care for structs.
5276 (v850_store_return_value): Ditto.
5277 (v850_store_struct_return): Actually write address.
5278
5279 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5280
5281 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5282 without debug information too.
5283
5284 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5285
5286 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5287 Make multi-arch pure.
5288 * gdbarch.h, gdbarch.c: Re-generate.
5289 * arm-tdep.c (arm_print_float_info): Update.
5290 * arch-utils.h (default_print_float_info): Update.
5291 * arch-utils.c (default_print_float_info): Update.
5292 * infcmd.c (float_info): Update call.
5293
5294 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5295
5296 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5297 the front of the initialize list.
5298
5299 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5300
5301 * infrun.c (struct inferior_status): Replace fields
5302 selected_frame_address and selected_level with field
5303 selected_frame_id.
5304 (save_inferior_status): Update. Use get_frame_id.
5305 (struct restore_selected_frame_args): Delete.
5306 (restore_selected_frame): Update. Use frame_find_by_id.
5307 (restore_inferior_status): Update.
5308
5309 * breakpoint.h (struct breakpoint): Change type of
5310 watchpoint_frame to frame_id.
5311 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5312 call to get_current_frame.
5313 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5314 get_current_frame.
5315 (watchpoint_check): Use frame_find_by_id.
5316
5317 * frame.h (record_selected_frame): Delete declaration.
5318 * stack.c (record_selected_frame): Delete function.
5319
5320 * frame.h (struct frame_id): Define.
5321 (get_frame_id): Declare.
5322 (frame_find_by_id): Declare.
5323 * frame.c (frame_find_by_id): New function.
5324 (get_frame_id): New function.
5325
5326 2002-06-10 Andrey Volkov <avolkov@transas.com>
5327
5328 * ser-e7kpc.c: Fix duplicated define and call of
5329 _initialize_ser_e7000pc
5330
5331 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5332
5333 * signals/signals.c (target_signal_from_host): Fix #ifdef
5334 SIGRTMIN case.
5335 (do_target_signal_to_host): Likewise.
5336
5337 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5338
5339 * mips-tdep.c (mips_find_abi_section): New function.
5340 (mips_gdbarch_init): Call it.
5341
5342 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5343
5344 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5345 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5346 after Andrew's 2002-06-08 gdbarch change.
5347
5348 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5349
5350 * i386-linux-nat.c (suppy_gregset): Don't supply
5351 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5352 register cache.
5353 (fill_gregset): Don't fetch it under the same circumstances.
5354
5355 2002-06-09 Andrew Cagney <cagney@redhat.com>
5356
5357 * Makefile.in (callback_h): Define.
5358 (remote_sim_h): Update path to remote-sim.h.
5359 (remote-rdp.o): Add $(callback_h).
5360 (remote-sim.o): Use $(callback_h).
5361 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5362 * remote-rdp.c: Include "gdb/callback.h".
5363
5364 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5365
5366 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5367 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5368
5369 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5370
5371 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5372 * rdi-share/serpardr.c: Ditto.
5373 * rdi-share/unixcomm.c: Ditto.
5374 * rdi-share/serdrv.c: Ditto.
5375 * rdi-share/hostchan.h: Ditto.
5376 * rdi-share/hostchan.c: Ditto.
5377 * rdi-share/host.h: Ditto.
5378 * rdi-share/devsw.c: Ditto.
5379
5380 * objfiles.h: Change type of obj_private to void pointer.
5381 * pa64solib.c: Update copyright. Don't include "assert.h", use
5382 strcmp instead of STREQ, use LONGEST, do not use PTR
5383 * somsolib.c: Ditto.
5384
5385 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5386 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5387 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5388
5389 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5390
5391 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5392 (default_get_saved_register): Delete function.
5393 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5394 generic_unwind_get_saved_register.
5395 * gdbarch.h, gdbarch.c: Re-generate.
5396
5397 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5398
5399 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5400 generic_func_frame_chain_valid.
5401 * gdbarch.h, gdbarch.c: Re-generate.
5402 * blockframe.c (generic_func_frame_chain_valid): Only check
5403 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5404 passing FP to PC_IN_CALL_DUMMY.
5405 Fix PR gdb/360.
5406
5407 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5408
5409 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5410 (register_gdbarch_data): Initialize init_p.
5411 (gdbarch_data): Initialize data pointer using the init function.
5412 (init_gdbarch_data): Delete function.
5413 (gdbarch_update_p): Update.
5414 (initialize_non_multiarch): Update.
5415 (struct gdbarch): Add field initialized_p.
5416 * gdbarch.h, gdbarch.c: Re-generate.
5417
5418 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5419
5420 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5421 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5422 better do the things actually here.
5423 * x86-64-tdep.c (x86_64_register_name2nr): New.
5424 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5425 (x86_64_gdbarch_init): Respect the above change.
5426 * x86-64-tdep.h (x86_64_register_name2nr)
5427 (x86_64_register_nr2name): Add prototypes.
5428 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5429
5430 2002-06-06 Michael Snyder <msnyder@redhat.com>
5431
5432 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5433 Delete extra braces and re-indent.
5434 (d10v_store_return_value): Char return values
5435 must be shifted over by one byte in R0.
5436 (d10v_extract_return_value): Delete extra braces, re-indent.
5437
5438 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5439
5440 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5441 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5442 (d10v_integer_to_address): Rewrite.
5443 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5444 the d10v specific functions which take care of converting to the
5445 correct space.
5446
5447 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5448
5449 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5450 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5451
5452 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5453
5454 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5455 includes.
5456 * config/tm-linux.h: Ditto.
5457 * config/alpha/tm-alphalinux.h: Ditto.
5458 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5459 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5460 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5461 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5462 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5463 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5464 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5465 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5466 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5467 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5468 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5469 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5470 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5471 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5472 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5473 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5474 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5475 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5476 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5477 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5478 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5479 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5480 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5481 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5482 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5483 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5484 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5485 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5486 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5487 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5488 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5489 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5490 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5491 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5492 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5493 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5494 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5495
5496 2002-05-04 Aidan Skinner <aidan@velvet.net>
5497
5498 * ada-exp.tab.c: New file
5499 * ada-exp.y: New file
5500 * ada-lang.c: New file
5501 * ada-lang.h: New file
5502 * ada-lex.c: New file
5503 * ada-lex.l: New file
5504 * ada-tasks.c: New file
5505 * ada-typeprint.c: New file
5506 * ada-valprint.c: New file
5507
5508 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5509
5510 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5511 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5512
5513 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5514
5515 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5516 insetead of ppc-linux-tdep.o.
5517 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5518 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5519
5520 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5521
5522 2002-05-07 Christian Groessler <chris@groessler.org>
5523 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5524 bit register contents for little endian hosts.
5525
5526 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5527
5528 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5529 any maintainer.
5530
5531 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5532
5533 * gdbarch.h: Regenerate.
5534
5535 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5536
5537 * MAINTAINERS: Add everyone to write-after-approval list.
5538
5539 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5540
5541 * stack.c (frame_info): Use frame_register_unwind instead of
5542 saved_regs. Mention when the SP is on the stack or in a register.
5543
5544 * frame.h (frame_register_unwind_ftype): Define. Document.
5545 (struct frame_info): Add field register_unwind and
5546 register_unwind_cache.
5547 (frame_register_unwind): Declare.
5548 (generic_unwind_get_saved_register): Declare.
5549
5550 * frame.c (frame_register_unwind): New function.
5551 (generic_unwind_get_saved_register): New function.
5552
5553 * blockframe.c (generic_call_dummy_register_unwind): New function.
5554 (frame_saved_regs_register_unwind): New function.
5555 (set_unwind_by_pc): New function.
5556 (create_new_frame): New function.
5557 (get_prev_frame): New function.
5558
5559 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5560
5561 * a29k-share/: Delete directory.
5562 * remote-vx29k.c: Delete file.
5563
5564 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5565
5566 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5567 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5568
5569 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5570
5571 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5572 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5573 (sparc64nbsd-nat.o)
5574 (sparcnbsd-nat.o)
5575 (sparcnbsd-tdep.o): New dependency lists.
5576 * NEWS: Note new UltraSPARC NetBSD native configuration.
5577 * configure.host (sparc64-*-netbsd*): New host.
5578 * configure.tgt (sparc-*-netbsdelf*)
5579 (sparc-*-netbsd*): Set gdb_target to nbsd.
5580 (sparc64-*-netbsd*): New target.
5581 * sparc64nbsd-nat.c: New file.
5582 * sparcnbsd-nat.c: New file.
5583 * sparcnbsd-tdep.c: New file.
5584 * sparcnbsd-tdep.h: New file.
5585 * config/sparc/nbsd.mt: New file.
5586 * config/sparc/nbsd64.mh: New file.
5587 * config/sparc/nbsd64.mt: New file.
5588 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5589 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5590 (HOST_IPC): Remove.
5591 * config/sparc/nbsdaout.mt: Remove.
5592 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5593 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5594 (HOST_IPC): Remove.
5595 * config/sparc/nbsdelf.mt: Remove.
5596 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5597 sparc-nat.c compatiblity defines.
5598 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5599 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5600 * config/sparc/tm-nbsd64.h: New file.
5601 * config/sparc/tm-nbsdaout.h: Remove.
5602 * config/sparc/xm-nbsd.h: Remove.
5603
5604 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5605
5606 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5607 * sparc-tdep.c: Include osabi.h.
5608 (gdbarch_tdep): Add osabi member.
5609 (_initialize_sparc_tdep): Use gdbarch_register.
5610 (sparc_gdbarch_init): Use generic OS ABI framework.
5611 (sparc_dump_tdep): New function.
5612
5613 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5614
5615 * corefile.c (do_captured_read_memory_integer): Return non-zero
5616 result.
5617 (safe_read_memory_integer): Copy result of memory read when
5618 status is non-zero. Also, add comments.
5619
5620 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5621
5622 * Makefile.in (ppc_tdep_h): Define.
5623 (ppc-linux-nat.o)
5624 (ppc-linux-tdep.o)
5625 (rs6000-tdep.o): Use $(ppc_tdep_h).
5626 (ppc-sysv-tdep.o)
5627 (ppcnbsd-nat.o)
5628 (ppcnbsd-tdep.o): New dependency lists.
5629 * ppc-tdep.h: Use generic OS ABI framework.
5630 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5631 (ppc_linux_init_abi): New functions.
5632 (ppc_sysv_abi_broken_use_struct_convention)
5633 (ppc_sysv_abi_use_struct_convention)
5634 (ppc_sysv_abi_push_arguments): Move to...
5635 * ppc-sysv-tdep.c: ...here.
5636 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5637 * rs6000-tdep.c (process_note_abi_tag_sections)
5638 (get_elfosabi): Remove.
5639 (rs6000_gdbarch_init): Use generic OS ABI framework.
5640 (rs6000_dump_tdep): New function.
5641 (_initialize_rs6000_tdep): Use gdbarch_register.
5642 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5643 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5644 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5645 of ppc-linux-tdep.o.
5646 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5647 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5648 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5649 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5650 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5651 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5652
5653 2002-05-29 Jim Blandy <jimb@redhat.com>
5654
5655 * macroscope.c (default_macro_scope): Put `void' in empty argument
5656 list.
5657
5658 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5659
5660 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5661 * arch-utils.c: Include "sim-regno.h".
5662 * gdbarch.sh: Don't include "sim-regno.h".
5663 * gdbarch.h, gdbarch.c: Regenerate.
5664 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5665 here.
5666 * arch-utils.h (legacy_register_sim_regno): To here.
5667 * remote-sim.c (legacy_register_sim_regno): Move function from
5668 here.
5669 * arch-utils.c (legacy_register_sim_regno): To here.
5670
5671 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5672
5673 * sim-regno.h: New file.
5674 * Makefile.in (sim_regno_h): Define.
5675 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5676 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5677 (legacy_register_sim_regno): New function.
5678 (one2one_register_sim_regno): New function.
5679 (gdbsim_fetch_register): Rewrite.
5680 (gdbsim_store_register): Only store a register when
5681 REGISTER_SIM_REGNO is valid.
5682 * d10v-tdep.c: Include "sim-regno.h".
5683 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5684 (d10v_ts3_register_sim_regno): Ditto.
5685 * gdbarch.sh: Include "sim-regno.h".
5686 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5687 * gdbarch.h, gdbarch.c: Regenerate.
5688 * arch-utils.h (default_register_sim_regno): Delete declaration.
5689 * arch-utils.c (default_register_sim_regno): Delete function.
5690
5691 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5692
5693 * ppcnbsd-nat.c: Rewrite.
5694 * ppcnbsd-tdep.c: New file.
5695 * ppcnbsd-tdep.h: New file.
5696 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5697 solib.o, and solib-svr4.o.
5698 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5699 nbsd-tdep.o, and corelow.o.
5700
5701 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5702
5703 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5704 `tr' and `sed'. Mention that `broken' targets are not expected to
5705 build.
5706
5707 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5708
5709 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5710 Let PC point right after the prologue before looking up symbols.
5711
5712 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5713
5714 * i386-tdep.c (i386_register_virtual_type): Return
5715 builtin_type_vec128i for SSE registers.
5716
5717 * gdbtypes.h (builtin_type_vec128i): Declare.
5718
5719 * gdbtypes.c (build_builtin_type_vec128i): New function.
5720 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5721 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5722 (build_gdbtypes): Initialize new builtin vector types.
5723 (_initialize_gdbtypes): Register new vector types with gdbarch.
5724
5725 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5726
5727 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5728 since it has been multi-arch'd.
5729 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5730 Move Alpha and VAX multi-arch news entries to same section
5731 as other multi-arch news.
5732
5733 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5734
5735 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5736 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5737 static. Rename some register numbers to put them in ns32k-tdep
5738 private namespace.
5739 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5740 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5741 functions.
5742 (_initialize_ns32k_tdep): Use gdbarch_register.
5743 * ns32k-tdep.h: New file.
5744 * ns32knbsd-tdep.c: New file.
5745 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5746 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5747 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5748 REGISTER_BYTES, REGISTER_BYTE): Remove.
5749 * config/ns32k/tm-ns32k.h: New file.
5750 * config/ns32k/tm-umax.h: Remove.
5751
5752 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5753
5754 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5755 ns32k_store_struct_return, ns32k_extract_return_value,
5756 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5757 functions.
5758 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5759 ns32k_saved_pc_after_call.
5760 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5761 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5762 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5763 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5764 ns32k_extract_struct_value_address.
5765
5766 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5767
5768 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5769 ns32k_fix_call_dummy): New.
5770 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5771 ns32k_call_dummy_words.
5772 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5773 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5774 CALL_DUMMY_NARGS): Remove.
5775 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5776
5777 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5778
5779 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5780 ns32k_frame_saved_pc, ns32k_frame_args_address,
5781 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5782 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5783 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5784 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5785 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5786 (BREAKPOINT): Remove..
5787 (FRAME_CHAIN): Define as ns32k_frame_chain.
5788 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5789 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5790 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5791 (FRAME_FIND_SAVED_REGS): Remove.
5792 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5793 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5794 (POP_FRAME): Define as ns32k_pop_frame.
5795
5796 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5797
5798 * ns32k-tdep.c (ns32k_register_byte_32082,
5799 ns32k_register_byte_32382, ns32k_register_raw_size,
5800 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5801 functions.
5802 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5803 ns32k_register_byte_32382.
5804 * config/ns32k/tm-umax.h: Update copyright years.
5805 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5806 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5807 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5808 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5809 (ns32k_get_enter_addr): Fix prototype.
5810
5811 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5812
5813 * ns32k-tdep.c: Update copyright years.
5814 (ns32k_register_name_32082): New function.
5815 (ns32k_register_name_32382): Ditto.
5816 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5817 (REGISTER_NAME): Define as ns32k_register_name_32382.
5818 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5819 (REGISTER_NAME): Define as ns32k_register_name_32082.
5820
5821 2002-05-24 Jim Blandy <jimb@redhat.com>
5822
5823 * dwarf2read.c (free_line_header): Use xfree, not free.
5824
5825 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5826
5827 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5828 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5829
5830 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5831
5832 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5833
5834 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5835
5836 From Ross Alexander at NEC Europe:
5837 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5838
5839 2002-05-23 Michael Snyder <msnyder@redhat.com>
5840
5841 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5842 for input, rather than parse_and_eval_address.
5843
5844 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5845
5846 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5847 * Makefile.in (sim_d10v_h): Update definition.
5848
5849 2002-05-24 Andrew Cagney <cagney@redhat.com>
5850
5851 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5852 change `2002-05-22 Michael Snyder' below.
5853 (d10v_push_arguments): Ditto.
5854 (d10v_extract_return_value): Ditto.
5855
5856 2002-05-23 Jim Blandy <jimb@redhat.com>
5857
5858 * macrotab.c (check_for_redefinition): Don't complain if the new
5859 definition is the same as the previous one. Take more arguments
5860 to allow the comparison.
5861 (macro_define_object, macro_define_function): Pass more arguments
5862 to check_for_redefinition.
5863
5864 2002-05-22 Michael Snyder <msnyder@redhat.com>
5865
5866 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5867 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5868 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5869 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5870 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5871 Add a temp variable to save a call (and a memory read).
5872 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5873 if possible (so that PC_IN_CALL_DUMMY will work).
5874
5875 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5876
5877 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5878
5879 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5880
5881 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5882 fde->cie_ptr.
5883 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5884 (dwarf2_build_frame_info): Add offset to fde->initial_location
5885 so that frames of shared libraries are mapped correctly.
5886 (execute_stack_op): Change type of 'result' from ULONGEST to
5887 CORE_ADDR.
5888
5889 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5890
5891 * config/alpha/tm-nbsd.h: Include solib.h.
5892
5893 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5894
5895 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5896 assumptions about the host's byte order.
5897
5898 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5899
5900 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5901 to dependency list.
5902 * alphanbsd-tdep.c: Include solib-svr4.h.
5903 * shnbsd-tdep.c: Ditto.
5904
5905 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5906
5907 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5908 nbsd-tdep.h to dependency list.
5909 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5910 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5911 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5912 nbsdaout.mh and nbsdelf.mh consistently.
5913 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5914 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5915 nbsdaout.mt and nbsdelf.mh consistently.
5916 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5917 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5918 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5919 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5920 a.out shared library stuff from here...
5921 * config/nm-nbsdaout.h: ...to here.
5922 * config/tm-nbsd.h: Remove.
5923 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5924 * config/arm/nbsd.mh: Remove.
5925 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5926 nbsd-tdep.o.
5927 * config/arm/nbsdaout.mh: New file.
5928 * config/arm/nbsdelf.mh: New file.
5929 * config/arm/nm-nbsdaout.h: New file.
5930 * config/i386/nbsd.mh: Remove.
5931 * config/i386/nbsd.mt: Remove.
5932 * config/i386/nbsdaout.mh: New file.
5933 * config/i386/nbsdaout.mt: New file.
5934 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5935 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5936 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5937 i386_register_u_addr): Remove.
5938 * config/i386/nm-nbsdaout.h: New file.
5939 * config/i386/nm-nbsdelf.h: Remove.
5940 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5941 (USE_STRUCT_CONVENTION): Remove.
5942 * config/i386/tm-nbsdaout.h: New file.
5943 * config/i386/tm-nbsdelf.h: Remove.
5944 * config/m68k/nbsd.mh: Remove.
5945 * config/m68k/nbsd.mt: Remove.
5946 * config/m68k/nbsdaout.mh: New file.
5947 * config/m68k/nbsdaout.mt: New file.
5948 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5949 * config/m68k/nm-nbsdaout.h: New file.
5950 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5951 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5952 * config/ns32k/nbsd.mh: Remove.
5953 * config/ns32k/nbsd.mt: Remove.
5954 * config/ns32k/nbsdaout.mh: New file.
5955 * config/ns32k/nbsdaout.mt: New file.
5956 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5957 * config/ns32k/nm-nbsdaout.h: New file.
5958 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5959 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5960 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5961 (SVR4_SHARED_LIBS): Remove.
5962 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5963 * config/sparc/nbsd.mh: Remove.
5964 * config/sparc/nbsd.mt: Remove.
5965 * config/sparc/nbsdaout.mh: New file.
5966 * config/sparc/nbsdaout.mt: New file.
5967 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5968 * config/sparc/nbsdelf.mt: New file.
5969 * config/sparc/nm-nbsdaout.h: New file.
5970 * config/sparc/nm-nbsdelf.h: Remove.
5971 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5972 * config/sparc/tm-nbsdaout.h: New file.
5973
5974 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5975
5976 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5977 mipsnbsd-tdep.c
5978 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5979
5980 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5981
5982 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5983 shnbsd-nat.c.
5984 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5985
5986 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5987
5988 * NEWS: Note new MIPS NetBSD native configuration.
5989 * configure.host (mips*-*-netbsd*): New host.
5990 * configure.tgt (mips*-*-netbsd*): New target.
5991 * mipsnbsd-nat.c: New file.
5992 * mipsnbsd-tdep.c: New file.
5993 * mipsnbsd-tdep.h: New file.
5994 * config/mips/nbsd.mh: New file.
5995 * config/mips/nbsd.mt: New file.
5996 * config/mips/nm-nbsd.h: New file.
5997 * config/mips/tm-nbsd.h: New file.
5998
5999 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6000
6001 * Makefile.in (SFILES): Add osabi.c.
6002 (COMMON_OBS): Add osabi.o.
6003 (osabi.o): New dependency list.
6004 * osabi.c: New file.
6005 * osabi.h: New file.
6006 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6007
6008 * Makefile.in (alpha_tdep_h): Define and use instead of
6009 alpha-tdep.h.
6010 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6011 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6012 Remove.
6013 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6014 * alpha-tdep.h: Include osabi.h.
6015 (alpha_abi): Remove.
6016 (gdbarch_tdep): Use generic OS ABI framework.
6017 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6018 gdbarch_register_osabi.
6019 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6020 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6021 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6022
6023 * Makefile.in (sh_tdep_h): Add osabi.h.
6024 * sh-tdep.h (sh_osabi): Remove.
6025 (gdbarch_tdep): Use generic OS ABI framework.
6026 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6027 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6028 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6029 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6030
6031 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6032 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6033 gdbarch_register_osabi.
6034 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6035 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6036 (get_elfosabi): Rename to...
6037 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6038 ABI framework support routines.
6039 (arm_gdbarch_init): Use generic OS ABI framework.
6040 (arm_dump_tdep): Likewise.
6041 (_initialize_arm_tdep): Likewise.
6042 * arm-tdep.h: Include osabi.h.
6043 (arm_abi): Remove.
6044 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6045 osabi member.
6046 (arm_gdbarch_register_os_abi): Remove prototype.
6047 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6048 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6049
6050 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6051 * mips-tdep.c: Include osabi.h.
6052 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6053 OS ABI framework.
6054
6055 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6056
6057 * h8300-tdep.c: Fix formatting.
6058
6059 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6060
6061 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6062 printing vector registers.
6063
6064 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6065
6066 From Fernando Nasser:
6067 * remote.c (remote_async_open_1): Re-throw the exception when the
6068 connection fails.
6069 (remote_cisco_open): Ditto.
6070 (remote_open_1): Ditto.
6071
6072 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6073
6074 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6075 (remote_start_remote): Add uiout parameter. Pass through to
6076 remote_start_remote_dummy.
6077 (remote_open_1): Use catch_exception instead of catch_errors.
6078 (remote_async_open_1): Ditto.
6079 (remote_cisco_open): Ditto.
6080
6081 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6082
6083 * remote.c (remote_start_remote): Replace PTR with void pointer.
6084 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6085 static.
6086
6087 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6088
6089 * gdb_indent.sh: Allow the script to be run in the sim directory.
6090
6091 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6092
6093 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6094 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6095
6096 * corelow.c (core_open): Only call set_gdbarch_from_file if
6097 exec_bfd is NULL.
6098
6099 2002-05-17 Andrey Volkov <avolkov@transas.com>
6100
6101 * h8300-tdep.c: Add support of EXR register
6102 * config/h8300/tm-h8300.h: Ditto.
6103
6104 2002-05-17 Andrey Volkov <avolkov@transas.com>
6105
6106 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6107
6108 2002-05-17 Andrey Volkov <avolkov@transas.com>
6109
6110 * h8300-tdep.c: Change literal regnums to REGNO.
6111
6112 2002-05-17 Jim Blandy <jimb@redhat.com>
6113
6114 * NEWS: Note addition of macro support.
6115
6116 Expand preprocessor macros in C expressions.
6117 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6118 (scan_macro_expansion, scanning_macro_expansion,
6119 finished_macro_expansion): New function declarations.
6120 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6121 variable declarations.
6122 * parser-defs.h (expression_context_pc): New declaration.
6123 * parse.c (expression_context_pc): New variable.
6124 (parse_exp_1): Set expression_context_pc, as well as
6125 expression_context_block.
6126 * c-exp.y (yylex): If we're not already reading the result of a
6127 macro expansion, try to macro-expand the next token. When we're
6128 done scanning a macro expansion, switch back to the mainline text.
6129 Commas and `if's in a macro's expansion don't terminate the input.
6130 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6131 (macro_original_text, macro_expanded_text,
6132 expression_macro_lookup_func, expression_macro_lookup_baton): New
6133 variables.
6134 (scan_macro_expansion, scanning_macro_expansion,
6135 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6136 c_preprocess_and_parse): New functions.
6137 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6138 c_preprocess_and_parse, instead of c_parse.
6139 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6140 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6141
6142 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6143
6144 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6145 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6146 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6147
6148 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6149
6150 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6151
6152 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6153
6154 * Makefile.in (sh_tdep_h): Define and use.
6155 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6156 register enum): Move to...
6157 * * sh-tdep.h: ...here.
6158 * sh-tdep.c: Include sh-tdep.h.
6159 * sh3-rom.c: Likewise.
6160 * shnbsd-tdep.c: Likewise.
6161
6162 2002-05-16 Michael Snyder <msnyder@redhat.com>
6163
6164 * arm-tdep.c: Spelling fix in comment.
6165
6166 2002-05-16 Jim Blandy <jimb@redhat.com>
6167
6168 Add commands for manually expanding macros and showing their
6169 definitions.
6170 * macrocmd.c, macroscope.c, macroscope.h: New files.
6171 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6172 (macroscope_h): New variable.
6173 (HFILES_NO_SRCDIR): Add macroscope.h.
6174 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6175 (macroscope.o, macrocmd.o): New rules.
6176
6177 Teach the Dwarf 2 reader to read macro information.
6178 * dwarf2read.c: #include "macrotab.h".
6179 (dwarf_macinfo_buffer): New variable.
6180 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6181 dwarf_macinfo_size.
6182 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6183 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6184 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6185 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6186 dwarf2_macro_spaces_in_definition): New complaints.
6187 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6188 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6189 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6190 the partial symbol table.
6191 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6192 from what's recorded in the partial symbol table.
6193 (read_file_scope): If the compilation unit has a
6194 `DW_AT_macro_info' attribute, read its macro information.
6195 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6196
6197 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6198
6199 Fix PR gdb/546
6200 * ser-tcp.c: Don't include <netinet/udp.h>.
6201
6202 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6203
6204 * MAINTAINERS: Update my email address.
6205
6206 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6207
6208 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6209 include file of the same name.
6210
6211 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6212
6213 * configure.tgt: Mark v850 as multi-arched.
6214 * config/v850/tm-v850.h: Remove file.
6215 * config/v850/v850.mt: Eliminate TM_FILE.
6216
6217 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6218
6219 * v850-tdep.c: Full multi-arch.
6220 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6221 Define GDB_MULTI_ARCH to 2.
6222
6223 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6224
6225 * p-exp.y (current_type): New static variable.
6226 Carries the type of the expression at the position that is parsed.
6227 (push_current_type, pop_current_type): Two new functions. Used
6228 to store/restore current_type in expression on specific tokens.
6229 (search_field): New static variable. Set to one after parsing a point
6230 as at that point only a FIELDNAME token should be searched.
6231 (FIELDNAME): New token. After a point only a token belonging to
6232 current_type type definition is allowed.
6233 (all over token rules): reset and change current_type according
6234 to rules.
6235 (exp '[' rule): insert implicit array index field if
6236 exp is a pascal string type.
6237
6238 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6239
6240 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6241 frame info. Use frame_info's saved_regs instead of matching member
6242 in extra_frame_info throughout.
6243 (v850_frame_init_saved_regs): New function.
6244 (v850_init_extra_frame_info): Move most functionality into
6245 v850_frame_init_saved_regs().
6246 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6247 (v850_frame_find_saved_regs): Remove declaration.
6248 (FRAME_FIND_SAVED_REGS): Remove definition.
6249 (v850_frame_init_saved_regs): Add declaration.
6250 (FRAME_INIT_SAVED_REGS): Add definition.
6251
6252 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6253
6254 * v850-tdep.c: Begin multi-arch'ing v850.
6255 (v850_target_architecture_hook): Remove function.
6256 (v850_gdbarch_init): New function. Add code previously in
6257 v850_target_architecture_hook().
6258 (_initialize_v850_tdep): Don't set target_architecture_hook.
6259 Call register_gdbarch_init() instead.
6260
6261 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6262
6263 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6264 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6265 (fixup_class_method_type): Likewise.
6266
6267 2002-05-15 Jim Blandy <jimb@redhat.com>
6268
6269 Add macro structures to GDB's symbol tables. Nobody puts anything
6270 in them yet.
6271 * symtab.h (struct symtab): New member: `macro_table'.
6272 * buildsym.h (pending_macros): New global variable.
6273 * buildsym.c: #include "macrotab.h".
6274 (buildsym_init): Initialize `pending_macros'.
6275 (end_symtab): If we found macro information while reading a CU's
6276 debugging info, do build a symtab structure for it. Make the
6277 symtab point to the macro information, and clear the
6278 `pending_macros' pointer which held it while we were reading the
6279 debug info.
6280 (really_free_pendings): Free any pending macro table.
6281 * objfiles.h (struct objfile): New member: `macro_cache'.
6282 * objfiles.c (allocate_objfile): Set allocate and free functions
6283 for the macro cache's objstack.
6284 (free_objfile): Empty the macro cache's obstack.
6285 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6286 set new allocate and free functions for it.
6287 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6288 free functions for the macro cache's objstack. (Why is this
6289 function building its own objfile?)
6290 * symmisc.c (print_objfile_statistics): Print statistics on the
6291 macro bcache.
6292 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6293
6294 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6295
6296 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6297 (REGISTER_U_ADDR): Delete definition.
6298 (arm_register_u_addr): Delete declaration.
6299
6300 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6301
6302 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6303 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6304
6305 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6306
6307 * regcache.c (register_valid): Revise comments refering to "Not
6308 available" and "unavailable".
6309 * frame.c (frame_register_read): Ditto.
6310 * findvar.c (value_of_register): Ditto.
6311
6312 2002-05-15 Andrew Cagney <cagney@redhat.com>
6313
6314 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6315 (remote-sim.o): Update dependencies.
6316 (d10v-tdep.o): Specify dependencies.
6317 (sim_d10v_h): Define.
6318
6319 2002-05-14 Jim Blandy <jimb@redhat.com>
6320
6321 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6322 * macrotab.c (macro_lookup_inclusion, find_definition,
6323 new_macro_table): Same.
6324
6325 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6326 not `! strcmp ()'. This is a dubious improvement.
6327 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6328
6329 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6330 although it's not necessary, to avoid a warning.
6331
6332 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6333
6334 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6335 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6336 TYPE_INSTANCE_FLAGS.
6337 (struct main_type): New.
6338 (struct type): Move most members to struct main_type. Change
6339 cv_type and as_type to new type_chain member. Add instance_flags.
6340 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6341 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6342 (finish_cv_type): Remove prototype.
6343 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6344 Set TYPE_CHAIN.
6345 (alloc_type_instance): New function.
6346 (smash_type): New function.
6347 (make_pointer_type, make_reference_type, make_function_type)
6348 (smash_to_member_type, smash_to_method_type): Call smash_type.
6349 (make_qualified_type): New function.
6350 (make_type_with_address_space): Call make_qualified_type.
6351 (make_cv_type): Likewise.
6352 (finish_cv_type): Remove unnecessary function.
6353 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6354 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6355 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6356 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6357 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6358 * hpread.c (hpread_read_struct_type): Likewise.
6359 * stabsread.c (read_struct_type): Likewise.
6360
6361 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6362
6363 * configure.tgt: Add a catch all sh* target, for cases like
6364 sh[2,3,4]-elf and sh-hms.
6365
6366 2002-05-14 Keith Seitz <keiths@redhat.com>
6367
6368 * event-loop.c (create_file_handler): Don't do anything but
6369 update data when we are given a fd which we are already
6370 monitoring.
6371
6372 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6373
6374 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6375 (update_context): Use __func__ in warnings.
6376
6377 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6378
6379 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6380 and tcp_close to net_open and net_close.
6381 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6382 using UDP if requested. Don't try to disable Nagle on UDP
6383 sockets.
6384 * remote.c (remote_serial_open): New function. Warn about UDP.
6385 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6386
6387 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6388
6389 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6390
6391 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6392
6393 * configure.tgt: Remove sh-hms target.
6394 * MAINTAINERS: Don't list sh-hms as a separate target.
6395
6396 2002-05-13 Jim Blandy <jimb@redhat.com>
6397
6398 Add first preprocessor macro-expansion files.
6399 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6400 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6401 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6402 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6403 (COMMON_OBS): Add macrotab.o, macroexp.o.
6404 (macroexp.o, macrotab.o): New rules.
6405
6406 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6407
6408 * config/m88k/tm-m88k.h: Update copyright.
6409 (m88k_target_write_pc): Declare
6410 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6411 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6412 (SHIFT_INST_REGS): Update definition.
6413 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6414 using old definition of TARGET_WRITE_PC.
6415 * regcache.c (generic_target_write_pc): Delete code handling
6416 NNPC_REGNUM.
6417 * gdbarch.sh (NNPC_REGNUM): Delete.
6418 * gdbarch.h, gdbarch.c: Regenerate.
6419
6420 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6421
6422 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6423 builtin reg number.
6424
6425 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6426
6427 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6428 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6429 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6430 access macros.
6431 * c-typeprint.c (cp_type_print_method_args): Likewise.
6432 (c_type_print_args): Likewise.
6433 * d10v-tdep.c (d10v_push_arguments): Likewise.
6434 (d10v_extract_return_value): Likewise.
6435 * expprint.c (print_subexp): Likewise.
6436 * gdbtypes.c (lookup_primitive_typename): Likewise.
6437 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6438 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6439 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6440 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6441 (TYPE_VECTOR): Likewise.
6442 * hpread.c (hpread_read_struct_type)
6443 (fix_static_member_physnames, fixup_class_method_type)
6444 (hpread_type_lookup): Likewise.
6445 * mdebugread.c (parse_symbol, parse_type): Likewise.
6446 * p-lang.c (is_pascal_string_type): Likewise.
6447 * valops.c (hand_function_call): Likewise.
6448 * x86-64-tdep.c (classify_argument): Likewise.
6449
6450 * hpread.c (hpread_read_function_type)
6451 (hpread_read_doc_function_type): Call replace_type.
6452 * dstread.c (create_new_type): Delete.
6453 (decode_dst_structure, process_dst_function): Call alloc_type.
6454 Use type access macros.
6455
6456 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6457
6458 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6459 the're not supported by the current architecture.
6460 (i387_fill_fxsave): Likewise.
6461
6462 2002-05-12 Fred Fish <fnf@redhat.com>
6463
6464 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6465 sect_index_xxx members to index the first slot in section_offsets
6466 if all of the section_offsets are zero.
6467
6468 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6469
6470 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6471 checked in with last change.
6472
6473 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6474
6475 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6476 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6477 config.sub.
6478
6479 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6480
6481 * Makefile.in: Update dependencies.
6482
6483 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6484
6485 * language.c (local_hex_string_custom): Simplify. Do not depend
6486 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6487
6488 * memattr.c (mem_info_command): Replace calls to
6489 longest_local_hex_string and longest_local_hex_string_custom.
6490 * buildsym.c (make_blockvector): Ditto.
6491 * solib.c (info_sharedlibrary_command): Ditto.
6492 * tracepoint.c (tracepoints_info): Ditto.
6493 * symtab.c (print_msymbol_info): Ditto.
6494
6495 * language.c (local_hex_string): Delete.
6496 (local_hex_string_custom): Delete.
6497 (longest_local_hex_string): Rename to local_hex_string.
6498 (longest_local_hex_string_custom): Rename to
6499 local_hex_string_custom.
6500 * language.h (local_hex_string): Change parameter type to LONGEST.
6501 (local_hex_string_custom): Ditto.
6502 (longest_local_hex_string): Delete declaration.
6503 (longest_local_hex_string_custom): Ditto.
6504
6505 * solib.c: Update copyright.
6506 * memattr.c: Update copyright.
6507
6508 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6509
6510 * arch-utils.h (legacy_register_to_value): Declare.
6511 (legacy_value_to_register): Declare.
6512 (legacy_convert_register_p): Declare.
6513 * arch-utils.c (legacy_register_to_value): New function.
6514 (legacy_value_to_register): New function.
6515 (legacy_convert_register_p): New function.
6516
6517 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6518 (VALUE_TO_REGISTER): Define.
6519 (CONVERT_REGISTER_P): Define.
6520 * gdbarch.h, gdbarch.c: Regenerate.
6521
6522 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6523 VALUE_TO_REGISTER.
6524 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6525 CONVERT_REGISTER_P.
6526
6527 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6528 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6529
6530 * Makefile.in: Update dependencies for valops.c.
6531 * valops.c: Include "gdb_assert.h".
6532 (typecmp): Skip THIS parameter to methods.
6533 (find_method_list): Remove static_memfuncp argument,
6534 update callers. Check for stub methods.
6535 (find_value_oload_method_list): Don't set *static_memfuncp.
6536 (find_overload_match): Don't check for stub methods. Assert
6537 that methods are not stubbed. Handle static methods.
6538 (value_find_oload_method_list): Remove static_memfuncp argument.
6539 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6540 to the argument list for static stub methods.
6541 * value.h (value_find_oload_method_list): Update prototype.
6542
6543 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6544
6545 * arch-utils.h (generic_register_size): Declare.
6546 (generic_register_raw_size, generic_register_virtual_size): Delete
6547 declarations.
6548 * arch-utils.c (generic_register_raw_size): Delete.
6549 (generic_register_size): New function.
6550 (generic_register_virtual_size): Delete.
6551
6552 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6553 default generic_register_size.
6554 * gdbarch.h, gdbarch.c: Re-generate.
6555
6556 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6557 register_virtual_size.
6558 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6559 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6560
6561 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6562
6563 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6564 * gdbarch.h, gdbarch.c: Regenerate.
6565 * gnu-v3-abi.c: Update copyright.
6566 (vtable_address_point_offset): Update.
6567 (gnuv3_rtti_type): Update.
6568 (gnuv3_baseclass_offset): Update.
6569 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6570 (init_fetch_link_map_offsets): Update.
6571 * remote.c (get_remote_state): Update.
6572
6573 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6574
6575 * TODO: Remove value_headof/value_from_vtable_info comment.
6576 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6577 * values.c (value_headof, value_from_vtable_info): Delete.
6578 * value.h (value_from_vtable_info): Delete prototype.
6579
6580 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6581
6582 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6583 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6584 $(gdb_regex_h).
6585 (gdb_assert_h): Define.
6586 (gdb_wait_h): Define.
6587 (gdb_regex_h): Define.
6588
6589 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6590
6591 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6592 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6593
6594 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6595
6596 * nbsd-tdep.c: Fix comment.
6597
6598 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6599
6600 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6601 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6602 (nbsd-tdep.o): New dependency list.
6603 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6604 nbsd-tdep.h.
6605 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6606 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6607 * nbsd-tdep.c: New file.
6608 * nbsd-tdep.h: New file.
6609 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6610 nbsd-tdep.h.
6611 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6612 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6613 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6614 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6615
6616 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6617
6618 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6619 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6620 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6621 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6622 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6623 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6624
6625 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6626
6627 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6628 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6629 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6630 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6631 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6632 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6633 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6634
6635 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6636
6637 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6638 fetch_elfcore_registers to...
6639 * i386nbsd-tdep.c: ...here.
6640 (i386nbsd_use_struct_convention): Rename to...
6641 (i386nbsd_aout_use_struct_convention): ...this.
6642 (i386nbsd_supply_reg): New function.
6643 (i386nbsd_fill_reg): New function.
6644 (fetch_core_registers): Use i386nbsd_supply_reg.
6645 (fetch_elfcore_registers): Likewise.
6646 (_initialize_i386nbsd_tdep): New function.
6647 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6648 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6649 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6650 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6651 (i386nbsd_aout_use_struct_convention): ...this.
6652
6653 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6654
6655 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6656 (store_inferior_registers): Use shnbsd_fill_reg.
6657 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6658 sh_nbsd_supply_register): Collapse into...
6659 (shnbsd_supply_reg): ...this.
6660 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6661 (shnbsd_fill_reg): ...this.
6662 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6663 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6664 (fetch_core_registers): Use shnbsd_supply_reg.
6665 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6666 (sh_nbsd_core_fns): Rename to...
6667 (shnbsd_core_fns): ...this.
6668 (sh_nbsd_elfcore_fns): Rename to...
6669 (shnbsd_elfcore_fns): ...this.
6670 (sh_nbsd_init_abi): Rename to...
6671 (shnbsd_init_abi): ...this.
6672 (_initialize_sh_nbsd_tdep): Rename to...
6673 (_initialize_shnbsd_tdep): ...this.
6674 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6675 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6676 sh_nbsd_fill_register): Remove prototypes.
6677 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6678
6679 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6680
6681 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6682 (i387-nat.o): Delete dependency list.
6683 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6684 (x86-64-linux-nat.o): Likewise.
6685 * i387-nat.c: Delete file, moving contents to...
6686 * i387-tdep.c: ...here.
6687 * i387-nat.h: Rename...
6688 * i387-tdep.h: ...to this.
6689 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6690 * i386-linux-nat.c: Likewise.
6691 * i386bsd-nat.c: Likewise.
6692 * i386gnu-nat.c: Likewise.
6693 * i386nbsd-nat.c: Likewise.
6694 * i386v4-nat.c: Likewise.
6695 * x86-64-linux-nat.c: Likewise.
6696 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6697 * config/i386/go32.mh (NATDEPFILES): Likewise.
6698 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6699 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6700 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6701 * config/i386/linux.mh (NATDEPFILES): Likewise.
6702 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6703 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6704 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6705 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6706
6707 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6708
6709 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6710 (alphanbsd-nat.o): Remove dependency list.
6711 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6712 * alphanbsd-nat.c: Delete. Contents moved to...
6713 * alphanbsd-tdep.c: ...here.
6714 (_initialize_alphanbsd_tdep): Register core functions.
6715 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6716
6717 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6718
6719 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6720 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6721 (alphanbsd-nat.o): Likewise.
6722 (alphabsd-tdep.o): New dependency list.
6723 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6724 (fill_gregset): Use alphabsd_fill_reg.
6725 (supply_fpregset): Use alphabsd_supply_fpreg.
6726 (fill_fpregset): Use alphabsd_fill_fpreg.
6727 (fetch_inferior_registers): Use struct reg and struct fpreg
6728 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6729 and alphabsd_supply_fpreg.
6730 (store_inferior_registers): Use struct reg and struct fpreg
6731 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6732 and alphabsd_fill_fpreg.
6733 * alphabsd-tdep.c: New file.
6734 * alphabsd-tdep.h: New file.
6735 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6736 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6737 alphabsd_supply_fpreg.
6738 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6739 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6740
6741 2002-05-11 Eric Christopher <echristo@redhat.com>
6742
6743 * mips-tdep.c (mips_double_register_type): Fix thinko.
6744 (mips_single_register_type): Ditto.
6745 * MAINTAINERS: Add self.
6746
6747 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6748
6749 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6750 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6751 right thing on architectures with different endianness and/or
6752 integer sizes.
6753
6754 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6755
6756 From Christian Limpach <chris@Pin.LU>
6757 * configure.in: Change sed expression which comments out
6758 NATDEPFILES to also comment out continuation lines.
6759 * configure: Regenerate.
6760
6761 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6762
6763 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6764 big patch.
6765
6766 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6767
6768 * sh-tdep.c: Include correct file.
6769
6770 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6771
6772 New support for sh64-elf (sh5) target.
6773
6774 * configure.tgt: For sh64-elf target, default to sh-elf.
6775
6776 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6777 (struct gdbarch_tdep): Add new fields for new registers and ABI
6778 info.
6779
6780 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6781 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6782 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6783 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6784 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6785 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6786 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6787 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6788 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6789 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6790 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6791 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6792 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6793 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6794 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6795 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6796 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6797 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6798 sign_extend, sh64_nofp_frame_init_saved_regs,
6799 sh64_init_extra_frame_info, sh64_get_saved_register,
6800 sh64_extract_struct_value_address, sh64_pop_frame,
6801 sh64_push_arguments, sh64_extract_return_value,
6802 sh64_store_return_value, sh64_show_media_regs,
6803 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6804 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6805 sh_sh64_register_virtual_type,
6806 sh_sh64_register_convert_to_virtual,
6807 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6808 sh64_register_read, sh64_pseudo_register_write,
6809 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6810 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6811 sh64_do_pseudo_register, sh_compact_do_registers_info,
6812 sh64_do_registers_info, sh_gdbarch_init): New functions.
6813
6814 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6815
6816 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6817
6818 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6819
6820 * linespec.c (decode_line_1): Check for a double quote after
6821 a filename correctly.
6822
6823 2002-05-10 Jim Blandy <jimb@redhat.com>
6824
6825 Properly track the size of the current objfile's .debug_line section.
6826 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6827 (DWARF_LINE_SIZE): New macro.
6828 (dwarf2_build_psymtabs_hard): Record the line section's size in
6829 the partial symbol table.
6830 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6831 symbol table.
6832
6833 2002-05-10 Petr Sorfa <petrs@caldera.com>
6834
6835 * ia64-tdep.c: Handle breakpoints on L instruction type
6836 in MLX instruction bundle by moving the breakpoint to
6837 the third slot (X instruction type) as L holds only data.
6838
6839 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6840
6841 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6842 (process_one_symbol): Complain about discarding local symbols
6843 due to a misplaced N_LBRAC entry.
6844
6845 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6846
6847 From Daniel Berlin <dan@cgsoftware.com>
6848 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6849 decrease the depth we are at, in the case of templates.
6850
6851 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6852
6853 * mips-tdep.c (mips_float_register_type): New function.
6854 (mips_double_register_type): New function.
6855 (mips_print_register): Use them.
6856 (do_fp_register_row): Likewise.
6857
6858 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6859
6860 * signals/signals.c (signals): Remove conditional compilation around
6861 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6862 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6863
6864 2002-05-09 Michael Snyder <msnyder@redhat.com>
6865
6866 * remote-rdp.c (remote_rdp_can_run): Remove.
6867
6868 2002-05-09 Tom Tromey <tromey@redhat.com>
6869
6870 * jv-valprint.c (java_val_print): Handle `char' as a special case
6871 of TYPE_CODE_INT.
6872
6873 2002-05-09 Michael Snyder <msnyder@redhat.com>
6874
6875 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6876 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6877 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6878 str r(0123),[sp,#nn].
6879 (arm_skip_prologue): Ditto. Also make disassembly
6880 order-independent by placing it in a loop.
6881
6882 2002-05-06 Michael Snyder <msnyder@redhat.com>
6883
6884 * stabsread.c (read_type): Add recognition for new attribute:
6885 "@V;" means that an array type is actually a vector.
6886 This is analogous to the vector flag that's been added to dwarf2.
6887
6888 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6889
6890 * i386-tdep.h (i386_abi): New enum.
6891 (struct gdbarch_tdep): Replace os_ident member with abi.
6892 (i386_gdbarch_register_os_abi): New prototype.
6893 * i386-tdep.c (i386_abi_names): New array.
6894 (process_note_abi_tag_sections): Removed.
6895 (process_note_sections): New function.
6896 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6897 (struct i386_abi_handler): New struct.
6898 (i386_abi_handler_list): New variable.
6899 (i386_gdbarch_register_os_abi): New function.
6900 (i386_gdbarch_init): Adapt for the changes given above.
6901
6902 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6903
6904 * gregset.h: Say "GNU/Linux".
6905
6906 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6907
6908 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6909 (build_gdbtypes): Build builtin_type_v2_float.
6910 (_initialize_gdbtypes): Register new builtin type.
6911
6912 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6913
6914 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6915 (clear_gdbarch_swap): New function.
6916 (initialize_non_multiarch): Call.
6917 (gdbarch_update_p): Before calling init(), swap out and clear the
6918 existing architecture.
6919 * gdbarch.c: Regenerate.
6920
6921 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6922
6923 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6924 alphanbsd-tdep.c.
6925
6926 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6927
6928 * sh-nbsd-nat.c: Rename to...
6929 * shnbsd-nat.c: ...this.
6930 * sh-nbsd-tdep.c: Rename to...
6931 * shnbsd-tdep.c: ...this.
6932 * sh-nbsd-tdep.h: Rename to...
6933 * shnbsd-tdep.h: ...this.
6934 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6935 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6936
6937 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6938
6939 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6940 concatenation for command help messages.
6941
6942 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6943
6944 * NEWS: Note new sh*-*-netbsdelf* configuration.
6945 * configure.host: Set gdb_host_cpu to sh for all sh*.
6946 (sh*-*-netbsdelf*): New host.
6947 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6948 (sh*-*-netbsdelf*): New target.
6949 * sh-nbsd-nat.c: New file.
6950 * sh-nbsd-tdep.c: New file.
6951 * sh-nbsd-tdep.h: New file.
6952 * config/sh/nbsd.mh: New file.
6953 * config/sh/nbsd.mt: New file.
6954 * config/sh/nm-nbsd.h: New file.
6955 * config/sh/tm-nbsd.h: New file.
6956
6957 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6958
6959 * sh-tdep.c (sh_osabi_names): Declare.
6960 (process_note_abi_tag_sections): New function.
6961 (get_elfosabi): Ditto.
6962 (sh_gdbarch_register_os_abi): Ditto.
6963 (sh_dump_tdep): Ditto.
6964 _initialize_sh_tdep): Use gdbarch_register to register
6965 sh_gdbarch_init and sh_dump_tdep.
6966 * config/sh/tm-sh.h (sh_osabi): Declare.
6967 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6968
6969 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6970
6971 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6972 (thumb_scan_prologue): Ditto.
6973 (arm_find_callers_reg): Ditto.
6974 (arm_frame_chain): Ditto.
6975 (arm_init_extra_frame_info): Ditto.
6976 (arm_frame_saved_pc): Ditto.
6977 (arm_pop_frame): Ditto.
6978 (arm_push_return_address): New function.
6979 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6980 call_dummy_location, call_dummy_breakpoint_offset_p,
6981 call_dummy_breakpoint_offset, call_dummy_p,
6982 call_dummy_stack_adjust_p, call_dummy_words,
6983 sizeof_call_dummy_words, call_dummy_start_offset,
6984 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6985 call_dummy_address, push_return_address and push_dummy_frame for
6986 generic dummy frames.
6987
6988 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6989
6990 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6991 size computation for alloca.
6992 (sh_fp_frame_init_saved_regs): Likewise.
6993
6994 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6995
6996 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6997 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6998 * arm-tdep.c (arm_store_return_value): Use them.
6999 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7000 * remote-rdp.c (remote_rdp_fetch_register): Use
7001 ARM_MAX_REGISTER_RAW_SIZE.
7002 (remote_rdp_store_register): Likewise.
7003
7004 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7005
7006 * dwarf2cfi.c: Code cleanup, removed unused variables,
7007 added default labels to switch {} statements.
7008 * x86-64-tdep.c: Ditto.
7009 * x86-64-linux-nat.c: Ditto.
7010
7011 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7012
7013 * solib.h: Protect against multiple inclusion.
7014
7015 2002-05-06 Jim Blandy <jimb@redhat.com>
7016
7017 Add first preprocessor macro-expansion files.
7018 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7019 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7020 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7021 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7022 (COMMON_OBS): Add macrotab.o, macroexp.o.
7023 (macroexp.o, macrotab.o): New rules.
7024
7025 Separate the job of reading the line number info statement program
7026 header (...expialidocious) out into its own function.
7027 * dwarf2read.c (struct line_head, struct filenames, struct
7028 directories): Replace with...
7029 (struct line_header): New structure, containing the full
7030 contents of the statement program header, including the
7031 include directory and file name tables.
7032 (read_file_scope): If we have line number info, instead of just
7033 calling dwarf_decode_lines to do all the work, call
7034 dwarf_decode_line_header first to get a `struct line_header'
7035 containing the data in the statement program header, and then
7036 pass that to dwarf_decode_lines, which will pick up where that
7037 left off. Be sure to clean up the `struct line_header' object.
7038 (dwarf_decode_line_header, free_line_header, add_include_dir,
7039 add_file_name): New functions.
7040 (dwarf_decode_lines): Move all the code to read the statement
7041 program header into dwarf_decode_line_header. Take the line
7042 header it built as the first argument, instead of the offset to
7043 the compilation unit's line number info. Use the new `struct
7044 line_header' type instead of the old structures. No need to do
7045 cleanups here now, since we don't allocate anything.
7046 (dwarf2_statement_list_fits_in_line_number_section,
7047 dwarf2_line_header_too_long): New complaints.
7048
7049 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7050
7051 * gdbtypes.c (init_vector_type): New function.
7052 (build_builtin_type_vec128): Simplify the representation of SIMD
7053 registers.
7054 (build_gdbtypes): Initialize new builtin vector types.
7055 (_initialize_gdbtypes): Register new vector types with gdbarch.
7056 (builtin_type_v4_float, builtin_type_v4_int32,
7057 builtin_type_v8_int16, builtin_type_v16_int8,
7058 builtin_type_v2_int32, builtin_type_v4_int16,
7059 builtin_type_v8_int8): New (renamed) SIMD types.
7060
7061 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7062
7063 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7064 (i387_fill_fxsave): Likewise.
7065
7066 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7067
7068 * alpha-tdep.c (alpha_extract_return_value): Don't use
7069 non-constant array size in prototype.
7070
7071 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7072
7073 From Brian Taylor <briant at model dot com>:
7074 * ui-out.c (ui_out_field_core_addr): Use the function
7075 longest_local_hex_string_custom'to format addresses > 32 bits
7076 wide.
7077
7078 * ui-out.c (ui_out_field_core_addr): Update comment.
7079
7080 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7081
7082 * stack.c (select_and_print_frame): Make static. Delete the
7083 parameter `level'.
7084 (func_command): Update call.
7085 (select_frame_command): Delete code computing the frame level.
7086 * frame.h (select_and_print_frame): Delete declaration.
7087
7088 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7089
7090 * sparc-tdep.c (sparc_get_saved_register): Comment why
7091 get_prev_frame call is safe.
7092
7093 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7094
7095 * frame.h (select_frame): Delete level parameter.
7096 * stack.c (select_frame): Update. Use frame_relative_level to
7097 obtain the frame's level.
7098 (select_and_print_frame): Update call.
7099 (select_frame_command): Ditto.
7100 (up_silently_base): Ditto.
7101 (down_silently_base): Ditto.
7102 * ocd.c (ocd_start_remote): Ditto.
7103 * remote-rdp.c (remote_rdp_open): Ditto.
7104 * remote-mips.c (mips_initialize): Ditto.
7105 (common_open): Ditto.
7106 * remote-e7000.c (e7000_start_remote): Ditto.
7107 * m3-nat.c (select_thread): Ditto.
7108 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7109 (child_get_current_exception_event): Ditto.
7110 * varobj.c (varobj_create): Ditto.
7111 (varobj_update): Ditto.
7112 (c_value_of_root): Ditto.
7113 * tracepoint.c (finish_tfind_command): Ditto.
7114 * corelow.c (core_open): Ditto.
7115 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7116 * thread.c (info_threads_command): Ditto.
7117 (switch_to_thread): Ditto.
7118 * infrun.c (normal_stop): Ditto.
7119 (restore_selected_frame): Ditto.
7120 (restore_inferior_status): Ditto.
7121 * breakpoint.c (insert_breakpoints): Ditto.
7122 (watchpoint_check): Ditto.
7123 (bpstat_stop_status): Ditto.
7124 (do_enable_breakpoint): Ditto.
7125 * blockframe.c (flush_cached_frames): Ditto.
7126 (reinit_frame_cache): Ditto.
7127
7128 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7129
7130 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7131 maintainer.
7132
7133 2002-05-04 Jim Blandy <jimb@redhat.com>
7134
7135 * gdbtypes.c (replace_type): Doc fix.
7136
7137 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7138
7139 * valprint.c (strcat_longest): Delete commented out function.
7140 Update copyright.
7141
7142 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7143
7144 * MAINTAINERS: Mark a29k as deleted.
7145 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7146 Move new configurations to the top.
7147 * configure.tgt: Remove a29k.
7148 * config/a29k/tm-vx29k.h: Delete.
7149 * config/a29k/vx29k.mt: Delete.
7150 * config/a29k/tm-a29k.h: Delete.
7151 * config/a29k/a29k-udi.mt: Delete.
7152 * config/a29k/a29k.mt: Delete.
7153 * a29k-tdep.c: Delete.
7154 * remote-udi.c: Delete.
7155 * remote-mm.c: Delete.
7156 * remote-eb.c: Delete.
7157 * remote-adapt.c: Delete.
7158 * Makefile.in: Remove obsolete code.
7159 * config/s390/s390x.mt: Ditto.
7160 * config/s390/s390.mt: Ditto.
7161 * config/sparc/sparclynx.mh: Ditto.
7162 * config/sparc/linux.mh: Ditto.
7163 * config/pa/hppaosf.mh: Ditto.
7164 * config/pa/hppabsd.mh: Ditto.
7165 * config/ns32k/nbsd.mt: Ditto.
7166 * config/mips/vr5000.mt: Ditto.
7167 * config/m68k/sun3os4.mh: Ditto.
7168 * config/m68k/nbsd.mt: Ditto.
7169 * config/m68k/m68klynx.mh: Ditto.
7170 * config/m32r/m32r.mt: Ditto.
7171 * config/i386/x86-64linux.mt: Ditto.
7172 * config/i386/nbsdelf.mt: Ditto.
7173 * config/i386/nbsd.mt: Ditto.
7174 * config/i386/i386lynx.mh: Ditto.
7175
7176 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7177
7178 * target.c (debug_print_register): New function. Handle oversize
7179 registers.
7180 (debug_to_fetch_registers): Call.
7181 (debug_to_store_registers): Call.
7182
7183 2002-05-03 Jim Blandy <jimb@redhat.com>
7184
7185 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7186 (read_type): Doc fix.
7187 * gdbtypes.c (replace_type): Doc fix.
7188
7189 * stabsread.c (multiply_defined_struct): New complaint.
7190 (read_struct_type): If the type we were passed isn't empty, or
7191 incomplete, don't read the new struct type into it; complain,
7192 and return the original type unchanged. Take a new `type_code'
7193 argument, which is the type code for the new type.
7194 (read_type): Rather than storing the type's type code here, pass
7195 it as an argument to read_struct_type, and let that take care of
7196 storing it. That way, we don't overwrite the original type code,
7197 so read_struct_type can use it to decide whether we're overwriting
7198 something we shouldn't.
7199 (complain_about_struct_wipeout): New function.
7200
7201 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7202
7203 * gdbarch.sh: Assert that gdbarch is non-NULL.
7204 * gdbarch.c: Regenerate.
7205
7206 2002-05-03 Jason Merrill <jason@redhat.com>
7207
7208 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7209 and return NULL.
7210
7211 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7212
7213 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7214 (x86_64_dwarf2gdb_regno_map_length),
7215 (x86_64_dwarf2_reg_to_regnum): Added.
7216 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7217 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7218 (_initialize_x86_64_tdep): Synced with the change above.
7219 (x86_64_skip_prologue): Reformulated message.
7220
7221 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7222
7223 * f-exp.y: Also use new prev_lexptr variable
7224 to improve error reporting. Based on Michael Snyder
7225 2002-04-24 dated patch to c-exp.y.
7226 * jv-exp.y: Likewise.
7227 * m2-exp.y: Likewise.
7228
7229 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7230
7231 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7232 we are dealing with vectors.
7233
7234 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7235
7236 * config/m68k/tm-nbsd.h: Obvious fix,
7237 correct machine name.
7238
7239 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7240
7241 * p-typeprint.c (pascal_type_print_base): Add support
7242 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7243
7244 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7245
7246 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7247 for fondamental pascal 'char' type.
7248
7249 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7250
7251 * p-lang.h (is_pascal_string_type): Declaration changed,
7252 new sixth argument of type char ** added.
7253 * p-lang.c (is_pascal_string_type): Implementation
7254 changed. Args length_pos, length_size, string_pos, char_size
7255 can now be NULL. New argument arrayname set to the field
7256 name of the char array. Return value set to char array
7257 field index plus one.
7258 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7259 is_pascal_string_type function.
7260
7261 2002-05-02 Andrew Cagney <cagney@redhat.com>
7262
7263 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7264 <cagney@redhat.com> change.
7265 * gdbarch.c: Regenerate.
7266
7267 2002-05-02 Andrew Cagney <cagney@redhat.com>
7268
7269 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7270 before probing for a new one. Detect errorenous gdbarch_init
7271 functions.
7272 * gdbarch.c: Regenerate.
7273
7274 2002-05-01 Andrew Cagney <cagney@redhat.com>
7275
7276 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7277 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7278 * config/v850/tm-v850.h: Ditto. Update copyright.
7279
7280 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7281
7282 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7283 current_gdbarch.
7284
7285 2002-04-30 Michael Snyder <msnyder@redhat.com>
7286
7287 * arm-tdep.c: Whitespace clean-ups.
7288 (arm_skip_prologue): Fix thinko; two lines
7289 should have been removed as part of 4/24 change.
7290
7291 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7292
7293 * rs6000-tdep.c: Added comment describing how fpscr register
7294 numbers were chosen.
7295
7296 2002-04-30 Michael Snyder <msnyder@redhat.com>
7297
7298 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7299
7300 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7301
7302 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7303 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7304 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7305
7306 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7307
7308 From Louis Hamilton <hamilton@redhat.com>:
7309 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7310 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7311 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7312 not bfd-private xcoff data, to determine wordsize.
7313 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7314
7315 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7316
7317 GDB 5.2 released from 5.2 branch.
7318
7319 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7320
7321 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7322 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7323 (x86_64_register_info_table): Added comments with register numbers.
7324
7325 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7326
7327 * rs6000-tdep.c (rs6000_extract_return_value,
7328 rs6000_store_return_value): Handle returning vectors.
7329 (rs6000_gdbarch_init): Use
7330 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7331 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7332 New function.
7333 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7334 vectors.
7335 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7336 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7337
7338 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7339
7340 * hpread.c (hpread_psymtab_to_symtab_1,
7341 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7342 with fprintf_unfiltered (gdb_stderr,...).
7343
7344 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7345
7346 * remote-array.c (printf_monitor, write_monitor,
7347 array_insert_breakpoint, array_remove_breakpoint ):
7348 Replace fprintf (stderr,...
7349 with fprintf_unfiltered (gdb_stderr,....
7350 * remote-es.c: Likewise.
7351 * remote-os9k.c: Likewise.
7352 * remote-st.c: Likewise.
7353
7354 2002-04-28 Andreas Schwab <schwab@suse.de>
7355
7356 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7357 linux-proc.o and gcore.o.
7358
7359 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7360
7361 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7362 code without frame pointers.
7363
7364 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7365
7366 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7367 ON_STACK is needed.
7368
7369 2002-04-26 Ben Elliston <bje@redhat.com>
7370
7371 * target.c (do_xfer_memory): Correct reference to the new option
7372 "trust-readonly-sections".
7373
7374 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7375
7376 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7377 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7378 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7379 vectors.
7380 (read_array_type): Record the fact that this array type is really a
7381 vector (i.e. are passed in by value).
7382
7383 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7384
7385 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7386 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7387 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7388 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7389 * alpha-linux-tdep.c: Include frame.h.
7390 (alpha_linux_sigcontext_addr): New function.
7391 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7392 alpha_linux_sigcontext_addr.
7393 * alpha-osf1-tdep.c: Include gdbcore.h.
7394 (alpha_osf1_sigcontext_addr): New function.
7395 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7396 alpha_osf1_sigcontext_addr.
7397 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7398 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7399
7400 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7401
7402 * stack.c (selected_frame_level):
7403 (select_frame): Do not set selected_frame_level.
7404 * frame.h (selected_frame_level): Delete declaration.
7405
7406 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7407
7408 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7409 convert_from_func_ptr-addr when AIX / PowerOpen.
7410
7411 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7412
7413 * valops.c (hand_function_call): Call
7414 generic_save_call_dummy_addr.
7415 * frame.h (generic_save_call_dummy_addr): Declare.
7416 * blockframe.c (struct dummy_frame): Add fields call_lo and
7417 call_hi.
7418 (generic_find_dummy_frame): Check for PC in range call_lo to
7419 call_hi instead of entry_point_address.
7420 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7421 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7422 (generic_save_call_dummy_addr): New function.
7423
7424 2002-04-24 David S. Miller <davem@redhat.com>
7425
7426 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7427 sparc_skip_prologue.
7428 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7429 information to find prologue when possible.
7430 (sparc_prologue_frameless_p): Call examine_prologue directly.
7431 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7432 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7433 second argument.
7434 (SKIP_PROLOGUE): Likewise.
7435
7436 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7437
7438 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7439 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7440 indicate that the condition it was testing is always true.
7441 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7442 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7443 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7444
7445 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7446
7447 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7448 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7449 tdep->jb_pc and tdep->jb_elt_size.
7450 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7451 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7452 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7453 * alpha-nat.c (get_longjmp_target): Remove.
7454 (JB_ELEMENT_SIZE): Ditto.
7455 (JB_PC): Ditto.
7456 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7457 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7458 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7459 to alpha_get_longjmp_target.
7460 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7461 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7462 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7463
7464 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7465
7466 * README: Update to GDB 5.2.
7467
7468 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7469
7470 * gdbarch.sh (LC_ALL): Set to `c'.
7471
7472 2002-04-25 Theodore A. Roth <troth@verinet.com>
7473
7474 * avr-tdep.c: Ran through gdb_indent.sh.
7475
7476 2002-04-25 Theodore A. Roth <troth@verinet.com>
7477
7478 * MAINTAINERS: Add myself as AVR maintainer.
7479 * NEWS: Note new target avr.
7480
7481 2002-04-25 Theodore A. Roth <troth@verinet.com>
7482
7483 * Makefile.in: Add support for AVR target.
7484 * configure.tgt: Add support for AVR target.
7485 * avr-tdep.c: New file
7486 * config/avr/avr.mt: New file.
7487
7488 2002-04-25 Theodore A. Roth <troth@verinet.com>
7489
7490 * MAINTAINERS: Add myself to write-after-approval.
7491
7492 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7493
7494 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7495 with fprintf_unfiltered (gdb_stderr,....
7496
7497 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7498
7499 Fix PR gdb/508.
7500 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7501
7502 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7503
7504 * p-exp.y: Also use new prev_lexptr variable
7505 to improve error reporting. Based on Michael Snyder
7506 2002-04-24 dated patch to c-exp.y.
7507
7508 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7509
7510 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7511 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7512 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7513 to 0.
7514 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7515 and struct value.
7516 (FUNCTION_START_OFFSET): Remove.
7517 (BREAKPOINT): Ditto.
7518
7519 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7520
7521 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7522 * NEWS: Ditto.
7523
7524 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7525
7526 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7527 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7528 alpha_linux_pc_in_sigtramp.
7529 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7530 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7531 alpha_osf1_pc_in_sigtramp.
7532 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7533 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7534 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7535 alphafbsd_pc_in_sigtramp.
7536 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7537 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7538 alphanbsd_pc_in_sigtramp.
7539 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7540 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7541
7542 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7543
7544 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7545
7546 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7547
7548 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7549 alphanbsd-tdep.c.
7550 (alphanbsd-nat.o): New dependency list.
7551 (alphanbsd-tdep.o): Ditto.
7552 * NEWS: Note new native NetBSD/alpha configuration.
7553 * alphanbsd-nat.c: New file.
7554 * alphanbsd-tdep.c: Ditto.
7555 * configure.host (alpha*-*-netbsd*): New host.
7556 * configure.tgt (alpha*-*-netbsd*): New target.
7557 * config/alpha/nbsd.mh: New file.
7558 * config/alpha/nbsd.mt: Ditto.
7559 * config/alpha/nm-nbsd.h: Ditto.
7560 * config/alpha/tm-nbsd.h: Ditto.
7561
7562 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7563
7564 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7565 (alpha-osf1-tdep.o): New dependency list.
7566 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7567 and skip_sigtramp_frame members.
7568 * alpha-linux-tdep.c: Include gdbcore.h.
7569 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7570 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7571 * alpha-osf1-tdep.c: New file.
7572 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7573 alpha-osf1-dep.c.
7574 (alpha_frame_past_sigtramp_frame): New function.
7575 (alpha_dynamic_sigtramp_offset): Ditto.
7576 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7577 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7578 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7579 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7580 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7581 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7582 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7583 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7584 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7585 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7586 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7587 to find_solib_trampoline_target.
7588 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7589 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7590 (SKIP_TRAMPOLINE_CODE): Remove.
7591 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7592 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7593 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7594 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7595 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7596 (PROC_SIGTRAMP_MAGIC): Ditto.
7597 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7598 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7599 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7600 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7601 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7602
7603 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7604
7605 * NEWS: Note that Alpha targets are now multi-arch.
7606
7607 2002-04-24 Michael Snyder <msnyder@redhat.com>
7608
7609 * parser-defs.h (prev_lexptr): New external variable.
7610 * parse.c (parse_exp_1): Set prev_lexptr to null before
7611 calling the language-specific parser.
7612 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7613 (yyerror): Use prev_lexptr in error reporting.
7614
7615 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7616
7617 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7618 * gregset.h: If FILL_FPXREGSET is defined, provide
7619 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7620 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7621 is defined, call fill_fpxregset.
7622
7623 2002-04-24 Roland McGrath <roland@frob.com>
7624
7625 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7626 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7627 (supply_gregset, supply_fpregset): New functions.
7628
7629 * gnu-nat.c (gnu_find_memory_regions): New function.
7630 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7631 (gnu_xfer_memory): Add a cast.
7632
7633 2002-04-24 Michael Snyder <msnyder@redhat.com>
7634
7635 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7636 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7637 of argument regs ("str r(0123), [r11, #-nn"]).
7638 (arm_skip_prologue): Better handling for frameless functions.
7639 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7640 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7641
7642 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7643
7644 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7645 NUM_PSEUDO_REGS can be used.
7646
7647 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7648
7649 * arch-utils.h: Update copyright.
7650
7651 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7652 * gdbarch.h, gdbarch.c: Re-generate.
7653
7654 * inferior.h (IN_SIGTRAMP): Delete definition.
7655 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7656 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7657
7658 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7659 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7660 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7661 (find_proc_framesize): Ditto.
7662 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7663 (alpha_init_extra_frame_info): Ditto.
7664 * infrun.c (handle_inferior_event): Ditto.
7665 (handle_inferior_event): Ditto.
7666 (check_sigtramp2): Ditto.
7667 * blockframe.c (create_new_frame): Ditto.
7668 (get_prev_frame): Ditto.
7669 * ppc-linux-tdep.c: Update comments.
7670 * i386-linux-tdep.c: Update comments.
7671 * breakpoint.c (bpstat_what): Update comment.
7672
7673 2002-04-24 David S. Miller <davem@redhat.com>
7674
7675 * i960-tdep.c (register_in_window_p): New function.
7676 (i960_find_saved_register): Use it instead of
7677 REGISTER_IN_WINDOW_P.
7678 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7679
7680 * symtab.h (find_stab_function_addr): Kill extern.
7681 * minsyms.c (find_stab_function_addr): Remove from here...
7682 * dbxread.c: ... to here, and mark it static.
7683
7684 2002-04-20 David S. Miller <davem@redhat.com>
7685
7686 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7687 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7688
7689 2002-04-21 David S. Miller <davem@redhat.com>
7690
7691 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7692 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7693 (vx_write_register): Likewise.
7694
7695 2002-04-23 J. Brobecker <brobecker@gnat.com>
7696
7697 * source.c (is_regular_file): New function.
7698 (openp): Check wether file to open is a regular file
7699 to avoid opening directories.
7700
7701 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7702
7703 * findvar.c (extract_signed_integer): Cast printf argument
7704 to suppress format warning.
7705 (extract_unsigned_integer): Likewise.
7706 * infcmd.c (registers_info): Likewise.
7707 * top.c (get_prompt_1): Likewise.
7708 * valops.c (value_assign): Likewise.
7709 * valprint.c (print_decimal): Likewise.
7710
7711 2002-04-22 H.J. Lu (hjl@gnu.org)
7712
7713 * c-exp.y (typebase): Support
7714
7715 [long|long long|short] [signed|unsigned] [int|]
7716
7717 and
7718
7719 signed [long|long long|short] int
7720
7721 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7722
7723 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7724 and vax-tdep.h.
7725 * vax-tdep.h: New file.
7726 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7727 Make several routines static.
7728 (vax_get_saved_register): New function.
7729 (vax_gdbarch_init): New function.
7730 (_initialize_vax_tdep): Register vax_gdbarch_init.
7731 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7732 Remove macros now under the control of gdbarch.
7733
7734 2002-04-22 Michael Snyder <msnyder@redhat.com>
7735
7736 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7737 Some whitespace and coding standards tweaks.
7738
7739 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7740
7741 * vax-tdep.c: Include regcache.h.
7742 (vax_call_dummy_words): New.
7743 (sizeof_vax_call_dummy_words): New.
7744 (vax_fix_call_dummy): New function.
7745 (vax_saved_pc_after_call): Ditto.
7746 * config/vax/tm-vax.h: Don't include regcache.h.
7747 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7748 (CALL_DUMMY): Remove.
7749 (CALL_DUMMY_WORDS): Define.
7750 (SIZEOF_CALL_DUMMY_WORDS): Define.
7751 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7752
7753 2002-04-18 Michael Snyder <msnyder@redhat.com>
7754
7755 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7756
7757 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7758
7759 * vax-tdep.c (vax_frame_chain): New function.
7760 (vax_push_dummy_frame): Ditto.
7761 (vax_pop_frame): Ditto.
7762 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7763 (FRAMELESS_FUNCTION_INVOCATION): Use
7764 generic_frameless_function_invocation_not.
7765 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7766 (POP_FRAME): Use vax_pop_frame.
7767
7768 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7769
7770 * vax-tdep.c (vax_store_struct_return): New function.
7771 (vax_extract_return_value): Ditto.
7772 (vax_store_return_value): Ditto.
7773 (vax_extract_struct_value_address): Ditto.
7774 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7775 vax_store_struct_return.
7776 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7777 (STORE_RETURN_VALUE): Use vax_store_return_value.
7778 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7779
7780 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7781
7782 * vax-tdep.c (vax_frame_saved_pc): New function.
7783 (vax_frame_args_address_correct): Ditto.
7784 (vax_frame_args_address): Ditto.
7785 (vax_frame_locals_address): Ditto.
7786 (vax_frame_num_args): Move code to be in proximity to
7787 other frame-related functions.
7788 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7789 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7790 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7791 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7792 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7793
7794 2002-04-22 H.J. Lu (hjl@gnu.org)
7795
7796 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7797 includedir.
7798
7799 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7800
7801 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7802 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7803 (FRAME_INIT_SAVED_REGS): New macro.
7804
7805 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7806
7807 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7808
7809 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7810
7811 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7812 where needed.
7813 (fetch_osf_core_registers): Likewise.
7814 (supply_gregset): Likewise.
7815
7816 2002-04-22 J. Brobecker <brobecker@gnat.com>
7817
7818 * symfile.h (get_section_index): Define.
7819 * symfile.c (get_section_index): New function.
7820 * mdebugread.c (SC_IS_SBSS): New macro.
7821 (SC_IS_BSS): Return true for the scBss storage class only, as
7822 the scSBss storage class refers to the .sbss section.
7823 (parse_partial_symbols): Discard the symbols which associated
7824 section does not exist.
7825 Make sure to use the .sbss section index for symbols which
7826 storage class is scBss, rather than using the .bss section index.
7827
7828 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7829
7830 * vax-tdep.c: Update copyright years.
7831 (vax_register_name): New function.
7832 (vax_register_byte): Ditto.
7833 (vax_register_raw_size): Ditto.
7834 (vax_register_virtual_size): Ditto.
7835 (vax_register_virtual_type): Ditto.
7836 * config/vax/tm-vax.h: Update copyright years.
7837 (REGISTER_NAMES): Remove.
7838 (REGISTER_NAME): Define.
7839 (REGISTER_BYTE): Use vax_register_byte.
7840 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7841 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7842 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7843
7844 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7845
7846 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7847 declaration
7848 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7849
7850 2002-04-21 David S. Miller <davem@redhat.com>
7851
7852 * arch-utils.c (generic_prologue_frameless_p): Kill
7853 SKIP_PROLOGUE_FRAMELESS_P code.
7854 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7855 references.
7856 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7857 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7858 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7859 references.
7860 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7861 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7862 (sparc_gdbarch_init): Pass it to
7863 set_gdbarch_prologue_frameless_p.
7864
7865 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7866
7867 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7868 (alphabsd-nat.o): New dependency list.
7869
7870 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7871
7872 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7873 alphafbsd-tdep.c.
7874 (alpha-linux-tdep.o): New dependency list.
7875 (alphafbsd-tdep.o): Likewise.
7876
7877 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7878
7879 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7880 to here...
7881 * alpha-tdep.c: ...from here.
7882 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7883
7884 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7885
7886 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7887 prototype from here...
7888 * alpha-tdep.h: ...to here.
7889
7890 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7891
7892 * frame.h (selected_frame_level): Document as deprecated.
7893 (frame_relative_level): Declare.
7894 * stack.c (frame_relative_level): New function.
7895 (selected_frame_level): Document as deprecated.
7896 (select_frame): Do not set the selected_frame_level.
7897
7898 * stack.c (frame_info, record_selected_frame): Update.
7899 (frame_command, current_frame_command): Update.
7900 (up_silently_base, up_command, down_silently_base): Update.
7901 (down_command): Update.
7902 * inflow.c (kill_command): Update.
7903 * tracepoint.c (finish_tfind_command): Update.
7904 * corelow.c (core_open): Update.
7905 * thread.c (info_threads_command): Update.
7906 (do_captured_thread_select): Update.
7907 * infcmd.c (finish_command): Update.
7908 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7909
7910 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7911
7912 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7913
7914 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7915
7916 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7917 type const.
7918
7919 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7920
7921 * alphafbsd-tdep.c: Update copyright years. Include
7922 alpha-tdep.h.
7923 (alphafbsd_use_struct_convention): Make static.
7924 (alphafbsd_init_abi): New function.
7925 (_initialize_alphafbsd_tdep): New function.
7926 * config/alpha/tm-fbsd.h: Update copyright years.
7927 (USE_STRUCT_CONVENTION): Remove.
7928
7929 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7930
7931 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7932 an Alpha ABI variant.
7933 (alpha_abi_handler_list): Declare.
7934 (alpha_gdbarch_register_os_abi): New function.
7935 (alpha_gdbarch_init): Give registered ABI variant handlers a
7936 chance to tweak the gdbarch once we have set up defaults.
7937 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7938
7939 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7940
7941 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7942 to standard_coerce_float_to_double.
7943 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7944
7945 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7946
7947 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7948 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7949 from gdbarch_tdep rather than a constant.
7950 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7951 the default text address for all Alpha Unix ABIs.
7952 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7953 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7954
7955 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7956
7957 * alpha-tdep.h: New file. Includes several Alpha target constants
7958 taken from...
7959 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7960 let gdbarch deal with.
7961 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7962 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7963 to dependency list.
7964 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7965 Alpha target register names.
7966 * alphabsd-nat.c: Likewise.
7967 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7968 Alpha target register names. Make serveral routines static.
7969 (alpha_get_saved_register): New function.
7970 (alpha_abi_names): New.
7971 (process_note_abi_tag_sections): New function.
7972 (get_elfosabi): New function.
7973 (alpha_gdbarch_init): New function.
7974 (alpha_dump_tdep): New function.
7975 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7976
7977 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7978
7979 * frame.c (find_saved_register): Delete #ifdef
7980 HAVE_REGISTER_WINDOWS code.
7981 * config/sparc/tm-sparc.h: Update comments.
7982 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7983
7984 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7985
7986 * i960-tdep.c (i960_find_saved_register): New function.
7987 (i960_get_saved_register): New function.
7988 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7989 (i960_get_saved_register): Declare.
7990 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7991
7992 2002-04-20 David S. Miller <davem@redhat.com>
7993
7994 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7995
7996 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7997
7998 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7999 instead of NUM_PSEUDO_REGS.
8000
8001 2002-04-20 David S. Miller <davem@redhat.com>
8002
8003 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8004 GDB_MULTI_ARCH_PARTIAL
8005 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8006 define, let tm-sp64.h do it.
8007
8008 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8009
8010 * frame.c (find_saved_register): Avoid a NULL pointer
8011 dereference and actually walk the frame list.
8012
8013 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8014
8015 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8016 sorted in most most-recent-used order. Document.
8017 * gdbarch.h, gdbarch.c: Regenerate.
8018
8019 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8020
8021 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8022 instead of ->prev.
8023 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8024 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8025 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8026 instead of ->prev.
8027
8028 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8029
8030 Fix PR gdb/471.
8031 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8032 (build_builtin_type_vec128): Ditto.
8033 (append_composite_type_field): Fix calculation of type length in
8034 union case.
8035
8036 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8037
8038 * config/djgpp/README: Update.
8039
8040 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8041 compiler warnings.
8042
8043 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8044
8045 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8046 (alpha_setup_arbitrary_frame): ...to this.
8047 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8048 for alpha_setup_arbitrary_frame.
8049
8050 2002-04-18 Andrew Cagney <cagney@redhat.com>
8051
8052 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8053 * gdbarch.h, gdbarch.c: Regenerate.
8054
8055 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8056 * target.h (memory_breakpoint_from_pc): Update declaration.
8057 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8058
8059 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8060 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8061 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8062 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8063 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8064 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8065 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8066 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8067 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8068 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8069 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8070 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8071
8072 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8073 const pointer.
8074 * monitor.c (monitor_insert_breakpoint): Ditto.
8075 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8076
8077 * config/mcore/tm-mcore.h: Update copyright.
8078 * mem-break.c: Ditto.
8079 * xstormy16-tdep.c: Ditto.
8080
8081 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8082
8083 * p-exp.y: Add precedence rule for '^' token.
8084 This removes the shift/reduce conflicts.
8085 Remove the comment concerning these shift/reduce conflicts.
8086
8087 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8088
8089 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8090 (registers_powerpc_nofp): New register set for processors
8091 without floating point unit.
8092
8093 2002-04-18 David S. Miller <davem@redhat.com>
8094
8095 * MAINTAINERS: Add myself to write-after-approval.
8096
8097 2002-04-17 Michael Snyder <msnyder@redhat.com>
8098
8099 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8100
8101 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8102
8103 * rs6000-tdep.c (frame_initial_stack_address): Use
8104 frame_register_read to read the alloca_reg.
8105
8106 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8107
8108 * frame.c (find_saved_register): Find saved registers in the next
8109 not prev frame.
8110 Fix PR gdb/365.
8111
8112 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8113
8114 * gdbarch.sh (LANG): Set to ``c''.
8115
8116 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8117
8118 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8119
8120 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8121
8122 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8123 Update copyright.
8124
8125 * hpread.c (hpread_get_lntt): Add declaration.
8126 Also fix PR gdb/391.
8127
8128 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8129
8130 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8131 * aclocal.m4, configure: Re-generate.
8132 Fix PR gdb/391.
8133
8134 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8135
8136 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8137 instead of tm_print_insn.
8138
8139 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8140
8141 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8142
8143 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8144
8145 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8146 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8147 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8148
8149 2002-04-12 Don Howard <dhoward@redhat.com>
8150
8151 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8152 max_user_call_depth.
8153 (init_cmd_lists): Initialize the new value;
8154 * cli/cli-script.c (execute_user_command): Limit the call depth of
8155 user defined commands. This avoids a core-dump when user commands
8156 are infinitly recursive.
8157
8158 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8159
8160 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8161 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8162 from tdep struct instead of DEFAULT_LR_SAVE.
8163 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8164 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8165 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8166
8167 2002-04-12 Michael Snyder <msnyder@redhat.com>
8168
8169 * Remote.c: Spelling fix.
8170 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8171 If no symbol found for "sbrk", try "_sbrk".
8172 (make_output_phdrs): Use bfd_section_name.
8173 (gcore_copy_callback): Use bfd_section_name.
8174 * eval.c: Indentation fix-ups.
8175 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8176 in case it gets applied to an address that is already
8177 in the instruction space.
8178 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8179 * symfile.c: Fix indentation, long lines.
8180 * source.c: White space fix-up.
8181
8182 2002-04-12 Andrew Cagney <cagney@redhat.com>
8183
8184 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8185 * frame.c (frame_register_read): New function. Return non-zero on
8186 success.
8187 (read_relative_register_raw_bytes_for_frame): Delete.
8188 (read_relative_register_raw_bytes): Delete.
8189 * frame.h (frame_register_read): Declare.
8190 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8191 * sh-tdep.c: Ditto.
8192 * infcmd.c (do_registers_info): Ditto.
8193 * hppa-tdep.c: Ditto.
8194 * rs6000-tdep.c: Ditto.
8195 * h8500-tdep.c: Ditto.
8196 * mips-tdep.c: Ditto.
8197 * h8300-tdep.c: Ditto.
8198 * z8k-tdep.c: Ditto.
8199
8200 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8201
8202 From Jimi X <jimix@watson.ibm.com>:
8203 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8204 64-bit SysV ABI.
8205
8206 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8207
8208 From Jimi X <jimix@watson.ibm.com>:
8209 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8210 bfd info.
8211
8212 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8213
8214 From Jimi X <jimix@watson.ibm.com>:
8215 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8216 register sets for these processor variants.
8217
8218 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8219
8220 * regformats/reg-ppc.dat: Support FPSCR.
8221
8222 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8223
8224 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8225 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8226 Add fpscr as an invalid/unfetchable register.
8227 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8228 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8229 (fill_fpregset): Add support for register fpscr.
8230 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8231 (fill_gregset): Account for the fact that register ``mq'' might
8232 not exist.
8233 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8234 (registers_power): Add fpscr to register set at slot 71.
8235 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8236 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8237
8238 2002-04-11 Michael Snyder <msnyder@redhat.com>
8239
8240 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8241 * configure: Regenerate.
8242 * config.in: Regenerate.
8243 * acconfig.h: Add define for _SYSCALL32.
8244 * core-sol2.c: Remove #define _SYSCALL32.
8245 * solib-legacy.c: Remove #define _SYSCALL32.
8246
8247 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8248
8249 * stack.c (select_frame): Cleanup internal error message, do not
8250 use %p.
8251
8252 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8253
8254 * stack.c (select_frame): Check that selected_frame and the
8255 specified level are as expected.
8256 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8257 Update copyright.
8258 * frame.h (struct frame_info): Add field `level'. Update
8259 copyright.
8260 Work-in-progress PR gdb/464.
8261
8262 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8263
8264 * maint.c (maint_print_section_info): Rename print_section_info.
8265 (print_bfd_section_info, print_objfile_section_info): Update.
8266 * inferior.h (struct gdbarch): Add opaque declaration.
8267 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8268 * gdbarch.h: Regenerate.
8269
8270 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8271
8272 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8273 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8274 (kernel_u_size): Added.
8275 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8276 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8277
8278 2002-04-04 Jim Ingham <jingham@apple.com>
8279
8280 * valarith.c (find_size_for_pointer_math): New function, either returns
8281 the size for a pointer's target, returns 1 for void *, or errors for
8282 incomplete types.
8283 (value_add, value_sub): use find_size_for_pointer_math.
8284
8285 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8286
8287 * linux-low.c (linux_look_up_symbols): New hook.
8288 (linux_target_ops): Add linux_look_up_symbols.
8289 * remote-utils.c (decode_address): New function.
8290 (look_up_one_symbol): New function.
8291 * server.c (handle_query): Call target look_up_symbols hook.
8292 * server.h (look_up_one_symbol): Add prototype.
8293 * target.h (struct target_ops): Add look_up_symbols hook.
8294
8295 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8296
8297 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8298 override FP_REGNUM with frame->fp. Update copyright.
8299 * parse.c (num_std_regs, std_regs): Delete.
8300 (target_map_name_to_register): Do not search std_regs. Update
8301 function description.
8302 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8303 declarations. Update copyright.
8304 Fix PR gdb/251.
8305
8306 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8307
8308 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8309 after the last symbol in a block.
8310
8311 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8312
8313 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8314 is non zero as a found symbol.
8315
8316 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8317
8318 * findvar.c: Include "builtin-regs.h".
8319 (value_of_register): Call value_of_builtin_reg when applicable.
8320 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8321 (target_map_name_to_register): Call
8322 builtin_reg_map_name_to_regnum.
8323 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8324 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8325 (builtin_regs_h): Define.
8326 (builtin-regs.o): New target.
8327 (findvar.o): Add $(builtin_regs_h).
8328 * builtin-regs.c, builtin-regs.h: New files.
8329 * std-regs.c: New file.
8330 Partial fix for PR gdb/251.
8331
8332 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8333
8334 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8335 it's no longer required.
8336
8337 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8338
8339 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8340
8341 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8342
8343 From Jimi X <jimix@watson.ibm.com>:
8344 * rs6000-tdep.c (rs6000_software_single_step): Use
8345 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8346 and size. Use target_insert_breakpoint() and
8347 target_remove_breakpoint() to insert and remove breakpoints
8348 instead of explicit memory reads and writes.
8349
8350 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8351
8352 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8353 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8354 ELF_OBJECT_FORMAT ifdef.
8355
8356 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8357
8358 From Jimi X <jimix@watson.ibm.com>:
8359 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8360
8361 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8362
8363 From Jimi X <jimix@watson.ibm.com>:
8364 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8365 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8366
8367 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8368
8369 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8370 s/asprintf/xasprintf/.
8371 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8372
8373 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8374
8375 I believe Jeff Law denies responsability for this one:
8376 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8377 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8378 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8379 Work-around for PR gdb/366.
8380
8381 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8382
8383 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8384 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8385 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8386
8387 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8388
8389 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8390 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8391 information.
8392
8393 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8394
8395 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8396 maintainer.
8397
8398 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8399
8400 * README (Reporting Bugs in GDB): Document the bug web page as the
8401 prefered way of submitting bugs.
8402 Fix PR gdb/402.
8403
8404 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8405
8406 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8407 -1. Update comment.
8408 * gdbarch.h, gdbarch.c: Re-generate.
8409
8410 2002-04-07 Andreas Schwab <schwab@suse.de>
8411
8412 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8413 buffer to regcache_collect.
8414
8415 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8416
8417 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8418 * gdbarch.c, gdbarch.h: Re-generate.
8419
8420 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8421
8422 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8423 declaration. Fix -Werror.
8424
8425 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8426
8427 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8428 * gdbarch.c: Regenerate.
8429
8430 2002-04-05 Michael Snyder <msnyder@redhat.com>
8431
8432 * breakpoint.c (clear_command): Rewrite middle section to
8433 combine two loops with identical control conditions.
8434 Add a cleanup to eliminate a memory leak.
8435 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8436
8437 2002-04-05 H.J. Lu (hjl@gnu.org)
8438
8439 * solib-svr4.c (bkpt_names): Add "__start".
8440
8441 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8442
8443 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8444 as test for 64 bit target.
8445
8446 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8447
8448 * h8500-tdep.c (h8500_write_fp): Delete function.
8449 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8450 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8451 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8452 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8453 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8454 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8455 (s390_write_fp):
8456 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8457 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8458 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8459 (d10v_write_fp): Delete function.
8460 * inferior.h (write_fp, generic_target_write_fp): Delete
8461 declarations.
8462 * regcache.c (generic_target_write_fp): Delete function.
8463 (write_fp): Delete function.
8464 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8465 * gdbarch.h, gdbarch.c: Regenerate.
8466 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8467 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8468 (sparc64_write_fp): Delete declaration.
8469 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8470 (h8500_write_fp): Delete declaration.
8471
8472 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8473
8474 * sparc-tdep.c (sparc64_write_fp): Delete.
8475 (sparc_push_dummy_frame): Replace write_fp call with code to store
8476 the FP directly.
8477 (sparc_gdbarch_init): Do not initialize write_fp.
8478
8479 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8480
8481 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8482 clause.
8483
8484 2002-03-29 Jim Blandy <jimb@redhat.com>
8485
8486 * stack.c (get_selected_block): Add new argument `addr_in_block',
8487 used to return the exact code address we used to select the block,
8488 not just the block.
8489 * blockframe.c (get_frame_block, get_current_block): Same.
8490 * frame.h (get_frame_block, get_current_block,
8491 get_selected_block): Update declarations.
8492 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8493 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8494
8495 2002-04-05 Michael Snyder <msnyder@redhat.com>
8496
8497 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8498 warning message.
8499
8500 2002-04-05 J. Brobecker <brobecker@gnat.com>
8501
8502 * utils.c (xfullpath): New function.
8503 * defs.h (xfullpath): Add declaration.
8504 * source.c (openp): Use xfullpath in place of gdb_realpath to
8505 avoid resolving the basename part of filenames when the
8506 associated file is a symbolic link. This fixes a potential
8507 inconsistency between the filenames known to GDB and the
8508 filenames it prints in the annotations.
8509 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8510 to be able to match a filename with either the real filename, or
8511 the name of any symbolic link to this file.
8512 (lookup_partial_symtab): Ditto.
8513
8514 2002-04-04 Michael Snyder <msnyder@redhat.com>
8515
8516 * breakpoint.c: Add support for hardware breakpoints in overlays.
8517 (overlay_events_enabled): New state variable.
8518 (insert_breakpoints): Use overlay_events_enabled to decide
8519 whether to attempt to set a breakpoint at the overlay load addr.
8520 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8521 (remove_breakpoint): Use overlay_events_enabled to decide
8522 whether breakpoints need to be removed from overlay load addr.
8523 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8524 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8525 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8526 disable_overlay_breakpoints): Update overlay_events_enabled.
8527
8528 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8529
8530 * dwarf2read.c (struct function_range): New.
8531 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8532 (check_cu_functions): New.
8533 (read_file_scope): Initialize global function lists.
8534 Call dwarf_decode_line after processing children.
8535 (read_func_scope): Add to global function list.
8536 (dwarf_decode_lines): Call check_cu_functions everywhere
8537 record_line is called. Call record_line with a linenumber
8538 of 0 to mark sequence ends.
8539
8540 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8541
8542 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8543 change sync with glibc.
8544
8545 2002-04-03 Jim Blandy <jimb@redhat.com>
8546
8547 * configure.in: Call AC_C_INLINE.
8548 * configure: Regenerated.
8549
8550 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8551
8552 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8553 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8554
8555 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8556
8557 * NEWS: Mention gcore support on FreeBSD/i386.
8558
8559 * fbsd-proc.c: New file.
8560 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8561 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8562
8563 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8564 while statement.
8565
8566 2002-03-29 Jim Blandy <jimb@redhat.com>
8567
8568 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8569 unescaped newlines in string literals, but newer ones don't. So
8570 escape them.
8571
8572 2002-03-26 Michael Snyder <msnyder@redhat.com>
8573 Andrew Cagney <cagney@redhat.com>
8574
8575 * cli/cli-dump.c: New file. Dump memory to file,
8576 restore file to memory.
8577 * cli/cli-dump.h: New file.
8578 * Makefile.in: Add rules, dependencies for cli-dump.o.
8579 * NEWS: Mention new commands.
8580
8581 2002-03-28 Michael Snyder <msnyder@redhat.com>
8582
8583 * symfile.c (symbol_file_add): Move test for null symbols to later.
8584
8585 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8586
8587 From veksler at il.ibm.com:
8588 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8589 the xstrduped original path.
8590 Fix PR gdb/417.
8591
8592 2002-03-27 Michael Snyder <msnyder@redhat.com>
8593
8594 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8595 * infcmd.c (_initialize_infcmd): Ditto.
8596 * language.c (_initialize_language): Ditto.
8597 * symfile.c (_initialize_symfile): Ditto.
8598 * top.c (_init_main): Ditto.
8599 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8600
8601 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8602
8603 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8604 vector registers handling.
8605 (skip_prologue): Handle new AltiVec instructions. Fill in new
8606 fields of frame data.
8607 (frame_get_saved_regs): Fill in information for AltiVec registers.
8608
8609 2002-03-27 Jim Blandy <jimb@redhat.com>
8610
8611 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8612 a function; leave this macro here to invoke that function.
8613 (symbol_init_mangled_name): Declaration for that function.
8614 * symtab.c (symbol_init_mangled_name): New function.
8615
8616 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8617
8618 * valarith.c: Replace strerror with safe_strerror.
8619 * tracepoint.c: Ditto.
8620 * lin-lwp.c: Ditto.
8621 * go32-nat.c: Ditto.
8622 * inflow.c: Ditto.
8623 * gnu-nat.c: Ditto.
8624
8625 2002-03-27 Andreas Schwab <schwab@suse.de>
8626
8627 * event-top.c (command_line_handler): Remove useless if.
8628
8629 2002-03-27 Andreas Jaeger <aj@suse.de>
8630
8631 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8632 comment.
8633
8634 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8635
8636 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8637 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8638 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8639 (x86_64_linux_dr_get_status, supply_gregset),
8640 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8641 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8642 (x86_64_register_info_table): Add.
8643 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8644 (x86_64_register_raw_size, x86_64_register_virtual_type),
8645 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8646 general x86_64_register_info_table.
8647 (i386_gdbarch_init): gdbarch_register_bytes is now set
8648 dynamicaly during initialization.
8649 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8650 * gdbserver/linux-x86-64-low.c: Ditto.
8651
8652 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8653
8654 * gdbserver/server.c (main): Call target_signal_to_host_p
8655 and target_signal_to_host on signals received from the remote.
8656 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8657 target_signal_from_host on signals sent to the remote.
8658 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8659 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8660
8661 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8662
8663 * signals/signals.c: Include "server.h" in gdbserver build.
8664 (target_signal_from_name): Don't use STREQ.
8665 (_initialize_signals): Likewise. Don't include function in
8666 gdbserver build.
8667
8668 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8669
8670 * signals.c: Moved to...
8671 * signals/signals.c: Here.
8672 * Makefile (signals.o): Update.
8673
8674 2002-03-26 Jeff Law (law@redhat.com)
8675
8676 * somread.c (som_symtab_read): Remove some commented out code and
8677 updated related comments. Do not set the minimal symbol table to
8678 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8679 in a dynamic executable.
8680 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8681 where we are unable to find the minimal symbol for the given
8682 PC value.
8683
8684 2002-03-25 Jeff Law (law@redhat.com)
8685
8686 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8687
8688 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8689
8690 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8691
8692 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8693
8694 * command.h: Update copyright.
8695 (struct cmd_list_element): Replace definition with opaque
8696 declaration.
8697 (enum cmd_types): Document that it will eventually be moved to
8698 cli/cli-decode.h
8699 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8700 (MALLOCED_REPLACEMENT): Delete macro.
8701 * Makefile.in (cli_decode_h): Add $(command_h).
8702 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8703 * top.c: Include "cli/cli-decode.h".
8704 * completer.c: Include "cli/cli-decode.h".
8705 * maint.c: Include "cli/cli-decode.h".
8706 * cli/cli-decode.h: Include "command.h".
8707 (enum command_class): Delete.
8708 (enum cmd_types): Comment out.
8709 (enum cmd_auto_boolean): Delete.
8710 (enum var_types): Delete.
8711
8712 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8713
8714 * cli/cli-decode.c: Include "gdb_assert.h".
8715 (add_set_or_show_cmd): New static function.
8716 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8717 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8718 all fields, such as func, from the set command.
8719
8720 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8721
8722 * MAINTAINERS (sh-elf): Change warning flag to -w.
8723
8724 2002-03-23 Andrew Cagney <cagney@redhat.com>
8725
8726 * defs.h (error): Add printf format attribute.
8727 * thread-db.c (thread_from_lwp): Fix error format string.
8728 * stack.c (parse_frame_specification): Ditto.
8729 * cli/cli-decode.c (undef_cmd_error): Ditto.
8730 * scm-lang.c (scm_lookup_name): Ditto.
8731 * tracepoint.c (trace_error): Ditto.
8732 * remote-utils.c (usage): Ditto.
8733 * remote.c (compare_sections_command): Ditto.
8734 Fix PR gdb/328.
8735
8736 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8737
8738 * gdbtypes.c (append_composite_type_field): New function.
8739 (init_composite_type): New function.
8740 * gdbtypes.h (append_composite_type_field): Declare.
8741 (init_composite_type): Ditto.
8742
8743 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8744
8745 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8746 function.
8747 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8748 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8749 structure returning convention for SYSV ABI case, but not
8750 for GNU/Linux, FreeBSD, or NetBSD.
8751
8752 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8753
8754 * symtab.h (lookup_block_symbol): Add mangled_name argument
8755 to prototype.
8756
8757 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8758 with new mangled_name argument.
8759 * linespec.c (decode_line_1): Likewise.
8760 * valops (value_of_this): Likewise.
8761 * symtab.c (lookup_transparent_type): Likewise.
8762 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8763 (lookup_symbol): If we are given a mangled name, pass it down
8764 to lookup_symbol_aux.
8765 (lookup_block_symbol): If we are given a mangled name to check
8766 against, only return symbols which match it.
8767
8768 2002-03-22 Christopher Faylor <cgf@redhat.com>
8769
8770 * win32-nat.c (child_create_inferior): Check for proper shell to use
8771 here, in case the user changes it on the fly.
8772 (_initialize_inftarg): Remove shell path considerations.
8773
8774 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8775
8776 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8777 for gdbarch_max_register_raw_size and max_register_virtual_size.
8778 Adjust copyright year.
8779
8780 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8781
8782 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8783 in a function to cover the entire beginning of the function
8784 as well if it does not already.
8785
8786 2002-03-21 Tom Rix <trix@redhat.com>
8787
8788 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8789 (rs6000_ptrace64): Renamed from ptrace64.
8790
8791 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8792
8793 * gdbserver/remote-utils.c (remote_open): Don't call
8794 getprotobyname, we're all using TCP here so just use
8795 IPPROTO_TCP.
8796 * gdbserver/gdbreplay.c (remote_open): Ditto.
8797
8798 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8799
8800 * regcache.c (_initialize_regcache): No need to call
8801 build_regcache() at this time; it gets called whenever
8802 the gdbarch changes.
8803
8804 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8805
8806 * sparc-nat.c: Include sys/param.h where possible.
8807
8808 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8809
8810 Fix PR gdb/422.
8811 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8812 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8813 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8814 complex types.
8815 * stabsread.c (rs6000_builtin_type): Likewise.
8816 (read_sun_floating_type): Likewise.
8817
8818 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8819
8820 * stabsread.c (read_member_functions): Remove skip code for duplicate
8821 constructor/destructor methods. Use standard parsing for these
8822 methods and just do not chain them to the list of methods after
8823 parsing.
8824
8825 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8826
8827 * coffread.c: Remove redundant static declarations. Replace
8828 occurrences of `PTR' with `void *'.
8829 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8830 * top.h (quit_cover): Likewise.
8831 * defs.h (catch_errors): Likewise.
8832
8833 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8834
8835 * defs.h (XMALLOC): Define.
8836 * gdb-events.sh (XMALLOC): Delete macro.
8837 * gdb-events.c, gdb-events.h: Regenerate.
8838 * gdbarch.sh (XMALLOC): Delete macro.
8839 * gdbarch.c: Regenerate.
8840 * serial.c (XMALLOC): Delete macro.
8841 * ui-file.c (XMALLOC): Ditto.
8842 * ser-unix.h (XMALLOC): Ditto.
8843 * sh-tdep.c (XMALLOC): Ditto.
8844 * ui-out.c (XMALLOC): Ditto.
8845 * utils.c (XMALLOC): Ditto.
8846 * i386-tdep.c (XMALLOC): Ditto.
8847 * gdb-events.c (XMALLOC): Ditto.
8848 * d10v-tdep.c (XMALLOC): Ditto.
8849 * cli-out.c (XMALLOC): Ditto.
8850
8851 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8852 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8853 * ui-file.c, ui-out.c: Ditto.
8854
8855 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8856
8857 * command.h (struct cmd_list_element): Add field context.
8858 (set_cmd_context, get_cmd_context): Declare.
8859 * cli/cli-decode.h: Ditto.
8860 * cli/cli-decode.c (get_cmd_context): New function.
8861 (set_cmd_context): New function.
8862 (add_cmd): Initialize context.
8863 Part of fixing PR gdb/145 and PR gdb/146.
8864
8865 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8866
8867 * cli/cli-decode.c (cmd_type): New function.
8868 * command.h (cmd_type): Declare.
8869 * infrun.c (set_schedlock_func): Call function cmd_type.
8870 * kod.c (kod_set_os): Call cmd_type.
8871 * cris-tdep.c (cris_version_update): Use function cmd_type.
8872 (cris_mode_update, cris_abi_update): Ditto.
8873
8874 * command.h: (execute_cmd_post_hook): Declare.
8875 (execute_cmd_pre_hook): Declare.
8876 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8877 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8878 functions. Execute pre/post hook while ensuring that afterwords
8879 hook_in is cleared.
8880 * top.c (execute_command): Use execute_cmd_post_hook, and
8881 execute_cmd_pre_hook to execute pre/post commands.
8882 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8883 hook_stop_stub.
8884 (hook_stop_stub): Call execute_cmd_pre_hook.
8885
8886 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8887
8888 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8889 set'' and this leads to a core dump. Move xstrdup of
8890 operating_system to after check that it is not NULL.
8891
8892 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8893
8894 * kod.c (kod_set_os): Remove unnecessary check that
8895 ``command->type'' is set_cmd.
8896
8897 * valprint.c (set_input_radix): Use input_radix.
8898 (set_output_radix): Use output_radix.
8899 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8900 isn't reverted.
8901
8902 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8903
8904 * value.h (struct value): Delete field ``substring_addr''. Change
8905 aligner fields to force_doublest_align, force_longest_align,
8906 force_core_addr_align and force_pointer_aligh.
8907
8908 * value.h (struct value): Fix typo in above change.
8909
8910 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8911
8912 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8913 to fix internal_error from ``maintenance print architecture''.
8914
8915 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8916
8917 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8918 for gcc versions after gcc-2.8.1.
8919
8920 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8921
8922 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8923 for method resolution. Restore adjustment of ``this'' pointer after
8924 calling value_struct_elt, which was accidentally removed during the
8925 HP merge.
8926
8927 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8928
8929 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8930 value_of_register.
8931 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8932 get_saved_register.
8933 * value.h (value_of_register): Update.
8934
8935 2002-03-14 Richard Henderson <rth@redhat.com>
8936
8937 * configure.in: Detect declaration for canonicalize_file_name.
8938 * utils.c (canonicalize_file_name): Declare, if needed.
8939 (gdb_realpath): Prefer realpath if available and usable.
8940 * config.in, configure: Rebuild.
8941
8942 2002-03-14 Richard Henderson <rth@redhat.com>
8943
8944 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8945 a constant array bound.
8946
8947 * MAINTAINERS: Add myself to write-after-approval.
8948
8949 2002-03-14 Michael Snyder <msnyder@redhat.com>
8950
8951 * symfile.c (syms_from_objfile): Return immediately if no syms.
8952 (symbol_file_add): Return immediately if no syms.
8953 (find_sym_fns): Return immediately if no syms.
8954
8955 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8956
8957 * gdbserver/remote-util.c (remote_open): Print remote-side's
8958 IP address when remote debugging over the network.
8959
8960 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8961
8962 * config/sparc/fbsd.mh: Fix copyright.
8963 * config/sparc/fbsd.mt: Likewise.
8964
8965 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8966
8967 * MAINTAINERS: Fix typo in name of gdb warnings option.
8968 (x86-64): Fix formating so that this can be parsed by awk.
8969
8970 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8971
8972 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8973 * defs.h: Include "gdb/signals.h".
8974 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8975
8976 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8977
8978 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8979 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8980 from x86-64-tdep.h
8981
8982 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8983 Don Howard <dhoward@redhat.com>
8984
8985 * mips-tdep.c (ST0_FR): Define.
8986 (mips2_fp_compat): New function, temporarily disabled.
8987 (mips_read_fp_register_single): New function.
8988 (mips_read_fp_register_double): New function.
8989 (mips_print_register): Use them.
8990 (do_fp_register_row): Likewise.
8991
8992 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8993
8994 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8995 approval''.
8996
8997 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8998
8999 * stabsread.c (read_member_functions): Fix is_stub test for
9000 static member functions, improve comment.
9001
9002 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9003
9004 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9005 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9006 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9007 commands that set boolean values.
9008 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9009 (arm_rdi_resume): Always initialize PC.
9010 (arm_rdi_open): Don't use rslt as a boolean.
9011 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9012 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9013 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9014 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9015
9016 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9017
9018 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9019 * configure: Rebuilt.
9020
9021 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9022
9023 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9024 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9025
9026 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9027
9028 * cli/cli-decode.c (set_cmd_completer): New function.
9029 * command.h (set_cmd_completer): Declare.
9030 * cli/cli-decode.h (set_cmd_completer): Ditto.
9031
9032 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9033 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9034 * win32-nat.c (_initialize_inftarg): Ditto.
9035 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9036 * proc-api.c (_initialize_proc_api): Ditto.
9037 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9038 * source.c (_initialize_source): Ditto.
9039 * exec.c (_initialize_exec): Ditto.
9040 * solib.c (_initialize_solib): Ditto.
9041 * top.c (init_main): Ditto.
9042 * tracepoint.c (_initialize_tracepoint): Ditto.
9043 * symfile.c (_initialize_symfile): Ditto.
9044 * printcmd.c (_initialize_printcmd): Ditto.
9045 * infcmd.c (_initialize_infcmd): Ditto.
9046 * corefile.c (_initialize_core): Ditto.
9047
9048 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9049
9050 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9051
9052 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9053
9054 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9055
9056 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9057
9058 * NEWS: Update headings, 5.2 has branched.
9059
9060 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9061
9062 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9063 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9064 (register_addr, REGISTER_RAW_SIZE): Likewise.
9065 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9066 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9067
9068 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9069
9070 * MAINTAINERS (x86-64): Add myself.
9071 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9072 changed value_ptr -> struct value *
9073
9074 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9075
9076 * configure.host (sparc64-*-freebsd): Add.
9077 * configure.tgt: Likewise.
9078 * config/sparc/fbsd.mh: New file.
9079 * config/sparc/fbsd.mt: Likewise.
9080 * config/sparc/nm-fbsd.h: Likewise.
9081 * config/sparc/tm-fbsd.h: Likewise.
9082
9083 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9084
9085 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9086 regformats/reg-s390x.dat.
9087
9088 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9089
9090 * utils.c: Add FIXME explaining true/false problem.
9091
9092 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9093
9094 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9095
9096 2002-02-28 Michael Chastain <mec@shout.net>
9097
9098 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9099
9100 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9101
9102 * gdbserver/linux-s390-low.c: New file.
9103 * regformats/reg-s390.dat: New file.
9104 * regformats/reg-s390x.dat: New file.
9105 * gdbserver/configure.srv: Add S/390.
9106 * gdbserver/Makefile.in: Add S/390.
9107 * configure.tgt: Enable gdbserver for S/390.
9108
9109 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9110
9111 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9112 first line of the doc string for "info dos", except at the end of
9113 the sentence, since the short help stops at the first period.
9114
9115 2002-02-28 Jason Merrill <jason@redhat.com>
9116
9117 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9118
9119 2002-02-27 Fred Fish <fnf@redhat.com>
9120
9121 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9122 comment (dumy -> dummy).
9123
9124 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9125
9126 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9127
9128 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9129
9130 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9131
9132 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9133
9134 * gdbserver/acconfig.h: New file.
9135 * gdbserver/i387-fp.c: New file.
9136 * gdbserver/i387-fp.h: New file.
9137 * gdbserver/linux-x86-64.c: New file.
9138 * regformats/reg-x86-64.dat: New file.
9139 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9140 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9141 * gdbserver/configure.in: Add support for regsets.
9142 * gdbserver/config.in: Regenerate.
9143 * gdbserver/configure: Regenerate.
9144 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9145 * gdbserver/linux-low.h: New file.
9146 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9147 for regsets.
9148 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9149 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9150 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9151 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9152 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9153 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9154 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9155 "i387-fp.h". Add PTRACE_GETREGS and friends.
9156 * gdbserver/regcache.c (supply_register): New function.
9157 (supply_register_by_name): New function.
9158 (collect_register): New function.
9159 (collect_register_by_name): New function.
9160
9161 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9162
9163 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9164 (config.status): Add configure.srv dependency.
9165 (server_h): Add config.h dependency.
9166
9167 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9168
9169 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9170 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9171 * gdbserver/configure.srv: Change i386-*-linux* to use
9172 reg-i386-linux.o.
9173
9174 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9175
9176 * x86-64-tdep.c: Re-indent. Update copyright date.
9177
9178 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9179
9180 From Michal Ludvig <mludvig@suse.cz>:
9181 * x86-64-tdep.c (value.h): Delete.
9182 (gdb_assert.h): Include.
9183 (x86_64_register_convert_to_virtual,
9184 x86_64_register_convert_to_raw ): Add check which lets only
9185 floating-point values to be converted.
9186 (value_push): Delete.
9187 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9188 (i386_gdbarch_init): Number of register_bytes fixed.
9189
9190 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9191
9192 * MAINTAINERS: Add x86-64 target.
9193
9194 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9195
9196 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9197 * osfsolib.c (solib_map_sections): Ditto.
9198 * irix5-nat.c (solib_map_sections): Ditto.
9199 * corelow.c (gdb_check_format): Ditto.
9200 * symfile.c (symfile_bfd_open): Ditto.
9201 * solib.c (solib_map_sections): Ditto.
9202 Fix PR gdb/354.
9203
9204 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9205
9206 * remote.c (_initialize_remote): By default, disable ``e'' and
9207 ``E'' step out-of-range packets.
9208
9209 2002-02-26 Andreas Schwab <schwab@suse.de>
9210
9211 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9212 m68k_linux_frame_saved_pc.
9213 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9214 in_sigtramp.
9215 (SIGCONTEXT_PC_OFFSET): Remove.
9216 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9217 m68k_linux_sigtramp_saved_pc): New functions.
9218 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9219 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9220 (UCONTEXT_PC_OFFSET): Define.
9221 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9222 non-RT and RT signal trampolines.
9223
9224 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9225
9226 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9227 (TARGET_NBPG, STACK_END_ADDR): Delete
9228 (VARIABLES_INSIDE_BLOCK): Delete.
9229
9230 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9231
9232 * utils.c (perror_with_name): Make string parameter constant.
9233 (print_sys_errmsg): Ditto.
9234 (query): Ditto.
9235 * defs.h (perror_with_name): Update.
9236 (print_sys_errmsg): Update.
9237 (query): Update.
9238
9239 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9240
9241 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9242 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9243
9244 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9245
9246 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9247 if it already matches the current architecture from the exec file.
9248 Include arch-utils.h for gdbarch_info_init prototype.
9249 * Makefile.in (rs6000-nat.o): Update dependencies.
9250
9251 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9252
9253 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9254 list of exported variables.
9255
9256 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9257
9258 * gdbserver/configure.srv: New file.
9259 * gdbserver/configure.in: Use configure.srv instead
9260 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9261 from it.
9262 * gdbserver/configure: Regenerated.
9263 * gdbserver/terminal.h: New file.
9264 * gdbserver/Makefile.in: Update for configure changes. Remove
9265 more unneeded include paths.
9266
9267 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9268
9269 From wiz at danbala:
9270 * config/sparc/tm-sp64.h: Fix grammar and typos.
9271 Fix PR gdb/287.
9272
9273 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9274
9275 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9276 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9277 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9278 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9279 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9280 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9281 * s390-tdep.c: Ditto.
9282 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9283 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9284 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9285 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9286 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9287 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9288 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9289 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9290 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9291 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9292 Fix PR gdb/378.
9293
9294 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9295
9296 * lin-thread.c: Delete file.
9297 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9298 to gdb_proc_service.h.
9299 * configure: Re-generate.
9300
9301 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9302 * serial.c (serial_open): Delete check for "ocd".
9303 Fix PR gdb/349.
9304
9305 * Makefile.in (linux-thread.o): Delete target.
9306 * linux-thread.c: Delete file.
9307
9308 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9309 renamed SH files to be consistent.
9310
9311 * symtab.c (sort_search_symbols): Use xfree.
9312
9313 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9314
9315 * arm-linux-tdep.c (arm_linux_init_abi): Register
9316 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9317 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9318 definition with undef, since we don't want the sysvr4 definition.
9319 (SKIP_TRAMPOLINE_CODE): Likewise.
9320
9321 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9322
9323 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9324
9325 * configure.in: (AC_CHECK_FUNCS) Added test for
9326 canonicalize_file_name Regenerated.
9327 * config.in, configure: Regenerated.
9328 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9329 defined use canonicalize_file_name.
9330
9331 2002-02-23 Michael Chastain <mec@shout.net>
9332
9333 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9334
9335 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9336
9337 * README: Remove references to cygnus.com.
9338 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9339 dot com'' form. Remove references to cygnus.com and sourceware.
9340
9341 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9342
9343 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9344 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9345 1003.1-2001 no longer allows "head -1".
9346 * gdb/Makefile.in (version.c): Likewise.
9347 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9348 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9349 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9350
9351 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9352
9353 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9354 * command.h (cmd_cfunc_eq): Declare.
9355 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9356
9357 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9358 ``struct cmd_list_element *''.
9359 * cli/cli-cmds.c (is_complete_command): Update. Use
9360 cmd_cfunc_eq.
9361 * top.c (execute_command): Pass the command to
9362 is_complete_command.
9363 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9364
9365 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9366
9367 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9368 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9369 architecture defines.
9370 * s390-tdep.c (s390_gdbarch_init): Likewise.
9371
9372 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9373
9374 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9375 (arm_linux_push_arguments): Likewise.
9376 (arm_linux_init_abi): Register them. Also register linux-specific
9377 call_dummy_words.
9378 (find_minsym_and_objfile): Use strcmp, not STREQ.
9379 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9380 (arm_linux_call_dummy_words): Delete declaration.
9381 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9382 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9383 declarations.
9384 (LOWEST_PC): Delete.
9385
9386 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9387
9388 * maint.c (print_section_info): Do not prepend `0x' to filepos
9389 output, it will be handled by local_hex_string_custom.
9390
9391 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9392
9393 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9394 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9395 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9396
9397 2002-02-22 Jim Blandy <jimb@redhat.com>
9398
9399 Indicate that the bcache functions don't change the strings
9400 they're passed.
9401 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9402 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9403
9404 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9405
9406 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9407
9408 2002-02-21 Christopher Faylor <cgf@redhat.com>
9409
9410 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9411 find the complete path to a loaded DLL.
9412
9413 2002-02-21 Fred Fish <fnf@redhat.com>
9414
9415 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9416 that marks the end of the range of a function, enter a line number
9417 entry that has a line number of zero and a PC offset that matches
9418 the end of the function. This starts a range of PC's for which no
9419 line number information is known.
9420 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9421 PC's for which no line number info is found (line number is zero)
9422 then we didn't find any valid line information.
9423 * symtab.h: Document use of zero line number entry.
9424
9425 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9426
9427 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9428 (have_ptrace_getvrregs): Define for run time checks.
9429 (gdb_vrregset_t): New type for Altivec register handling.
9430 (fetch_register, store_register): Fetch/store altivec register
9431 when needed.
9432 (fetch_altivec_register, store_altivec_register): New functions.
9433 (supply_vrregset, fill_vrregset): New functions.
9434 (fetch_altivec_registers, store_altivec_registers): New functions.
9435 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9436 registers as well.
9437
9438 2002-02-21 Jiri Smid <smid@suse.cz>
9439
9440 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9441
9442 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9443
9444 * Makefile.in (armnbsd-nat.o): Update dependencies.
9445 * armnbsd-nat.c (supply_gregset): New function. Common code to
9446 supply the integer register set.
9447 (supply_fparegset): New function. Similar for FPA registers.
9448 (fetch_regs, fetch_fp_regs): Use them.
9449 (fetch_core_registers): Likewise.
9450 (fetch_elfcore_registers): New function.
9451 (arm_netbsd_elfcore_fns): New core-file type specification.
9452 (_initialize_arm_netbsd_nat): Register it.
9453
9454 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9455
9456 * armnbsd-nat.c: Include gdbcore.h.
9457 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9458 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9459 'void' to declaration, to shut up ARI.
9460 (fetch_core_registers): Make static. Rewrite using supply_register.
9461 (arm_netbsd_core_fns): New core-file type specification.
9462 (_initialize_arm_netbsd_nat): New function.
9463
9464 2002-02-21 Christopher Faylor <cgf@redhat.com>
9465
9466 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9467 value.
9468
9469 2002-02-20 Christopher Faylor <cgf@redhat.com>
9470
9471 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9472 fails.
9473
9474 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9475
9476 * jv-exp.y (parse_number): Change type of implicit longs
9477 to builtin_type_uint64.
9478
9479 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9480
9481 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9482 to be an integer instead of a `union wait'.
9483
9484 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9485
9486 * mips-linux-nat.c: Call the operating system GNU/Linux.
9487 * mips-linux-tdep.c: Likewise.
9488 * mips-tdep.c: Likewise.
9489
9490 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9491
9492 Fix PR gdb/265.
9493 * jv-exp.y (parse_number): Handle 64-bit integers.
9494
9495 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9496
9497 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9498 AC_STDC_HEADERS to AC_HEADER_STDC.
9499 * gdbserver/configure: Regenerated.
9500
9501 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9502
9503 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9504 is defined.
9505 * sparc-tdep.c (get_longjmp_target): Likewise.
9506
9507 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9508
9509 * News: Add news about ARM and Multi-arch. Mention the new target
9510 arm*-*-netbsd*.
9511
9512 2002-02-19 Jim Blandy <jimb@redhat.com>
9513
9514 * stabsread.c (error_type_complaint): Improve error message.
9515
9516 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9517
9518 * gdbserver/README: Update documentation.
9519 * gdbserver/configure.in: Update configury to match documentation.
9520 * gdbserver/Makefile.in: Likewise.
9521 * gdbserver/configure: Regenerated.
9522 * gdbserver/aclocal.m4: New file, generated by aclocal.
9523 * gdbserver/config.in: New file, generated by autoheader.
9524
9525 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9526
9527 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9528 armnbsd-nat.c.
9529
9530 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9531
9532 * arm-tdep.h (enum arm_float_model): New enum.
9533 (struct gdbarch_tdep): Add fp_model.
9534 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9535 up floating-point conversions until we know the floating-point model
9536 in use by the inferior. Don't complain about being unable to
9537 determine the ABI of the inferior when we don't have one.
9538 (arm_extract_return_value): Support different floating-point models.
9539 (arm_store_return_value): Likewise.
9540 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9541 ARM_FLOAT_SOFT.
9542 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9543
9544 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9545
9546 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9547 of ``current_gdbarch''.
9548
9549 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9550
9551 * armnbsd-nat.c : ANSIfy all function declarations.
9552 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9553 (fetch_inferior_registers): Re-implement in terms of above.
9554 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9555 (store_inferior_registers): Re-implement in terms of above.
9556
9557 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9558
9559 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9560 kernel.
9561 * arm-linux-tdep.c: Likewise.
9562 * config/arm/tm-linux.h: Likewise.
9563
9564 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9565
9566 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9567 * config/arm/nbsd.mt (TM_FILE): Delete.
9568 * config/arm/tm-nbsd.h: Delete.
9569
9570 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9571
9572 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9573 Initialize CALL_DUMMY_LENGTH.
9574
9575 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9576
9577 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9578 function.
9579 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9580 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9581 defines one thing and that is incorrect for this port.
9582 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9583
9584 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9585
9586 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9587
9588 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9589
9590 * win32-nat.c (display_selector): New function. Displays information
9591 about the information returned by GetThreadSelectorEntry API function.
9592 (display_selectors): New function. Displays the infomation of
9593 the selector given as argument, or of CS, DS ans FS selectors
9594 if no argument is given.
9595 ( _initialize_inftarg): Add "w32" as info prefix command.
9596 Add "info w32 selector" as command calling display_selectors.
9597
9598 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9599
9600 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9601 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9602 if not defined.
9603
9604 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9605
9606 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9607
9608 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9609
9610 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9611 (arm_fix_call_dummy): Call it.
9612 (arm_call_dummy_breakpoint_offset): Delete.
9613 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9614 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9615
9616 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9617
9618 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9619 Default to func_frame_chain_valid.
9620 * gdbarch.h, gdbarch.c: Re-generate.
9621 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9622
9623 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9624
9625 * ppc-linux-nat.c: Update copyright.
9626 (fetch_register, store_register): Add tid parameter, don't compute
9627 tid here.
9628 (fetch_ppc_registers, store_ppc_registers): Add tid
9629 parameter. Pass it along to callees.
9630 (fetch_inferior_registers, store_inferior_registers): Compute tid
9631 here, and pass it to calleed functions.
9632 (fill_gregset, supply_fpregset): Clean up formatting.
9633
9634 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9635
9636 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9637 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9638
9639 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9640
9641 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9642 * gdbarch.c gdbarch.h: Regenerate.
9643 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9644 function.
9645 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9646 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9647 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9648
9649 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9650 * arm-tdep.c (arm_get_longjmp_target): New function.
9651 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9652 this to a positive value register arm_get_longjmp_target as the
9653 longjmp handler.
9654 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9655 (arm_linux_init_abi): Set up longjmp description in tdep.
9656 * armnbsd-nat.c (get_longjmp_target): Delete.
9657 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9658 description in tdep.
9659 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9660 (get_longjmp_target): Delete declaration.
9661 (GET_LONGJMP_TARGET): Delete.
9662 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9663 (GET_LONGJMP_TARGET): Delete.
9664
9665 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9666
9667 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9668 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9669 of ``current_gdbarch''.
9670
9671 2002-02-17 Tom Tromey <tromey@redhat.com>
9672
9673 * cli/cli-cmds.c (compare_strings): New function.
9674 (complete_command): Only print each unique item once.
9675 * completer.h (complete_line): Declare.
9676 * completer.c (complete_line): New function.
9677 (line_completion_function): Use it.
9678
9679 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9680
9681 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9682 * gdbarch.h, gdbarch.c: Re-generate.
9683
9684 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9685
9686 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9687
9688 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9689
9690 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9691 * valops.c (value_arg_coerce): Don't take the address of a reference
9692 to convert an argument to a reference.
9693
9694 2002-02-15 Christopher Faylor <cgf@redhat.com>
9695
9696 * win32-nat.c (get_image_name): New function.
9697 (handle_load_dll): Use get_image_name function.
9698 (get_child_debug_event): Avoid registering debug events until possibly
9699 execed process is started.
9700 (child_create_inferior): Allow invocation via shell so that command
9701 line redirection, etc. works ok.
9702 (_initialize_inftarg): Add new command: "set shell" to control whether
9703 a shell is used to start a process.
9704
9705 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9706
9707 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9708 instead of find_register_by_number.
9709 (cannot_store_register): Likewise.
9710
9711 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9712
9713 * dwarf2read.c: Replace fprintf (stderr, ...) by
9714 fprintf_unfiltered (gdb_stderr, ...).
9715
9716 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9717
9718 * gdbserver/gdbserver.1: Document --attach.
9719
9720 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9721
9722 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9723 descriptions.
9724 * arm-tdep.c (arm_default_arm_le_breakpoint)
9725 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9726 (arm_default_thumb_be_breakpoint): New. Initialize them from
9727 traditional breakpoint defines.
9728 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9729 (arm_gdbarch_init): Initialize new breakpoint variables.
9730 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9731 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9732 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9733 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9734 code out to ...
9735 (arm_netbsd_init_abi_common): ... here; new function.
9736 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9737 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9738 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9739 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9740
9741 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9742
9743 * arm-tdep.h (enum arm_abi): New enum.
9744 (struct gdbarch_tdep): New structure.
9745 (LOWEST_PC): Provide a default.
9746 (arm_gdbarch_register_os_abi): Declare new function.
9747 * arm-tdep.c (arm_abi_names): New array.
9748 (process_note_abi_tag_sections): New function.
9749 (get_elfosabi): New function.
9750 (arm_gdbarch_register_os_abi): New function.
9751 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9752 support for that ABI has been built in, then call the appropriate
9753 configuration routine. Use gdbarch_num_regs() to get the number
9754 of registers.
9755 (arm_dump_tdep): New function.
9756 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9757 place-holder functions.
9758 (_initialize_arm_tdep): Register them.
9759 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9760
9761 * armnbsd-tdep.c: New file.
9762 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9763 * config/arm/nbsd.mt (TDEPFILES): Add it.
9764 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9765
9766 * armnbsd-nat.c: Include regcache.h.
9767 * Makefile.in (armnbsd-nat.o): Update dependency list.
9768
9769 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9770
9771 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9772
9773 * gdbserver/Makefile.in: Fix typos in target rules.
9774
9775 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9776
9777 Fix part of PR gdb/267.
9778 * linespec.c (find_methods): Handle constructors specially for now.
9779
9780 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9781
9782 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9783 handling.
9784 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9785 standard_coerce_float_to_double().
9786
9787 2002-02-14 Christopher Faylor <cgf@redhat.com>
9788
9789 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9790 GDBINIT_FILENAME.
9791
9792 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9793
9794 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9795 find_variant_by_name, because it confuses the multiarch
9796 framework. Return NULL if there isn't an architecture with the
9797 user supplied name, instead of forcing a different one without
9798 recording the change with the multiarch machinery.
9799 (find_variant_by_name): Delete.
9800
9801 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9802
9803 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9804 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9805
9806 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9807
9808 * stack.c (print_frame_info_base): When calling
9809 print_frame_info_listing_hook, set current_source_symtab.
9810
9811 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9812
9813 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9814 and remove unused $(INCLUDE_DIR).
9815 Add regcache.c to OBS.
9816 Add generated register protocol files to clean target.
9817 Update dependencies for new objects, obsolete old target code.
9818
9819 * gdbserver/linux-low.c: Remove all platform-specific code to
9820 new files. Remove various dead code. Update to use regcache
9821 functionality.
9822 * gdbserver/remote-utils.c (fromhex): Add return statement
9823 to quiet warning.
9824 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9825 constant.
9826 (input_interrupt): Add integer parameter to match prototype
9827 of a signal handler.
9828 (outreg): Use register_data ().
9829 (prepare_resume_reply): Use gdbserver_expedite_regs.
9830 * gdbserver/server.c (main): Dynamically allocate own_buf because
9831 PBUFSIZ is no longer constant. Use registers_to_string () and
9832 registers_from_string ().
9833 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9834 for error (), fatal (), and warning (). Update definition of
9835 PBUFSIZ to use regcache functionality. Add include guard.
9836 * gdbserver/utils.c (fatal): Add missing ``const''.
9837 (warning): New function.
9838
9839 * regformats/regdat.sh: Include "regcache.h" in generated files.
9840 Provide init_registers () function.
9841 * regformats/regdef.h: Add prototype for set_register_cache ().
9842 Add include guard.
9843
9844 * gdbserver/linux-arm-low.c: New file.
9845 * gdbserver/linux-i386-low.c: New file.
9846 * gdbserver/linux-ia64-low.c: New file.
9847 * gdbserver/linux-m68k-low.c: New file.
9848 * gdbserver/linux-mips-low.c: New file.
9849 * gdbserver/linux-ppc-low.c: New file.
9850 * gdbserver/linux-sh-low.c: New file.
9851
9852 * gdbserver/regcache.c: New file.
9853 * gdbserver/regcache.h: New file.
9854
9855 * gdbserver/low-linux.c: Removed obsolete file.
9856
9857 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9858
9859 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9860 * config/i386/linux.mt: Likewise.
9861 * config/ia64/linux.mt: Likewise.
9862 * config/m68k/linux.mh: Likewise.
9863 * config/powerpc/linux.mh: Likewise.
9864 * config/mips/linux.mt: Likewise.
9865
9866 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9867
9868 * config/i386/i386lynx.mh: Mark gdbserver variables
9869 as (currently) obsolete for this target.
9870 * config/i386/nbsd.mt: Likewise.
9871 * config/i386/nbsdelf.mt: Likewise.
9872 * config/m32r/m32r.mt: Likewise.
9873 * config/m68k/m68klynx.mh: Likewise.
9874 * config/m68k/nbsd.mt: Likewise.
9875 * config/m68k/sun3os4.mh: Likewise.
9876 * config/mips/vr5000.mt: Likewise.
9877 * config/ns32k/nbsd.mt: Likewise.
9878 * config/pa/hppabsd.mh: Likewise.
9879 * config/pa/hppaosf.mh: Likewise.
9880 * config/powerpc/nbsd.mt: Likewise.
9881 * config/rs6000/rs6000lynx.mh: Likewise.
9882 * config/s390/s390.mt: Likewise.
9883 * config/s390/s390x.mt: Likewise.
9884 * config/sparc/sparclynx.mh: Likewise.
9885 * config/sparc/sun4os4.mh: Likewise.
9886 * config/i386/x86-64linux.mt: Likewise.
9887 * config/sparc/linux.mh: Likewise.
9888
9889 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9890
9891 * configure.tgt: Configure gdbserver only for known working
9892 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9893 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9894 SUBDIRS if it is configured. Update comment for ${nativefile}.
9895 * configure: Regenerated.
9896
9897 2002-02-13 Michael Snyder <msnyder@redhat.com>
9898
9899 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9900
9901 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9902 (default_gcore_mach): Just return 0, work around a problem in bfd.
9903 (default_gcore_target): OK to return NULL if exec_bfd is null.
9904 (make_mem_sec): Use a cast, avoid a warning.
9905
9906 * procfs.c (find_memory_regions_callback): Use a cast instead of
9907 calling host_pointer_to_address (which complains if
9908 sizeof (host pointer) != sizeof (target pointer)).
9909 (procfs_make_note_section): Avoid overflow in psargs string.
9910
9911 * procfs.c (procfs_make_note_section): Make the default
9912 implementation return an error.
9913
9914 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9915
9916 * procfs.c (procfs_make_note_section): Provide a default definition
9917 (for alpha-dec-osf4.0f). Fix typos.
9918
9919 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9920
9921 * linux-proc.c: Add include of regcache.h.
9922 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9923
9924 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9925
9926 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9927 * memattr.c (create_mem_region): Disallow useless empty region.
9928 Regions are half-open intervals, so allow [A..B) [B..C) as
9929 non-overlapping.
9930
9931 2002-02-13 Michael Chastain <mec@shout.net>
9932
9933 * defs.h: Kill CONST_PTR.
9934 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9935 * c-lang.c (c_builtin_types): Likewise.
9936 * ch-lang.c (ch_builtin_types): Likewise.
9937 * f-lang.c (f_builtin_types): Likewise.
9938 * language.c (unknown_builtin_types): Likewise.
9939 * m2-lang.c (m2_builtin_types): Likewise.
9940 * p-lang.c (pascal_builtin_types): Likewise.
9941 * scm-lang.c (c_builtin_types): Likewise.
9942
9943 2002-02-13 Keith Seitz <keiths@redhat.com>
9944
9945 * arm-tdep.h (arm_get_next_pc): Add declaration.
9946
9947 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9948
9949 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9950 with other related struct-returning functions.
9951 (arm_extract_struct_value_address): New function.
9952 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9953 initialize float_format, double_format and long_double_format as
9954 appropriate to the endianness of the target.
9955 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9956 (arm_use_struct_convention): Delete declaration.
9957 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9958
9959 2002-02-13 Keith Seitz <keiths@redhat.com>
9960
9961 * defs.h (core_addr_to_string_nz): New function.
9962
9963 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9964
9965 Apply missing bits of 2002-01-15 patch.
9966 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9967 (fill_fpregset): Use i387_fill_fsave.
9968
9969 2002-02-12 Keith Seitz <keiths@redhat.com>
9970
9971 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9972 (core_addr_to_string_nz): New function.
9973
9974 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9975
9976 * arm-linux-nat.c: Really include arm-tdep.h.
9977 * config/arm/tm-linux.h (struct type, struct value): Declare.
9978
9979 2002-02-11 Michael Snyder <msnyder@redhat.com>
9980
9981 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9982 (gcore section): Ifdef for Solaris and Unixware only.
9983 (procfs_do_thread_registers): Unixware needs one lwpstatus
9984 per thread (not one prstatus or pstatus).
9985 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9986 not over all gdb threads. For unixware, call elfcore_write_pstatus
9987 once before iterating over threads.
9988
9989 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9990
9991 * arm-tdep.h: New file.
9992 * arm-tdep.c: Include arm-tdep.h.
9993 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9994 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9995 (arm_print_float_info, arm_register_type, convert_to_extended)
9996 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9997 (arm_extract_return_value, arm_register_name): Make static.
9998 (arm_software_single_step): Similarly. Fix types in declaration.
9999 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10000 (arm_store_return_value, arm_store_struct_return): New functions.
10001 (arm_gdbarch_init): Register the above functions. Also register
10002 call_dummy_start_offset, sizeof_call_dummy_words,
10003 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10004 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10005 max_register_virtual_size, register_size. Set up
10006 prologue_cache.saved_regs here, rather than ...
10007 (_initialize_arm_tdep): ... here.
10008 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10009 declarations.
10010 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10011 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10012 (arm_print_float_info, arm_register_type, convert_to_extended)
10013 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10014 (arm_extract_return_value, arm_register_name): Delete declarations.
10015 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10016 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10017 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10018 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10019 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10020 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10021 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10022 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10023 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10024 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10025 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10026 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10027 interface.
10028 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10029 * remote-rdi.c remote-rdp.c: Likewise.
10030 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10031 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10032 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10033 definition.
10034
10035 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10036 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10037 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10038 from non-ARM_ prefixed definitions.
10039 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10040 all uses of above.
10041 * remote-rdi.c remote-rdp.c: Likewise.
10042 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10043
10044 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10045
10046 * arm-tdep.c (arm_frameless_function_invocation)
10047 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10048 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10049 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10050 (arm_pop_frame, arm_get_next_pc): Make static.
10051 (arm_gdbarch_init): Register above in gdbarch structure.
10052 (arm_read_fp): Renamed from arm_target_read_fp.
10053 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10054 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10055 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10056 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10057 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10058 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10059 (arm_pc_is_thumb_dummy): Delete declarations.
10060 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10061 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10062 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10063 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10064
10065 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10066
10067 * symtab.c (compare_search_syms): New function.
10068 (sort_search_symbols): New function.
10069 (search_symbols): Sort symbols after searching rather than
10070 before.
10071
10072 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10073
10074 * NEWS: Linux -> GNU/Linux.
10075
10076 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10077
10078 * gdbarch.sh: For for level one methods, disallow a definition
10079 when partially multi-arched. Add comments explaining rationale.
10080 * gdbarch.h: Re-generate.
10081
10082 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10083
10084 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10085 multi-arch partial.
10086
10087 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10088
10089 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10090 field. Use diff -u.
10091 * gdbarch.c: Re-generate.
10092
10093 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10094
10095 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10096 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10097 partial.
10098
10099 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10100
10101 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10102 multi-arch partial.
10103 (PUSH_ARGUMENTS): Switch to using predefault.
10104 * gdbarch.c: Regenerate.
10105
10106 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10107
10108 * valops.c (PUSH_ARGUMENTS): Delete definition.
10109 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10110 partial. Default to default_push_arguments.
10111 * gdbarch.h, gdbarch.c: Regenerate.
10112
10113 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10114
10115 * defs.h (throw_exception): Rename return_to_top_level. Update
10116 comments.
10117 * utils.c (error_stream, internal_verror, quit): Ditto.
10118 * top.c (throw_exception, catcher): Ditto.
10119 * sparclet-rom.c (sparclet_load): Ditto.
10120 * remote.c (interrupt_query, minitelnet): Ditto.
10121 * remote-sds.c (interrupt_query): Ditto.
10122 * remote-mips.c (mips_error, mips_kill): Ditto.
10123 * ocd.c (interrupt_query): Ditto.
10124 * monitor.c (monitor_interrupt_query): Ditto.
10125 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10126 * target.h: Update comment.
10127
10128 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10129
10130 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10131
10132 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10133 default_double_format.
10134 * gdbarch.h, gdbarch.c: Re-generate.
10135 * findvar.c (floatformat_unknown): Delete variable definition.
10136 * doublest.h (floatformat_unknown): Delete variable declaration.
10137
10138 2002-02-09 Jim Blandy <jimb@redhat.com>
10139
10140 * stabsread.c (read_type): Add code to parse Sun's syntax for
10141 prototyped function types.
10142
10143 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10144
10145 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10146 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10147
10148 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10149
10150 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10151 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10152 now _initialize_xcoffsolib gets called again and overrides the
10153 commands from solib.c in a native configuration.
10154
10155 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10156
10157 * doublest.c (store_typed_floating): Don't try to return a value.
10158 Fixes PR gdb/290.
10159
10160 2002-02-08 Jim Blandy <jimb@redhat.com>
10161
10162 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10163 is prototyped and has no arguments, print its argument list as
10164 `(void)'.
10165
10166 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10167
10168 * MAINTAINERS (write-after-approval): Add myself.
10169 (paper-trail): I've escaped!
10170
10171 2002-02-08 Christopher Faylor <cgf@redhat.com>
10172
10173 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10174 changes.
10175 (_initialize_check_for_gdb_ini): Ditto.
10176
10177 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10178
10179 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10180 xaprintf -> xasprintf.
10181
10182 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10183
10184 * win32-nat.c: Remove use of printf and sprintf functions.
10185
10186 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10187
10188 * arm-tdep.c (arm_frame_chain_valid): Make static.
10189 (arm_push_arguments): Likewise.
10190 (arm_gdbarch_init): New function.
10191 (_initialize_arm_tdep): Call it.
10192 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10193 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10194 (FRAME_CHAIN_VALID): Delete.
10195 (arm_frame_chain_valid): Delete declaration.
10196 (PUSH_ARGUMENTS): Delete.
10197 (arm_push_arguments): Delete declaration.
10198 (CALL_DUMMY_P): Delete.
10199
10200 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10201 Corinna Vinschen <vinschen@redhat.com>
10202
10203 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10204 on builtin float types.
10205
10206 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10207
10208 * utils.c: Include <curses.h> before "bfd.h".
10209 * tui/tui-hooks.c: Likewise.
10210 * tui/tui.c: Likewise.
10211 * tui/tuiCommand.c: Likewise.
10212 * tui/tuiData.c: Likewise.
10213 * tui/tuiDataWin.c: Likewise.
10214 * tui/tuiDisassem.c: Likewise.
10215 * tui/tuiGeneralWin.c: Likewise.
10216 * tui/tuiIO.c: Likewise.
10217 * tui/tuiLayout.c: Likewise.
10218 * tui/tuiRegs.c: Likewise.
10219 * tui/tuiSource.c: Likewise.
10220 * tui/tuiSourceWin.c: Likewise.
10221 * tui/tuiStack.c: Likewise.
10222 * tui/tuiWin.c: Likewise.
10223
10224 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10225
10226 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10227 to include space for pseudoregs as well. Update loops accordingly.
10228 (sh_fp_frame_init_saved_regs): Ditto.
10229 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10230
10231 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10232
10233 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10234 Add Richard Earnshaw to Arm maintainers.
10235
10236 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10237
10238 * defs.h (warning_begin): Delete declaration.
10239
10240 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10241 Delete macro.
10242
10243 2002-02-07 Michael Snyder <msnyder@redhat.com>
10244
10245 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10246 Logic bug, remove misplaced else.
10247
10248 2002-02-07 Klee Dienes <klee@apple.com>
10249
10250 * fork-inferior.c (fork_inferior): Add '!' to the list of
10251 characters that need to be quoted when building a string for the
10252 shell. Quote '!' specifically with a backslash, since CSH chokes
10253 when trying to evaluate "str!str".
10254
10255 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10256
10257 * rdi-share/host.h: Only provide a typedef for bool if it is not
10258 defined.
10259
10260 2002-02-04 Michael Snyder <msnyder@redhat.com>
10261
10262 * breakpoint.h (enum bptype): Add new overlay event bp type.
10263 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10264
10265 * breakpoint.c (create_internal_breakpoint): New function.
10266 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10267 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10268 (create_thread_event_breakpoint): Ditto.
10269 (create_solib_event_breakpoint): Ditto.
10270 (create_overlay_event_breakpoint): New function.
10271 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10272 (update_breakpoints_after_exec): Delete and re-initialize
10273 overlay event breakpoints after an exec. Add FIXME comment
10274 about longjmp breakpoint.
10275 (print_it_typical): Ignore overlay event breakpoints.
10276 (print_one_breakpoint): Ditto.
10277 (mention): Ditto.
10278 (bpstat_what): Do not stop for overlay event breakpoints.
10279 (delete_breakpoint): Don't delete overlay event breakpoints.
10280 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10281 (breakpoint_re_set): Re-create overlay event breakpoint.
10282
10283 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10284 (overlay_manual_command): Disable overlay breakpoints.
10285 (overlay_off_command): Disable overlay breakpoints.
10286
10287 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10288
10289 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10290 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10291 to here from config/tm-arm.h.
10292 (coff_sym_is_thumb): Make static.
10293 (arm_elf_make_msymbol_special): New function.
10294 (arm_coff_make_msymbol_special): New function.
10295 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10296 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10297 (coff_sym_is_thumb): Delete declaration.
10298 (arm_elf_make_msymbol_special): Declare.
10299 (arm_coff_make_msymbol_special): Declare.
10300 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10301 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10302
10303 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10304
10305 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10306
10307 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10308
10309 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10310 * gdbarch.c gdbarch.h: Regenerate.
10311 * arch-utils.c (default_print_float_info): New function.
10312 * arch-utils.h (default_print_float_info): Prototype it.
10313 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10314 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10315 (PRINT_FLOAT_INFO): Document it.
10316
10317 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10318 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10319 (PRINT_FLOAT_INFO): Define.
10320
10321 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10322
10323 * win32-nat.c (_initialize_check_for_gdb_ini):
10324 Add typecast to sprintf argument to suppress a warning.
10325
10326 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10327
10328 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10329 to allow easier handling of pass state.
10330 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10331 that gives exception name and address.
10332 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10333 and set last_sig value to ourstatus->value.sig. Some missing
10334 exceptions added.
10335 (child_continue): Correctly report continue_status.
10336 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10337 TARGET_SIGNAL_0 (new default value).
10338 (child_resume): consider sig argument passed to decide if
10339 the exception should be passed to debuggee or not.
10340
10341 2002-02-05 Michael Snyder <msnyder@redhat.com>
10342
10343 * regcache.c (fetch_register): Call target_fetch_register
10344 only if we don't call FETCH_PSEUDO_REGISTER.
10345 (store_register): Call target_store_register only if we
10346 don't call STORE_PSEUDO_REGISTER.
10347
10348 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10349
10350 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10351 ELF_MAKE_MSYMBOL_SPECIAL.
10352 * gdbarch.c, gdbarch.h: Regenerate.
10353 * arch-utils.c (default_make_msymbol_special): New function.
10354 * arch-utils.h (default_make_msymbol_special): Export.
10355 * elfread.c (elf_symtab_read): Compile use of
10356 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10357 multiarched.
10358 * coffread.c (coff_symtab_read): Ditto, for
10359 COFF_MAKE_MSYMBOL_SPECIAL.
10360
10361 2002-02-05 Jim Blandy <jimb@redhat.com>
10362
10363 * solib-svr4.c (svr4_truncate_ptr): New function.
10364 (svr4_relocate_section_addresses): Do the address arithmetic with
10365 the appropriate truncation for target addresses, even when
10366 CORE_ADDR is larger than a target address.
10367
10368 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10369
10370 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10371 to (int *).
10372
10373 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10374
10375 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10376 code.
10377
10378 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10379
10380 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10381
10382 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10383
10384 * gdbserver/linux-low.c: Remove unused include files.
10385
10386 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10387
10388 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10389 (read_inferior_memory): Use it.
10390 (write_inferior_memory): Likewise.
10391
10392 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10393
10394 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10395 grubbing through sys_errlist.
10396
10397 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10398
10399 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10400
10401 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10402 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10403
10404 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10405
10406 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10407 (do_sfunc, set_cmd_sfunc): New functions.
10408
10409 * command.h (struct cmd_list_element): Add field func.
10410 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10411 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10412 * cli/cli-decode.h: Ditto.
10413
10414 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10415 (help_all, help_cmd_list): Ditto.
10416 (find_cmd, complete_on_cmdlist): Ditto.
10417 * top.c (execute_command): Ditto.
10418
10419 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10420 function.sfunc.
10421
10422 * infcmd.c (notice_args_read): Fix function signature.
10423
10424 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10425 * cli/cli-decode.c (add_set_cmd): Ditto.
10426 * utils.c (initialize_utils): Ditto.
10427 * maint.c (_initialize_maint_cmds): Ditto.
10428 * infrun.c (_initialize_infrun): Ditto.
10429 * demangle.c (_initialize_demangler): Ditto.
10430 * remote.c (add_packet_config_cmd): Ditto.
10431 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10432 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10433 * proc-api.c (_initialize_proc_api): Ditto.
10434 * kod.c (_initialize_kod): Ditto.
10435 * valprint.c (_initialize_valprint): Ditto.
10436 * top.c (init_main): Ditto.
10437 * infcmd.c (_initialize_infcmd): Ditto.
10438 * corefile.c (_initialize_core): Ditto.
10439 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10440 * arch-utils.c (initialize_current_architecture): Ditto.
10441 (_initialize_gdbarch_utils): Ditto.
10442 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10443
10444 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10445 * wince.c (_initialize_inftarg): Ditto.
10446 * symfile.c (_initialize_symfile): Ditto.
10447 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10448 * language.c (_initialize_language): Ditto.
10449 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10450
10451 2002-02-04 Michael Snyder <msnyder@redhat.com>
10452
10453 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10454
10455 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10456
10457 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10458 Add rules for building the register data files.
10459
10460 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10461
10462 * regformats/regdat.sh: Add braces to the definition of
10463 expedite_regs_${arch}.
10464
10465 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10466
10467 * regformats/regdef.h (struct reg): Add comment describing the
10468 requirements for offset and size fields.
10469
10470 2002-02-04 Andreas Schwab <schwab@suse.de>
10471
10472 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10473 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10474
10475 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10476
10477 * gdbarch.sh (copyright): Update years in generated header.
10478 (SMASH_TEXT_ADDRESS): Add rule.
10479 * gdbarch.h, gdbarch.c: Re-generate.
10480 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10481 * dbxread.c: Likewise.
10482 * dwarfread.c: Likewise.
10483 * elfread.c: Likewise.
10484 * somread.c: Likewise.
10485
10486 * arm-tdep.c (arm_smash_text_address): New function.
10487 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10488
10489 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10490
10491 Add support for hardware watchpoints on win32 native.
10492 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10493 CONTEXT_DEBUG_REGISTERS.
10494 (dr variable): New variable. Static array containing a local copy
10495 of debug registers.
10496 (debug_registers_changed): New variable. Reflects when debug registers
10497 are changed and need to be written to inferior.
10498 (debug_registers_used): New variable. Reflects when any debug register
10499 was set, used when new threads are created.
10500 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10501 i386-nat code.
10502 (thread_rec): Set dr array if id is the thread of current_event .
10503 (child_continue, child_resume): Change the debug registers for all
10504 threads if debug_registers_changed.
10505 (child_add_thread): Change the debug registers if debug_registers_used.
10506 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10507 Link nm.h to new nm-cygwin.h file.
10508 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10509 of hardware registers.
10510
10511 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10512
10513 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10514 Restore behavour broken by 2002-01-20 Andrew Cagney
10515 <ac131313@redhat.com> IEEE_FLOAT removal.
10516
10517 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10518
10519 * c-valprint.c (c_val_print): Pass a proper valaddr to
10520 cp_print_class_method.
10521 * valops.c (search_struct_method): If there is only one method
10522 and args is NULL, return that method.
10523
10524 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10525
10526 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10527 accessing tag_name directly.
10528
10529 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10530
10531 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10532 of accessing tag_name directly.
10533
10534 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10535
10536 PR gdb/280
10537 * gdbtypes.c (replace_type): New function.
10538 * gdbtypes.h (replace_type): Add prototype.
10539 * stabsread.c (read_type): Use replace_type.
10540
10541 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10542
10543 * Makefile.in (memattr.o): Add missing dependencies rule.
10544
10545 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10546
10547 * breakpoint.c (break_at_finish_command): Really export.
10548 (break_at_finish_at_depth_command): Ditto.
10549 (tbreak_at_finish_command): Ditto.
10550 * hppa-tdep.c: Include completer.h.
10551 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10552 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10553
10554 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10555
10556 * utils.c (do_write): New function.
10557 (error_stream): Rewrite combining the code from error_begin and
10558 verror.
10559 (verror): Rewrite using error_stream.
10560 (error_begin): Delete function.
10561
10562 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10563
10564 * utils.c (error_begin): Make static.
10565 * defs.h (error_begin): Delete declaration.
10566
10567 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10568 (decode_line_1): Use cplusplus_error instead of error_begin,
10569 cplusplus_hint and return_to_top_level.
10570 * coffread.c (coff_symfile_read): Use error instead of error_begin
10571 and return_to_top_level.
10572 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10573
10574 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10575
10576 * language.h (type_error, range_error): Make string parameter
10577 constant.
10578 * language.c (warning_pre_print): Delete extern declaration.
10579 * dwarfread.c (warning_pre_print): Ditto.
10580 * language.c (type_error, range_error): Rewrite to use verror and
10581 vwarning instead of warning_begin.
10582
10583 2002-02-01 Michael Snyder <msnyder@redhat.com>
10584
10585 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10586 (set_ignore_count): Move misplaced comment back where it belongs.
10587
10588 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10589
10590 * command.h (NO_FUNCTION): Delete macro.
10591 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10592 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10593 * tracepoint.c (_initialize_tracepoint): Ditto.
10594 * cli/cli-decode.c (add_set_cmd): Ditto.
10595 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10596
10597 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10598
10599 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10600 Update ``this'' pointer when calling virtual functions.
10601
10602 2002-02-01 Michael Snyder <msnyder@redhat.com>
10603
10604 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10605 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10606
10607 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10608
10609 * regformats/reg-arm.dat: New file.
10610 * regformats/reg-i386.dat: New file.
10611 * regformats/reg-ia64.dat: New file.
10612 * regformats/reg-m68k.dat: New file.
10613 * regformats/reg-mips.dat: New file.
10614 * regformats/reg-ppc.dat: New file.
10615 * regformats/reg-sh.dat: New file.
10616 * regformats/regdef.h: New file.
10617 * regformats/regdat.sh: New file.
10618
10619 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10620
10621 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10622 (arm_frame_args_address, arm_frame_locals_address): New functions.
10623 (arm_frame_num_args): New function.
10624 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10625 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10626 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10627
10628 2002-01-31 Michael Snyder <msnyder@redhat.com>
10629
10630 * breakpoint.c (break_at_finish_command): Export.
10631 (break_at_finish_at_depth_command): Export.
10632 (tbreak_at_finish_command): Export.
10633 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10634 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10635 "txbreak" commands, which are HPPA specific.
10636
10637 * printcmd.c (disassemble_command): Remove an ancient
10638 artifact of an old merge.
10639
10640 * symfile.h (enum overlay_debugging_state):
10641 Define enum constant values for overlay mode.
10642 * symfile.c (overlay_debugging): Use enums instead of literals.
10643 (overlay_is_mapped, overlay_auto_command,
10644 overlay_manual_command): Ditto.
10645
10646 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10647 breakpoint_here_p, breakpoint_inserted_here_p,
10648 breakpoint_thread_match, bpstat_stop_status,
10649 describe_other_breakpoints, check_duplicates, clear_command):
10650 Coding standard fixes.
10651
10652 * target.c (target_xfer_memory): Add spaces, coding standard.
10653 (do_xfer_memory): Add missing line to trust-readonly
10654 code: check bfd SEC_READONLY flag for section.
10655
10656 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10657
10658 * PROBLEMS: Fix typo, 5.1->5.1.1.
10659
10660 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10661
10662 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10663 data symbols, since we search based on textlow and texthigh.
10664 (find_pc_sect_symtab): Likewise.
10665
10666 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10667
10668 * defs.h (vwarning): Declare.
10669 * utils.c (vwarning): New function.
10670 (warning): Call vwarning.
10671 (warning_begin): Delete function.
10672
10673 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10674 the warning message.
10675 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10676 warning_begin.
10677
10678 2002-01-30 Michael Snyder <msnyder@redhat.com>
10679
10680 * NEWS: Mention "set trust-readonly-sections" command.
10681 Mention generate-core-file command.
10682
10683 2002-01-15 Michael Snyder <msnyder@redhat.com>
10684
10685 * target.c: New command, "set trust-readonly-sections on".
10686 (do_xfer_memory): Honor the suggestion to trust readonly sections
10687 by reading them from the object file instead of from the target.
10688 (initialize_targets): Register command "set trust-readonly-sections".
10689
10690 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10691
10692 * parse.c (target_map_name_to_register): Simplify, search regs and
10693 pseudo-regs using a single loop.
10694
10695 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10696
10697 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10698
10699 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10700
10701 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10702 * config/i386/i386v42mp.mh: Add i387-nat.o .
10703 * i386v4-nat.c: Include i387-nat.h.
10704 (supply_fpregset): Use i387_supply_fsave.
10705 (fill_fpregset): Use i387_fill_fsave.
10706
10707 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10708
10709 * arm-tdep.c (arm_call_dummy_words): Define.
10710 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10711 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10712 (CALL_DUMMY_WORDS): Define.
10713 (arm_call_dummy_words): Declare.
10714 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10715 (arm_linux_call_dummy_words): Declare.
10716
10717 2002-01-30 Andreas Schwab <schwab@suse.de>
10718
10719 * m68klinux-nat.c: Fix last change to use regcache_collect
10720 instead of referencing registers[] directly.
10721
10722 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10723
10724 * parse.c (target_map_name_to_register): Delete code wrapped in
10725 #ifdef REGISTER_NAME_ALIAS_HOOK.
10726
10727 2002-01-28 Michael Snyder <msnyder@redhat.com>
10728
10729 * regcache.c (legacy_read_register_gen): Need to be able to
10730 read pseudo-register as well as real register.
10731 (legacy_write_register_gen): Ditto.
10732
10733 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10734
10735 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10736 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10737 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10738 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10739 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10740 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10741 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10742 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10743 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10744 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10745 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10746 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10747 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10748 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10749 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10750 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10751 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10752 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10753 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10754 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10755
10756 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10757
10758 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10759 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10760 (initialize_current_architecture): Update target_byte_order using
10761 information from BFD.
10762 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10763 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10764
10765 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10766
10767 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10768 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10769
10770 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10771 #ifdef INVALID_FLOAT.
10772 * infcmd.c (do_registers_info): Ditto.
10773 * values.c (unpack_double): Ditto. Add comment.
10774
10775 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10776 already commented out.
10777
10778 2002-01-26 Andreas Schwab <schwab@suse.de>
10779
10780 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10781 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10782 registers and add support for PTRACE_GETREGS.
10783
10784 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10785
10786 GDB 5.1.1 released from 5.1 branch.
10787 * NEWS: Add 5.1.1 news.
10788 * README: Sync with 5.1 branch.
10789
10790 2002-01-23 Fred Fish <fnf@redhat.com>
10791
10792 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10793 stabstring on initial malloc. Reallocing will copy it for us,
10794 if necessary.
10795
10796 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10797
10798 * Makefile.in (hpread_h): Delete.
10799 (HFILES_NO_SRCDIR): Remove hpread.h.
10800 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10801 (hpread.o): Update dependencies.
10802 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10803
10804 * hp-psymtab-read.c: Remove file.
10805 * hp-symtab-read.c: Remove file.
10806 * hpread.h: Remove file.
10807
10808 * hpread.c: Merge all contents of hp-psymtab-read.c,
10809 hp-symtab-read.c and hpread.h into this file, as it was prior to
10810 January 1999.
10811
10812 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10813 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10814 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10815 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10816
10817 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10818
10819 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10820 fill_gregset): Call gdbarch_tdep() just once, assign result to
10821 variable and use that, instead of calling the function several
10822 times.
10823
10824 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10825
10826 * configure.host: Accept sparcv9 as alias for sparc64.
10827 * configure.tgt: Likewise.
10828
10829 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10830
10831 * solib-aix5.c (build_so_list_from_mapfile)
10832 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10833 arguments is not reversed.
10834 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10835 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10836
10837 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10838
10839 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10840 modified version of obsolete sh_fetch_pseudo_register.
10841 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10842 (sh4_register_read): New function.
10843 (sh_pseudo_register_write): New function. Renamed and modified
10844 version of obsolete sh_store_pseudo_register.
10845 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10846 (sh4_register_write): New function.
10847 (sh_gdbarch_init): Remove setting of gdbarch function
10848 fetch_pseudo_register and store_pseudo_register. Remove setting of
10849 register_convert_to_raw, register_convert_to_virtual,
10850 register_convertible.
10851 (sh_sh4_register_convertible): Delete. No longer needed. All is
10852 taken care by architecture specific functions
10853 register_read/register_write.
10854 (sh_sh4_register_convert_to_virtual): Make static.
10855 (sh_sh4_register_convert_to_raw): Ditto.
10856
10857 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10858
10859 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10860 (floatformat_is_nan, floatformat_mantissa): Ditto.
10861
10862 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10863 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10864 builtin_type_ieee_double_little,
10865 builtin_type_ieee_double_littlebyte_bigword,
10866 builtin_type_m68881_ext, builtin_type_i960_ext,
10867 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10868 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10869 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10870 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10871
10872 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10873
10874 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10875 parameter. Set frameless flag if it exists and depended of
10876 whether the scanned function is frameless or not.
10877 (xstormy16_skip_prologue): If function is frameless, return
10878 result of xstormy16_scan_prologue().
10879 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10880 call.
10881
10882 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10883
10884 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10885 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10886 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10887 sh_sh4_register_byte, sh_sh4_register_raw_size,
10888 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10889 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10890 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10891 sh_store_pseudo_register, sh_do_pseudo_register): Call
10892 gdbarch_tdep() just once, assign result to variable and use that,
10893 instead of calling the function several times.
10894
10895 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10896
10897 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10898 macros instead of LAST_FPU_CTRL_REGNUM.
10899 (store_register): Likewise.
10900
10901 2002-01-21 Jim Blandy <jimb@redhat.com>
10902
10903 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10904 is up-to-date before running the program, not just when a program
10905 exits.
10906
10907 2002-01-21 Fred Fish <fnf@redhat.com>
10908
10909 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10910 when we have found all instructions we are looking for.
10911
10912 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10913
10914 * arm-tdep.c (arm_register_name): New function.
10915 (arm_registers_names): Make static.
10916 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10917 (arm_register_name): Declare.
10918 (REGISTER_NAME): Use it.
10919
10920 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10921 Kevin Buettner <kevinb@redhat.com>
10922
10923 Convert arm targets to new FRAME interface.
10924 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10925 (arm_frame_find_save_regs): Delete.
10926 (arm_frame_init_saved_regs): New.
10927 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10928 Allocate extra_info as required. Convert all uses of fsr.regs
10929 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10930 to use extra_info.
10931 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10932 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10933 (check_prologue_cache, save_prologue_cache): Likewise.
10934 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10935 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10936 (FRAME_FIND_SAVED_REGS): Delete.
10937 (arm_frame_find_saved_regs): Delete prototype.
10938 (arm_frame_init_saved_regs): New prototype.
10939 (FRAME_INIT_SAVED_REGS): Define.
10940
10941 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10942
10943 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10944
10945 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10946
10947 From Jeff Law <law@redhat.com>:
10948 * infttrace.c: Include <sys/pstat.h>.
10949 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10950 exec file if the ttrace equivalent fails.
10951
10952 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10953
10954 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10955 (closeLogFile): Ditto.
10956
10957 2002-01-20 Michael Chastain <mec@shout.net>
10958
10959 * top.c (print_gdb_version): Bump copyright year to 2002.
10960
10961 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10962
10963 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10964 Zannoni and Eli Zaretskii.
10965
10966 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10967
10968 * buildsym.c: Update copyright years.
10969 * c-typeprint.c: Likewise.
10970 * dwarf2read.c: Likewise.
10971 * f-typeprint.c: Likewise.
10972 * gdbtypes.c: Likewise.
10973 * gdbtypes.h: Likewise.
10974 * hp-symtab-read.c: Likewise.
10975 * hpread.c: Likewise.
10976 * mdebugread.c: Likewise.
10977 * p-typeprint.c: Likewise.
10978
10979 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10980
10981 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10982 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10983 byte-order selectable.
10984 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10985 * arch-utils.c: Ditto.
10986 (set_endian): Ditto.
10987 (set_endian_from_file): Ditto.
10988 * gdbserver/low-sim.c (create_inferior): Ditto.
10989 * gdbarch.sh: Ditto.
10990 * gdbarch.h: Re-generate.
10991 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10992 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10993 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10994 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10995 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10996 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10997 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10998 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10999 macro definition.
11000 * config/mips/tm-wince.h: Remove #undef of macro
11001 TARGET_BYTE_ORDER_SELECTABLE.
11002 * config/sh/tm-wince.h: Ditto.
11003
11004 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11005
11006 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11007 member function fields. Add accessor macro
11008 TYPE_FN_FIELD_ARTIFICIAL.
11009 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11010 * c-typeprint.c (c_type_print_base): Skip artificial member
11011 functions.
11012
11013 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11014
11015 * f-typeprint.c: Delete unused function f_type_print_args.
11016 * p-typeprint.c: Delete unused function pascal_type_print_args.
11017
11018 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11019
11020 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11021 comment. Add ``artificial'' to ``union field_location''.
11022
11023 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11024
11025 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11026 * mdebugread.c (parse_symbol): Likewise.
11027 * stabsread.c (define_symbol): Likewise.
11028 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11029 initializing TYPE_FIELD_BITPOS to n (obsolete).
11030 (hpread_doc_function_type): Likewise.
11031 * hpread.c (hpread_function_type): Likewise.
11032
11033 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11034
11035 * configure.in (host_makefile_frag): Only require a host makefile
11036 fragment when a native build.
11037 * configure: Re-generate.
11038
11039 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11040
11041 * doublest.h (floatformat_from_type): Declare.
11042 * doublest.c (floatformat_from_type): New function.
11043 (convert_typed_floating): Use.
11044
11045 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11046 call to function floatformat_from_type.
11047
11048 * gdbarch.sh (IEEE_FLOAT): Delete.
11049 * gdbarch.h, gdbarch.c: Re-generate.
11050 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11051 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11052 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11053 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11054 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11055 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11056 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11057 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11058 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11059 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11060 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11061 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11062
11063 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11064 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11065 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11066 * sh-tdep.c (sh_gdbarch_init): Ditto.
11067 * mips-tdep.c (mips_gdbarch_init): Ditto.
11068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11069 * cris-tdep.c (cris_gdbarch_init): Ditto.
11070
11071 2002-01-20 Jiri Smid <smid@suse.cz>
11072
11073 * configure.host, configure.tgt: Support x86-64.
11074 * NEWS: Note new target x86-64.
11075
11076 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11077 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11078 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11079 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11080 x86-64-linux-nat.o): Fix dependencies.
11081
11082 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11083
11084 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11085 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11086 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11087 * config/sparc/xm-sun4os4.h: Delete file.
11088 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11089
11090 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11091
11092 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11093 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11094 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11095 * config/i386/i386lynx.mh (XM_FILE): Delete.
11096 * config/rs6000/xm-rs6000ly.h: Delete file.
11097 * config/sparc/xm-sparclynx.h: Delete file.
11098 * config/m68k/xm-m68klynx.h: Delete file.
11099 * config/i386/xm-i386lynx.h: Delete file.
11100 * config/xm-lynx.h: Delete file.
11101 * config/djgpp/fnchange.lst: Update.
11102
11103 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11104
11105 * alpha-tdep.c (alpha_register_byte): New function.
11106 (alpha_register_raw_size): Ditto.
11107 (alpha_register_virtual_size): Ditto.
11108 (alpha_skip_prologue_internal): Renamed from
11109 alpha_skip_prologue.
11110 (alpha_skip_prologue): New version that calls
11111 alpha_skip_prologue_internal.
11112 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11113 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11114 second argument from alpha_skip_prologue.
11115 (REGISTER_BYTE): Use alpha_register_byte.
11116 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11117 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11118 (FRAMELESS_FUNCTION_INVOCATION): Use
11119 generic_frameless_function_invocation_not.
11120 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11121 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11122
11123 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11124
11125 * config/mips/xm-news-mips.h: Delete file.
11126 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11127
11128 * config/m88k/xm-m88k.h: Delete file.
11129 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11130 * config/m88k/xm-delta88v4.h: Ditto.
11131 * config/m88k/xm-delta88.h: Ditto.
11132
11133 * config/alpha/xm-fbsd.h: Delete file.
11134 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11135
11136 * config/sparc/xm-sparc.h: Delete file.
11137 * Makefile.in (xm-sun4os4.h): Delete dependency.
11138 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11139 * config/sparc/xm-sun4os4.h: Ditto.
11140 * config/sparc/xm-linux.h: Ditto.
11141
11142 * config/i386/xm-windows.h: Delete file.
11143
11144 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11145
11146 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11147 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11148
11149 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11150
11151 * alpha-tdep.c (alpha_call_dummy_words): New.
11152 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11153 (CALL_DUMMY_P): Define.
11154 (CALL_DUMMY_WORDS): Define.
11155 (SIZEOF_CALL_DUMMY_WORDS): Define.
11156
11157 2002-01-19 Per Bothner <per@bothner.com>
11158
11159 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11160 isn't NULL, which can happen with some gcj-3.x-produced code.
11161
11162 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11163
11164 * alpha-tdep.c (alpha_register_virtual_type): New function.
11165 (alpha_init_frame_pc_first): Ditto.
11166 (alpha_fix_call_dummy): Ditto.
11167 (alpha_store_struct_return): Ditto.
11168 (alpha_extract_struct_value_address): Ditto.
11169 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11170 alpha_register_virtual_type.
11171 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11172 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11173 alpha_extract_struct_value_address.
11174 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11175 (INIT_FRAME_PC): Use init_frame_pc_noop.
11176 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11177
11178 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11179
11180 * i386gnu-nat.c: Include "i386-tdep.h".
11181 (fetch_fpregs): Simplify code dealing with uninitialized floating
11182 point states such that it doesn't require FP7_REGNUM.
11183
11184 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11185
11186 * alpha-tdep.c (frame_extra_info): New.
11187 (alpha_find_saved_regs): Make static. Use
11188 frame->extra_info.
11189 (alpha_frame_init_saved_regs): New function.
11190 (alpha_frame_saved_pc): Use frame->extra_info.
11191 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11192 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11193 (init_extra_frame_info): Rename to...
11194 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11195 (alpha_print_extra_frame_info): New function.
11196 (alpha_frame_locals_address): Ditto.
11197 (alpha_frame_args_address): Ditto.
11198 (alpha_pop_frame): Use frame->extra_info.
11199 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11200 alpha_frame_args_address.
11201 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11202 (alpha_find_saved_regs): Remove prototype.
11203 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11204 (EXTRA_FRAME_INFO): Remove.
11205 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11206 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11207
11208 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11209
11210 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11211 (alpha_cannot_fetch_register): Ditto.
11212 (alpha_cannot_store_register): Ditto.
11213 (alpha_register_convertible): Ditto.
11214 (alpha_use_struct_convention): Ditto.
11215 * config/alpha/tm-alpha.h: Update copyright years.
11216 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11217 (INNER_THAN): Use core_addr_lessthan.
11218 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11219 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11220 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11221 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11222 (FRAME_CHAIN): Remove unnecessary cast.
11223
11224 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11225
11226 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11227 obsolete.
11228
11229 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11230
11231 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11232 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11233 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11234 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11235 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11236 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11237 * x86-64-linux-nat.c: Ditto.
11238
11239 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11240
11241 * alpha-tdep.c (alpha_register_name): New function.
11242 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11243 (REGISTER_NAME): Define.
11244
11245 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11246
11247 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11248
11249 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11250
11251 * alpha-tdep.c: Update copyright years.
11252 (alpha_next_pc): New function.
11253 (alpha_software_single_step): Ditto.
11254 * config/alpha/tm-alpha.h: Add prototype for
11255 alpha_software_single_step.
11256
11257 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11258
11259 * alphabsd-nat.c: Update copyright years.
11260 (fill_gregset): Use regcache_collect.
11261 (fill_fpregset): Likewise.
11262 (fetch_inferior_registers): Only fetch integer registers
11263 if requested to do so.
11264 (store_inferior_registers): Only store integer registers
11265 if requested to do so.
11266
11267 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11268
11269 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11270 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11271 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11272 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11273 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11274 * config/arm/linux.mh (XDEPFILES): Delete.
11275 * config/arm/nbsd.mh (XDEPFILES): Delete.
11276 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11277 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11278 * config/i386/i386m3.mh (XDEPFILES): Delete.
11279 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11280 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11281 * config/i386/fbsd.mh (XDEPFILES): Delete.
11282 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11283 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11284 * config/i386/i386v4.mh (XDEPFILES): Delete.
11285 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11286 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11287 * config/i386/i386aix.mh (XDEPFILES): Delete.
11288 * config/i386/go32.mh (XDEPFILES): Delete.
11289 * config/i386/cygwin.mh (XDEPFILES): Delete.
11290 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11291 * config/i386/i386mach.mh (XDEPFILES): Delete.
11292 * config/i386/i386v32.mh (XDEPFILES): Delete.
11293 * config/i386/linux.mh (XDEPFILES): Delete.
11294 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11295 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11296 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11297 * config/i386/i386sco.mh (XDEPFILES): Delete.
11298 * config/i386/i386v.mh (XDEPFILES): Delete.
11299 * config/i386/nbsd.mh (XDEPFILES): Delete.
11300 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11301 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11302 * config/i386/symmetry.mh (XDEPFILES): Delete.
11303 * config/i386/obsd.mh (XDEPFILES): Delete.
11304 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11305 * config/ia64/linux.mh (XDEPFILES): Delete.
11306 * config/ia64/aix.mh (XDEPFILES): Delete.
11307 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11308 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11309 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11310 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11311 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11312 * config/m68k/linux.mh (XDEPFILES): Delete.
11313 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11314 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11315 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11316 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11317 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11318 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11319 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11320 * config/m88k/delta88.mh (XDEPFILES): Delete.
11321 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11322 * config/m88k/m88k.mh (XDEPFILES): Delete.
11323 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11324 * config/mips/linux.mh (XDEPFILES): Delete.
11325 * config/mips/irix6.mh (XDEPFILES): Delete.
11326 * config/mips/irix5.mh (XDEPFILES): Delete.
11327 * config/mips/irix4.mh (XDEPFILES): Delete.
11328 * config/mips/irix3.mh (XDEPFILES): Delete.
11329 * config/mips/decstation.mh (XDEPFILES): Delete.
11330 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11331 (NATDEPFILES): Move core-aout.o to here.
11332 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11333 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11334 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11335 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11336 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11337 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11338 * config/pa/hpux11.mh (XDEPFILES): Delete.
11339 * config/powerpc/aix.mh (XDEPFILES): Delete.
11340 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11341 * config/powerpc/linux.mh (XDEPFILES): Delete.
11342 * config/romp/rtbsd.mh: Rename XDEPFILES.
11343 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11344 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11345 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11346 * config/s390/s390.mh (XDEPFILES): Delete.
11347 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11348 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11349 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11350 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11351 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11352 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11353 * config/sparc/linux.mh (XDEPFILES): Delete.
11354 * config/vax/vaxult.mh (XDEPFILES): Delete.
11355 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11356 * Makefile.in (DEPFILES): Remove XDEPFILES.
11357
11358 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11359
11360 * utils.c (internal_verror): Fix comments, default is yes not no.
11361 Update queries to match. Default to quit and dump core.
11362
11363 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11364
11365 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11366 copyright.
11367 * defs.h, event-top.c, gdbcmd.h: Ditto.
11368 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11369 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11370 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11371 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11372 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11373 * mi/mi-main.c:Ditto.
11374
11375 * stack.c, symfile.c: Update copyright.
11376
11377 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11378
11379 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11380 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11381 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11382 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11383
11384 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11385
11386 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11387 * gdbserver/low-lynx.c (myattach): Likewise.
11388 * gdbserver/low-nbsd.c (myattach): Likewise.
11389 * gdbserver/low-sim.c (myattach): Likewise.
11390 * gdbserver/low-sparc.c (myattach): Likewise.
11391 * gdbserver/low-sun3.c (myattach): Likewise.
11392
11393 * gdbserver/low-linux.c (myattach): New function.
11394
11395 * gdbserver/server.c (attach_inferior): New function.
11396 (main): Handle "--attach".
11397
11398 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11399
11400 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11401 maintainer.
11402
11403 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11404
11405 * c-typeprint.c (is_type_conversion_operator): Add additional
11406 check for non-conversion operators.
11407
11408 2002-01-15 Michael Snyder <msnyder@redhat.com>
11409
11410 * linux-proc.c: Add "info proc" command, a la procfs.c.
11411 (read_mapping): New function, abstract and re-use code.
11412 (linux_find_memory_regions): Use new func read_mapping.
11413 (linux_info_proc_cmd): New function, implement "info proc".
11414 (_initialize_linux_proc): Add new command "info proc".
11415
11416 2002-01-15 Michael Snyder <msnyder@redhat.com>
11417
11418 * symfile.c (generic_load): Use bfd_map_over_sections method
11419 instead of manipulating bfd structure members directly.
11420 (add_section_size_callback): New function, bfd sections callback
11421 used by generic_load.
11422 (load_sections_callback): New function, bfd sections callback
11423 used by generic_load.
11424
11425 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11426
11427 [Based on work by Jim Blandy]
11428 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11429 (builtin_type_vec128): Export.
11430 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11431 types.
11432 (builtin_type_vec128): New builtin type for 128 bit vector
11433 registers.
11434 (build_gdbtypes): Initialize builtin_type_v16qi and
11435 builtin_type_v8hi. Create the vec128 register builtin type
11436 structure.
11437 (build_builtin_type_vec128): New function.
11438 (_initialize_gdbtypes): Register builtin_type_v16qi and
11439 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11440 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11441 AltiVec register to new builtin type.
11442
11443 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11444
11445 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11446 to make_cv_type.
11447
11448 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11449
11450 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11451 CLEAN_UP_REGISTER_VALUE.
11452 * regcache.c (supply_register): Update only call.
11453
11454 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11455
11456 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11457 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11458 a29k-*-vxworks* targets as obsolete.
11459
11460 2002-01-14 Michael Snyder <msnyder@redhat.com>
11461
11462 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11463 until we can resolve portability issues.
11464 * gregset.h: Remove references to fpxregs.
11465 * gcore.c (gcore_command): Initialize note_sec to NULL.
11466
11467 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11468
11469 * signals.c (target_signal_to_name): Rewrite. Only use
11470 signals[].name when in bounds and non-NULL.
11471
11472 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11473
11474 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11475 * signals.c (target_signal_to_name): Verify that SIG is within the
11476 bounds of the signals array.
11477
11478 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11479
11480 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11481
11482 2002-01-13 Keith Seitz <keiths@redhat.com>
11483
11484 * stack.c (print_frame_info_base): Print the frame's pc
11485 only if when print_frame_info_listing_hook is not defined.
11486
11487 2002-01-13 Keith Seitz <keiths@redhat.com>
11488
11489 * varobj.c (varobj_set_value): Make sure that there were no
11490 errors evaluating the object before attempting to set its
11491 value.
11492 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11493 so this offset adjustment is no longer necessary.
11494 (create_child): Don't set the error flag if the child is
11495 a CPLUS_FAKE_CHILD.
11496 (value_of_child): If value_fetch_lazy fails, return NULL
11497 so that callers will be notified that an error occurred.
11498 (c_value_of_variable): Delay check of variable's validity
11499 until later. We actually want all structs and unions to have
11500 the value "{...}".
11501 Do not return "???" for variables which could not be evaluated.
11502 This error condition must be returned to the caller so that it
11503 can get the error condition from gdb.
11504 (cplus_name_of_child): Adjust index for vptr before figuring
11505 out the name of the child.
11506 (cplus_value_of_child): If a child's (real) parent is not valid,
11507 don't even bother trying to give a value for it. Just return
11508 an error. Change all instances in this function.
11509 (cplus_type_of_child): If our parent is one of the "fake"
11510 parents, we need to get at the type of the real parent, and
11511 derive the child's true type using this information.
11512
11513 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11514
11515 From 2002-01-09 John Marshall <johnm@falch.net>:
11516 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11517 sources.redhat.com, and tweak some related URLs which had
11518 suffered from linkrot.
11519
11520 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11521
11522 From Jeff law:
11523 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11524 structures passed in registers.
11525
11526 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11527
11528 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11529 white space which prevented compilation. Reported by DSK
11530 <dsk@student.unsw.edu.au>.
11531
11532 2002-01-11 Michael Snyder <msnyder@redhat.com>
11533
11534 * symfile.c (build_section_addr_info_from_section_tab):
11535 Use bfd access method instead of manipulating bfd directly.
11536 (syms_from_objfile): Ditto.
11537 (simple_overlay_update_1): Ditto.
11538 (simple_overlay_update): Ditto.
11539 (generic_load): Ditto.
11540 (overlay_unmapped_address): FIXME comment, bfd access methods.
11541 (sections_overlap): FIXME comment, bfd access methods.
11542 (pc_in_mapped_range): FIXME comment, bfd access methods.
11543 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11544 (section_is_mapped): FIXME comment, bfd access methods.
11545 (section_is_overlay): FIXME comment, bfd access methods.
11546
11547 * symfile.c (generic_load): Whitespace and long line cleanups.
11548 Remove duplicate variable, change several local variables to
11549 more appropriate data types.
11550 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11551
11552 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11553
11554 From Peter Schauer:
11555 * language.c (longest_local_hex_string_custom): Use phex_nz to
11556 convert NUM to a hex string.
11557
11558 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11559
11560 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11561 the function.
11562 Update Copyright year.
11563
11564 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11565
11566 * language.c (longest_raw_hex_string): Delete unused function.
11567
11568 2002-01-11 Petr Sorfa <petrs@caldera.com>
11569
11570 * MAINTAINERS (write-after-approval): Add myself.
11571 * dwarf2read.c (read_tag_string_type): Handling of
11572 DW_AT_byte_size.
11573 (read_tag_string_type): FORTRAN fix to prevent propagation of
11574 first string size.
11575 (set_cu_language): Handling of DW_LANG_Fortran95
11576
11577 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11578
11579 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11580 GETPID(inferior_ptid).
11581 (store_inferior_registers): Likewise.
11582
11583 2002-01-10 Jason Merrill <jason@redhat.com>
11584
11585 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11586 Fix DW_OP_minus.
11587
11588 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11589
11590 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11591 and bfd/elf32-sh-nbsd.c.
11592
11593 2002-01-10 Michael Snyder <msnyder@redhat.com>
11594
11595 * NEWS: Mention --pid and corefile/proc-id behavior change.
11596
11597 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11598 * gcore.c: Include cli/cli-decode.h instead of command.h.
11599
11600 * main.c (captured_main): Add new command line option "--pid".
11601 If the second command line argument (following the symbol-file)
11602 begins with a digit, try to attach to it before trying to open
11603 it as a corefile.
11604 (print_gdb_help): Document the "--pid" argument.
11605
11606 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11607
11608 * completer.c (command_completer): New function.
11609
11610 * completer.h <command_completer>: Add prototype.
11611
11612 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11613 completer for the "help" command.
11614
11615 2002-01-09 Jason Merrill <jason@redhat.com>
11616
11617 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11618
11619 2002-01-09 Michael Snyder <msnyder@redhat.com>
11620
11621 * i386-linux-nat.c (fill_fpxregset): Make global.
11622 (store_fpxregset): Ditto.
11623
11624 * gregset.h (gdb_fpxregset_t): Define.
11625 (supply_fpxregset): Prototype.
11626 (fill_fpxregset): Prototype.
11627
11628 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11629
11630 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11631
11632 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11633 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11634 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11635
11636 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11637
11638 * MAINTAINERS: Update target maintainer rules so that any
11639 Maintainer can approve a tested patch for a maintenance-only
11640 target.
11641
11642 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11643
11644 * MAINTAINERS (write-after-approval): Add myself.
11645
11646 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11647 IN_SIGTRAMP.
11648
11649 2002-01-08 Michael Snyder <msnyder@redhat.com>
11650
11651 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11652 real name of the executable, rather than the /proc name.
11653
11654 2002-01-03 Michael Snyder <msnyder@redhat.com>
11655
11656 Implement a "generate-core-file" command in gdb, save target state.
11657 * gcore.c: New file. Implement new command 'generate-core-file'.
11658 Save a corefile image of the current state of the inferior.
11659 * linux-proc.c: Add linux-specific code for saving corefiles.
11660 * target.h (struct target_ops): Add new target vectors for saving
11661 corefiles; to_find_memory_regions and to_make_corefile_notes.
11662 (target_find_memory_regions): New macro.
11663 (target_make_corefile_notes): New macro.
11664 * target.c (update_current_target): Inherit new target methods.
11665 (dummy_find_memory_regions): New place-holder method.
11666 (dummy_make_corefile_notes): New place-holder method.
11667 (init_dummy_target): Initialize new dummy target vectors.
11668 * exec.c (exec_set_find_memory_regions): New function.
11669 Allow the exec_ops vector for memory regions to be taken over.
11670 (exec_make_note_section): New function, target vector method.
11671 * defs.h (exec_set_find_memory_regions): Export prototype.
11672 * procfs.c (proc_find_memory_regions): New function, corefile method.
11673 (procfs_make_note_section): New function, corefile method.
11674 (init_procfs_ops): Set new target vector pointers.
11675 (find_memory_regions_callback): New function.
11676 (procfs_do_thread_registers): New function.
11677 (procfs_corefile_thread_callback): New function.
11678 * sol-thread.c (sol_find_memory_regions): New function.
11679 (sol_make_note_section): New function.
11680 (init_sol_thread_ops): Initialize new target vectors.
11681 * inftarg.c (inftarg_set_find_memory_regions): New function.
11682 Allow to_find_memory_regions vector to be taken over.
11683 (inftarg_set_make_corefile_notes): New function.
11684 Allow to_make_corefile_notes vector to be taken over.
11685 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11686 interface layer if not target_has_execution (may be a corefile).
11687 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11688 * config/sparc/sun4sol2.mh: Ditto.
11689 * config/alpha/alpha-linux.mh: Ditto.
11690 * config/arm/linux.mh: Ditto.
11691 * config/i386/x86-64linux.mh: Ditto.
11692 * config/ia64/linux.mh: Ditto.
11693 * config/m68k/linux.mh: Ditto.
11694 * config/mips/linux.mh: Ditto.
11695 * config/powerpc/linux.mh: Ditto.
11696 * config/sparc/linux.mh: Ditto.
11697
11698 2002-01-07 Michael Snyder <msnyder@redhat.com>
11699
11700 * arm-linux-nat.c: Remove references to regcache.c internal data
11701 (registers[] and register_valid[]).
11702
11703 2002-01-07 Michael Snyder <msnyder@redhat.com>
11704
11705 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11706 so that attaching to a pid will automatically read the process's
11707 symbol file and shlibs.
11708 * Makefile.in: Add rule for linux-proc.o.
11709 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11710 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11711 * config/arm/linux.mh: Ditto.
11712 * config/i386/linux.mh: Ditto.
11713 * config/i386/x86-64linux.mh: Ditto.
11714 * config/ia64/linux.mh: Ditto.
11715 * config/m68k/linux.mh: Ditto.
11716 * config/mips/linux.mh: Ditto.
11717 * config/powerpc/linux.mh: Ditto.
11718 * config/sparc/linux.mh: Ditto.
11719
11720 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11721
11722 * win32-nat.c: Add i386-tdep.h dependency.
11723
11724 2002-01-07 Michael Snyder <msnyder@redhat.com>
11725
11726 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11727 instead of bfd_get_arch_size. Don't bail out just because
11728 there's no exec_bfd.
11729
11730 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11731 * p-valprint.c (pascal_object_print_value): Ditto.
11732 * somread.c (som_symtab_read): Ditto.
11733 * symfile.c (simple_free_overlay_region_table): Ditto.
11734 * valops.c (value_assign): Ditto.
11735
11736 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11737 use tilde_expand and strerror for opening save-tracepoints file.
11738
11739 * thread-db.c (thread_db_new_objfile): Indendation fix.
11740
11741 * infptrace.c (GDB_MAX_ALLOCA): New define.
11742 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11743 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11744 can be overridden with whatever value is appropriate to the host).
11745 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11746 alloca to allocate potentially large buffer.
11747 * rs6000-nat.c (child_xfer_memory): Ditto.
11748 * symm-nat.c (child_xfer_memory): Ditto.
11749 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11750
11751 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11752
11753 From Nick Clifton <nickc@redhat.com>
11754 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11755
11756 2002-01-07 Michael Snyder <msnyder@redhat.com>
11757
11758 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11759 Don't use exec_bfd if it's NULL.
11760
11761 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11762
11763 * valops.c (value_arg_coerce): Fix formatting.
11764
11765 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11766
11767 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11768 * gnu-nat.c: Ditto.
11769
11770 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11771
11772 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11773 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11774 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11775 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11776 z8k-coff have not been multi-arched. Update z8k-coff build
11777 status.
11778
11779 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11780
11781 * MAINTAINERS: Mark a29k target as obsolete.
11782 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11783 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11784 comments.
11785 * NEWS: Note that a29k targets are obsolete.
11786 * a29k-tdep.c: Mark as obsolete.
11787 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11788 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11789 a29k-*-vxworks* targets as obsolete.
11790 * remote-adapt.c: Obsolete.
11791 * remote-eb.c: Obsolete.
11792 * remote-mm.c: Obsolete.
11793 * remote-udi.c: Obsolete.
11794 * config/a29k/a29k-udi.mt: Obsolete.
11795 * config/a29k/a29k.mt: Obsolete.
11796 * config/a29k/tm-a29k.h: Obsolete.
11797 * config/a29k/tm-vx29k.h: Obsolete.
11798 * config/a29k/vx29k.mt: Obsolete.
11799
11800 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11801
11802 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11803 with BFD_ENDIAN_BIG.
11804
11805 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11806
11807 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11808 * configure, config.in: Re-generate.
11809 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11810 * defs.h: Do not include <endian.h>.
11811
11812 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11813
11814 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11815 * config.in: Regenerate.
11816 * configure.in: Update copyright years.
11817 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11818 * configure: Regenerate.
11819 * i386bsd-nat.c: Update copyright years.
11820 (fill_gregset): Use regcache_collect.
11821 (fetch_inferior_registers): Only fetch integer registers
11822 if requested to do so. Add support for XMM registers
11823 using PT_GETXMMREGS.
11824 (store_inferior_registers): Only store integer registers
11825 if requested to do so. Add support for XMM registers
11826 using PT_SETXMMREGS.
11827 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11828 (store_inferior_registers): Remove.
11829 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11830 (fetch_elfcore_registers): New function.
11831 (i386nbsd_elfcore_fns): New.
11832 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11833 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11834 i386bsd-nat.o.
11835 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11836 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11837 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11838 * config/i386/tm-nbsd.h: Update copyright years.
11839 (HAVE_SSE_REGS): Define.
11840 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11841 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11842 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11843 (SIGCONTEXT_PC_OFFSET): Remove.
11844 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11845
11846 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11847
11848 * configure.tgt: Remove powerpc-*-macos* target.
11849 * config/m68k/xm-mpw.h: Delete file.
11850 * config/xm-mpw.h: Delete file.
11851 * ser-mac.c: Delete file.
11852 * mpw-make.sed: Delete file.
11853 * mpw-config.in: Delete file.
11854 * mac-xdep.c: Delete file.
11855 * mac-gdb.r: Delete file.
11856 * mac-defs.h: Delete file.
11857 * mac-nat.c: Delete file.
11858 * config/powerpc/macos.mh: Delete file.
11859 * config/powerpc/macos.mt: Delete file.
11860 * config/powerpc/nm-macos.h: Delete file.
11861 * config/powerpc/tm-macos.h: Delete file.
11862 * source.c (openp, open_source_file): Remove obsolete code.
11863 * top.c (gdb_readline): Ditto.
11864 * utils.c (query): Ditto.
11865 * event-top.c (display_gdb_prompt): Ditto.
11866 * Makefile.in (ser-mac.o): Delete obsolete target.
11867 * NEWS: Update.
11868
11869 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11870
11871 * defs.h (BIG_ENDIAN): Delete macro definition.
11872 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11873 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11874 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11875 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11876 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11877 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11878 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11879 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11880 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11881 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11882 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11883 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11884 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11885 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11886 * gdbarch.c: Re-generate.
11887
11888 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11889
11890 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11891 for core files.
11892
11893 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11894
11895 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11896
11897 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11898
11899 * value.h (value_ptr): Delete typedef.
11900
11901 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11902
11903 * i386nbsd-nat.c: Update copyright years.
11904 Include i386-tdep.h.
11905
11906 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11907
11908 * stabsread.c: Update copyright years.
11909
11910 From Debashis Mahata <debashis.mahata@wipro.com>:
11911 (read_struct_fields): Deal with Sun C compiler erroneous stab
11912 output for structs and unions.
11913 Fix PR gdb/269.
11914
11915 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11916
11917 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11918 prototype.
11919
11920 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11921
11922 * cp-abi.c: Fix whitespace.
11923 (baseclass_offset): New wrapper function.
11924 * cp-abi.h (baseclass_offset): Add prototype.
11925 (struct cp_abi_ops): Add baseclass_offset pointer.
11926
11927 * valops.c (vb_match): Move to...
11928 * gnu-v2-abi.c (vb_match): here.
11929 * valops.c (baseclass_offset): Move to...
11930 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11931
11932 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11933
11934 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11935 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11936 * hpacc-abi.c (init_hpacc_ops): Likewise.
11937
11938 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11939
11940 * valops.c (find_overload_match): Accept obj as a
11941 reference parameter. Update it before returning.
11942 * value.h (find_overload_match): Update prototype.
11943 * eval.c (evaluate_subexp_standard): Pass object to
11944 find_overload_match by reference.
11945
11946 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11947
11948 * valarith.c: Replace value_ptr with struct value pointer. Remove
11949 register attribute from value declarations.
11950 * valops.c: Ditto.
11951 * value.h: Ditto.
11952 * scm-lang.c (scm_lookup_name): Ditto.
11953
11954 2002-01-03 Michael Snyder <msnyder@redhat.com>
11955
11956 Abstract the functionality of iterating over mapped memory
11957 regions into a general purpose iterator function.
11958 * procfs.c (iterate_over_mappings): New function, general purpose
11959 iterator for memory sections.
11960 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11961 (solib_mappings_callback): New function, callback for above.
11962 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11963 (info_mappings_callback): New function, callback for above.
11964
11965 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11966
11967 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11968
11969 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11970 * i386-tdep.c: Include "elf-bfd.h".
11971 (process_note_abi_tag_sections): New function.
11972 (i386_gdbarch_init): Add code to recognize various OS/ABI
11973 combinations.
11974
11975 * maint.c (_initialize_maint_cmds): Add missing \ in
11976 string-literal.
11977
11978 For older changes see ChangeLog-2001
11979 \f
11980 Local Variables:
11981 mode: change-log
11982 left-margin: 8
11983 fill-column: 74
11984 version-control: never
11985 End: