]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
* i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2
3 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
4 DBREG_DRX macro to acces debug registers.
5
6 * Makefile.in (i386obsd-tdep.o): New target.
7
8 * solib-sunos.c: Include "bcache.h" and "regcache.h".
9 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
10
11 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
12 * config/i386/obsd.mt: New file.
13 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
14 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
15 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
16 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
17 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
18 * i386obsd-tdep.c: New file.
19
20 2002-10-19 Adam Fedor <fedor@gnu.org>
21
22 * objc-exp.y (name_not_typename): Fix invalid comment.
23
24 2002-10-20 Mark Kettenis <kettenis@gnu.org>
25
26 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
27 to allocate partial syms and macro byte caches.
28
29 2002-10-18 David Carlton <carlton@math.stanford.edu>
30
31 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
32
33 2002-10-18 Adam Fedor <fedor@gnu.org>
34
35 * stabsread.c (find_name_end): New function.
36 (define_symbol): Use it.
37
38 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
39
40 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
41 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
42 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
43 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
44
45 2002-10-17 David Carlton <carlton@math.stanford.edu>
46
47 * symfile.h: Add opaque declaration for struct obstack.
48 Declare obsavestring to take a const char *.
49 * symfile.c (obsavestring): Make first argument a const char *.
50
51 2002-10-16 Adam Fedor <fedor@gnu.org>
52
53 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
54 names when matching breakpoints in current file.
55
56 2002-10-16 Kevin Buettner <kevinb@redhat.com>
57
58 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
59 (read_tag_pointer_type): Add address class support.
60 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
61 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
62 New methods.
63 * gdbarch.h, gdbarch.c: Regenerate.
64 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
65 (make_type_with_address_space, recursive_type_dump): Add address
66 class support.
67 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
68 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
69 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
70
71 2002-10-16 Klee Dienes <kdienes@apple.com>
72
73 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
74 to get the last character of a char[] buffer, not
75 name[sizeof(vptr_name)-1].
76
77 2002-10-14 Adam Fedor <fedor@gnu.org>
78
79 * symtab.h: New objc_specific struct.
80 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
81 (SYMBOL_DEMANGLED_NAME): Likewise.
82
83 2002-10-14 Adam Fedor <fedor@gnu.org>
84
85 * symfile.c (init_filename_language_table): Add ObjC file extension.
86
87 2002-10-14 Adam Fedor <fedor@gnu.org>
88
89 * utils.c (puts_filtered_tabular): New function.
90 (fprintf_symbol_filtered): Get ObjC demangled name.
91 * defs.h (puts_filtered_tabular): Declared.
92
93 2002-10-14 Kevin Buettner <kevinb@redhat.com>
94
95 * c-lang.h (c_type_print_varspec_prefix): Delete.
96 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
97 ``need_post_space'' parameter. Adjust all callers.
98
99 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
100
101 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
102 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
103 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
104 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
105
106 2002-10-13 Adam Fedor <fedor@gnu.org>
107
108 * source.c (print_source_lines): Update comments.
109
110 2002-10-13 Adam Fedor <fedor@gnu.org>
111
112 * valops.c (value_of_local): New function.
113 (value_of_this): Use it.
114 * value.h (value_of_local): Declared.
115
116 2002-10-13 Adam Fedor <fedor@gnu.org>
117
118 * parse.c: (length_of_subexp, prefixify_subexp): Handle
119 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
120
121 2002-10-12 Adam Fedor <fedor@gnu.org>
122
123 * language.c (binop_result_type): Add language_objc to case.
124 (integral_type): Likewise.
125 (character_type): Likewise.
126 (string_type): Likewise.
127 (boolean_type): Likewise.
128 (structured_type): Likewise.
129 (binop_type_check): Likewise.
130
131 2002-10-11 Adam Fedor <fedor@gnu.org>
132
133 * printcmd.c (address_info): Print 'self' for ObjC.
134
135 2002-10-11 Adam Fedor <fedor@gnu.org>
136
137 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
138 OP_SELF.
139
140 2002-10-11 Adam Fedor <fedor@gnu.org>
141
142 * language.h (CAST_IS_CONVERSION): Add language_objc.
143
144 2002-10-11 Adam Fedor <fedor@gnu.org>
145
146 * defs.h (enum language): Add language_objc.
147
148 2002-10-11 Klee Dienes <kdienes@apple.com>
149
150 * findvar.c (read_memory_typed_address): New function.
151 * gdbcore.h (read_memory_typed_address): Add prototype.
152 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
153 to read a value destined for a CORE_ADDR, not read_memory_integer.
154 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
155 (f77_get_dynamic_lowerbound): Ditto.
156
157 2002-10-11 Martin M. Hunt <hunt@redhat.com>
158
159 * utils.c (string_to_core_addr): After turning string into
160 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
161 which will do necessary sign-extension, etc.
162
163 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
164
165 * c-exp.y (THIS): Delete token and grammar rule.
166 (yylex): Don't return THIS.
167 * cp-valprint.c (vtbl_ptr_name_old): Delete.
168 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
169 * demangle.c (cplus_markers): Update comment. Put '$'
170 first. Remove CPLUS_MARKER.
171 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
172 * jv-exp.y (THIS): Delete token and grammar rule.
173 (yylex): Don't return THIS.
174 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
175 * objc-exp.y (THIS): Delete token and grammar rule.
176 (yylex): Don't return THIS.
177 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
178 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
179 (read_member_functions): Likewise for opname.
180 (read_tilde_fields): Use is_cplus_marker.
181
182 * defs.h (CPLUS_MARKER): Don't define.
183 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
184 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
185 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
186 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
187 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
188
189 * config/i386/tm-i386v4.h: Delete file.
190 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
191 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
192 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
193 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
194 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
195 * config/i386/i386sco5.mt (TM_FILE): Likewise.
196 * config/i386/i386v4.mt (TM_FILE): Likewise.
197 * config/i386/ncr3000.mt (TM_FILE): Likewise.
198
199 2002-10-10 Marko Mlinar <markom@opencores.org>
200
201 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
202 accidentially not commited 2002-10-09
203 * gdbarch.h, gdbarch.c: Re-generate.
204
205 2002-10-09 Marko Mlinar <markom@opencores.org>
206
207 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
208 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
209 * gdbarch.h, gdbarch.c: Re-generate.
210
211 2002-10-08 Petr Sorfa <petrs@caldera.com>
212
213 Revised and re-submitted by John Wolfe <jlw@caldera.com>
214
215 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
216 so we can work on more than one compilation unit at a time. This
217 helps prepare GDB to handle inter-CU die references.
218 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
219 the code to be defined before struct comp_unit_head.
220 (comp_unit_head): Added new members - offset, cu_head,
221 begin_die, next and dwarf2_abbrevs.
222 (dwarf2_abbrevs): Removed single static var; now member of
223 struct comp_unit_head.
224 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
225 members.
226 (psymtab_to_symtab_1): Changed to work with the new
227 struct comp_unit_head.
228 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
229 constructs the dwarf2_abbrevs[] inside the cu_header.
230 (dwarf2_empty_abbrev_table): Now expects a ptr to a
231 dwarf2_abbrev table to clean up.
232 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
233 handling of dwarf2_abbrevs inside the cu_header.
234 (read_partial_die): Now supports the call to the new
235 dwarf2_lookup_abbrev.
236 (read_full_die): Now supports the call to the new
237 dwarf2_lookup_abbrev.
238
239 2002-10-06 Christopher Faylor <cgf@redhat.com>
240
241 * Makefile.in (install-gdbtk): Add missing continuation backslash to
242 insure that shell variables, such as "transformed_name" are propagated
243 to later shell statements in rule.
244
245 2002-10-06 Mark Kettenis <kettenis@gnu.org>
246
247 * config/i386/nm-i386sco.h: Add protection against
248 multiple-inclusion. Include "i386/nm-i386v.h".
249 (REGISTER_U_ADDR): Remove define.
250 (i386_register_u_addr): Remove prototype.
251
252 2002-10-04 Michael Snyder <msnyder@redhat.com>
253
254 * m32r-stub.c (handle_exception): Make sure exception is "trap"
255 before treating it as a single-step event.
256
257 2002-10-03 Adam Fedor <fedor@gnu.org>
258
259 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
260 (objc_demangle): Remove assignment in if statements, Replace
261 free with xfree.
262 (add_msglist): Likewise.
263 (end_msglist): Likewise.
264 (complare_selectors): Likewise.
265 (selectors_info): Likewise.
266 (compare_classes): Likewise.
267 (classes_info): Likewise.
268 (print_object_command): Likewise.
269 (find_objc_msgcall_submethod): Replace PTR with void *.
270 * objc-lang.h: Remove check for __STDC__.
271
272 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
273
274 * ui-out.h (ui_out_field_fmt_int): New prototype.
275 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
276 of field width and alignment.
277 * stack.c (print_frame_info_base): When printing frame level, use
278 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
279 PR gdb/192
280
281 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
282
283 * MAINTAINERS: Add self to Write After Approval list.
284
285 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
286
287 * infcmd.c (interrupt_target_command_wrapper): Delete.
288 (interrupt_target_command): Make non static.
289 (nofp_registers_info): Make static.
290 * stack.c (return_command_wrapper): Delete.
291 (return_command): Make non static.
292
293 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
294
295 * event-top.c (gdb_setup_readline): New function. Code moved from
296 _initialize_event_loop().
297 (_initialize_event_loop): Call gdb_setup_readline().
298
299 2002-10-02 Andrew Cagney <ac131313@redhat.com>
300
301 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
302 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
303 * gdbarch.h, gdbarch.c: Re-generate.
304
305 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
306
307 Fix PR gdb/778
308 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
309 before recursing.
310 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
311 of fill_in_vptr_fieldno.
312
313 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
314
315 * inferior.h (registers_info, stepi_command, nexti_command,
316 continue_command, interrupt_target_command): Export from infcmd.c.
317 * frame.h (args_info, selected_frame_level_changed_hook,
318 return_command): Export from stack.c.
319 * v850ice.c (stepi_command, nexti_command, continue_command): use
320 prototypes from inferior.h.
321 * tracepoint.c (registers_info, args_info, locals_info): Use
322 prototypes from frame.h and inferior.h.
323 * Makefile.in (mi-main.o): Add dependency on frame.h.
324
325 2002-10-02 Andrew Cagney <ac131313@redhat.com>
326
327 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
328 value in register 3 adjusted by ppc_gp0_regnum.
329
330 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
331
332 2002-10-02 Marko Mlinar <markom@opencores.org>
333
334 * MAINTAINERS: Add myself to the Write After Approval list.
335
336 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
337
338 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
339 of the section for the N64 ABI, fixed.
340
341 * config/mips/tm-irix6.h: Include solib.h.
342
343 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
344
345 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
346 GNU operators.
347
348 2002-10-01 Andrew Cagney <ac131313@redhat.com>
349
350 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
351 and that "mi0" syntax has been removed.
352
353 2002-09-30 David Carlton <carlton@math.stanford.edu>
354
355 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
356 * ppc-sysv-tdep.c: #include "gdb_string.h".
357 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
358 pacify GCC.
359
360 2002-10-01 Andrew Cagney <ac131313@redhat.com>
361
362 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
363 "vrsave"'s register number.
364
365 2002-09-30 Andrew Cagney <ac131313@redhat.com>
366
367 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
368 use frame_unwind_signed_register to obtain the PC.
369 (mips_frame_chain): Handle a generic dummy frame.
370 (mips_init_extra_frame_info): When a generic dummy frame, don't
371 re-compute the frame base.
372 (mips_pop_frame): Handle generic dummy frames.
373 (mips_gdbarch_init): When generic dummy frames, set
374 use_generic_dummy_frames, push_dummy_frame to
375 generic_push_dummy_frame, pc_in_call_dummy to
376 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
377 generic_save_dummy_frame_tos.
378
379 2002-09-30 Andrew Cagney <ac131313@redhat.com>
380
381 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
382 against TOP when TOP was explictly set.
383 (generic_push_dummy_frame): Set TOP to zero.
384
385 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
386
387 * event-loop.c (start_event_loop): Rename variable 'result' to
388 'gdb_result', to avoid conflicts with upcoming intepreters changes.
389
390 2002-09-30 Keith Seitz <keiths@redhat.com>
391
392 * gdb-events.sh (selected_thread_changed): New event.
393 * gdb-events.c: Regenerated.
394 * gdb-events.h: Regenerated.
395
396 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
397
398 * MAINTAINERS: Add self to Write After Approval list.
399
400 2002-09-30 Fernando Nasser <fnasser@redhat.com>
401
402 * disasm.c: New file.
403 * disasm.h: New file.
404 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
405 (compare_lines): Ditto.
406 (dump_insns): Ditto.
407 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
408 argument.
409 (do_assembly_only): Ditto.
410 (do_disassembly): Renamed to gdb_disassembly and moved to
411 disasm.c. Sdded uiout argument.
412 * Makefile.in: Add new files. Reorder SFILES list. Update
413 dependencies. Include libgdb.a later in the insight executable.
414
415 2002-09-29 Andrew Cagney <ac131313@redhat.com>
416
417 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
418 bfd/elf64-alpha-fbsd.c.
419
420 2002-09-29 Andrew Cagney <ac131313@redhat.com>
421
422 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
423 i386gnu-tdep.c.
424
425 2002-09-29 Andrew Cagney <ac131313@redhat.com>
426
427 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
428 __FUNCTION__.
429 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
430 function name.
431 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
432 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
433 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
434 (S_msg_sig_post_reply): Ditto.
435
436 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
437
438 * sh-tdep.c (sh_use_struct_convention): Use definition according
439 to ABI.
440 (sh_push_arguments): Store in register with correct endianess.
441 (sh_default_store_return_value): Ditto.
442 (sh_gdbarch_init): Set sizeof long double to 8.
443
444 2002-09-27 Mark Kettenis <kettenis@gnu.org>
445
446 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
447 Fix some whitespace problems.
448
449 2002-09-27 David Carlton <carlton@math.stanford.edu>
450
451 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
452 (mcore-tdep.o): Ditto.
453 (ns32k-tdep.o): Ditto.
454 (ns32knbsd-tdep.o): Ditto.
455 (sh3-rom.o): Ditto.
456 (vax-tdep.o): Ditto.
457 * cris-tdep.c: #include "gdb_string.h"
458 * mcore-tdep.c: Ditto.
459 * ns32k-tdep.c: Ditto.
460 * ns32knbsd-tdep.c: Ditto.
461 * sh3-rom.c: Ditto.
462 * vax-tdep.c: Ditto.
463
464 2002-09-27 David Carlton <carlton@math.stanford.edu>
465
466 * config/djgpp/fnchange.lst: Add entries for
467 gdb/testsuite/gdb.c++/m-static files.
468
469 2002-09-27 Jim Wilson <wilson@redhat.com>
470
471 * MAINTAINERS: Add myself to the Write After Approval list.
472
473 2002-09-26 Martin M. Hunt <hunt@redhat.com>
474
475 * mips-tdep.c (find_proc_desc): Initialize startaddr.
476
477
478 2002-09-26 Andrew Cagney <ac131313@redhat.com>
479
480 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
481 frame.
482
483 2002-09-26 Andrew Cagney <ac131313@redhat.com>
484
485 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
486 (rs6000_struct_return_address): Delete variable.
487 (rs6000_store_struct_return): Update.
488 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
489 deprecated_extract_struct_value_address.
490 (rs6000_frame_align): New function.
491 (rs6000_gdbarch_init): Set frame_align.
492
493 2002-09-26 Andrew Cagney <ac131313@redhat.com>
494
495 From Grace Sainsbury <graces@redhat.com>:
496 * Makefile.in (gdbtk-main.o): New target.
497 (gdb.o): New target.
498 (main_h): Define.
499 (main.o): Update dependencies.
500 (gdb$(EXEEXT)): Add gdb.o.
501 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
502 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
503 (SUBDIR_GDBTK_CLEAN): Set.
504 (install-gdbtk): Install the insight binary.
505 (uninstall-gdbtk): New target.
506 (all-gdbtk, clean-gdbtk): New rule.
507 * top.c (use_windows): Default to zero.
508 * main.c: Include "main.h".
509 (main): Delete.
510 (struct captured_main_args): Delete.
511 (gdb_main): New function.
512 * main.h: New file.
513 * gdb.c: New File.
514
515 2002-09-25 Andrew Cagney <cagney@redhat.com>
516
517 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
518 (frame_map_regnum_to_name): New function.
519 (frame_map_name_to_regnum): New function.
520 * frame.h (frame_map_name_to_regnum): Declare.
521 (frame_map_regnum_to_name): Declare.
522 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
523 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
524 * parse.c: Do not include "builtin-regs.h".
525 (target_map_name_to_register): Delete function.
526 (write_dollar_variable): Use frame_map_name_to_regnum.
527 * parser-defs.h (target_map_name_to_register): Delete declaration.
528 * expprint.c: Include "frame.h".
529 (print_subexp): Use frame_map_regnum_to_name.
530 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
531 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
532
533 2002-09-25 Andrew Cagney <ac131313@redhat.com>
534
535 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
536 wasn't saved, and the next innermost frame is a dummy, return the
537 dummy frame's link register.
538
539 2002-09-24 Jim Blandy <jimb@redhat.com>
540
541 Fix from Paul Breed:
542 * main.c (captured_main): Add a `break' after the case for 'b'.
543
544 2002-09-24 Keith Seitz <keiths@redhat.com>
545
546 * varobj.c (c_type_of_child): Use get_target_type instead
547 of TYPE_TARGET_TYPE.
548
549 2002-09-22 Fernando Nasser <fnasser@redhat.com>
550
551 * source.c (get_current_or_default_source_symtab_and_line): Remove
552 function.
553 (set_default_source_symtab_and_line): New function. Attempts to
554 determine a source file to list lines from if one is not currently
555 defined.
556 (get_current_source_symtab_and_line): Initialize sal.pc and
557 sal.end fields.
558 (set_current_source_symtab_and_line): Mark argument as const.
559 * source.h: Update declarations and comments.
560 * linespec.c (decode_line_1): Replace call to removed routine above.
561 * stack.c (print_frame_info_base): Ditto.
562 * cli/cli-cmds.c (edit_command): Ditto.
563 (list_command): Ditto.
564
565 2002-09-22 Fernando Nasser <fnasser@redhat.com>
566
567 * source.c (get_current_or_default_source_symtab_and_line): Initialize
568 sal.pc and sal.end fields.
569 (get_current_or_default_source_symtab_and_line): Ditto.
570 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
571 so we do not cause a new source symtab to be searched for (reverting an
572 unintentional change from the 2002-09-20 patch).
573 * scm-lang.c (scm_unpac): Ditto.
574
575 2002-09-21 Andrew Cagney <cagney@redhat.com>
576
577 * complaints.c (symfile_explanations): Remove new-line from
578 ``isolated_message''.
579 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
580 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
581
582 2002-09-20 Nick Clifton <nickc@redhat.com>
583
584 * NEWS: Announce that V850EA ISA is no longer supported.
585 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
586
587 2002-09-20 David Carlton <carlton@math.stanford.edu>
588
589 * Makefile.in (c-lang.o): Correct dependencies.
590 (utils.o): Gather dependencies.
591 (charset.o): Move.
592 * c-lang.c: #include "gdb_string.h"
593
594 2002-09-20 Fernando Nasser <fnasser@redhat.com>
595
596 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
597 * cli/cli-cmds.c (list_command): New function. Implements the new
598 cli edit command.
599 (_init_cli_cmds): Add new command definition.
600 * gdb.1: Document edit command.
601 * doc/gdb.texinfo: Document edit command.
602
603 2002-09-20 Fernando Nasser <fnasser@redhat.com>
604
605 * source.c: Make global variables current_source_symtab and
606 current_source_line static.
607 (list_command): Moved to cli/cli-cmds.c.
608 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
609 (get_first_line_listed): New accessor function.
610 (get_lines_to_list): New accessor function.
611 (get_current_source_symtab_and_line): New function. Retrieves the
612 position in the source code that we consider current.
613 (get_current_or_default_source_symtab_and_line): New function.
614 Like the above but attempts to determine a default position if one
615 is not currently defined.
616 (set_current_source_symtab_and_line): New function. Sets the source
617 code position considered current and returns the previously set one.
618 (clear_current_source_symtab_and_line): Reset stored information about
619 a current source line.
620 (_initialize_source): Remove registration for the "list" command and
621 its alias.
622 * source.h: Add declarations for the new functions above.
623 * symtab.h: Remove declarations for the global variables mentioned
624 above.
625 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
626 obtain current source line.
627 * linespec.c (decode_line_1): Ditto.
628 * macroscope.c (default_macro_scope): Ditto.
629 * scm-lang.c (scm_unpac): Ditto.
630 * stack.c (print_frame_info_base): Ditto.
631 * symfile.c (clear_symtab_users): Ditto.
632 * symtab.c (decode_line_spec): Ditto.
633 * cli/cli-cmds.c (list_command): Moved here from source.c.
634 (ambiguous_line_spec): Moved here from source.c.
635 (_init_cli_cmds): Add definition for "list" and its alias.
636 * Makefile.in: Update dependencies.
637
638 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
639
640 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
641 with what gcc thinks is correct.
642
643 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
644
645 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
646 multiple register push instruction.
647
648 2002-09-19 Jim Blandy <jimb@redhat.com>
649
650 Add support for distinct host and target character sets.
651 * charset.c, charset.h: New files.
652 * c-exp.y: #include "charset.h".
653 (yylex): Convert character and string literals to the target
654 character set, before returning them as the semantic value of the
655 token.
656 * c-lang.c: #include "charset.h".
657 (c_emit_char): Use charset-specific methods to recognize
658 characters with backslash escape forms, to decide which characters
659 to print literally and which to print using numeric escape
660 sequences, and to convert target characters to host characters
661 before printing.
662 * utils.c: #include "charset.h".
663 (no_control_char_error): New function.
664 (parse_escape): Use charset-specific methods to recognize
665 backslash escapes, parse `control character' notation, and convert
666 characters from the host character set to the target character set.
667 * configure.in: Set the default host character set.
668 Check where to find iconv, and what its argument types might be.
669 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
670 * Makefile.in (SFILES): List charset.c.
671 (COMMON_OBS): List charset.o.
672 (charset.o): New rule.
673 (charset_h): New header dependency variable.
674 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
675 (LIBICONV): New variable, set by configure.
676 (CLIBS): Include $(LIBICONV) here.
677 * aclocal.m4, config.in, configure: Regenerated.
678
679 2002-09-19 Joel Brobecker <brobecker@gnat.com>
680
681 * ada-exp.y: Add missing semicolons to end rules. Fixes a
682 bison 1.35 warning.
683
684 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
685
686 * gdb_mbuild.sh: New file.
687
688 2002-09-19 Andrew Cagney <ac131313@redhat.com>
689
690 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
691
692 2002-09-18 Andrew Cagney <ac131313@redhat.com>
693
694 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
695 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
696 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
697 valops.c, value.h: Revert previous change.
698
699 2002-09-18 Michael Snyder <msnyder@redhat.com>
700
701 Preliminary support for Objective-C:
702 * defs.h (language_objc): New enum value.
703 (puts_filtered_tabular): Declaration only, exported from utils.c.
704 (skip_quoted): Delete, declared in completer.h.
705 * c-exp.y: Include completer.h.
706 * p-exp.y: Ditto.
707 * jv-exp.y: Ditto.
708 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
709 New operator enum values.
710 * language.h (CAST_IS_CONVERSION): Test for language_objc.
711 * language.c (binop_result_type): Handle language_objc case.
712 (integral_type, character_type, string_type, boolean_type,
713 structured_type, binop_type_check): Ditto.
714 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
715 (struct objc_specific): Add to general_symbol_info.
716 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
717 (SYMBOL_DEMANGLED_NAME): Handle objc case.
718 * parser-defs.h (struct objc_class_str): New struct type.
719 (start_msglist, end_msglist, add_msglist): Declaration only,
720 exported from objc-lang.c.
721 * value.h (value_of_local, value_nsstring,
722 call_function_by_hand_expecting_type): Exported from valops.c.
723 * valops.c (find_function_addr): Export.
724 (call_function_by_hand_expecting_type): New function.
725 (value_of_local): New function.
726 * symfile.c (init_filename_language_table): Add ".m" extension
727 for Objective-C.
728 * utils.c (puts_filtered_tabular): New function.
729 (fprintf_symbol_filtered): Add objc demangling support (disabled).
730 (set/show demangle): Extend help-string to refer to ObjC.
731 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
732 * stabsread.c (symbol_reference_defined): Objective-C symbols
733 may contain colons: make allowances when scanning stabs strings
734 for colons.
735 (objc_find_colon): New function.
736 * printcmd.c (address_info): If language == objc then print
737 "self" instead of "this".
738 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
739 OP_NSSTRING, and OP_SELF.
740 (prefixify_subexp): Ditto.
741 * source.c (print_source_lines): Mention objc in comment.
742 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
743 method names.
744
745 2002-09-18 Andrew Cagney <ac131313@redhat.com>
746
747 * complaints.h: Update copyright.
748 (struct complaints): Declare.
749 (struct complaint): Make `message' constant.
750 (internal_complaint): Declare.
751 (complaint): Declare.
752 (complaint_root): Delete declaration.
753 (symfile_complaints): Delete declaration.
754 (struct complaints): Add opaque declaration.
755 (clear_complaints): Add a complaints parameter.
756 * complaints.c: Update copyright.
757 (enum complaint_series): Define.
758 (complaint_root): Delete.
759 (struct complaints): Define.
760 (complaint_sentinel, symfile_complaint_book): New variables.
761 (symfile_explanations, symfile_complaints): New variables.
762 New variables.
763 (get_complaints): New function.
764 (vcomplaint): New function.
765 (complaint): New function.
766 (internal_complaint): New function.
767 (complain): Call vcomplain with symfile_complaint.
768 (clear_complaints): Rewrite.
769 (_initialize_complaints): Use add_setshow_command.
770 * Makefile.in (complaints.o): Update dependencies.
771 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
772 to call to clear_complaints.
773 (new_symfile_objfile, reread_symbols): Ditto.
774 (oldsyms_complaint): Delete.
775 (empty_symtab_complaint, unknown_option_complaint): Delete.
776 (free_named_symtabs): Use complaint instead of complain.
777
778 2002-09-18 Michael Snyder <msnyder@redhat.com>
779
780 Contributed by Apple Computer, Inc. Merged with current sources
781 by Adam Fedor <fedor@doc.com> [cagney].
782
783 * objc-lang.c: First clean-up round: comments, indentation.
784 * objc-lang.h: Ditto.
785 * objc-lang.y: Ditto.
786
787 2002-09-18 Andrew Cagney <ac131313@redhat.com>
788
789 * maint.c (maintenance_internal_error): Print the parameter as the
790 error message.
791 (maintenance_internal_warning): New function.
792 (_initialize_maint_cmds): Add command `maint internal-warning'.
793
794 * defs.h (internal_warning, internal_vwarning): Declare.
795 * utils.c (struct internal_problem): Define.
796 (internal_vproblem): New function.
797 (internal_warning): New function.
798 (internal_vwarning): New function.
799 (internal_warning_problem, internal_error_problem): New variables.
800 (internal_verror): Just call internal_vproblem.
801
802 2002-09-18 Michael Snyder <msnyder@redhat.com>
803
804 * objc-lang.c: New file, support for Objective-C.
805 Preliminary check-in, not yet integrated into gdb.
806 * objc-lang.h: New file.
807 * objc-exp.y: New file.
808
809 2002-09-18 Andrew Cagney <ac131313@redhat.com>
810
811 * infrun.c (signal_stop_update): Convert definition to ISO C.
812 (signal_print_update): Ditto.
813 (signal_pass_update): Ditto.
814 * inflow.c (terminal_save_ours): Ditto.
815
816 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
817 comments.
818
819 * config/djgpp/fnchange.lst: Handle name clashes between
820 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
821 bfd/coff-tic80.c.
822
823 * i386-linux-tdep.h: Fix tipo.
824
825 2002-09-18 Adam Fedor <fedor@gnu.org>
826
827 * MAINTAINERS: Add myself to the Write After Approval list.
828
829 2002-09-18 Jim Blandy <jimb@redhat.com>
830
831 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
832 texthigh and textlow to reader-specific structs caused
833 objfile_relocate to miss them. This is fixable, but the work that
834 the change was supposed to prepare GDB for never got done anyway.
835
836 2002-09-18 David Carlton <carlton@math.stanford.edu>
837
838 * MAINTAINERS: Alphabetize Write After Approval list.
839
840 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
841
842 Fix PR gdb/709
843 * values.c (value_static_field): Call read_var_value.
844
845 2002-09-18 Andrew Cagney <ac131313@redhat.com>
846
847 * valops.c (hand_function_call): Align the initial stack pointer
848 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
849 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
850 return value.
851 * mips-tdep.c (mips_frame_align): New function.
852 (mips_gdbarch_init): Set frame_align.
853 * gdbarch.sh (FRAME_ALIGN): New method.
854 * gdbarch.h, gdbarch.c: Re-generate.
855
856 2002-09-18 Michal Ludvig <mludvig@suse.cz>
857
858 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
859 registers.
860
861 2002-09-17 Andrew Cagney <ac131313@redhat.com>
862
863 * NEWS: Mention that MIPS $fp behavior changed.
864 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
865 reference to FP_REGNUM.
866 (mipsnbsd_cannot_store_register): Ditto.
867 * mips-linux-nat.c: Update copyright.
868 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
869 (mips_linux_cannot_store_register): Ditto.
870 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
871 * config/mips/tm-mips.h: Update copyright.
872 (FP_REGNUM): Delete macro.
873 (MIPS_REGISTER_NAMES): Replace "fp" with "".
874 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
875 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
876 (mips_r3041_reg_names, mips_r3051_reg_names)
877 (mips_r3081_reg_names): Replace "fp" with "".
878 Fix PR gdb/480.
879
880 2002-09-17 Theodore A. Roth <troth@verinet.com>
881
882 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
883 generic_read_register_dummy() (PR gdb/703).
884 (avr_push_return_address): #if 0 out unused vars.
885 (avr_gdbarch_init): Enable use of avr_push_return_address().
886
887 2002-09-17 Michael Snyder <msnyder@redhat.com>
888
889 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
890 RTE will take care of it.
891
892 2002-09-17 Andrew Cagney <ac131313@redhat.com>
893
894 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
895 invalid, return SP_REGNUM.
896
897 2002-09-17 Michael Snyder <msnyder@redhat.com>
898
899 * mips-tdep.c (mips_pop_frame): Read saved values of floating
900 point registers without sign extension.
901
902 2002-09-17 Andrew Cagney <cagney@redhat.com>
903
904 * blockframe.c (deprecated_read_register_dummy): Rename
905 generic_read_register_dummy.
906 * frame.c (frame_unwind_signed_register): New function.
907 (frame_unwind_unsigned_register): New function.
908 * frame.h (frame_unwind_signed_register): Declare.
909 (frame_unwind_unsigned_register): Declare.
910 (deprecated_read_register_dummy): Rename
911 generic_read_register_dummy.
912
913 * h8300-tdep.c (h8300_frame_chain): Update.
914 (h8300_frame_saved_pc): Update.
915 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
916 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
917 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
918 (s390_frame_chain): Update.
919 * v850-tdep.c (v850_find_callers_reg): Update.
920 (v850_frame_saved_pc): Update.
921 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
922 (m32r_find_callers_reg): Update.
923 (m32r_frame_saved_pc): Update.
924 * sh-tdep.c (sh_find_callers_reg): Update.
925 (sh64_get_saved_pr): Update.
926 (sh_init_extra_frame_info): Update.
927 (sh_init_extra_frame_info): Update.
928 (sh64_init_extra_frame_info): Update.
929 (sh64_init_extra_frame_info): Update.
930 * mcore-tdep.c (mcore_find_callers_reg): Update.
931 (mcore_frame_saved_pc): Update.
932 (mcore_init_extra_frame_info): Update.
933 * i386-tdep.c (i386_frame_saved_pc): Update.
934 * ia64-tdep.c (ia64_frame_saved_pc): Update.
935 (ia64_init_extra_frame_info): Update.
936 (ia64_init_extra_frame_info): Update.
937 * d10v-tdep.c (d10v_frame_saved_pc): Update.
938 * cris-tdep.c (cris_init_extra_frame_info): Update.
939 * avr-tdep.c (avr_frame_chain): Update.
940 (avr_init_extra_frame_info): Update.
941 (avr_frame_saved_pc): Update.
942 * arm-tdep.c (arm_find_callers_reg): Update.
943 (arm_init_extra_frame_info): Update.
944 (arm_frame_saved_pc): Update.
945
946 2002-09-17 Tom Tromey <tromey@redhat.com>
947
948 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
949 is "'".
950
951 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
952
953 * MAINTAINERS: Remove "non multi-arched" text from h8300.
954 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
955 NEXT_PROLOGUE_INSN.
956 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
957 NEXT_PROLOGUE_INSN.
958
959 2002-09-16 Joel Brobecker <brobecker@gnat.com>
960
961 * osfsolib.c: Remove file, replaced by solib-osf.c.
962 * Makefile.in: Remove compilation rules for osfsolib.c.
963
964 2002-09-16 David Carlton <carlton@math.stanford.edu>
965
966 * cp-valprint.c (cp_print_class_method): Correct args to
967 check_stub_method_group.
968
969 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
970
971 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
972 `set architecture'. Unify naming convention of functions.
973 (h8300_skip_prologue): Improve prologue analysis.
974 (h8300_push_arguments): Rewritten to more closely match GCC's
975 bizarre argument-passing behavior, along with the comment describing
976 said behavior.
977 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
978 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
979 sim, remote-e7000.c, remote-hms.c and remote.c
980
981 2002-09-15 Mark Kettenis <kettenis@gnu.org>
982
983 * i386-tdep.c (gdb_print_insn_i386): Removed.
984 (i386_print_insn): New function.
985 (i386_gdbarch_init): Set print_insn to i386_print_insns.
986 (_initialize_i386_tdep): Don't initialize tm_print_insn and
987 tm_print_insn_info.
988
989 2002-09-14 Mark Kettenis <kettenis@gnu.org>
990
991 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
992 zero.
993
994 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
995
996 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
997 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
998 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
999
1000 2002-09-13 Christopher Faylor <cgf@redhat.com>
1001
1002 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1003
1004 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1005
1006 * gdbtypes.c (check_stub_method): Make static.
1007 (check_stub_method_group): New function.
1008 * gdbtypes.h: Update prototypes.
1009 * cp-support.c: New file.
1010 * cp-support.h: New file.
1011
1012 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1013 (update_method_name_from_physname): New function.
1014 (read_member_functions): Correct method names for operators
1015 and v3 constructors/destructors. Separate v2 constructors and
1016 destructors.
1017 * Makefile.in (stabsread.o): Update dependencies.
1018 (SFILES): Add cp-support.c.
1019 (COMMON_OBS): Add cp-support.o.
1020 (cp_support_h, cp-support.o): Add.
1021
1022 * cp-valprint.c (cp_print_class_method): Call
1023 check_stub_method_group instead of check_stub_method. Remove
1024 extraneous QUITs.
1025 * p-valprint.c (pascal_object_print_class_method): Likewise.
1026 * valops.c (search_struct_method): Likewise.
1027 (find_method_list, value_struct_elt_for_reference): Likewise.
1028
1029 2002-09-13 Andrew Cagney <cagney@redhat.com>
1030
1031 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1032 * gdbarch.h, gdbarch.c: Regenerate.
1033
1034 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1035
1036 * frame.c (find_saved_register): Delete function.
1037 * frame.h (find_saved_register): Delete declaration.
1038 Fix PR gdb/631.
1039
1040 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1041
1042 * mips-tdep.c (read_next_frame_reg): Re-hack using
1043 frame_register_unwind.
1044
1045 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1046
1047 * mips-tdep.c (mips_get_saved_register): Re-hack using
1048 frame_register_unwind.
1049
1050 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1051
1052 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1053 vector. Will be useful for Interix.
1054 * gdbarch.h, gdbarch.c: Regenerate.
1055
1056 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1057 name of the malloc function by NAME_OF_MALLOC.
1058
1059 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1060
1061 * value.h (find_function_in_inferior): Add const keyword to
1062 one of the parameters. Allows us to invoke this function with
1063 a const char *.
1064 * valops.c (find_function_in_inferior): Likewise.
1065
1066 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1067
1068 * exec.c (xfer_memory): Fix compilation warning with old versions
1069 of GCC.
1070 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1071
1072 2002-09-12 David Carlton <carlton@math.stanford.edu>
1073
1074 * symtab.h: Run through gdb_indent.h.
1075 Add 2002 to Copyright year list.
1076
1077 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1078
1079 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1080 mach constants.
1081 * MAINTAINERS: Add myself to write after approval list.
1082
1083 2002-09-11 J. Brobecker <brobecker@gnat.com>
1084
1085 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1086
1087 2002-09-11 J. Brobecker <brobecker@gnat.com>
1088
1089 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1090 Interix.
1091
1092 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1093
1094 * procfs.c (do_detach): Clear current signal, not just fault.
1095 Corrects problem with breakpoint trap signal leaking to detached
1096 process on Tru64.
1097
1098 2002-09-10 Michael Snyder <msnyder@redhat.com>
1099
1100 * buildsym.c (finish_block): Protect against null pointer.
1101
1102 2002-09-10 Andrew Cagney <cagney@redhat.com>
1103
1104 * infcmd.c (default_print_registers_info): Send all output to
1105 ``file'' instead of ``gdb_stdout''.
1106
1107 2002-09-10 Michael Snyder <msnyder@redhat.com>
1108
1109 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1110 LONGEST, and use signed register read (addresses are sign-
1111 extended for mips).
1112
1113 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1114
1115 * event-loop.c (gdb_do_one_event): Make public.
1116 * event-loop.h (gdb_do_one_event): Declare.
1117
1118 2002-09-10 Jeff Law <law@redhat.com>
1119
1120 * infttrace.c (child_resume): Simplify and rework to avoid
1121 TT_PROC_CONTINUE.
1122
1123 2002-09-09 Fred Fish <fnf@intrinsity.com>
1124
1125 * printcmd.c (print_scalar_formatted): "len" is the number of
1126 target bytes, NOT the number of target bits.
1127
1128 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1129
1130 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1131 * top.c (init_main): Set rl_terminal_name.
1132
1133 2002-09-08 Aidan Skinner <aidan@velvet.net>
1134
1135 * ada-lang.c (ada_array_bound, ada_type_match,
1136 _initialize_ada_language): Fix K&R definitions.
1137 * ada-tasks.c (get_current_task): Fix K&R definitions.
1138 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1139
1140 2002-09-07 Christopher Faylor <cgf@redhat.com>
1141
1142 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1143 Add XP.
1144
1145 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1146
1147 * i386-tdep.c (i386_register_virtual_type,
1148 i386_register_convertible, i386_register_convert_to_virtual,
1149 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1150 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1151 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1152 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1153 Don't set push_arguments twice.
1154
1155 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1156 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1157 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1158 sigtramp_end to NULL.
1159 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1160 defines.
1161 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1162
1163 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1164 whitespace.
1165
1166 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1167 * gdbarch.h, gdbarch.c: Re-generate.
1168 * blockframe.c (find_pc_sect_partial_function): Convert to use
1169 SIGTRAMP_START_P predicate.
1170
1171 2002-09-05 Michael Snyder <msnyder@redhat.com>
1172
1173 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1174 generic_dummy_frame method and old method. Also distinguish
1175 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1176 (arm_extract_return_value): Use new regcache method.
1177
1178 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1179 adjustment that doesn't conform to the ABI.
1180 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1181 saved regcache, not from current regcache.
1182
1183 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1184
1185 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1186 * README: Update.
1187
1188 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1189
1190 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1191 if arm_apcs_32 is false.
1192
1193 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1194
1195 GDB 5.3 branch created.
1196
1197 2002-09-03 Theodore A. Roth <troth@verinet.com>
1198
1199 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1200 generic_unwind_get_saved_register.
1201
1202 2002-09-03 David Carlton <carlton@math.stanford.edu>
1203
1204 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1205 argument (PR gdb/653). Update call to smash_to_method_type.
1206 (read_structure_scope): Update call to dwarf2_add_member_fn.
1207
1208 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1209
1210 * x86-64-linux-tdep.c: Include gdb_string.h
1211 * x86-64-linux-nat.c: Ditto.
1212
1213 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1214
1215 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1216 when YYDEBUG is set to 1.
1217 * c-exp.y: Likewise.
1218 * f-exp.y: Likewise.
1219 * jv-exp.y: Likewise.
1220 * m2-exp.y: Likewise.
1221 * p-exp.y: Likewise.
1222
1223 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1224
1225 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1226 dependency list.
1227 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1228 solib_svr4_fetch_link_map_offsets to
1229 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1230 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1231 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1232 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1233 solib-svr4.o, and solib-legacy.o.
1234 * config/i386/tm-nbsd.h: Include solib.h.
1235
1236 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1237
1238 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1239 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1240 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1241 comment noting that this needs its own target configuration.
1242 * config/i386/nbsd.mt: New file.
1243 * config/i386/nbsdaout.mt: Remove.
1244 * config/i386/nbsdelf.mt: Ditto.
1245 * config/i386/tm-nbsdaout.h: Ditto.
1246
1247 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1248
1249 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1250 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1251 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1252 tdep->sigtramp_end.
1253 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1254 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1255 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1256
1257 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1258
1259 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1260 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1261 * i386-tdep.h (i386bsd_init_abi): New prototype.
1262 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1263 function declaration.
1264 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1265 for NetBSD-a.out or NetBSD-ELF.
1266 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1267 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1268 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1269 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1270 and nbsd-tdep.h.
1271 (i386nbsd_pc_in_sigtramp): New function.
1272 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1273 i386nbsd_pc_in_sigtramp.
1274 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1275 and i386nbsdelf_init_abi OS ABI handlers.
1276 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1277 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1278
1279 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1280
1281 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1282 registers if the target really has them.
1283
1284 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1285
1286 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1287 than nbsd-tdep.h.
1288
1289 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1290
1291 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1292 list.
1293 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1294 (alphanbsd_skip_sigtramp_frame): New functions.
1295 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1296 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1297 to alphanbsd_sigcontext_addr.
1298
1299 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1300
1301 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1302 list.
1303 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1304 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1305 nbsd_pc_in_sigtramp.
1306 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1307 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1308 * nbsd-tdep.c: Include gdb_string.h.
1309 (nbsd_pc_in_sigtramp): New function.
1310 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1311 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1312 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1313 ppcnbsd_pc_in_sigtramp.
1314 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1315 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1316 shnbsd_pc_in_sigtramp.
1317 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1318 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1319 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1320
1321 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1322
1323 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1324 watchpoints to NULL.
1325 (insert_breakpoints): set val field of watchpoints if NULL.
1326
1327
1328 2002-08-29 Jim Blandy <jimb@redhat.com>
1329
1330 * symtab.c (lookup_symbol_aux): In the cases where we find a
1331 minimal symbol of an appropriate name and use its address to
1332 select a symtab to read and search, use `name' (as passed to us)
1333 as the demangled name when searching the symtab's global and
1334 static blocks, not the minsym's name.
1335
1336 2002-08-29 Keith Seitz <keiths@redhat.com>
1337
1338 * stack.c (print_frame_info_base): Always set current_source_symtab
1339 and current_source_line.
1340
1341 2002-08-29 Donn Terry <donnte@microsoft.com>
1342
1343 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1344
1345 2002-08-28 Keith Seitz <keiths@redhat.com>
1346
1347 * stack.c (select_frame): Add FIXME concerning selected-frame
1348 events.
1349 (select_frame_command): Send selected-frame-level-changed
1350 event notification, but only if the level actually changed.
1351 (up_silently_base): Add selected-frame-level-changed event
1352 notification.
1353 (down_silently_base): Likewise.
1354
1355 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1356
1357 * Makefile.in: Update dependencies for all gdb/*.c files.
1358
1359 2002-08-27 Tom Tromey <tromey@redhat.com>
1360
1361 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1362 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1363 Update dependencies.
1364 * i387-tdep.c: Include gdb_string.h.
1365 * osabi.c: Likewise.
1366 * i386-linux-nat.c: Likewise.
1367 * lin-lwp.c: Likewise.
1368 * ax-gdb.c: Likewise.
1369 * signals/signals.c: Likewise.
1370 * jv-valprint.c: Likewise.
1371 * p-lang.c: Likewise.
1372 * c-valprint.c: Likewise.
1373 * cp-abi.c: Likewise.
1374
1375 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1376
1377 * cli/cli-script.h (copy_command_lines): Export.
1378 * breakpoint.c: Include cli/cli-script.h.
1379 * Makefile.in (breakpoint.o): Update dependencies.
1380
1381 2002-08-26 Michael Snyder <msnyder@redhat.com>
1382
1383 * breakpoint.c (insert_breakpoints): Protect all references
1384 to 'process_warning'. Shorten long lines.
1385
1386 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1387
1388 * cli/cli-script.c (copy_command_lines): New function.
1389 * defs.h (copy_command_lines): Export.
1390 * testsuite/gdb.base/commands.exp: New tests for commands
1391 attached to a temporary breakpoint, and for commands that
1392 delete the breakpoint they are attached to.
1393
1394 2002-08-26 Michael Snyder <msnyder@redhat.com>
1395
1396 * breakpoint.c (bpstat_stop_status): Instead of copying the
1397 pointer to the breakpoint commands struct, make a new copy
1398 of the struct and point to that.
1399 (bpstat_clear): Free the commands struct.
1400 (bpstat_clear_actions): Free the commands struct.
1401 (bpstat_do_actions): Free the command actions. Also execute
1402 the local cleanups, instead of deleting them.
1403 (delete_breakpoint): Leave the commands field of the bpstat
1404 chain alone -- it will be freed later.
1405
1406 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1407
1408 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1409 deleted in 2002-08-20 commit. This function is still used by
1410 ppc-linux-nat.c.
1411
1412 2002-08-26 Keith Seitz <keiths@redhat.com>
1413
1414 * gdb-events.sh: Add selected-frame-level-changed event.
1415 * gdb-events.c: Regenerated.
1416 * gdb-events.h: Regenerated.
1417
1418 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1419
1420 Fix PR gdb/393:
1421 * inflow.c (terminal_save_ours): New function to save terminal
1422 settings.
1423 * inferior.h (terminal_save_ours): Declare.
1424 * target.c (debug_to_terminal_save_ours): New function.
1425 (cleanup_target): Defaults to_terminal_save_ours.
1426 (update_current_target): Inherit to_terminal_save_ours.
1427 (setup_target_debug): Set to_terminal_save_ours.
1428 * target.h (target_terminal_save_ours): New to save terminal settings.
1429 (target_ops): New member to_terminal_save_ours.
1430 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1431 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1432 * inftarg.c (init_child_ops): Likewise.
1433 * m3-nat.c (init_m3_ops): Likewise.
1434 * procfs.c (init_procfs_ops): Likewise.
1435 * wince.c (init_child_ops): Likewise.
1436 * win32-nat.c (init_child_ops): Likewise.
1437 * sol-thread.c (init_sol_thread_ops): Likewise.
1438
1439 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1440
1441 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1442 use regcache_* functions.
1443 (i386_gdbarch_init): Set store_return_value instead of
1444 deprecated_store_return_value.
1445
1446 * regcache.c (regcache_raw_write_signed,
1447 regcache_raw_write_unsigned): New functions.
1448 * regcache.h (regcache_raw_write_signed,
1449 regcache_raw_write_unsigned): New prototypes.
1450
1451 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1452
1453 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1454 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1455 source file dependencies. Cleanup corresponding generator rules.
1456
1457 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1458
1459 * regcache.h (register_offset_hack): Declare.
1460 (regcache_cooked_read_using_offset_hack): Declare.
1461 (regcache_cooked_write_using_offset_hack): Declare.
1462
1463 * regcache.c (register_offset_hack): New function.
1464 (regcache_cooked_read_using_offset_hack): New function.
1465 (regcache_cooked_write_using_offset_hack): New function.
1466 (regcache_dump): Check that the registers, according to their
1467 offset, are packed hard against each other.
1468 (cooked_xfer_using_offset_hack): New function.
1469
1470 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1471
1472 * regcache.c (struct regcache_descr): Add field register_type.
1473 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1474 in as a parameter
1475 (init_regcache_descr): Initialize register_type. Pass the descr
1476 to init_legacy_regcache_descr. Use register_type instead of
1477 REGISTER_VIRTUAL_TYPE.
1478 (register_type): New function.
1479 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1480 * regcache.h (register_type): Declare.
1481
1482 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1483
1484 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1485 instead of deprecated_store_return_value. Fix fallout from
1486 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1487
1488 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1489
1490 * regcache.c (max_register_size): New function.
1491 (init_legacy_regcache_descr): Ensure that max_register_size is
1492 large enough for REGISTER_VIRTUAL_SIZE.
1493 * regcache.h (max_register_size): Declare.
1494
1495 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1496
1497 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1498 store_return_value.
1499 (e500_extract_return_value): Change type of valbuf pointer to
1500 void.
1501
1502 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1503
1504 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1505 workaround.
1506
1507 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1508 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1509 long long) to prevent compiler warning on 64-bit systems.
1510
1511 2002-08-23 Andrew Cagney <cagney@redhat.com>
1512
1513 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1514 (DEPRECATED_STORE_RETURN_VALUE): New method.
1515 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1516 * gdbarch.h, gdbarch.c: Re-generate.
1517
1518 * values.c (set_return_value): Pass current_regcache to
1519 STORE_RETURN_VALUE.
1520 * arch-utils.h (legacy_store_return_value): Declare.
1521 * arch-utils.c (legacy_store_return_value): New function.
1522 (legacy_extract_return_value): Update parameters.
1523
1524 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1525 STORE_RETURN_VALUE.
1526 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1527 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1528 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1529 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1530 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1531 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1532 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1533 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1534 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1535 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1536
1537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1538 * i386-tdep.c (i386_extract_return_value): Update.
1539 * arch-utils.c (legacy_extract_return_value): Update.
1540 * frv-tdep.c (frv_gdbarch_init): Update.
1541 * cris-tdep.c (cris_gdbarch_init): Update.
1542 * d10v-tdep.c (d10v_gdbarch_init): Update.
1543 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1544 * m68k-tdep.c (m68k_gdbarch_init): Update.
1545 * mcore-tdep.c (mcore_gdbarch_init): Update.
1546 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1547 * s390-tdep.c (s390_gdbarch_init): Update.
1548 * sparc-tdep.c (sparc_gdbarch_init): Update.
1549 * sh-tdep.c (sh_gdbarch_init): Update.
1550 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1551 * v850-tdep.c (v850_gdbarch_init): Update.
1552 * avr-tdep.c (avr_gdbarch_init): Update.
1553 * ia64-tdep.c (ia64_gdbarch_init): Update.
1554 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1555 * vax-tdep.c (vax_gdbarch_init): Update.
1556 * alpha-tdep.c (alpha_gdbarch_init): Update.
1557 * arm-tdep.c (arm_gdbarch_init): Update.
1558 * mips-tdep.c (mips_gdbarch_init): Update.
1559 * i386-tdep.c (i386_gdbarch_init): Update.
1560
1561 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1562
1563 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1564 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1565
1566 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1567
1568 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1569 problems.
1570
1571 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1572
1573 * infrun.c (handle_inferior_event): Move a comment outside of a
1574 function call, in order to avoid indent reformatting this part
1575 of the code in an unreadable way.
1576
1577 2002-08-23 Grace Sainsbury <graces@redhat.com>
1578
1579 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1580 when breakpoints fail. Move general breakpoint error messages to
1581 insert_breakpoints.
1582 * breakpoint.c (insert_breakpoints): Change warnings when
1583 breakpoints are nto inserted to specify the type. Remove call to
1584 memory_error when hardware breakpoints can't be inserted. Remove
1585 multiple calls to warning so all messages are sent to the user at
1586 once.
1587 (delete_breakpoints): Make insert error messsages more explicit.
1588
1589 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1590
1591 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1592 gdbserver/ChangeLog.
1593
1594 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1595
1596 * i386-tdep.c: Include "objfiles.h".
1597 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1598 skip_trampoline_code.
1599 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1600 (CPLUS_MARKER): Define to '.'.
1601
1602 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1603 member.
1604 (linux_corefile_thread_callback): Increase args->num_notes.
1605 (linux_make_note_section): Initialize thread_args.num_notes, and
1606 use it to determine whether notes for any threads were created.
1607
1608 2002-08-23 Donn Terry <donnte@microsoft.com>
1609
1610 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1611 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1612 and PCUNKILL.
1613 (write_with_trace): Conditionalize out the switch branch handling
1614 PCSHOLD if the corresponding macro is not defined. Likewise for
1615 PRSABORT and PRSTOP.
1616 This change will be needed by the Interix port.
1617
1618 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1619
1620 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1621 write_register wherever possible instead of manipulating the
1622 register bytes directly.
1623 Assign VALUE_CONTENTS to a variable and use that.
1624 The GPR numbers are now dependent on the architecture.
1625
1626 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1627
1628 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1629 ev_offset fields.
1630 (skip_prologue): Add support for BookE/e500 instructions.
1631 (e500_extract_return_value): New function.
1632 (frame_get_saved_regs): Add support for saving ev registers and
1633 pseudo gpr's.
1634 (e500_store_return_value): New function.
1635 (rs6000_gdbarch_init): Move up default intializations of
1636 deprecated_extract_return_value and store_return_value. Overwrite
1637 init of store_return_value with e500 specific version.
1638 Set extract_return_value for e500.
1639
1640 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1641
1642 * blockframe.c (generic_call_dummy_register_unwind): Use
1643 regcache_cooked_read to catch cases in which the variable is
1644 stored in a pseudo register.
1645
1646 2002-08-22 Andrew Cagney <cagney@redhat.com>
1647
1648 * NEWS: Mention that the i960 has been made obsolete.
1649 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1650 i960-tdep.c
1651 (remote-nrom.o): Obsolete target.
1652 (remote-nindy.o, i960-tdep.o): Ditto.
1653 * remote-nrom.c: Make file obsolete.
1654 * remote-nindy.c, remote-vx960.c: Ditto.
1655 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1656 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1657 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1658 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1659 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1660 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1661 i960-*-vxworks* obsolete.
1662 * MAINTAINERS: Note that the i960 is obsolete.
1663
1664 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1665
1666 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1667 detach to allow reinitialization.
1668
1669 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1670
1671 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1672 attempt).
1673
1674 2002-08-22 Jim Blandy <jimb@redhat.com>
1675
1676 * coffread.c (coff_symfile_read): Don't try to read the line
1677 number table from disk if the image file doesn't have a symbol
1678 table; we'll never actually look at the info anyway, and Windows
1679 ships DLL's with bogus file offsets for the line number data.
1680
1681 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1682
1683 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1684 an e500 executable.
1685
1686 2002-08-21 Michael Snyder <msnyder@redhat.com>
1687
1688 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1689 (MSYMBOL_SIZE): Replace macro with function.
1690 (DEFAULT_MIPS_TYPE): Delete unused macro.
1691 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1692 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1693
1694 2002-08-21 Jim Blandy <jimb@redhat.com>
1695
1696 * valops.c (value_cast): Simplify and correct logic for doing a
1697 static cast from a pointer to a base class to a pointer to a
1698 derived class.
1699
1700 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1701
1702 * infcmd.c (default_print_registers_info): Replace
1703 do_registers_info.
1704 (registers_info): Use gdbarch_print_registers_info instead of
1705 DO_REGISTERS_INFO.
1706 * inferior.h (default_print_registers_info): Replace
1707 do_registers_info.
1708 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1709 (DO_REGISTERS_INFO): Change to a predicate function.
1710 * gdbarch.h, gdbarch.c: Regenerate.
1711
1712 2002-08-21 Keith Seitz <keiths@redhat.com>
1713
1714 * gdb-events.sh: Add target-changed event.
1715 * gdb-events.c: Regenerated.
1716 * gdb-events.c: Regenerated.
1717 * valops.c (value_assign): Add target-changed event notification
1718 to inlval_register, lval_memory, and lval_reg_frame_relative.
1719
1720 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1721
1722 * NEWS: Add an entry regarding the improvement of the next/step
1723 operation on Alpha Tru64 multi-processor machines.
1724
1725 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1726
1727 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1728 directores.
1729 * Makefile.in: Update all _h macro definitions.
1730 * Makefile.in (install-gdbtk): Move to install section.
1731 (rdi-share/libangsd.a): Move to end of file.
1732
1733 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1734
1735 * frame.c (frame_register_unwind): When a register, set addrp to
1736 the register's byte.
1737
1738 2002-08-20 Michael Snyder <msnyder@redhat.com>
1739
1740 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1741 used locally, so move them from the target machine header to here.
1742 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1743 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1744 Make static.
1745 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1746
1747 2002-08-20 Andrew Cagney <cagney@redhat.com>
1748
1749 * NEWS: Mention that the Apollo line was made obsolete.
1750 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1751 m68*-hp-hpux* obsolete.
1752 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1753 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1754 * buildsym.c (make_blockvector): Make static.
1755 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1756 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1757 (ALLDEPFILES): Remove dstread.c.
1758 (dstread.o): Obsolete make rule.
1759 * dstread.c: Makefile obsolete.
1760 * dst.h: Ditto.
1761 * config/m68k/hp300hpux.mt: Ditto.
1762 * config/m68k/hp300hpux.mh: Ditto.
1763 * config/m68k/hp300bsd.mt: Ditto.
1764 * config/m68k/hp300bsd.mh: Ditto.
1765 * config/m68k/apollo68b.mt: Ditto.
1766 * config/m68k/apollo68v.mh: Ditto.
1767 * config/m68k/apollo68b.mh: Ditto.
1768
1769 2002-08-20 Michael Snyder <msnyder@redhat.com>
1770
1771 * mips-tdep.c (mips_in_return_stub): Make static.
1772 (mips_gdbarch_init): Set in_solib_return_trampoline.
1773 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1774
1775 2002-08-20 Michael Snyder <msnyder@redhat.com>
1776
1777 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1778 * gdbarch.c, gdbarch.h: Regenerate.
1779 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1780 Add.
1781 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1782
1783 2002-08-20 Michael Snyder <msnyder@redhat.com>
1784
1785 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1786 (mips_gdbarch_init): Set skip_trampoline_code,
1787 in_solib_call_trampoline.
1788 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1789 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1790
1791 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1792
1793 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1794
1795 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1796 vector type for ev registers.
1797 (e500_pseudo_register_read): New function.
1798 (e500_pseudo_register_write): New function.
1799 (e500_dwarf2_reg_to_regnum): New function.
1800 (PPC_UISA_NOFP_SPRS): New macro.
1801 (PPC_EV_REGS): New macro.
1802 (PPC_GPRS_PSEUDO_REGS): New macro.
1803 (registers_e500): New register set for e500.
1804 (variants): Add e500 variant.
1805 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1806 before setting architectural dependent variations. Initialize ev
1807 registers numbers. Add case for e500 architecture. Set the
1808 number of pseudo registers.
1809
1810 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1811
1812 * rs6000-tdep.c: Clean up comments.
1813
1814 2002-08-20 Andrew Cagney <cagney@redhat.com>
1815
1816 * h8300-tdep.c: Re-indent file.
1817
1818 2002-08-20 Jim Blandy <jimb@redhat.com>
1819
1820 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1821 default for this.
1822
1823 2002-08-20 Keith Seitz <keiths@redhat.com>
1824
1825 * breakpoints.c (watch_command_1): Use internal breakpoint
1826 when setting a watchpoint_scope breakpoint.
1827
1828 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1829
1830 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1831 (build_builtin_type_vec64i): Ditto.
1832 (build_builtin_type_vec128): Ditto.
1833 (build_builtin_type_vec128i): Ditto.
1834
1835 2002-08-19 Michael Snyder <msnyder@redhat.com>
1836
1837 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1838 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1839 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1840 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1841 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1842 CALL_DUMMY_ADDRESS): Delete.
1843 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1844 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1845 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1846 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1847 push_return_address.
1848 (mips_register_raw_size, mips_eabi_use_struct_convention,
1849 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1850 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1851 mips_init_extra_frame_info, mips_eabi_push_arguments,
1852 mips_n32n64_push_arguments, mips_push_return_address,
1853 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1854 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1855
1856 2002-08-19 Michael Snyder <msnyder@redhat.com>
1857
1858 * mips-tdep.c (mips_frame_num_args): New function.
1859 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1860 frame_saved_pc, frame_args_address, frame_locals_address,
1861 frame_num_args, and frame_args_skip.
1862 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1863 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1864 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1865 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1866
1867 2002-08-20 Michael Snyder <msnyder@redhat.com>
1868
1869 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1870 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1871 * mips-tdep.c (mips_store_struct_return): New function.
1872 (mips_extract_struct_value_address): New function.
1873 (mips_gdbarch_init): Set store_struct_return and
1874 extract_struct_value_address.
1875
1876 2002-08-20 David Carlton <carlton@math.stanford.edu>
1877
1878 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1879 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1880 (read_file_scope): Check that line_header is nonzero before
1881 decoding macro information.
1882
1883 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1884
1885 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1886 flag the general-purpose registers as floating-point on targets
1887 that don't support the floating-point registers.
1888
1889 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1890
1891 * rs6000-tdep.c (altivec_register_p): Delete.
1892 (rs6000_do_altivec_registers): Delete.
1893 (rs6000_altivec_registers_info): Delete.
1894 (rs6000_do_registers_info): Delete.
1895 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1896 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1897
1898 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1899
1900 * infcmd.c (do_registers_info): Print vector registers in hex
1901 format only.
1902 (print_vector_info): Check that printing registers
1903 makes sense.
1904 (print_float_info): Ditto.
1905
1906 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1907
1908 * mips-tdep.c (mips_gdbarch_init): Update.
1909 (mips_o32_extract_return_value): Rewrite.
1910 (mips_o32_store_return_value): Rewrite.
1911 (mips_o32_xfer_return_value): New function.
1912 (mips_xfer_register): Tweak debug print message. Allow for
1913 buf_offset when dumping the value transfered.
1914
1915 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1916
1917 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1918 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1919 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1920 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1921 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1922
1923 2002-08-14 Michael Snyder <msnyder@redhat.com>
1924
1925 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1926
1927 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1928
1929 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1930 register.
1931 (P): New macro to define a register as a pseudo register.
1932 (R, R4, R8, R16, FR32, R64, R0): Updated.
1933 (struct variant): Add new fields for number of pseudo registers
1934 and number of total registers.
1935 (tot_num_registers): New macro replacing....
1936 (num_registers): ...deleted macro.
1937 (num_registers): New function.
1938 (num_pseudo_registers): New function.
1939 (variants): Update all variants to intialize new fields correctly.
1940 Postpone initialization of number of pseudo regs and real regs.
1941 (init_variants): New function.
1942 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1943 registers offsets.
1944
1945 2002-08-19 David Carlton <carlton@math.stanford.edu>
1946
1947 * valops.c (search_struct_field): Change error message to treat
1948 return value of 0 from value_static_field as meaning that field is
1949 optimized out.
1950 (value_struct_elt_for_reference): Ditto.
1951 * values.c (value_static_field): Treat an unresolved location the
1952 same as a nonexistent symbol. Fix PR gdb/635.
1953 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1954 enclosed. Fix PR gdb/574.
1955 * MAINTAINERS: Add self to Write After Approval list.
1956
1957 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1958
1959 * mips-tdep.c (mips_xfer_register): New function.
1960 (mips_n32n64_extract_return_value): Rewrite.
1961 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1962 instead of deprecated_extract_return_value.
1963
1964 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1965
1966 * rs6000-tdep.c (TDEP): Delete macro.
1967 (branch_dest): Replace use of TDEP macro with its body.
1968 (rs6000_pop_frame): Ditto.
1969 (rs6000_push_arguments): Ditto.
1970 (rs6000_skip_trampoline_code): Ditto.
1971 (rs6000_frame_saved_pc): Ditto.
1972 (rs6000_frame_chain): Ditto.
1973 (rs6000_register_name): Ditto.
1974 (rs6000_register_byte): Ditto.
1975 (rs6000_register_raw_size): Ditto.
1976 (rs6000_register_virtual_type): Ditto.
1977 (rs6000_register_convertible): Ditto.
1978 (rs6000_convert_from_func_ptr_addr): Ditto.
1979
1980 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1981
1982 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1983 conditionally.
1984 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1985 MIPS_LINUX_JB_ELEMENT_SIZE.
1986 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1987 for MAX_REGISTER_RAW_SIZE arrays.
1988 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1989 MIPS_LINUX_JB_ELEMENT_SIZE.
1990
1991 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1992
1993 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1994
1995 2002-08-19 Aidan Skinner <aidan@velvet.net>
1996
1997 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1998 ada-valprint.c ada-tasks.c.
1999 (YYFILES): Add ada-exp.y.
2000 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2001 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2002 (ada-exp.tab.o): New target.
2003
2004 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2005
2006 * regcache.c (regcache_xfer_part): New function.
2007 (regcache_raw_read_part): New function.
2008 (regcache_raw_write_part): New function.
2009 (regcache_cooked_read_part): New function.
2010 (regcache_cooked_write_part): New function.
2011 * regcache.h (regcache_raw_read_part): Declare.
2012 (regcache_raw_write_part): Declare.
2013 (regcache_cooked_read_part): Declare.
2014 (regcache_cooked_write_part): Declare.
2015
2016 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2017
2018 * remote.c (remote_open_1): Add async_p.
2019 (remote_async_open_1): Delete.
2020 (open_remote_target): Delete.
2021 (remote_open, extended_remote_open): Update calls to remote_open_1.
2022 (remote_async_open, extended_remote_async_open): Call
2023 remote_open_1 instead of remote_async_open_1.
2024
2025 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2026
2027 * blockframe.c: Fix a few coding standard violations.
2028
2029 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2030
2031 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2032 here from ...
2033 * config/i386/tm-i386sco5.h: ... here. File removed.
2034 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2035
2036 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2037 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2038 (TM_FILE): Set to tm-i386.h.
2039 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2040 * config/i386/tm-i386v.h: Remove file.
2041 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2042 instead of "i386/tm-i386v.h".
2043 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2044 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2045 "i386/tm-i386v.h".
2046 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2047 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2048 "i386/tm-i386.h".
2049
2050 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2051
2052 * config/i386/nm-i386v.h: Add protection against
2053 multiple-inclusion.
2054 (i386_register_u_addr): Remove prototype.
2055 (register_u_addr): New prototype.
2056 (REGISTER_U_ADDR): Redefine accordingly.
2057 * i386v-nat.c: Improve several comments.
2058 (i386_register_u_addr): Change signature and rename to
2059 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2060 ubase variable.
2061
2062 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2063
2064 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2065 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2066 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2067 deprecated_extract_return_value.
2068 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2069 rename mips_o32o64_push_arguments.
2070 (mips_gdbarch_init): Update.
2071 (mips_extract_return_value): Delete.
2072 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2073 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2074 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2075 (mips_n32n64_extract_return_value): Clone
2076 mips_extract_return_value.
2077 (mips_store_return_value): Delete.
2078 (mips_o32_store_return_value): Clone mips_store_return_value.
2079 (mips_o64_store_return_value): Clone mips_store_return_value.
2080 (mips_eabi_store_return_value): Clone mips_store_return_value.
2081 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2082
2083 2002-08-18 Aidan Skinner <aidan@velvet.net>
2084
2085 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2086 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2087
2088 2002-08-18 Aidan Skinner <aidan@velvet.net>
2089
2090 * ada-lang.c: Run through gdb_indent.sh.
2091 * ada-lang.h: Run through gdb_indent.sh.
2092 * ada-tasks.c: Run through gdb_indent.sh.
2093 * ada-typeprint.c: Run through gdb_indent.sh.
2094 * ada-valprint.c: Run through gdb_indent.sh.
2095
2096 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2097
2098 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2099 ABI.
2100
2101 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2102
2103 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2104
2105 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2106 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2107
2108 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2109 write_register_gen instead of write_register_bytes.
2110
2111 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2112 i[3456]-*-osf1mk* configurations have been made obsolete.
2113 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2114 i[3456]86-*-osf1mk* hosts obsolete.
2115 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2116 targets obsolete.
2117 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2118 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2119 config/i386/i386m3.mt, config/i386/nm-m3.h,
2120 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2121 config/i386/i386mk.mh, config/i386/i386mk.mt,
2122 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2123 obsolete.
2124 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2125 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2126 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2127
2128 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2129
2130 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2131 (hppa_value_returned_from_stack): Declare.
2132 (hppa_extract_return_value): Declare.
2133 * config/pa/hppa.mt: New file.
2134 * configure.tgt: Recognize hppa*-*-*.
2135 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2136
2137 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2138
2139 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2140 comment.
2141
2142 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2143
2144 * top.c (gdb_rl_operate_and_get_next): Make sure
2145 operate-and-get-next functions correctly even when the history
2146 list is completely filled.
2147
2148 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2149
2150 * MAINTAINERS (Target Instruction Set Architectures): Rename
2151 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2152 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2153 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2154 already listed under Host/Native.
2155
2156 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2157 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2158 mips*-*-*.
2159
2160 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2161
2162 * config/ia64/ia64.mt: New file.
2163 * config/alpha/alpha.mt: New file.
2164 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2165 ia64-linux-gnu. Mention that ia64-elf is broken.
2166 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2167
2168 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2169
2170 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2171 generic_func_frame_valid instead of func_frame_valid.
2172
2173 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2174
2175 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2176 procfs appears to be broken when debugging on multi-processor
2177 machines. So enable software single stepping in order to avoid
2178 using the procfs interface to do next/step operations, using
2179 internal breakpoints instead.
2180
2181 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2182 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2183 make this pc address equal to the value it would have if the
2184 system stepping capability was used. Also set a new flag used
2185 to ensure that we don't readjust the PC one more time later.
2186
2187 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2188 address by DECR_PC_AFTER_BREAK when software single step is
2189 in use for this architecture, as this has already been taken
2190 care of in handle_inferior_event().
2191
2192 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2193
2194 * infrun.c (handle_inferior_event): Minor reformatting, to make
2195 a rather long condition expression easier to read.
2196
2197 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2198
2199 * Makefile.in (gdbtk.o): Move to end of file.
2200 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2201 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2202 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2203 (gdbtk-wrapper.o, gdbres.o): Ditto.
2204
2205 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2206
2207 * Makefile.in (copying.o): Separate out compile rule.
2208 (hpux-thread.o, procfs.o, signals.o): Ditto.
2209 (v850ice.o, z8k-tdep.o): Ditto.
2210 (tui-file.o): Move to TUI section.
2211 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2212 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2213
2214 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2215
2216 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2217 skip_trampoline_code, for better namespace-proofing.
2218
2219 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2220
2221 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2222
2223 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2224
2225 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2226
2227 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2228 signal, check whether we hit a breakpoint before checking for a
2229 single step breakpoint. Otherwise, GDB fails to notice that a
2230 breakpoint has been hit when stepping onto a breakpoint.
2231
2232 2002-08-16 Keith Seitz <keiths@redhat.com>
2233
2234 * gdb-events.sh (clear_gdb_event_hooks): New function.
2235 * gdb-events.c: Regenerate.
2236 * gdb-events.h: Regenerate.
2237
2238 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2239
2240 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2241 not_a_sw_breakpoint.
2242 * breakpoint.h (bpstat_stop_status): Add parameter names.
2243
2244 2002-08-16 Grace Sainsbury <graces@redhat.com>
2245
2246 * remote.c (remote_insert_hw_breakpoint)
2247 (remote_remove_hw_breakpoint): Fix calculation of length field
2248 for Z-packet.
2249
2250 2002-08-15 Michael Snyder <msnyder@redhat.com>
2251
2252 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2253 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2254 (supply_fpregset): Ditto.
2255
2256 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2257 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2258 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2259 (TARGET_READ_SP): Delete.
2260 (DO_REGISTERS_INFO): Delete.
2261 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2262 Delete.
2263 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2264 from macros to functions.
2265
2266 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2267 (mips_register_convertible, mips_register_convert_to_virtual,
2268 mips_register_convert_to_raw): Make static.
2269 (mips_read_sp): New function.
2270 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2271 (mips_do_registers_info): Make static.
2272 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2273 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2274 (mips_register_convert_from_type, mips_register_convert_to_type):
2275 New functions.
2276 (mips_gdbarch_init): Set up function_start_offset,
2277 register_virtual_size, pc_in_sigtramp.
2278
2279 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2280
2281 * infcmd.c (vector_info): New function.
2282 (_initialize_infcmd): Add command "info vector".
2283 (print_vector_info): New function.
2284
2285 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2286 * gdbarch.h, gdbarch.c: Regenerate.
2287
2288 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2289
2290 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2291 ``print_all''. Only print vector registers when ``print_all''.
2292
2293 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2294
2295 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2296 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2297
2298 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2299 Add `args' parameter.
2300 * gdbarch.h, gdbarch.c: Regenerate.
2301
2302 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2303
2304 * infcmd.c (float_info): Call print_float_info.
2305 (print_float_info): New function. By default, print the
2306 floating-point registers.
2307
2308 * arch-utils.h (default_print_float_info): Delete declaration.
2309 * arch-utils.c (default_print_float_info): Delete function.
2310
2311 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2312
2313 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2314 out define.
2315
2316 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2317 FRAME.
2318
2319 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2320 * configure.host: Make i[3456]86-*-aix host obsolete.
2321 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2322 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2323 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2324 config/i386/xm-i386aix.h: Make files obsolete.
2325 * i386aix-nat.c: Make file obsolete.
2326 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2327 (i386aix-nat.o): Make target obsolete.
2328
2329 * config/i386/nm-gnu.h: Removed.
2330 * config/i386/nm-i386gnu.h: New file.
2331 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2332 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2333 Moved here from ...
2334 * config/i386/tm-i386gnu.h: ... here. Removed.
2335 * config/i386/xm-i386gnu.h: Removed.
2336 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2337 (NAT_FILE): Set to nm-i386gnu.h.
2338 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2339 * i386-tdep.c: New file.
2340 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2341 (i386gnu-tdep.o): Specify dependencies.
2342
2343 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2344
2345 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2346 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2347 Adjust a few comments to reflect reality a bit closer.
2348 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2349 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2350 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2351 target_insert_watchpoint, target_remove_watchpoint):
2352 Move defines to ...
2353 * config/i386/nm-i386sco5.h: ... here.
2354 (kernel_u_size): Add prototype. Improve a few comments and add
2355 protection against multiple inclusion.
2356
2357 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2358 out define.
2359
2360 * uw-thread.c (SP_ARG0): Define if not already defined.
2361 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2362
2363 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2364
2365 * config/i386/tm-i386.h: Don't include "regcache.h".
2366
2367 * i387-tdep.h (i387_print_float_info): New prototype.
2368 * i387-tdep.c (print_i387_value, print_i387_ext,
2369 print_i387_status_word, print_i387_control_word): Add `struct
2370 ui_file *' argument and use it for output.
2371 (i387_print_float_info): Renamed from i387_float_info. Add
2372 `struct gdbarch *' and `struct ui_file *' arguments and use the
2373 latter for output.
2374 * i386-tdep.c: Include "i387-tdep.h".
2375 (i386_gdbarch_init): Set print_float_info.
2376 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2377 (FLOAT_INFO): Remove define.
2378
2379 2002-08-13 Michael Snyder <msnyder@redhat.com>
2380
2381 * mips-tdep.c (mips_push_arguments): Rename to
2382 mips_eabi_push_arguments, and tune for EABI.
2383 (MIPS_REGS_HAVE_HOME_P): Delete.
2384 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2385 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2386 Delete references to mips_regs_have_home_p.
2387
2388 2002-08-14 Keith Seitz <keiths@redhat.com>
2389
2390 * Makefile.in (install-gdbtk): Create insight plugin directory.
2391 Install plugins.tcl file.
2392
2393 2002-08-14 Keith Seitz <keiths@redhat.com>
2394
2395 * configure.in: Move SUBDIRS to near top of the file so that
2396 --enable options may add things to it.
2397 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2398 * configure: Regenerate.
2399
2400 2002-08-13 Michael Snyder <msnyder@redhat.com>
2401
2402 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2403 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2404 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2405
2406 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2407
2408 * vax-tdep.c (vax_get_saved_register): Delete function.
2409 (vax_gdbarch_init): Update.
2410 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2411 (ns32k_gdbarch_init): Update.
2412 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2413 (alpha_gdbarch_init): Update.
2414
2415 2002-08-13 Andrew Cagney <cagney@redhat.com>
2416
2417 * regcache.c (init_regcache_descr): Overallocate the
2418 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2419 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2420 nr_raw_registers.
2421 (set_register_cached): Add range checking assertions. Use
2422 current_regcache.
2423
2424 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2425
2426 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2427 numbers for MMX registers.
2428
2429 2002-08-13 Andrew Cagney <cagney@redhat.com>
2430
2431 * i386-tdep.c (i386_gdbarch_init): Use
2432 generic_unwind_get_saved_register.
2433
2434 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2435
2436 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2437 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2438 target vector.
2439 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2440 Delete. Add comment regarding this now-deleted target method.
2441
2442 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2443
2444 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2445 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2446 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2447 real PC and the page number (if it's within the memory bank window).
2448 (m68hc11_pseudo_register_write): Likewise when saving.
2449 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2450 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2451 (m68hc11_register_raw_size): And use 32-bit for it.
2452 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2453 16K memory bank is used by the prog; also use the virtual pc.
2454
2455 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2456
2457 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2458 (m68hc11_gdbarch_init): Install it in gdbarch.
2459 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2460 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2461 (MSYMBOL_SIZE): New for documentation.
2462 (insn_return_kind): Enum to specify how a function returns.
2463 (frame_extra_info): Cleanup and record the return mode.
2464 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2465 register in address computation.
2466 (m68hc11_get_return_insn): New to obtain the return instruction used
2467 by the function.
2468 (m68hc11_frame_init_saved_regs): Take into account the return
2469 instruction used by the function for far and interrupt functions.
2470 (m68hc11_init_extra_frame_info): Take into account page register.
2471 (m68hc11_frame_args_address): Adjust according to the return mode.
2472 (show_regs): Print page register only when it's used.
2473
2474 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2475
2476 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2477 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2478 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2479 registers.
2480 (m68hc11_register_raw_size): Likewise.
2481
2482 2002-08-13 Andrew Cagney <cagney@redhat.com>
2483
2484 * i386-tdep.c (i386_register_name): Handle mmx registers.
2485 (mmx_regnum_p): New function.
2486 (i386_mmx_names): New array.
2487 (mmx_num_regs): New variable.
2488 (i386_pseudo_register_read): New function.
2489 (i386_pseudo_register_write): New function.
2490 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2491
2492 * regcache.c (regcache_raw_read_unsigned): New function.
2493 (regcache_raw_read_signed): New function.
2494 * regcache.h (regcache_raw_read_unsigned): Declare.
2495 (regcache_raw_read_signed): Declare.
2496
2497 2002-08-13 Andrew Cagney <cagney@redhat.com>
2498
2499 * regcache.c (regcache_raw_read_as_address): Delete function.
2500 (regcache_cooked_read_signed): New function.
2501 (regcache_cooked_read_unsigned): New function.
2502 * regcache.h (regcache_cooked_read_signed): Declare.
2503 (regcache_cooked_read_unsigned): Declare.
2504 (regcache_raw_read_as_address): Delete declaration.
2505
2506 * blockframe.c (generic_read_register_dummy): Use
2507 regcache_cooked_read_unsigned.
2508 * i386-tdep.c (i386_extract_struct_value_address): Use
2509 regcache_cooked_read_unsigned.
2510
2511 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2512
2513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2514 double sizes according to ELF ABI flags.
2515 (gdbarch_tdep): Record elf_flags.
2516
2517 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2518
2519 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2520 (m6812_prolog): They can appear in 68HC12 function prologue.
2521 (m68hc11_frame_chain): Cleanup.
2522
2523 2002-08-12 Andrew Cagney <cagney@redhat.com>
2524
2525 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2526 declarations.
2527 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2528 (i386_linux_register_raw_size): Delete function.
2529 (i386_linux_init_abi): Update.
2530 * i386-tdep.c (i386_register_raw_size): Delete function.
2531 (i386_register_byte): Delete function.
2532 (i386_gdbarch_init): Update.
2533 (i386_register_size): Delete array.
2534 (i386_register_offset): Delete array.
2535
2536 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2537 (REGISTER_RAW_SIZE): Delete macro.
2538 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2539 (REGISTER_BYTE): Delete macro.
2540
2541 2002-08-11 Aidan Skinner <aidan@velvet.net>
2542
2543 * ada-lang.c (ada_lookup_partial_symbol)
2544 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2545 prototype names so that grep ^func works properly.
2546
2547 * ada-lang.c (ada_array_element_type)
2548 (ada_lookup_partial_symbol): Fix typos in parameter list.
2549
2550 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2551 Fix prototype names so that grep ^func works properly.
2552
2553 2002-08-10 Andrew Cagney <cagney@redhat.com>
2554 Elena Zannoni <ezannoni@redhat.com>
2555 Martin M. Hunt <hunt@redhat.com>
2556
2557 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2558 (build_builtin_type_vec128i): Set the vector bit.
2559 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2560 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2561 (build_builtin_type_vec64): New function.
2562 (build_builtin_type_vec64i): New function.
2563 (build_gdbtypes): Initialize builtin_type_vec64 and
2564 builtin_type_vec64i.
2565
2566 2002-08-09 Andrew Cagney <cagney@redhat.com>
2567
2568 * regcache.c (regcache_dump): Compare the register offset
2569 with REGISTER_BYTE.
2570 * arch-utils.c (generic_register_byte): New function.
2571 * arch-utils.h (generic_register_byte): Declare.
2572 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2573 * gdbarch.h, gdbarch.c: Regenerate.
2574
2575 2002-08-09 Andrew Cagney <cagney@redhat.com>
2576
2577 * regcache.c: Include "gdbcmd.h"
2578 (_initialize_regcache): Add commands "maintenance print
2579 registers", "maintenance print raw-registers" and "maintenance
2580 print cooked-registers".
2581 (enum regcache_dump_what): Define.
2582 (dump_endian_bytes): New function.
2583 (regcache_dump): New function.
2584 (regcache_print): New function.
2585 (maintenance_print_registers): New function.
2586 (maintenance_print_raw_registers): New function.
2587 (maintenance_print_cooked_registers): New function.
2588 * Makefile.in (regcache.o): Update dependencies.
2589
2590 2002-08-09 Michael Snyder <msnyder@redhat.com>
2591
2592 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2593 (mips_push_arguments): Correct some comments. Use paddr_nz
2594 for printing addresses in debug output. Replace static
2595 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2596 (mips_n32n64_push_arguments): New function, cloned from
2597 mips_push_arguments and tuned for the n32/n64 ABI.
2598 (mips_push_register): Buffer needs dynamic allocation.
2599 (mips_print_register): Ditto.
2600 (do_gp_register_row): Ditto.
2601 (mips_store_return_value): Ditto.
2602 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2603
2604 2002-08-09 Don Howard <dhoward@redhat.com>
2605
2606 * memattr.c (mem_info_command): Print special case of upper bound
2607 as max CORE_ADDR + 1.
2608
2609 2002-08-08 Michael Snyder <msnyder@redhat.com>
2610
2611 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2612 returns structs by ref if they're too big to fit in two registers.
2613
2614 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2615
2616 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2617 saved regs value.
2618 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2619 mips_find_saved_regs().
2620 (mips_pop_frame): Likewise.
2621
2622 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2623
2624 * blockframe.c (frame_saved_regs_register_unwind): Revise
2625 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2626 frames are in use.
2627
2628 2002-08-09 Grace Sainsbury <graces@redhat.com>
2629
2630 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2631 T-packets; the 'a' is not taken as a register number.
2632 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2633 (remote_stopped_data_address): New functions; add to target
2634 vector.
2635 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2636 prototypes to match other implementations of this
2637 function. replace integer argument with pointer -- the length
2638 field in the Z-packet is the length of what is pointed to or 1 if
2639 pointer is null. Add to target vector.
2640 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2641 target vector.
2642
2643 From Mark Salter:
2644 * remote.c (remote_wait): Add support to extract optional
2645 watchpoint information from T-packet. Ignore unrecognized
2646 optional info in T-packet.
2647 (remote_async_wait): Ditto.
2648
2649 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2650
2651 * cli/cli-dump.c: Change fopen modes to use binary open modes
2652 as defined in include/fopen-bin.h throughout.
2653
2654 2002-08-08 Michael Snyder <msnyder@redhat.com>
2655
2656 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2657
2658 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2659
2660 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2661 assertion failure by returning early after a warning.
2662
2663 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2664
2665 * mips-tdep.c (mips_find_saved_regs): Make static.
2666 (mips_frame_init_saved_regs): New function.
2667 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2668 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2669 (mips_find_saved_regs): Delete declaration.
2670
2671 2002-08-08 Grace Sainsbury <graces@redhat.com>
2672
2673 * remote.c (remote_wait, remote_async_wait): Change
2674 thread_num from int to ULONGEST.
2675 (unpack_varlen_hex): Change result parameter from
2676 int * to ULONGEST *.
2677
2678 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2679
2680 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2681 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2682 powerpc*-*-*.
2683 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2684
2685 2002-08-08 Andrew Cagney <cagney@redhat.com>
2686
2687 * gcore.c (override_derive_stack_segment): Delete variable.
2688 (preempt_derive_stack_segment): Delete function.
2689 (derive_stack_segment): Delete function.
2690 (default_derive_stack_segment): Renamed to derive_stack_segment.
2691 (override_derive_heap_segment): Delete variable.
2692 (preempt_derive_heap_segment): Delete function.
2693 (derive_heap_segment): Delete function.
2694 (default_derive_heap_segment): Rename to derive_heap_segment.
2695
2696 2002-08-06 Michael Snyder <msnyder@redhat.com>
2697
2698 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2699 * mips-tdep.c (mips_EABI_use_struct_convention,
2700 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2701 New functions. (mips_use_struct_convention): Delete.
2702 (mips_gdbarch_init): set use_gdbarch_convention.
2703
2704 2002-08-06 Michael Snyder <msnyder@redhat.com>
2705
2706 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2707 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2708 mips_o32_reg_struct_has_addr): New functions.
2709 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2710
2711 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2712
2713 * regcache.c (pseudo_register): Delete function.
2714 (fetch_register): Delete function.
2715 (store_register): Delete function.
2716 (regcache_raw_read, legacy_read_register_gen): Use
2717 target_fetch_registers instead of fetch_register.
2718 (legacy_write_register_gen, regcache_raw_write): Use
2719 target_store_register instead of store_register.
2720 (write_register_bytes): Ditto.
2721
2722 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2723 (STORE_PSEUDO_REGISTER): Delete.
2724 * gdbarch.h, gdbarch.c: Regenerate.
2725
2726 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2727
2728 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2729 write dump file binary.
2730
2731 2002-08-05 Michael Snyder <msnyder@redhat.com>
2732
2733 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2734 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2735 (mips_gdbarch_init): Set N32 target to be mips64.
2736
2737 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2738
2739 * frame.c (find_saved_register): Break out of loop once saved
2740 register address is found. Don't mention sparc in loop comment
2741 anymore.
2742
2743 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2744
2745 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2746 mips_default_saved_regsize to 8.
2747
2748 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2749
2750 * gcore.c: Do not include <sys/procfs.h>.
2751 * Makefile.in (gcore.o): Update dependencies.
2752
2753 2002-08-06 Andrew Cagney <cagney@redhat.com>
2754
2755 * configure.tgt: Make arc-*-* obsolete.
2756 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2757 * MAINTAINERS: Make arc-elf obsolete.
2758 * arc-tdep.c: Make file obsolete.
2759 * config/arc/arc.mt: Ditto.
2760 * config/arc/tm-arc.h: Ditto.
2761
2762 2002-08-05 Theodore A. Roth <troth@verinet.com>
2763
2764 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2765
2766 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2767
2768 * mcore-tdep.c (mcore_gdbarch_init): Use
2769 generic_unwind_get_saved_register instead of
2770 generic_get_saved_register.
2771 * v850-tdep.c (v850_gdbarch_init): Ditto.
2772 * frv-tdep.c (frv_gdbarch_init): Ditto.
2773 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2774 * s390-tdep.c (s390_gdbarch_init): Ditto.
2775 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2776 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2777 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2778
2779 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2780
2781 * objfiles.h: Add missing #include "symfile.h"
2782
2783 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2784
2785 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2786
2787 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2788 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2789 of FIELD_BITSIZE.
2790
2791 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2792
2793 * NEWS: Cleanup and nitpick.
2794
2795 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2796
2797 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2798
2799 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2800
2801 * Makefile.in (gdbtk-bp.o): Update dependencies.
2802 (gdbtk-register.o): Ditto.
2803 (gdbtk-varobj.o): Ditto.
2804
2805 2002-08-03 Andrew Cagney <cagney@redhat.com>
2806
2807 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2808 m68hc11_fetch_pseudo_register.
2809 (m68hc11_pseudo_register_write): Replace
2810 m68hc11_store_pseudo_register.
2811 (m68hc11_gdbarch_init): Update.
2812
2813 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2814
2815 * gdbarch.sh: Include "gdb_string.h".
2816 * gdbarch.c: Regenerate.
2817
2818 * regcache.c: Include "gdb_string.h".
2819 * ax-general.c: Ditto.
2820 * varobj.c: Ditto.
2821 * std-regs.c: Ditto.
2822 * fbsd-proc.c: Ditto.
2823 * thread.c: Ditto.
2824
2825 * Makefile.in (regcache.o): Update dependencies.
2826 (thread.o, gdbarch.o): Ditto.
2827 (ax-general.o, gdbarch.o): Ditto.
2828 (varobj.o, std-regs.o): Ditto.
2829 (fbsd-proc.o): Specify dependencies.
2830
2831 2002-08-02 Andrew Cagney <cagney@redhat.com>
2832
2833 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2834 regnum.
2835 (regcache_cooked_write): Ditto.
2836
2837 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2838
2839 * regcache.c (regcache_cooked_read): New function.
2840 (regcache_cooked_write): New function.
2841 (read_register_gen): Rewrite using regcache_cooked_read.
2842 (write_register_gen): Rewrite using regcache_cooked_write.
2843
2844 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2845 Declare.
2846
2847 2002-08-02 Andrew Cagney <cagney@redhat.com>
2848
2849 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2850 Replace the architecture methods register_read and register_write.
2851 * gdbarch.h, gdbarch.c: Regenerate.
2852 * regcache.c (init_regcache_descr): Update.
2853 (read_register_gen): Update.
2854 (write_register_gen): Update.
2855 (supply_register): Update comment.
2856
2857 * sh-tdep.c (sh_gdbarch_init): Update.
2858 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2859 `regcache' and `gdbarch' parameters. Make `buffer' a void
2860 pointer. Update code.
2861 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2862 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2863 void pointer. Update code.
2864 (sh64_register_write): Delete.
2865 (sh4_register_read): Delete.
2866 (sh64_register_read): Delete.
2867 (sh4_register_write): Delete.
2868 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2869 void pointer, `to' parameter a void pointer.
2870 (sh_sh64_register_convert_to_raw): Ditto.
2871
2872 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2873
2874 * mips-tdep.c (mips_register_virtual_type): Use architecture
2875 invariant return values.
2876
2877 2002-08-01 Andrew Cagney <cagney@redhat.com>
2878
2879 * linux-proc.c: Include "gdb_string.h".
2880 * Makefile.in (linux-proc.o): Update dependency list.
2881
2882 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2883
2884 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2885 comment.
2886
2887 2002-08-01 Grace Sainsbury <graces@redhat.com>
2888
2889 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2890 to_insert_watchpoint, to_remove_watchpoint,
2891 to_stopped_by_watchpoint, to_stopped_data_address,
2892 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2893 target vecctor. Define their corresponding macros so they call
2894 them.
2895
2896 * target.c: Add default and debug versions of for
2897 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2898 to_insert_watchpoint, to_remove_watchpoint,
2899 to_stopped_by_watchpoint, to_stopped_data_address,
2900 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2901
2902 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2903
2904 * mips-tdep.c (mips_register_virtual_type): New function.
2905 (mips_gdbarch_init): Register mips_register_virtual_type()
2906 with gdbarch machinery.
2907 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2908 this file instead of tm-bigmips.h.
2909 (MIPS_REGSIZE): Delete this macro.
2910 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2911 multiarch version in mips-tdep.c will be found.
2912
2913 2002-08-01 Andrew Cagney <cagney@redhat.com>
2914
2915 * NEWS: Menion that CHILL has been made obsolete.
2916
2917 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2918 * stabsread.c (read_range_type): Ditto.
2919 * gdbtypes.h: Ditto.
2920 * language.c (binop_type_check): Ditto.
2921 (binop_result_type): Ditto.
2922 (integral_type): Ditto.
2923 (character_type): Ditto.
2924 (string_type): Ditto.
2925 (boolean_type): Ditto.
2926 (structured_type): Ditto.
2927 (lang_bool_type): Ditto.
2928 (binop_type_check): Ditto.
2929 * language.h (_LANG_chill): Ditto.
2930 * dwarfread.c (set_cu_language): Ditto.
2931 * dwarfread.c (CHILL_PRODUCER): Ditto.
2932 * dwarfread.c (handle_producer): Ditto.
2933 * expression.h (enum exp_opcode): Ditto.
2934 * eval.c: Ditto for comments.
2935 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2936 * expprint.c (print_subexp): Ditto.
2937 (print_subexp): Ditto.
2938 * valops.c (value_cast): Ditto.
2939 (search_struct_field): Ditto.
2940 * value.h (COERCE_VARYING_ARRAY): Ditto.
2941 * symfile.c (init_filename_language_table): Ditto.
2942 (add_psymbol_with_dem_name_to_list): Ditto.
2943 * valarith.c (value_binop): Ditto.
2944 (value_neg): Ditto.
2945 * valops.c (value_slice): Ditto.
2946 * symtab.h (union language_specific): Ditto.
2947 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2948 (SYMBOL_DEMANGLED_NAME): Ditto.
2949 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2950 * defs.h (enum language): Ditto.
2951 * symtab.c (got_symtab): Ditto.
2952 * utils.c (fprintf_symbol_filtered): Ditto.
2953
2954 * ch-typeprint.c: Make file obsolete.
2955 * ch-valprint.c: Make file obsolete.
2956 * ch-lang.h: Make file obsolete.
2957 * ch-exp.c: Make file obsolete.
2958 * ch-lang.c: Make file obsolete.
2959
2960 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2961 CHILL_LIB.
2962 (TARGET_FLAGS_TO_PASS): Ditto.
2963 (CHILLFLAGS): Obsolete.
2964 (CHILL): Obsolete.
2965 (CHILL_FOR_TARGET): Obsolete.
2966 (CHILL_LIB): Obsolete.
2967 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2968 ch-valprint.c.
2969 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2970 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2971 ch-lang.o.
2972 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2973 targets.
2974
2975 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2976
2977 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2978 This does not change anything at the moment, but will be helpful
2979 later when full Ada support is integrated.
2980
2981 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2982
2983 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2984 help message.
2985
2986 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2987
2988 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2989 and save it in a local variable. Use variable in later test.
2990
2991 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2992
2993 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2994 test. (Thanks to Daniel Jacobowitz.)
2995
2996 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2997
2998 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2999 (mips_abi_strings): Add "n64".
3000 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3001
3002 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3003
3004 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3005 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3006
3007 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3008
3009 * utils.c (host_pointer_to_address, address_to_host_pointer):
3010 Use gdb_assert() instead of explicit call to internal_error().
3011
3012 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3013
3014 * Makefile.in (rs6000-nat.o): Update dependencies.
3015
3016 From Nicholas Duffek:
3017 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3018 (aix-thread.o): New rule.
3019 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3020 * config/powerpc/aix432.mh: New file.
3021
3022 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3023
3024 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3025 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3026 (fetch_core_registers, ppc_linux_supply_gregset)
3027 (ppc_linux_supply_fpregset): New functions.
3028 (ppc_linux_regset_core_fns): New.
3029 (_initialize_ppc_linux_tdep): Call add_core_fns.
3030 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3031 and ppc_linux_supply_gregset.
3032 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3033 (supply_fpregset): Call ppc_linux_supply_fpregset.
3034 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3035 corelow.o.
3036 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3037
3038 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3039
3040 * symtab.c (lookup_symbol): Demangle before lowercasing.
3041
3042 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3043
3044 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3045 declaration.
3046 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3047 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3048 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3049 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3050 "gdb_string.h".
3051 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3052 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3053 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3054 (avr-tdep.o, mon960-rom.o): Ditto.
3055 (aout_stabs_gnu_h): Define.
3056 (symtab_h): Remove $(gdb_obstack_h).
3057
3058 2002-07-30 Jim Blandy <jimb@redhat.com>
3059
3060 Patch from David Carlton <carlton@math.stanford.edu>:
3061 * gdbinit.in: Move the `dir' commands that add GDB's own source
3062 directory to the search path to the end, so that the `gdb' source
3063 directory will be searched first.
3064
3065 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3066
3067 * gdb_obstack.h: New file.
3068 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3069 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3070 * objfiles.h: Include "gdb_obstack.h".
3071 * Makefile.in (gdb_obstack_h): Define.
3072 (symtab_h): Add $(gdb_obstack_h).
3073 (objfiles_h): Add $(gdb_obstack_h).
3074
3075 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3076 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3077 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3078 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3079 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3080 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3081 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3082 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3083
3084 * Makefile.in (bcache.o): Update dependencies.
3085 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3086 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3087 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3088 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3089 (stabsread.o, symfile.o, symmisc.o): Ditto.
3090 (symtab.o, typeprint.o, macroexp.o): Ditto.
3091 (macrotab.o, mdebugread.o): Ditto.
3092 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3093 (coff_ecoff_h, aout_aout64_h): Define.
3094 (aout_stabs_gnu_h, libaout_h): Define.
3095
3096 2002-07-29 Andrew Cagney <cagney@redhat.com>
3097
3098 * regcache.c (struct regcache_descr): Rename nr_registers to
3099 nr_cooked_registers. Revise comments describing the structure
3100 member fields.
3101 (init_regcache_descr): Update.
3102 (init_legacy_regcache_descr): Update.
3103 (read_register_gen, write_register_gen): When a cooked register in
3104 the raw register range, directly access the value from the raw
3105 register cache.
3106
3107 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3108
3109 * z8k-tdep.c: Do not include "obstack.h".
3110 * h8300-tdep.c, h8500-tdep.c: Ditto.
3111 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3112 * valprint.c, v850-tdep.c: Ditto.
3113 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3114 * mn10200-tdep.c: Ditto.
3115
3116 * Makefile.in (z8k-tdep.o): Update dependencies.
3117 (m68hc11-tdep.o, valprint.o): Ditto.
3118 (v850-tdep.o, d10v-tdep.o): Ditto.
3119 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3120 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3121 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3122 (sh_opc_h, gdb_sim_sh_h): Define.
3123 (elf_sh_h, elf_bfd_h): Define.
3124 (opcode_m68hc11_h): Define.
3125 (OPCODES_SRC, OPCODES_DIR): define.
3126 (OPCODES): Use $(OPCODES_DIR).
3127 (gdb_sim_d10v_h): Rename sim_d10v_h.
3128 (gdb_sim_arm_h): Rename sim_arm_h.
3129
3130 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3131
3132 * utils.c (host_pointer_to_address, address_to_host_pointer):
3133 Change internal_error() message to indicate function responsible
3134 for the error.
3135
3136 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3137
3138 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3139 calls to local_hex_string_custom().
3140
3141 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3142
3143 * irix5-nat.c: Move IRIX shared library support from here...
3144 * solib-irix.c: ...to here. Revised substantially to work with
3145 generic solib framework.
3146
3147 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3148 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3149 * mips-irix-tdep.c: New file.
3150
3151 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3152 (mips-irix-tdep.o, solib-irix.o): New rules.
3153 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3154 solib-irix.o.
3155 * config/mips/irix6.mt (TDEPFILES): Likewise.
3156 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3157
3158 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3159
3160 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3161 disabled (via ``#if 0'') includes.
3162
3163 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3164
3165 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3166 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3167 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3168 Add support for the fpscr register.
3169 * rs6000-nat.c (regmap, fetch_inferior_registers)
3170 (store_inferior_registers, fetch_core_registers): Likewise.
3171
3172 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3173
3174 * rs6000-nat.c (language.h): Include.
3175 (special_regs): Delete this array.
3176 (regmap): New function.
3177 (fetch_register, store_register): Use regmap() to map gdb
3178 register numbers to ptrace register numbers. Also, use
3179 outputs from regmap() to make decisions regarding type of
3180 ptrace() call to make. In particular, don't compare against
3181 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3182 (fetch_inferior_registers, store_inferior_registers): Where
3183 possible, obtain register numbers from tdep struct. Don't
3184 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3185 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3186 (LAST_UISA_SP_REGNUM): Delete.
3187
3188 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3189
3190 * rs6000-nat.c (ppc-tdep.h): Include.
3191 (fetch_registers, store_register, fetch_core_registers): Don't
3192 access registers[] directly. Instead, use supply_register() or
3193 regcache_collect() as appropriate.
3194 (find_toc_address): Format hex address with local_hex_string().
3195
3196 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3197
3198 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3199 bfd/elf32-frv.c.
3200
3201 2002-07-24 Tom Tromey <tromey@redhat.com>
3202
3203 * jv-exp.y: Marked all strings with _().
3204 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3205 internal_error.
3206 (MethodInvocation, CastExpression, parse_number, yyerror,
3207 java_type_from_name, push_expression_name, yylex): Typo fixes.
3208
3209 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3210
3211 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3212 (tee_file_flush, tee_file_write, tee_file_fputs)
3213 (tee_file_isatty): New.
3214 * ui-file.h (tee_file_new): Add prototype.
3215
3216 2002-07-24 Aidan Skinner <aidan@velvet.net>
3217
3218 * ada-lang.c: Change k&r style function definitions to prototyped
3219 form.
3220 * ada-typeprint.c: Change k&r style function definitions to prototyped
3221 form.
3222 * ada-valprint.c: Change k&r style function definitions to prototyped
3223 form.
3224
3225 2002-07-24 Andrew Cagney <cagney@redhat.com>
3226
3227 * README: Remove reference to remote-bug.
3228 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3229 remote-bug.c.
3230 (m88k-nat.o): Delete rule.
3231 (m88k-tdep.o): Delete rule.
3232 (remote-bug.o): Delete rule.
3233 * MAINTAINERS: Mark as obsolete.
3234 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3235 * m88k-tdep.c: Make file obsolete.
3236 * config/m88k/m88k.mh: Ditto.
3237 * config/m88k/delta88v4.mh: Ditto.
3238 * config/m88k/delta88v4.mt: Ditto.
3239 * config/m88k/delta88.mt: Ditto.
3240 * config/m88k/delta88.mh: Ditto.
3241 * remote-bug.c: Ditto.
3242 * config/m88k/tm-delta88.h: Ditto.
3243 * config/m88k/nm-delta88v4.h: Ditto.
3244 * config/m88k/xm-delta88.h: Ditto.
3245 * config/m88k/xm-dgux.h: Ditto.
3246 * config/m88k/tm-m88k.h: Ditto.
3247 * config/m88k/nm-m88k.h: Ditto.
3248 * config/m88k/tm-delta88v4.h: Ditto.
3249 * m88k-nat.c: Ditto.
3250 * cxux-nat.c: Ditto.
3251 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3252 and m88*-*-* obsolete.
3253 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3254 m88*-*-* obsolete.
3255
3256 2002-07-24 Andrew Cagney <cagney@redhat.com>
3257
3258 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3259 constant. Same for local pointer variables.
3260 (extract_signed_integer): Ditto.
3261 * defs.h (extract_unsigned_integer): Update.
3262 (extract_signed_integer): Update.
3263
3264 2002-07-24 Andrew Cagney <cagney@redhat.com>
3265
3266 * regcache.c (regcache_raw_write): Change buf parameter to a
3267 constant void pointer.
3268 (regcache_raw_read): Change buf parameter to a void pointer.
3269 (legacy_write_register_gen): Change myaddr parameter a constant
3270 void pointer.
3271 (supply_register): Change val parameter to a const void pointer.
3272 * regcache.h (regcache_raw_write): Update declaration.
3273 (regcache_raw_read): Update declaration.
3274 (supply_register): Update declaration.
3275
3276 2002-07-24 Tom Tromey <tromey@redhat.com>
3277
3278 * defs.h (gdb_readline_wrapper): Declare.
3279 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3280 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3281 * top.c (gdb_readline_wrapper): New function.
3282 (command_line_input): Use it.
3283
3284 2002-07-24 Andrew Cagney <cagney@redhat.com>
3285
3286 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3287 regcache_read and regcache_write.
3288 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3289 * regcache.c: Update.
3290 * sh-tdep.c (sh64_push_arguments): Update comment.
3291 (sh_pseudo_register_read): Update.
3292 (sh_pseudo_register_write): Update.
3293 (sh4_register_read): Update.
3294 (sh4_register_write): Update.
3295 (sh64_pseudo_register_read): Update.
3296 (sh64_pseudo_register_write): Update.
3297 (sh64_register_read): Update.
3298 (sh64_register_write): Update.
3299 * i386-tdep.c (i386_extract_return_value): Update.
3300 (i386_extract_struct_value_address): Update.
3301 (i386_extract_return_value): Update.
3302 * blockframe.c (generic_read_register_dummy): Update.
3303 (generic_call_dummy_register_unwind): Update
3304 * infrun.c (write_inferior_status_register): Update.
3305
3306 2002-07-23 Jim Blandy <jimb@redhat.com>
3307
3308 * parser-defs.h (expression_context_pc): Make this extern.
3309 (Thanks to Michael Snyder.)
3310
3311 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3312
3313 GDB 5.2.1 released from 5.2 branch.
3314 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3315 * README: Update to mention 5.2.1.
3316
3317 2002-07-23 Mark Salter <msalter@redhat.com>
3318
3319 * remote.c (remote_read_bytes): Fix check for error.
3320
3321 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3322
3323 * aix-thread.c (language.h): Include.
3324 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3325 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3326 Print newlines at end of debug messages.
3327 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3328 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3329
3330 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3331
3332 * aix-thread.c (ppc-tdep.h): Include.
3333 (special_register_p): New function.
3334 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3335 (store_regs_user_thread): Use register number information from
3336 gdbarch_tdep struct instead of hardcoded offsets relative to
3337 FIRST_UISA_SP_REGNUM.
3338 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3339 special_register_p() instead of using FPLAST_REGNUM and
3340 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3341 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3342 will be MQ's register number.
3343
3344 2002-07-22 Michael Snyder <msnyder@redhat.com>
3345
3346 * aix-thread.c (ops): Rename to aix_thread_ops.
3347 (base_ops): Rename to base_target.
3348 (ops_attach): Rename to aix_thread_attach.
3349 (ops_detach): Rename to aix_thread_detach.
3350 (ops_resume): Rename to aix_thread_detach.
3351 (ops_wait): Rename to aix_thread_wait.
3352 (ops_kill): Rename to aix_thread_kill.
3353 (init_ops): Rename to init_aix_thread_ops.
3354 (ops_fetch_register): Rename to aix_thread_fetch_register.
3355 (ops_store_register): Rename to aix_thread_store_register.
3356 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3357 (ops_thread_alive): Rename to aix_thread_thread_alive.
3358 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3359 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3360 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3361 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3362 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3363 (store_regs_lib): Rename to store_regs_user_thread.
3364 (store_regs_kern): Rename to store_regs_kernel_thread.
3365
3366 2002-07-22 Michael Snyder <msnyder@redhat.com>
3367
3368 * aix-thread.c (ops_prepare_to_store): Eliminate.
3369 (init_ops): Don't initialize ops.prepare_to_store.
3370 (store_regs_kern): Pre-fetch register buffers from child,
3371 because some registers may not be in the cache. Copy
3372 regs from register cache only if they are cached.
3373 (store_regs_lib): Copy regs from register cache only
3374 if they are cached.
3375 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3376 fill_gprs64): Ditto.
3377
3378 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3379
3380 * aix-thread.c (gdb_assert.h): Include.
3381 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3382 register sizes (from register cache) match size of buffer holding
3383 register data.
3384 (fill_sprs32): Change parameter types to match those in the ptrace()
3385 buffer.
3386 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3387 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3388
3389 2002-07-22 Michael Snyder <msnyder@redhat.com>
3390
3391 * aix-thread.c (supply_sprs64): Cosmetic change.
3392 (supply_sprs32): Cosmetic change.
3393 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3394 (fill_sprs64): Use regcache_collect instead of read_register.
3395 (store_regs_lib): Use regcache_collect instead of
3396 read_register. Use fill_sprs32 instead of fill_sprs64,
3397 if debugging a 32-bit architecture.
3398 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3399 out of the register cache, instead of passing a pointer into
3400 the register cache directly to ptrace. Use regcache_collect
3401 insteaad of read_register.
3402 (ops_prepare_to_store): Use target_read_registers instead
3403 of read_register_bytes.
3404
3405 2002-07-20 Aidan Skinner <aidan@velvet.net>
3406
3407 * MAINTAINERS: Add self under write after approval.
3408
3409 2002-07-20 Aidan Skinner <aidan@velvet.net>
3410
3411 * ada-tasks.c: Change k&r style function definitions to prototyped
3412 form.
3413
3414 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3415
3416 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3417 * x86-64-tdep.c: Include "objfiles.h".
3418 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3419 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3420
3421 2002-07-17 Michal Ludvig <michal@suse.cz>
3422
3423 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3424 (update_context): Initialise cfa variable.
3425
3426 2002-07-17 Michael Snyder <msnyder@redhat.com>
3427
3428 * aix-thread.c: Shorten some long lines.
3429 Bring comments into line with code spec.
3430
3431 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3432
3433 * infrun.c: Re-indent using gdb_indent.sh.
3434
3435 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3436
3437 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3438 Leave the indentation temporarily untouched, to minimize the diffs.
3439
3440 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3441
3442 * stabsread.c: Make os9k sections of the code obsolete,
3443 for real this time.
3444 * stabsread.h: Make os9k sections of the code obsolete.
3445
3446 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3447
3448 * linux-low.c (regsets_store_inferior_registers): Add free()
3449 at the end of a loop to prevent memory leak.
3450 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3451 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3452 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3453 line a comment.
3454 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3455
3456 2002-07-17 Jim Blandy <jimb@redhat.com>
3457
3458 * macrocmd.c (info_macro_command): Remove newline from error
3459 message.
3460
3461 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3462
3463 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3464 (sh_gdbarch_init): Use it for sh-dsp.
3465
3466 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3467
3468 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3469 64-bit DWARF2 format.
3470
3471 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3472
3473 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3474 <sys/proc.h> when not available.
3475
3476 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3477
3478 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3479 * stabsread.c: Make os9k sections of the code obsolete.
3480 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3481 * config/i386/i386os9k.mt: Make file obsolete.
3482 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3483 (COMMON_OBS): Remove os9kread.o
3484 (SFILES): Remove os9kread.c.
3485 (os9kread.o, remote-os9k.o): Make target obsolete.
3486 * remote-os9k.c: Make file obsolete.
3487 * os9kread.c: Make file obsolete.
3488 * Makefile.in
3489
3490 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3491
3492 * NEWS: Mention that the FR30 has been made obsolete.
3493 * fr30-tdep.c: Make file obsolete.
3494 * config/fr30/tm-fr30.h: Ditto.
3495 * config/fr30/fr30.mt: Ditto.
3496 * configure.tgt: Make fr30-*-elf obsolete.
3497 * MAINTAINERS: Make fr30-elf obsolete.
3498
3499 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3500
3501 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3502 found is not inside a section.
3503
3504 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3505
3506 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3507 strerror().
3508 (pdc_realloc): Use xrealloc() instead of realloc().
3509
3510 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3511
3512 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3513 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3514 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3515 macros.
3516
3517 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3518
3519 * aix-thread.c (ptrace_check): Eliminate goto.
3520 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3521 problem.
3522
3523 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3524
3525 * aix-thread.c (gdbcmd.h): Include.
3526 (DEBUG, DBG, DBG2, dbg): Eliminate.
3527 (debug_aix_thread): New static global.
3528 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3529 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3530 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3531 invocations to DBG and DBG2 macros to test against
3532 ``debug_aix_thread'' and call fprintf_unfiltered().
3533 (_initialize_aix_thread): Add new command "set debug aix-thread".
3534
3535 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3536
3537 From Gerhard Tonn <TON@de.ibm.com>:
3538 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3539 instead of supply_register.
3540
3541 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3542
3543 * dwarf2cfi.c: Include "gdb_assert.h".
3544 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3545 non-NULL.
3546 (update_context): Do not use __func__. Add missing ``break''.
3547 (update_context): Do not use __func__.
3548
3549 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3550
3551 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3552 and its setting. Set gdbarch instruction printing functions
3553 directly. For non-rs6000 case use new function
3554 gdb_print_insn_powerpc.
3555 (gdb_print_insn_powerpc): New function.
3556
3557 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3558
3559 * NEWS: Mention that the d30v has been marked obsolete.
3560 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3561 * configure.tgt: Mark d30v-*-* as obsolete.
3562 * d30v-tdep.c: Mark file as obsolete.
3563 * config/d30v/d30v.mt: Ditto.
3564 * config/d30v/tm-d30v.h: Ditto.
3565
3566 2002-07-13 Aidan Skinner <aidan@velvet.net>
3567
3568 * ada-tasks.c (add_task_entry): replace calls to
3569 malloc() with xmalloc
3570 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3571
3572 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3573 ada_finish_decode_line_1, all_sals_for_line
3574 ada_breakpoint_rewrite): replace calls to free() with xfree()
3575
3576 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3577
3578 From Nicholas Duffek (with minor changes by Martin Hunt,
3579 Louis Hamilton, and Kevin Buettner):
3580 * aix-thread.c: New file.
3581
3582 2002-07-12 Petr Sorfa <petrs@caldera.com>
3583
3584 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3585 complaint for invalid attribute class or form.
3586 (read_func_scope): DW_AT_frame_base
3587 better handling of DW_AT_block*.
3588 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3589 better handling of DW_AT_block*.
3590 (read_common_block): DW_AT_location
3591 better handling of DW_AT_block*.
3592 (read_partial_die): DW_AT_location better handling
3593 of DW_AT_block*.
3594 (new_symbol): DW_AT_external better handling of
3595 DW_AT_block*. Proper initialization of variable
3596 "addr".
3597 (attr_form_is_block): New function that returns true
3598 if the attribute's form is of DW_FORM_block*.
3599
3600 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3601
3602 * valops.c (find_method_list): Remove comment about
3603 removed STATIC_MEMFUNCP argument.
3604 (value_find_oload_method_list): Likewise.
3605
3606 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3607
3608 From Nicholas Duffek:
3609 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3610 target_new_objfile_hook.
3611
3612 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3613
3614 From Nicholas Duffek:
3615 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3616 csect.
3617
3618 2002-07-12 Andrew Cagney <cagney@redhat.com>
3619
3620 * MAINTAINERS: Mention --enable-sim-build-warnings.
3621 (m68hc11-elf): Disable sim build warnings.
3622 (m32r-elf): Mark as broken obsolete candidate.
3623 (x86_64-linux-gnu): Mark as buildable with -Werror.
3624 (arm-elf): Change -w to ``,'' which enables warnings but not
3625 -Werror.
3626
3627 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3628
3629 * bcache.h: Update copyright.
3630 (struct bstring, struct bcache): Move definition to "bcache.c".
3631 Replaced by opaque declaration.
3632 (bcache_xfree): Replace free_bcache.
3633 (bcache_xmalloc, bcache_memory_used): Declare.
3634
3635 * bcache.c: Update copyright.
3636 (struct bstring, struct bcache): Moved to here from "bcache.h".
3637 Update comments.
3638 (bcache_xmalloc, bcache_memory_used): New functions.
3639 (bcache_xfree): Replace function free_bcache.
3640
3641 * Makefile.in (objfiles.o): Add $(bcache_h).
3642 (objfiles_h): Remove $(bcache_h).
3643 (symfile.o): Add $(bcache_h).
3644
3645 * symmisc.c: Update copyright.
3646 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3647 (print_objfile_statistics): Use bcache_memory_used.
3648
3649 * symfile.c: Include "bcache.h".
3650 (reread_symbols): Use bcache_xfree.
3651 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3652 (add_psymbol_to_list): Pass psymbol_cache by value.
3653 (add_psymbol_with_dem_name_to_list): Ditto.
3654
3655 * objfiles.h: Update copyright.
3656 (struct bcache): Declare opaque. Do not include "bcache.h".
3657 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3658 bcache'' pointers.
3659 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3660
3661 * objfiles.c: Include "bcache.h". Update copyright.
3662 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3663 macro_cache.
3664 (free_objfile): Use bcache_xfree.
3665
3666 2002-07-11 Grace Sainsbury <graces@redhat.com>
3667
3668 * monitor.c (monitor_fetch_register): Make name a constant.
3669 (monitor_store_register): Same.
3670
3671 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3672
3673 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3674 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3675 (finish_block) For non-function blocks, hash the symbol table. For
3676 function blocks, mark the symbol table as unhashed.
3677 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3678 (msymbol_hash_iw): Likewise.
3679 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3680 value.
3681 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3682 (lookup_minimal_symbol): Likewise for both.
3683 * symtab.h (struct block): Add `hashtable' flag. Comment the
3684 hashtable.
3685 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3686 (ALL_BLOCK_SYMBOLS): Update.
3687 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3688 (struct symbol): Add `hash_next' pointer.
3689 * symtab.c (lookup_block_symbol): Search using the hash table when
3690 possible.
3691 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3692 (search_symbols, find_addr_symbol): Likewise.
3693
3694 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3695 (read_dst_symtab): Likewise.
3696 * jv-lang.c (get_java_class_symtab): Likewise.
3697 * mdebugread.c: Include "gdb_assert.h".
3698 (shrink_block): Assert that the block being modified is not hashed.
3699 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3700 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3701 symbols.
3702 (dump_symtab): Recognize hashed blocks.
3703 * printcmd.c (print_frame_args): Assert that function blocks do not
3704 have hashed symbol tables.
3705 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3706 (fill_in_ada_prototype, debug_print_block): Likewise.
3707 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3708
3709 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3710
3711 * stack.c (print_frame): Use result of frame_address_in_block()
3712 instead of fi->pc when evaluating symbols.
3713 (backtrace_command_1): Ditto.
3714
3715 2002-07-11 Andrew Cagney <cagney@redhat.com>
3716
3717 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3718 Make static.
3719
3720 * arm-tdep.c (arm_register_name): Make return type constant.
3721
3722 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3723
3724 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3725 prototype.
3726 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3727 * s390-tdep.c (s390_fp_regnum): Ditto.
3728 (s390_read_fp): Ditto.
3729 (s390_pop_frame): Ditto.
3730 (_initialize_s390_tdep): Ditto.
3731 * remote.c (get_remote_state): Ditto.
3732 * procfs.c (mappingflags): Ditto.
3733 * memattr.c (_initialize_mem): Ditto.
3734 * mcore-tdep.c (mcore_pop_frame): Ditto.
3735 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3736 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3737 * language.c (set_case_str): Ditto.
3738 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3739 * frv-tdep.c (new_variant): Ditto.
3740 (frv_stopped_data_address): Ditto.
3741 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3742 (context_alloc): Ditto.
3743 (frame_state_alloc): Ditto.
3744 (unwind_tmp_obstack_init): Ditto.
3745 (unwind_tmp_obstack_free): Ditto.
3746 (cfi_read_fp): Ditto.
3747 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3748 (cris_pop_frame): Ditto.
3749 * c-lang.c (scanning_macro_expansion): Ditto.
3750 (finished_macro_expansion): Ditto.
3751 (c_preprocess_and_parse): Ditto.
3752 * gdbarch.sh: Ditto.
3753 * gdbarch.h, gdbarch.c: Regenerate.
3754 * config/mn10200/tm-mn10200.h: Adjust indentation.
3755 * target.c: Adjust indentation.
3756 * symtab.h: Adjust indentation.
3757 * stabsread.h: Adjust indentation.
3758 * remote-es.c: Adjust indentation.
3759 * os9kread.c: Adjust indentation.
3760
3761 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3762
3763 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3764 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3765
3766 2002-07-10 Grace Sainsbury <graces@redhat.com>
3767
3768 * NEWS: Mention m68k, mcore multi-arching.
3769 * MAINTAINERS: Change status of m68k, mcore to reflect
3770 multi-arching.
3771
3772 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3773
3774 * valops.c (find_overload_match): Free oload_syms.
3775
3776 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3777
3778 Define HAVE_SYS_PROC_H if sys/proc.h exists
3779 * configure.in: Add check for sys/proc.h
3780 * config.in: Regenerate.
3781 * configure: Regenerate.
3782
3783 2002-07-09 Grace Sainsbury <graces@redhat.com>
3784
3785 * config/m68k/tm-m68k.h: Remove macros wrapped in
3786 #if !GDB_MULTI_ARCH.
3787
3788 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3789
3790 * config.in, configure: Regenerate.
3791
3792 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3793
3794 * dwarf2cfi.c: Include "gcore.h".
3795 (execute_stack_op): Fix implementation of the
3796 DW_OP_deref and DW_OP_deref_size operators by letting do their
3797 lookup in the target.
3798
3799 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3800
3801 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3802 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3803 tdep->sc_sp_offset.
3804
3805 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3806
3807 Fix PR gdb/595, gdb/602
3808 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3809 Don't call value_cast, just read the vtable pointer; update comments
3810 to match.
3811
3812 2002-07-05 Grace Sainsbury <graces@redhat.com>
3813
3814 * config/mcore/tm-mcore.h: Remove file.
3815 * config/mcore/mcore.mt: Remove definition of TM_FILE
3816 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3817
3818 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3819
3820 * i386bsd-tdep.c: Include "gdb_string.h".
3821
3822 2002-07-04 Grace Sainsbury <graces@redhat.com>
3823
3824 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3825 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3826 mcore-tdep.
3827 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3828 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3829 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3830 (RETVAL_REGNUM): Move macros from tm-mcore.h
3831 (mcore_reg_struct_has_addr): New function.
3832 (mcore_gdbarch_init): Added initializations for the macros removed
3833 from tm-mcore.h.
3834
3835 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3836
3837 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3838 traditonal string branding within the ELF header.
3839
3840 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3841
3842 * symtab.c (remove_params): New function.
3843 (make_symbol_overload_list): Use it instead of cplus_demangle.
3844 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3845
3846 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3847
3848 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3849
3850 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3851 New variables.
3852 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3853 and tdep->sigtramp_end.
3854 * i386obsd-nat.c: New file.
3855 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3856
3857 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3858 Don't call get_current_frame().
3859
3860 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3861
3862 * i386-nat.c (child_post_startup_inferior): New function
3863 calling i386_cleanup_dregs if
3864 I386_USE_GENERIC_WATCHPOINTS is defined.
3865 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3866 conditional to acknowledge that i386-nat.c has its
3867 own child_post_startup_inferior function.
3868
3869 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3870
3871 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3872 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3873 instead of MAX_REGISTER_RAW_SIZE.
3874 (i386_extract_return_value, i386_extract_struct_value_address):
3875 Convert to use regcache.
3876 (i386_gdbarch_init): Set max_register_raw_size and
3877 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3878 Set extract_return_value and extract_struct_value_address instead
3879 of their deprecated variants.
3880
3881 Convert i386 target to generic dummy frames.
3882 * i386-tdep.c: Include "symfile.h".
3883 (i386_frameless_signal_p): Consider a function to be frameless if
3884 the pc points at the first instruction of the function.
3885 (i386_frame_chain): Handle (generic) call dummies.
3886 (i386_frame_saved_pc): Likewise.
3887 (i386_frame_init_saved_regs): Remove code dealing with call
3888 dummies on the stack.
3889 (i386_push_dummy_frame): Removed.
3890 (i386_call_dummy_words): Removed.
3891 (i386_fix_call_dummy): Removed.
3892 (i386_push_return_address): New function.
3893 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3894 parameter, and don't call get_current_frame.
3895 (i386_pop_frame): New function.
3896 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3897 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3898 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3899 call_dummy_length to 0, set call_dummy_words to NULL, set
3900 sizeof_call_dummy_words to 0, set fix_call_dummy to
3901 generic_fix_call_dummy, set pc_in_call_dummy to
3902 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3903 generic_push_dummy_frame, set push_return_address to
3904 i386_push_return_address and set frame_chain_valid to
3905 generic_file_frame_chain_valid.
3906
3907 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3908
3909 * gdbarch.sh (struct regcache): Add opaque declaration.
3910 (EXTRACT_RETURN_VALUE): New architecture method.
3911 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3912 * gdbarch.h, gdbarch.c: Regenerate.
3913 * arch-utils.c (legacy_extract_return_value): New function.
3914 * arch-utils.h (legacy_extract_return_value): Declare.
3915 * values.c (value_being_returned): Re-enable code handling
3916 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3917 deprecated_grub_regcache_for_registers call to block handling
3918 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3919 (EXTRACT_RETURN_VALUE): Do not define.
3920
3921 2002-07-03 Grace Sainsbury <graces@redhat.com>
3922
3923 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3924 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3925 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3926 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3927 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3928 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3929 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3930 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3931 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3932 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3933 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3934 argument so the function fits the prototype in the architecture
3935 vector.
3936 (mcore_pop_frame): Remove argument so the function fits the
3937 prototype. Use get_current_frame instead of the argument.
3938 (mcore_push_arguments): Change type of struct_return so the
3939 function can be used in the architecture vector.
3940 (mcore_store_struct_return): Add.
3941 (mcore_frame_init_saved_regs): Add.
3942 (mcore_gdbarch_init): Add function calls to replace the macros
3943 removed from tm-mcore.h
3944
3945 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3946
3947 * infcmd.c (print_return_value): Remove compatibility code calling
3948 deprecated_grub_regcache_for_registers.
3949
3950 * values.c: Include "regcache.h".
3951 (value_being_returned): Update. Use
3952 deprecated_grub_regcache_for_registers to extract the register
3953 buffer address.
3954 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3955 ``struct regcache''.
3956 * Makefile.in (values.o): Add dependency on $(regcache_h).
3957
3958 * inferior.h (run_stack_dummy): Change type of second parameter to
3959 a ``struct regcache''.
3960 * valops.c (hand_function_call): Change type of retbuf to ``struct
3961 regcache''. Allocate using regcache_xmalloc, clean using
3962 make_cleanup_regcache_xfree.
3963 * infcmd.c (run_stack_dummy): Update. Use
3964 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3965
3966 * regcache.c (do_regcache_xfree): New function.
3967 (make_cleanup_regcache_xfree): New function.
3968 * regcache.h (make_cleanup_regcache_xfree): Declare.
3969
3970 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3971
3972 * event-top.c (command_line_handler): Don't read past
3973 beginning of buffer.
3974
3975 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3976
3977 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3978 struct frame_id.
3979 (varobj_create): Store frame_id for root.
3980 (varobj_gen_name): Use xasprintf.
3981 (varobj_update): Save and restore frame using get_frame_id() and
3982 frame_find_by_id().
3983 (create_child): Use xasprintf.
3984 (new_root_variable): Initialize frame_id.
3985 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3986 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3987 to prevent memory leak.
3988
3989 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3990
3991 * valops.c (hand_function_call): Move declaration of retbuf to
3992 start of function, allocate using malloc, add a cleanup but before
3993 the inf_status cleanup, cleanup the buffer. Rename local variable
3994 old_chain to inf_status_cleanup.
3995
3996 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3997
3998 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3999
4000 * cli/cli-decode.c (cmd_func_p): New function.
4001 (cmd_func): New function.
4002
4003 * command.h: Add cmd_func() and cmd_func_p().
4004
4005 2002-07-03 Grace Sainsbury <graces@redhat.com>
4006
4007 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4008 (REGISTER_SIZE): Remove.
4009 (MAX_REGISTER_RAW_SIZE): Remove.
4010 (REGISTER_VIRTUAL_TYPE): Remove.
4011 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4012 (REGISTER_NAME): Remove.
4013 (USE_GENERIC_DUMMY_FRAMES): Remove.
4014 (CALL_DUMMY): Remove.
4015 (CALL_DUMMY_START_OFFSET): Remove.
4016 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4017 (CALL_DUMMY_LOCATION): Remove.
4018 (FIX_CALL_DUMMY): Remove.
4019 (CALL_DUMMY_ADDRESS): Remove.
4020 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4021 (SAVE_DUMMY_FRAME_TOS): Remove.
4022 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4023 (mcore_register_virtual_type): New function.
4024 (mcore_register_byte): New function.
4025 (mcore_register_size): New function.
4026 (mcore_register_name): New function.
4027 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4028 macros removed from tm-mcore.h.
4029 (mcore_dump_tdep): Add.
4030 (_initialize_mcore_tdep): Add gdbarch_register call.
4031
4032 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4033
4034 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4035 frameless_look_for_prologue, such that we actually call this
4036 function.
4037
4038 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4039
4040 * frame.h (frame_address_in_block): New function.
4041
4042 * blockframe.c (frame_address_in_block): New function extracted
4043 from get_frame_block().
4044 (get_frame_block): Use frame_address_in_block().
4045 (block_innermost_frame): Use frame_address_in_block() to match
4046 the frame pc address against the block boundaries rather than
4047 the frame pc directly. This prevents a failure when a frame pc
4048 is actually a return-address pointing immediately after the end
4049 of the given block.
4050
4051 2002-07-02 Grace Sainsbury <graces@redhat.com>
4052
4053 * MAINTAINERS: Add self under write after approval.
4054
4055 2002-07-02 Grace Sainsbury <graces@redhat.com>
4056
4057 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4058 used in architecture vector. The default is
4059 m68k_local_breakpoint_from_pc.
4060 (m68k_local_breakpoint_from_pc): Add.
4061 (enum): Add register numbers from tm-m68k.h.
4062 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4063 vector.
4064 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4065 GDB_MULTI_ARCH_PARTIAL.
4066 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4067 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4068 m68k-tdep.c.
4069 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4070 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4071 to enum in m68k-tdep.c
4072
4073 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4074
4075 * solib-osf.c (open_map): Compute the list of shared libraries
4076 loaded by the inferior, rather than the list of libraries loaded
4077 by GDB itself. Otherwise, GDB ends up reading the symbols from
4078 the wrong shared libraries...
4079
4080 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4081
4082 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4083 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4084 macros.
4085 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4086 Remove functions.
4087 (FRAMELESS_SIGNAL): Remove function.
4088 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4089 i386_linux_saved_pc_after_call): Removed.
4090 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4091 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4092 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4093
4094 * i386-tdep.c (i386_frameless_signal_p): New function.
4095 (i386_frame_chain): Deal with frameless signals.
4096 (i386_sigtramp_saved_sp): New function.
4097 (i386_frame_saved_pc): Deal with frameless signals.
4098 (i386_saved_pc_after_call): Make sure the correct value is
4099 returned just after entry into a sigtramp.
4100 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4101 i386fbsd4_sc_sp_offset): New variables.
4102 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4103 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4104 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4105 similiar to what we already did for sc_pc_offset.
4106 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4107 tdep->sc_sp_offset.
4108
4109 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4110
4111 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4112
4113 * config/i386/tm-x86-64linux.h: New.
4114 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4115 definitions.
4116 * config/i386/nm-x86-64.h: Rename to ...
4117 * config/i386/nm-x86-64linux.h: ... this one.
4118 * config/i386/x86-64linux.mh: Reflect the above change.
4119
4120 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4121
4122 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4123 with sigcontext_addr. Add sc_sp_offset.
4124 (i386bsd_sigtramp_saved_pc): Remove prototype.
4125 (i386bsd_sicontext_addr): Add prototype.
4126 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4127 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4128 (i386_svr4_sigtramp_saved_pc): Removed.
4129 (i386_svr4_sigcontext_addr): New function.
4130 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4131 Initialize tdep->sigcontext_addr instead. Initialize
4132 tdep->sc_pc_offset and tdep->sc_sp_offset.
4133 (i386_gdbarch_init): Likewise.
4134 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4135 any more.
4136 (i386bsd_sigtramp_saved_pc): Remove function.
4137 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4138 Initialize tdep->sigcontext_addr instead. Initialize
4139 tdep->sc_pc_offset.
4140 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4141 of tdep->sigtramp_saved_pc.
4142 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4143 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4144 instead.
4145
4146 * i386-tdep.c (i386_frameless_function_invocation,
4147 i386_frame_num_args, i386_frame_init_saved_regs,
4148 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4149 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4150 i386_extract_return_value, i386_store_return_value,
4151 i386_extract_struct_value_address, i386_register_virtual_type,
4152 i386_register_convertible, i386_register_convert_to_virtual,
4153 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4154 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4155 static.
4156
4157 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4158
4159 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4160
4161 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4162 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4163 this macro. Include "value.h".
4164
4165 2002-06-30 Aidan Skinner <aidan@velvet.net>
4166
4167 * ada-exp.tab.c: remove as it's a generated file
4168 * ada-lex.c: remove as it's a generated file
4169
4170 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4171
4172 * config/i386/tm-i386.h (struct frame_info, struct
4173 frame_saved_regs, struct value, struct type): Remove forward
4174 declarations.
4175
4176 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4177 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4178 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4179 (FILL_FPXREGSET): Define.
4180
4181 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4182
4183 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4184 i[3456]86-*-netbsd* case.
4185 * config/i386/tm-obsd.h: Removed.
4186 * config/i386/obsd.mt: Removed.
4187 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4188 core-aout.o.
4189 (MH_CFLAGS): Add -DYYDEBUG=0.
4190
4191 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4192 i386nbsd_sc_pc_offset on OpenBSD too.
4193
4194 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4195 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4196 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4197 define.
4198 * i386bsd-tdep.c: Include "arch-utils.h".
4199 (i386bsd_aout_in_solib_call_trampoline): New function.
4200 (i386bsd_init_abi): Set in_solib_call_trampoline to
4201 i386bsd_aout_in_solib_call_trampoline.
4202 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4203 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4204
4205 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4206
4207 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4208 (struct obstack, struct bcache): Add opaque declarations.
4209 * Makefile.in (macrotab_h): Update
4210
4211 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4212
4213 * blockframe.c (generic_find_dummy_frame): Change return type to
4214 ``struct regcache''.
4215 (struct dummy_frame): Replace field ``registers'' with regcache, a
4216 struct regcache object.
4217 (generic_find_dummy_frame): Update.
4218 (generic_push_dummy_frame): Update. Use regcache_xfree,
4219 regcache_xmalloc and regcache_cpy.
4220 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4221 regcache_xfree.
4222 (deprecated_generic_find_dummy_frame): Update.
4223 (generic_read_register_dummy): Update. Use
4224 regcache_read_as_address.
4225 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4226 (generic_get_saved_register): Update. Use regcache_read.
4227
4228 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4229
4230 * Makefile.in (objfiles_h): Add $(bcache_h).
4231 * objfiles.h: Include "bcache.h".
4232
4233 * Makefile.in (symtab_h): Remove $(bcache_h).
4234 * symtab.h: Do not include "bcache.h".
4235
4236 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4237
4238 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4239 generic_func_frame_chain_valid.
4240
4241 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4242
4243 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4244 * config/i386/tm-fbsd.h: Likewise.
4245
4246 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4247
4248 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4249 generic_unwind_get_saved_register.
4250
4251 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4252
4253 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4254 * regcache.c (supply_register): Add missing argument to
4255 register_buffer call.
4256
4257 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4258
4259 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4260 Solaris /bin/grep does not not like it. From Peter Schauer.
4261
4262 2002-06-26 Tom Tromey <tromey@redhat.com>
4263
4264 * command.h (add_setshow_cmd): Declare.
4265 (add_setshow_cmd_full): Declare.
4266 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4267 returns void. Use add_setshow_cmd_full.
4268 (add_setshow_cmd_full): New function.
4269 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4270 (add_setshow_boolean_cmd): Likewise.
4271
4272 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4273
4274 * config/vax/tm-vax.h: Protect from multiple inclusion.
4275 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4276 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4277 * config/vax/tm-vaxbsd.h: ...here. New file.
4278 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4279
4280 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4281
4282 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4283 (BELIEVE_PCC_PROMOTION): Remove.
4284 (AP_REGNUM): Move to...
4285 * config/vax/nm-vax.h: ...here.
4286 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4287 (vax_breakpoint_from_pc): New function.
4288 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4289 and gdbarch_believe_pcc_promotion.
4290
4291 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4292
4293 * Makefile.in (vax_tdep_h): Define.
4294 (vax-tdep.o): Use $(vax_tdep_h).
4295 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4296 (vax_dump_tdep): New function.
4297 (_initialize_vax_tdep): Register vax_dump_tdep.
4298 * vax-tdep.h: Include osabi.h.
4299 (struct gdbarch_tdep): New.
4300
4301 2002-06-26 Andrew Cagney <cagney@redhat.com>
4302
4303 * frame.h (deprecated_generic_find_dummy_frame): Rename
4304 generic_find_dummy_frame.
4305 * blockframe.c (generic_find_dummy_frame): Make static.
4306 (deprecated_generic_find_dummy_frame): New function.
4307 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4308 generic_find_dummy_frame with deprecated_find_dummy_frame.
4309 (sh64_nofp_frame_init_saved_regs): Ditto.
4310 (sh_fp_frame_init_saved_regs): Ditto.
4311 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4312 (s390_frame_chain): Ditto.
4313 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4314
4315 2002-06-26 Grace Sainsbury <graces@redhat.com>
4316
4317 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4318 gdbarch vector are at the top.
4319 (NUM_REGS): Remove.
4320 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4321 (FRAME_ARGS_ADDRESS): Remove.
4322 (FRAME_LOCALS_ADDRESS): Remove.
4323 (FRAME_NUM_ARGS): Remove.
4324 (FRAME_ARGS_SKIP): Remove.
4325 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4326 (m68k_gdbarch_init): Add gdbarch initializations for macros
4327 undefined in tm-m68k.h
4328
4329 2002-06-26 Grace Sainsbury <graces@redhat.com>
4330
4331 * monitor.h: Add the function regname to monitor_ops
4332 structure. This way NUM_REGS does not have to be a constant.
4333 * monitor.c (monitor_fetch_register): Added support for regname
4334 function. The function is called if the array regnames is NULL.
4335 (monitor_store_register): Same.
4336 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4337 regnames array.
4338 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4339 cpu32bug_cmds.regname to point to new function.
4340 * abug-rom.c (abug_regname): Same as above.
4341 (init_abug_cmds): Same.
4342 * dbug-rom.c (dbug_regname): Same as above.
4343 (init_dbug_cmds): Same.
4344 * remote-est.c (est_regname): Same.
4345 (init_est_cmds): Same.
4346 * rom68k-rom.c (rom68k_regname): Same.
4347 (init_rom68k_cmds): Same.
4348
4349 2002-06-25 Tom Tromey <tromey@redhat.com>
4350
4351 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4352
4353 2002-06-25 Andrew Cagney <cagney@redhat.com>
4354
4355 * infrun.c (stop_registers): Change variable's type to ``struct
4356 regcache'''.
4357 (xmalloc_inferior_status): Delete function.
4358 (free_inferior_status): Delete function.
4359 (normal_stop): Use regcache_cpy.
4360 (struct inferior_status): Change type of fields ``stop_registers''
4361 and ``registers'' to ``struct regcache''.
4362 (write_inferior_status_register): Use regcache_write.
4363 (save_inferior_status): Instead of calling
4364 xmalloc_inferior_status, allocate the inf_status buffer directly.
4365 Use regcache_dup_no_passthrough and regcache_dup to save the
4366 buffers.
4367 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4368 Replace the stop_registers regcache instead of overriding it. Use
4369 regcache_xfree. Instead of calling free_inferior_status, xfree
4370 the buffer directly.
4371 (discard_inferior_status): Use regcache_xfree. Instead of calling
4372 free_inferior_status, xfree the buffer directly.
4373 (build_infrun): Use regcache_xmalloc.
4374 (_initialize_infrun): Delete redundant call to build_infrun.
4375
4376 * Makefile.in (infcmd.o): Add $(regcache_h).
4377
4378 * infcmd.c: Include "regcache.h".
4379 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4380 obtain the address of `stop_registers' register buffer.
4381 (print_return_value): Ditto.
4382
4383 * inferior.h (struct regcache): Add opaque declaration.
4384 (stop_registers): Change variable's declared type to ``struct
4385 regcache''.
4386
4387 2002-06-24 Tom Tromey <tromey@redhat.com>
4388
4389 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4390 * target.c (initialize_targets): Fixed typo in
4391 trust-readonly-sections `show' documentation.
4392
4393 * main.c: Marked all strings with _().
4394
4395 2002-06-24 Don Howard <dhoward@redhat.com>
4396
4397 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4398 that means max CORE_ADDR+1.
4399 (lookup_mem_region): Ditto.
4400 (mem_info_command): Ditto.
4401
4402 2002-06-24 Grace Sainsbury <graces@redhat.com>
4403
4404 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4405 (REGISTER_BYTES_OK): Remove.
4406 (REGISTER_BYTES): Remove.
4407 (STORE_STRUCT_RETURN): Remove.
4408 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4409 (STORE_RETURN_VALUE): Remove.
4410 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4411 (FRAME_CHAIN): Remove.
4412 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4413 (FRAME_SAVED_PC): Remove.
4414 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4415 (m68k_store_struct_return): Add.
4416 (m68k_deprecated_extract_return_value): Add.
4417 (m68k_deprecated_extract_struct_value_address): Add.
4418 (m68k_store_return_value): Add.
4419 (m68k_frame_chain): Add.
4420 (m68k_frameless_function_invocation): Add.
4421 (m68k_frame_saved_pc): Add.
4422 (m68k_gdbarch_init): added set_gdbarch calls for new
4423 functions and deleted macros.
4424
4425 2002-06-23 Tom Tromey <tromey@redhat.com>
4426
4427 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4428 (ALLDEPFILES): Likewise.
4429 (udiheaders): Removed.
4430 (udip2soc.o): Likewise.
4431 (udi2go32.o): Likewise.
4432 (udr.o): Likewise.
4433 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4434
4435 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4436
4437 * infrun.c (_initialize_infrun): Delete unnecessary call to
4438 build_infrun.
4439
4440 * regcache.h: Update comments describing the regcache_cpy family
4441 of functions.
4442 (regcache_save, regcache_restore): Delete declaration.
4443 (regcache_save_no_passthrough): Delete declaration.
4444 (regcache_restore_no_passthrough): Delete declaration.
4445 * regcache.c (regcache_save): Delete function.
4446 (regcache_save_no_passthrough): Delete function.
4447 (regcache_restore): Delete function.
4448 (regcache_restore_no_passthrough): Delete function.
4449
4450 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4451
4452 * config/m68k/tm-m68k.h: Fix typo.
4453 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4454 (m68k_frame_init_saved_regs): Declare.
4455
4456 2002-06-21 Jim Blandy <jimb@redhat.com>
4457
4458 Remove some vestiges of Harris 88k support.
4459 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4460 register numbering quirk.
4461 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4462 odd symbols occurring in Harris 88k ELF targets.
4463
4464 2002-06-21 Tom Tromey <tromey@redhat.com>
4465
4466 * gdb_locale.h: New file.
4467 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4468 (defs_h): Added gdb_locale.h.
4469 * configure, config.in: Rebuilt.
4470 * configure.in (PACKAGE): Define.
4471 * defs.h: Include gdb_locale.h.
4472 * main.c (captured_main): Call setlocale, bindtextdomain,
4473 textdomain.
4474
4475 2002-06-21 Dave Brolley <brolley@redhat.com>
4476
4477 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4478 * config/frv/frv.mt: New file.
4479 * config/frv/tm-frv.h: New file.
4480 * configure.tgt: Support frv-*-*.
4481 * Makefile.in (frv-tdep.o): New target.
4482 * frv-tdep.c: New file.
4483 * NEWS: Mention frv.
4484
4485 2002-06-21 Dave Brolley <brolley@redhat.com>
4486
4487 * MAINTAINERS: Add self to "Write After Approval" list.
4488
4489 2002-06-21 Grace Sainsbury <graces@redhat.com>
4490
4491 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4492 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4493 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4494 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4495 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4496
4497 * m68k-tdep.c: Include arch-utils.h
4498 (m68k_register_raw_size): Add.
4499 (m68k_register_virtual_size): Add.
4500 (m68k_register_virtual_type): Add.
4501 (m68k_register_name): Add.
4502 (m68k_stack_align): Add.
4503 (m68k_register_byte): Add.
4504 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4505 tm-m68k.h.
4506
4507 2002-06-21 Grace Sainsbury <graces@redhat.com>
4508
4509 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4510 m68k_find_saved_regs.
4511 (m68k_pop_frame): Removed saved_regs structure, and replaced
4512 references to it with frame->saved_regs.
4513 (m68k_gdbarch_init): Added function calls to initialize the
4514 gdbarch structure.
4515 (m68k_fix_call_dummy): Add.
4516 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4517 (CALL_DUMMY): Remove.
4518 (CALL_DUMMY_LENGTH): Remove.
4519 (CALL_DUMMY_START_OFFSET): Remove.
4520 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4521 (FIX_CALL_DUMMY): Remove.
4522 (PUSH_DUMMY_FRAME): Remove.
4523 (POP_FRAME): Remove.
4524
4525 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4526
4527 * parse.c (parse_fprintf): New function used to avoid calls to
4528 fprintf in bison parser generated debug code.
4529 * parser-defs.h: Declaration of new parse_fprintf function.
4530 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4531 Set YYDEBUG to 1 by default.
4532 Set YYFPRINTF as parse_fprintf.
4533
4534 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4535
4536 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4537 encoding anymore.
4538 (pointer_encoding, enum ptr_encoding): New.
4539 (execute_cfa_program): Take care about pointer encoding.
4540 (dwarf2_build_frame_info): Only call parse_frame_info for
4541 .debug_frame and .eh_frame.
4542 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4543 fixed augmentation handling, added relative addressing,
4544 ignore duplicate FDEs. Added comments.
4545 * dwarf2cfi.c: Reindented.
4546
4547 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4548
4549 * event-top.c (command_handler): Don't use space_at_cmd_start
4550 unless there is sbrk() on the host. Assign time and space data
4551 to union fields of the appropriate length.
4552
4553 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4554
4555 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4556 x86_64_register_name. Return type changed to 'const char *'.
4557 (x86_64_register_name2nr): Rename to x86_64_register_number.
4558 (x86_64_gdbarch_init): Update to reflect the change.
4559 * x86-64-tdep.h: Ditto.
4560 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4561 (supply_fpregset): Ditto.
4562
4563 2002-06-19 Andrew Cagney <cagney@redhat.com>
4564
4565 * regcache.h: Update copyright.
4566 (struct regcache, struct gdbarch): Add opaque declarations.
4567 (current_regcache): Declare global variable.
4568 (regcache_read, regcache_write): Add gdbarch parameter.
4569 (regcache_save, regcache_save_no_passthrough)
4570 (regcache_restore, regcache_restore_no_passthrough)
4571 (regcache_dup, regcache_dup_no_passthrough)
4572 (regcache_cpy, regcache_cpy_no_passthrough)
4573 (deprecated_grub_regcache_for_registers)
4574 (deprecated_grub_regcache_for_register_valid)
4575 (regcache_valid_p): Add function declarations.
4576
4577 * regcache.c: Update copyright.
4578 (regcache_descr_handle): New global variable.
4579 (struct regcache_descr): Define.
4580 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4581 (regcache_descr, xfree_regcache_descr): New functions.
4582 (struct regcache): Define.
4583 (regcache_xmalloc, regcache_xfree): New functions.
4584 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4585 (regcache_dup, regcache_dup_no_passthrough): New functions.
4586 (regcache_valid_p, regcache_read_as_address): New functions.
4587 (deprecated_grub_regcache_for_registers): New function.
4588 (deprecated_grub_regcache_for_register_valid): New function.
4589 (current_regcache): New global variable.
4590 (register_buffer): Add regcache parameter. Update calls.
4591 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4592 (read_register_gen, write_register_gen): Update register_buffer
4593 call. Test for legacy_p instead of gdbarch_register_read_p or
4594 gdbarch_register_write_p.
4595 (regcache_collect): Update register_buffer call.
4596 (build_regcache): Rewrite. Use deprecated grub functions.
4597 (regcache_save, regcache_save_no_passthrough): New functions.
4598 (regcache_restore, regcache_restore_no_passthrough): New
4599 functions.
4600 (_initialize_regcache): Create the regcache_data_handle. Swap
4601 current_regcache global variable.
4602
4603 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4604 parameter to regcache_read and regcache_write calls.
4605 (sh4_register_read): Ditto.
4606 (sh64_pseudo_register_read): Ditto.
4607 (sh64_register_read): Ditto.
4608 (sh_pseudo_register_write): Ditto.
4609 (sh4_register_write): Ditto.
4610 (sh64_pseudo_register_write): Ditto.
4611 (sh64_register_write): Ditto.
4612
4613 * defs.h (XCALLOC): Define.
4614
4615 2002-06-19 Grace Sainsbury <graces@redhat.com>
4616
4617 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4618 * m68k-tdep.c (m68k_gdbarch_init): Added.
4619 (m68k_dump_tdep): Added.
4620
4621 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4622
4623 * ada-lang.c (fill_in_ada_prototype): Update comment.
4624
4625 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4626
4627 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4628 MIPS_ABI_LAST.
4629 (mips_abi_string, mips_abi_strings): New.
4630 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4631 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4632 tdep->mips_abi_string. Honor mips_abi_string. Default to
4633 O32 if no ABI is found.
4634 (mips_dump_tdep): Use mips_abi_strings.
4635 (mips_abi_update): New function.
4636 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4637 ``set mips abi'' and ``show mips abi''. Check the size of
4638 mips_abi_strings.
4639
4640 2002-06-19 Andrew Cagney <cagney@redhat.com>
4641
4642 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4643 constant.
4644
4645 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4646
4647 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4648 current frame using only the first stack size adjustment. All
4649 subsequent size adjustments are not considered to be part of
4650 the "static" part of the current frame.
4651 Compute the address of the saved registers relative to the
4652 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4653 in use in this frame.
4654
4655 2002-06-18 Don Howard <dhoward@redhat.com>
4656
4657 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4658 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4659 suggesting this solution.
4660
4661 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4662
4663 * config/romp/xm-rtbsd.h: Delete file.
4664 * config/romp/rtbsd.mh: Delete file.
4665
4666 2002-06-18 Keith Seitz <keiths@redhat.com>
4667
4668 * breakpoint.c (condition_command): Post breakpoint_modify
4669 when a condition is added to an existing breakpoint.
4670 (commands_command): Likewise for commands.
4671 (set_ignore_count): Likewise for ignore counts.
4672 If no tty, do not simply return, still need to send event
4673 notification.
4674 (ignore_command): Only print a newline if the command came
4675 from a tty.
4676 Don't call breakpoints_changed, since this is now properly
4677 handled by set_ignore_count.
4678
4679 2002-06-18 Andrew Cagney <cagney@redhat.com>
4680
4681 * MAINTAINERS: Note that cris-elf target can be compiled with
4682 -Werror.
4683 * cris-tdep.c (cris_register_name): Make return type constant.
4684 (cris_breakpoint_from_pc): Ditto.
4685
4686 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4687
4688 * frame.h (struct frame_info): Change type of context to
4689 'struct context'.
4690
4691 2002-06-17 Andrew Cagney <cagney@redhat.com>
4692
4693 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4694 pointer.
4695 * gdbarch.h, gdbarch.c: Regenerate.
4696 * config/mips/tm-mips.h (mips_register_name): Update.
4697 * i386-tdep.h (i386_register_name): Update.
4698 * mips-tdep.c (mips_register_name): Update
4699 * alpha-tdep.c (alpha_register_name): Update.
4700 * arch-utils.c (legacy_register_name): Update.
4701 * arch-utils.h (legacy_register_name): Update.
4702 * avr-tdep.c (avr_register_name): Update.
4703 * ia64-tdep.c (ia64_register_name): Update.
4704 * i386-tdep.c (i386_register_name): Update.
4705 * sparc-tdep.c (sparc32_register_name): Update.
4706 (sparc64_register_name): Update.
4707 (sparclite_register_name): Update.
4708 (sparclet_register_name): Update.
4709 * sh-tdep.c (sh_generic_register_name): Update.
4710 (sh_sh_register_name): Update.
4711 (sh_sh3_register_name): Update.
4712 (sh_sh3e_register_name): Update.
4713 (sh_sh_dsp_register_name): Update.
4714 (sh_sh3_dsp_register_name): Update.
4715 (sh_sh4_register_name): Update.
4716 (sh_sh64_register_name): Update.
4717 * s390-tdep.c (s390_register_name): Update.
4718 * rs6000-tdep.c (rs6000_register_name): Update.
4719 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4720 (ns32k_register_name_32382): Update.
4721 * d10v-tdep.c (d10v_ts2_register_name): Update.
4722 (d10v_ts3_register_name): Update.
4723 * xstormy16-tdep.c (xstormy16_register_name): Update.
4724 * vax-tdep.c (vax_register_name): Update.
4725 * v850-tdep.c (v850_register_name): Update.
4726 * m68hc11-tdep.c (m68hc11_register_name): Update.
4727 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4728 (am33_register_name): Update.
4729
4730 2002-06-17 Grace Sainsbury <graces@redhat.com>
4731
4732 * m68k-tdep.c: Reindented.
4733
4734 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4735
4736 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4737 list of predefined types.
4738
4739 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4740
4741 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4742 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4743 REGISTER_CONVERT_TO_RAW): Remove defines.
4744 (i386_register_virtual_type, i386_register_convertible,
4745 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4746 Remove prototypes.
4747 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4748 macros mentioned above.
4749
4750 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4751 (i386lynx_saved_pc_after_call): Remove prototype.
4752 * i386ly-tdep.c: Include "i386-tdep.h".
4753 (i386lynx_saved_pc_after_call): Make static. Use
4754 read_memory_nobpt instead of read_memory. Use
4755 read_memory_unsigned_integer instead of read_memory_integer.
4756 (i386lynx_init_abi): New function.
4757 (i386lynx_coff_osabi_sniffer): New function.
4758 (_initialize_i386bsd_tdep): New function.
4759
4760 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4761 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4762 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4763 (i386_fix_call_dummy): Remove prototype.
4764 * i386-tdep.c (i386_call_dummy_words): New variable.
4765 (i386_gdbarch_init): Adjust for removal of the
4766 macros mentioned above.
4767
4768 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4769
4770 * command.h (add_setshow_auto_boolean_cmd): Replace
4771 add_set_auto_boolean_cmd.
4772 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4773 add_set_auto_boolean_cmd.
4774 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4775 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4776 mask-address'' command.
4777 (show_mask_address): Add cmd parameter.
4778 * remote.c (add_packet_config_cmd): Update. Change type of
4779 set_func and show_func to cmd_sfunc_ftype.
4780 (_initialize_remote): Update `set remote Z-packet'
4781 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4782 (show_remote_protocol_e_packet_cmd): Ditto.
4783 (show_remote_protocol_E_packet_cmd): Ditto.
4784 (show_remote_protocol_P_packet_cmd): Ditto.
4785 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4786 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4787 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4788 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4789 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4790 (show_remote_protocol_Z_packet_cmd): Ditto.
4791 (show_remote_protocol_binary_download_cmd): Ditto.
4792 (show_remote_cmd): Pass NULL to all of above.
4793
4794 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4795
4796 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4797 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4798 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4799 POP_FRAME): Remove defines.
4800 (i386_push_arguments, i386_store_struct_return,
4801 i386_extract_return_value, i386_store_return_value,
4802 i386_extract_struct_value_address, i386_push_dummy_frame,
4803 i386_pop_frame): Renove prototypes.
4804 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4805 macros mentioned above.
4806
4807 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4808
4809 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4810 add_set_boolean_cmd.
4811 (add_setshow_cmd): New function.
4812 * command.h (add_setshow_boolean_cmd): Replace
4813 add_set_boolean_cmd.
4814 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4815 and ``set rdiromatzero''.
4816 * maint.c (_initialize_maint_cmds): Update commented out code.
4817 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4818 * target.c (initialize_targets): Update `set
4819 trust-readonly-sections'.
4820 * remote.c (_initialize_remote): Update `set remotebreak'.
4821
4822 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4823
4824 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4825 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4826 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4827 fit into multi-arch framework.
4828 (i386_breakpoint_from_pc): New function.
4829 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4830 above.
4831
4832 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4833 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4834 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4835 (i386_frameless_function_invocation, i386_frame_num_args,
4836 i386_frame_init_saved_regs): Remove prototypes.
4837 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4838 macros mentioned above.
4839
4840 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4841
4842 * cli/cli-decode.c (set_cmd_cfunc): Update.
4843 (set_cmd_sfunc): Update.
4844 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4845 (set_cmd_sfunc, set_cmd_cfunc): Update.
4846 * cli/cli-decode.h: Update.
4847
4848 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4849
4850 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4851 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4852
4853 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4854
4855 * defs.h (auto_boolean): Declare enum.
4856 * command.h (cmd_auto_boolean): Delete enum.
4857 * mips-tdep.c (mask_address_var): Update.
4858 (mips_mask_address_p): Update.
4859 (show_mask_address): Update.
4860 * remote.c (struct packet_config): Update.
4861 (update_packet_config): Update.
4862 (show_packet_config_cmd): Update.
4863 (packet_ok): Update.
4864 (add_packet_config_cmd): Update.
4865 (_initialize_remote):
4866 * command.h: Update.
4867 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4868 (do_setshow_command): Update.
4869 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4870 * cli/cli-decode.h: Update.
4871
4872 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4873
4874 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4875 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4876 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4877 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4878 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4879 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4880
4881 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4882 list of DJGPP COFF targets.
4883
4884 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4885 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4886 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4887 (FP0_REGNUM): Remove define.
4888 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4889 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4890 (i386_register_virtual_size): Remove protoype.
4891 * i386-tdep.c (i386_register_virtual_size): Removed.
4892 (i386_extract_return_value, i386_store_return_value): Use
4893 FP0_REGNUM instead of NUM_FREGS to determine whether the
4894 floating-point registers are available.
4895 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4896 Adjust for removal of macros mentioned above.
4897
4898 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4899
4900 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4901 comments.
4902 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4903 Remove prototypes.
4904 (supply_gregset, fill_gregset): Remove use of register keyword and
4905 remove declaration for regmap. Use I386_NUM_GREGS instead of
4906 NUM_REGS and NUM_FREGS.
4907 (FPREGSET_FSAVE_OFFSET): Remove.
4908 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4909 NUM_FREGS to determine whether the floating-point registers are
4910 available.
4911
4912 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4913 gnu_store_registers): Replace usage of NUM_GREGS with
4914 I386_NUM_GREGS.
4915
4916 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4917 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4918 usage of NUM_GREGS with I386_NUM_GREGS.
4919
4920 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4921
4922 * i386bsd-nat.c: Include "i386-tdep.h".
4923 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4924 I386_NUM_GREGS.
4925
4926 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4927 and associated comment. They no longer make any sense, since we
4928 don't use this file anymore on Linux.
4929
4930 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4931 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4932 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4933 elements in these arrays.
4934 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4935 MAX_NUM_REGS.
4936
4937 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4938
4939 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4940 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4941
4942 2002-06-14 Andrew Cagney <cagney@redhat.com>
4943
4944 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4945 EXTRACT_RETURN_VALUE.
4946 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4947 EXTRACT_STRUCT_VALUE_ADDRESS.
4948 * gdbarch.h, gdbarch.c: Regenerate.
4949
4950 * values.c (value_being_returned): Handle
4951 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4952 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4953
4954 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4955 * arm-tdep.c (arm_gdbarch_init): Update.
4956 * avr-tdep.c (avr_gdbarch_init): Update.
4957 * cris-tdep.c (cris_gdbarch_init): Update.
4958 * d10v-tdep.c (d10v_gdbarch_init): Update.
4959 * ia64-tdep.c (ia64_gdbarch_init): Update.
4960 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4961 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4962 * s390-tdep.c (s390_gdbarch_init): Update.
4963 * sh-tdep.c (sh_gdbarch_init): Update.
4964 * s390-tdep.c (s390_gdbarch_init): Update.
4965 * sparc-tdep.c (sparc_gdbarch_init): Update.
4966 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4967 * v850-tdep.c (v850_gdbarch_init): Update.
4968 * vax-tdep.c (vax_gdbarch_init): Update.
4969 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4971
4972 * config/arc/tm-arc.h: Update.
4973 * config/d30v/tm-d30v.h: Update.
4974 * config/fr30/tm-fr30.h: Update.
4975 * config/h8300/tm-h8300.h: Update.
4976 * config/h8500/tm-h8500.h: Update.
4977 * config/i386/tm-i386.h: Update.
4978 * config/i386/tm-ptx.h: Update.
4979 * config/i386/tm-symmetry.h: Update.
4980 * config/i960/tm-i960.h: Update.
4981 * config/m32r/tm-m32r.h: Update.
4982 * config/m68k/tm-delta68.h: Update.
4983 * config/m68k/tm-linux.h: Update.
4984 * config/m68k/tm-m68k.h: Update.
4985 * config/m88k/tm-m88k.h: Update.
4986 * config/mcore/tm-mcore.h: Update.
4987 * config/mips/tm-mips.h: Update.
4988 * config/mn10200/tm-mn10200.h: Update.
4989 * config/pa/tm-hppa.h: Update.
4990 * config/pa/tm-hppa64.h: Update.
4991 * config/sparc/tm-sp64.h: Update.
4992 * config/sparc/tm-sparc.h: Update.
4993 * config/sparc/tm-sparclet.h: Update.
4994 * config/z8k/tm-z8k.h: Update.
4995
4996 2002-06-14 Andrew Cagney <cagney@redhat.com>
4997
4998 * Makefile.in (i386_linux_tdep_h): Define.
4999 (i386_tdep_h, i387_tdep_h): Define.
5000 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5001 $(i386_tdep_h) and $(i387_tdep_h).
5002 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5003
5004 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5005
5006 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5007 Already covered by the default.
5008
5009 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5010 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5011 (i386_gdbarch_init): Initialize long_double_format and long_double
5012 bit.
5013
5014 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5015 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5016 Move these to ...
5017 * config/i386/i386sol2.mh: ... here.
5018 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5019 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5020 (SIGCONTEXT_PC_OFFSET): Remove define.
5021 (IN_SIGTRAMP): Remove define.
5022 * i386-sol2-tdep.c: New file.
5023
5024 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5025 * config/i386/tm-i386nw.h: Removed.
5026
5027 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5028 USE_STRUCT_CONVENTION): Remove defines.
5029 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5030 (get_longjmp_target): Remove prototype.
5031 (IN_SIGTRAMP): Remove define.
5032 (i386bsd_in_sigtramp): Remove prototype.
5033 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5034 function. Update comment accordingly
5035 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5036 (FRAME_SAVED_PC): Remove define.
5037 (i386bsd_frame_saved_pc): Remove prototype.
5038 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5039 GET_LONGJMP_TARGET): Remove defines.
5040 (get_longjmp_target): Remove prototype.
5041 (IN_SIGTRAMP): Remove define.
5042 (i386bsd_in_sigtramp): Remove prototype.
5043 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5044 function. Update comment accordingly
5045 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5046 (FRAME_SAVED_PC): Remove define.
5047 (i386bsd_frame_saved_pc): Remove prototype.
5048 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5049 Remove prototype.
5050 (USE_STRUCT_CONVENTION): Remove prototype.
5051 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5052 declaration.
5053 (_initialize_i386bsd_nat): Revise logic to determine some
5054 constants at compile time when compiling a native GDB. Warn if
5055 things don't match up with what we expect.
5056 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5057 Remove variables.
5058 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5059 to use date stored in `struct gdbarch_tdep'.
5060 (i386bsd_sigcontext_offset): Remove varaible.
5061 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5062 stored in `struct gdbarch_tdep'.
5063 (i386bsd_frame_saved_pc): Make static.
5064 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5065 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5066 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5067 i386fbsd4_sc_pc_offset): New variables.
5068 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5069 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5070 functions.
5071 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5072 functions.
5073 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5074 Modify the value of i386fbsd_sigtramp_start and
5075 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5076 i386fbsd_sigtramp_end.
5077 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5078 function.
5079
5080 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5081 define to i386-linux-tdep.h.
5082 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5083 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5084 defines.
5085 (i386_linux_register_name, i386_linux_register_byte,
5086 i386_linux_register_raw_size): Remove prototypes.
5087 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5088 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5089 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5090 TARGET_WRITE_PC): Remove defines.
5091 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5092 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5093 i386_linux_write_pc): Remove prototypes.
5094 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5095 (get_longjmp_target): Remove prototype.
5096 * i386-linux-tdep.h: New file.
5097 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5098 * i386-linux-tdep.c: Include "i386-tdep.h" and
5099 "i386-linux-tdep.h".
5100 (i386_linux_register_name, i386_linux_register_byte,
5101 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5102 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5103 Make static.
5104 (i386_linux_init_abi): New function.
5105 (_initialize_i386_linux_tdep): New function.
5106
5107 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5108 (i386_saved_pc_after_call): Remove prototype.
5109 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5110 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5111 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5112 (i386_register_name, i386_stab_reg_to_regnum,
5113 i386_dwarf_reg_to_regnum): Remove prototypes.
5114 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5115 SIZEOF_SSE_REGS): Remove defines.
5116 (REGISTER_BYTES): Remove define.
5117 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5118 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5119 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5120 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5121 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5122 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5123 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5124 (get_longjmp_target): Remove prototype.
5125 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5126 (sigtramp_saved_pc): Remove define.
5127 (i386v4_sigtramp_saved_pc): Remove prototype.
5128 * config/i386/tm-go32.h (FRAME_CHAIN,
5129 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5130 (i386go32_frame_saved_pc): Remove prototype.
5131 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5132 (get_longjmp_target): Remove prototype.
5133 * i386-tdep.h: Include "osabi.h".
5134 (enum i386_abi): Removed.
5135 (enum struct_return): New enum.
5136 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5137 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5138 sc_pc_offset members.
5139 (i386_gdbarch_register_os_abi): Remove prototype.
5140 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5141 I386_SSE_NUM_REGS): New defines.
5142 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5143 I386_SSE_SIZEOF_REGS): New defines.
5144 (i386_register_name, i386_register_byte, i386_register_raw_size):
5145 New prototypes.
5146 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5147 (i386bsd_sigtramp_saved_pc): New prototype.
5148 * i386-tdep.c: Don't include "elf-bfd.h".
5149 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5150 i386_frame_chain, i386_saved_pc_after_call): Make static.
5151 (i386_frame_saved_pc): Rewrite to call architecture dependent
5152 function to deal with signal handlers. Make static.
5153 (i386go32_frame_saved_pc): Removed.
5154 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5155 Removed.
5156 (i386_get_longjmp_target): New function.
5157 (default_struct_convention, pcc_struct_convention,
5158 reg_struct_convention, valid_conventions, struct_convention): New
5159 variables.
5160 (i386_use_struct_convention): New function.
5161 (i386v4_sigtramp_saved_pc): Renamed to
5162 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5163 (i386_pc_in_sigtramp): New function.
5164 (i386_abi_names): Removed.
5165 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5166 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5167 Removed.
5168 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5169 i386_gdbarch_register_os_abi): Removed.
5170 (struct i386_abi_handler): Removed.
5171 (i386_abi_handler_list): Removed.
5172 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5173 functions.
5174 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5175 i386_nw_init_abi): New functions.
5176 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5177 Use set_gdbarch_xxx() calls instead of relying on macros for a
5178 number of calls.
5179 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5180 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5181 Register the various architecture variants defined in this file.
5182
5183 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5184
5185 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5186 (struct main_type): Remove arg_types member. Update comments for
5187 struct field.
5188 (TYPE_ARG_TYPES): Remove.
5189 (TYPE_FN_FIELD_ARGS): Update.
5190 (smash_to_method_type): Update prototype.
5191
5192 * c-typeprint.c (cp_type_print_method_args): Take method type
5193 instead of argument list. Use new argument layout. Simplify.
5194 (c_type_print_args): Use new argument layout. Simplify.
5195 (c_type_print_base): Update call to cp_type_print_method_args.
5196 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5197 argument; use die->type instead. Update call to
5198 smash_to_method_type.
5199 (read_structure_scope): Update call to dwarf2_add_member_fn.
5200 * gdbtypes.c (allocate_stub_method): Update comment.
5201 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5202 Use new argument layout.
5203 (check_stub_method): Use new argument layout. Don't count
5204 void as an argument.
5205 (print_arg_types): Update comments. Use new argument layout.
5206 (recursive_dump_type): Don't print arg_types member.
5207 * hpread.c (hpread_read_struct_type): Use new argument layout.
5208 (fixup_class_method_type): Likewise.
5209 (hpread_type_lookup): Likewise.
5210 * stabsread.c (read_type): Update calls to read_args and
5211 smash_to_method_type.
5212 (read_args): Use new argument layout. Simplify.
5213 * valops.c (typecmp): Use new argument layout. Update parameters
5214 and comments. Simplify.
5215 (hand_function_call): Use new argument layout.
5216 (search_struct_method): Update call to typecmp.
5217 (find_overload_match): Use new argument layout.
5218
5219 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5220
5221 * NEWS: Mention multithreaded debug support for gdbserver.
5222
5223 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5224
5225 * MAINTAINERS: Mention NEWS.
5226
5227 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5228
5229 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5230 (struct mips_objfile_private, compare_pdr_entries): New.
5231 (non_heuristic_proc_desc): Read the ".pdr" section if it
5232 is present.
5233
5234 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5235
5236 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5237 (arm_debug): New static variable.
5238 (_initialize_arm_tdep): Add ``set debug arm'' command.
5239
5240 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5241
5242 * Makefile.in (sim_arm_h): Define.
5243 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5244 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5245 (arm_register_sim_regno): New function, map an internal REGNUM
5246 onto a simulator register number.
5247 (arm_gdbarch_init): Set register_sim_regno.
5248
5249 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5250
5251 * MAINTAINERS: Add self.
5252
5253 2002-06-11 Jim Blandy <jimb@redhat.com>
5254
5255 * source.c (source_info): Mention whether the symtab has
5256 information about preprocessor macros.
5257
5258 Call the command `info macro', not `show macro'.
5259 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5260 Fix error message.
5261 (_initialize_macrocmd): Register `info_macro_command' in
5262 `infolist', not `showlist'.
5263
5264 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5265
5266 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5267 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5268 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5269 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5270 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5271 unconditionally.
5272 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5273 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5274 (_initialize_mips_tdep): Remove dead code.
5275 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5276 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5277 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5278 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5279 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5280 MIPS_LAST_FP_ARG_REGNUM): Remove.
5281
5282 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5283
5284 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5285 (unwind_tmp_obstack_free, parse_frame_info)
5286 (update_context, cfi_read_fp, cfi_write_fp)
5287 (cfi_frame_chain, cfi_init_extra_frame_info)
5288 (cfi_virtual_frame_pointer): Use the above function.
5289 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5290
5291 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5292
5293 * v850-tdep.c (v850_type_is_scalar): New function.
5294 (v850_use_struct_convention): Match current gcc implementation
5295 as close as possible.
5296 (v850_push_arguments): Fix stack_offset handling. Don't write
5297 struct_addr into register. This is done by v850_store_struct_return.
5298 (v850_extract_return_value): Care for structs.
5299 (v850_store_return_value): Ditto.
5300 (v850_store_struct_return): Actually write address.
5301
5302 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5303
5304 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5305 without debug information too.
5306
5307 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5308
5309 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5310 Make multi-arch pure.
5311 * gdbarch.h, gdbarch.c: Re-generate.
5312 * arm-tdep.c (arm_print_float_info): Update.
5313 * arch-utils.h (default_print_float_info): Update.
5314 * arch-utils.c (default_print_float_info): Update.
5315 * infcmd.c (float_info): Update call.
5316
5317 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5318
5319 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5320 the front of the initialize list.
5321
5322 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5323
5324 * infrun.c (struct inferior_status): Replace fields
5325 selected_frame_address and selected_level with field
5326 selected_frame_id.
5327 (save_inferior_status): Update. Use get_frame_id.
5328 (struct restore_selected_frame_args): Delete.
5329 (restore_selected_frame): Update. Use frame_find_by_id.
5330 (restore_inferior_status): Update.
5331
5332 * breakpoint.h (struct breakpoint): Change type of
5333 watchpoint_frame to frame_id.
5334 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5335 call to get_current_frame.
5336 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5337 get_current_frame.
5338 (watchpoint_check): Use frame_find_by_id.
5339
5340 * frame.h (record_selected_frame): Delete declaration.
5341 * stack.c (record_selected_frame): Delete function.
5342
5343 * frame.h (struct frame_id): Define.
5344 (get_frame_id): Declare.
5345 (frame_find_by_id): Declare.
5346 * frame.c (frame_find_by_id): New function.
5347 (get_frame_id): New function.
5348
5349 2002-06-10 Andrey Volkov <avolkov@transas.com>
5350
5351 * ser-e7kpc.c: Fix duplicated define and call of
5352 _initialize_ser_e7000pc
5353
5354 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5355
5356 * signals/signals.c (target_signal_from_host): Fix #ifdef
5357 SIGRTMIN case.
5358 (do_target_signal_to_host): Likewise.
5359
5360 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5361
5362 * mips-tdep.c (mips_find_abi_section): New function.
5363 (mips_gdbarch_init): Call it.
5364
5365 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5366
5367 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5368 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5369 after Andrew's 2002-06-08 gdbarch change.
5370
5371 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5372
5373 * i386-linux-nat.c (suppy_gregset): Don't supply
5374 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5375 register cache.
5376 (fill_gregset): Don't fetch it under the same circumstances.
5377
5378 2002-06-09 Andrew Cagney <cagney@redhat.com>
5379
5380 * Makefile.in (callback_h): Define.
5381 (remote_sim_h): Update path to remote-sim.h.
5382 (remote-rdp.o): Add $(callback_h).
5383 (remote-sim.o): Use $(callback_h).
5384 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5385 * remote-rdp.c: Include "gdb/callback.h".
5386
5387 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5388
5389 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5390 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5391
5392 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5393
5394 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5395 * rdi-share/serpardr.c: Ditto.
5396 * rdi-share/unixcomm.c: Ditto.
5397 * rdi-share/serdrv.c: Ditto.
5398 * rdi-share/hostchan.h: Ditto.
5399 * rdi-share/hostchan.c: Ditto.
5400 * rdi-share/host.h: Ditto.
5401 * rdi-share/devsw.c: Ditto.
5402
5403 * objfiles.h: Change type of obj_private to void pointer.
5404 * pa64solib.c: Update copyright. Don't include "assert.h", use
5405 strcmp instead of STREQ, use LONGEST, do not use PTR
5406 * somsolib.c: Ditto.
5407
5408 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5409 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5410 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5411
5412 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5413
5414 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5415 (default_get_saved_register): Delete function.
5416 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5417 generic_unwind_get_saved_register.
5418 * gdbarch.h, gdbarch.c: Re-generate.
5419
5420 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5421
5422 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5423 generic_func_frame_chain_valid.
5424 * gdbarch.h, gdbarch.c: Re-generate.
5425 * blockframe.c (generic_func_frame_chain_valid): Only check
5426 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5427 passing FP to PC_IN_CALL_DUMMY.
5428 Fix PR gdb/360.
5429
5430 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5431
5432 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5433 (register_gdbarch_data): Initialize init_p.
5434 (gdbarch_data): Initialize data pointer using the init function.
5435 (init_gdbarch_data): Delete function.
5436 (gdbarch_update_p): Update.
5437 (initialize_non_multiarch): Update.
5438 (struct gdbarch): Add field initialized_p.
5439 * gdbarch.h, gdbarch.c: Re-generate.
5440
5441 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5442
5443 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5444 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5445 better do the things actually here.
5446 * x86-64-tdep.c (x86_64_register_name2nr): New.
5447 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5448 (x86_64_gdbarch_init): Respect the above change.
5449 * x86-64-tdep.h (x86_64_register_name2nr)
5450 (x86_64_register_nr2name): Add prototypes.
5451 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5452
5453 2002-06-06 Michael Snyder <msnyder@redhat.com>
5454
5455 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5456 Delete extra braces and re-indent.
5457 (d10v_store_return_value): Char return values
5458 must be shifted over by one byte in R0.
5459 (d10v_extract_return_value): Delete extra braces, re-indent.
5460
5461 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5462
5463 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5464 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5465 (d10v_integer_to_address): Rewrite.
5466 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5467 the d10v specific functions which take care of converting to the
5468 correct space.
5469
5470 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5471
5472 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5473 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5474
5475 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5476
5477 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5478 includes.
5479 * config/tm-linux.h: Ditto.
5480 * config/alpha/tm-alphalinux.h: Ditto.
5481 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5482 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5483 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5484 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5485 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5486 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5487 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5488 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5489 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5490 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5491 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5492 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5493 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5494 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5495 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5496 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5497 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5498 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5499 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5500 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5501 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5502 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5503 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5504 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5505 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5506 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5507 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5508 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5509 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5510 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5511 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5512 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5513 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5514 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5515 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5516 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5517 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5518
5519 2002-05-04 Aidan Skinner <aidan@velvet.net>
5520
5521 * ada-exp.tab.c: New file
5522 * ada-exp.y: New file
5523 * ada-lang.c: New file
5524 * ada-lang.h: New file
5525 * ada-lex.c: New file
5526 * ada-lex.l: New file
5527 * ada-tasks.c: New file
5528 * ada-typeprint.c: New file
5529 * ada-valprint.c: New file
5530
5531 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5532
5533 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5534 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5535
5536 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5537
5538 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5539 insetead of ppc-linux-tdep.o.
5540 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5541 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5542
5543 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5544
5545 2002-05-07 Christian Groessler <chris@groessler.org>
5546 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5547 bit register contents for little endian hosts.
5548
5549 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5550
5551 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5552 any maintainer.
5553
5554 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5555
5556 * gdbarch.h: Regenerate.
5557
5558 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5559
5560 * MAINTAINERS: Add everyone to write-after-approval list.
5561
5562 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5563
5564 * stack.c (frame_info): Use frame_register_unwind instead of
5565 saved_regs. Mention when the SP is on the stack or in a register.
5566
5567 * frame.h (frame_register_unwind_ftype): Define. Document.
5568 (struct frame_info): Add field register_unwind and
5569 register_unwind_cache.
5570 (frame_register_unwind): Declare.
5571 (generic_unwind_get_saved_register): Declare.
5572
5573 * frame.c (frame_register_unwind): New function.
5574 (generic_unwind_get_saved_register): New function.
5575
5576 * blockframe.c (generic_call_dummy_register_unwind): New function.
5577 (frame_saved_regs_register_unwind): New function.
5578 (set_unwind_by_pc): New function.
5579 (create_new_frame): New function.
5580 (get_prev_frame): New function.
5581
5582 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5583
5584 * a29k-share/: Delete directory.
5585 * remote-vx29k.c: Delete file.
5586
5587 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5588
5589 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5590 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5591
5592 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5593
5594 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5595 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5596 (sparc64nbsd-nat.o)
5597 (sparcnbsd-nat.o)
5598 (sparcnbsd-tdep.o): New dependency lists.
5599 * NEWS: Note new UltraSPARC NetBSD native configuration.
5600 * configure.host (sparc64-*-netbsd*): New host.
5601 * configure.tgt (sparc-*-netbsdelf*)
5602 (sparc-*-netbsd*): Set gdb_target to nbsd.
5603 (sparc64-*-netbsd*): New target.
5604 * sparc64nbsd-nat.c: New file.
5605 * sparcnbsd-nat.c: New file.
5606 * sparcnbsd-tdep.c: New file.
5607 * sparcnbsd-tdep.h: New file.
5608 * config/sparc/nbsd.mt: New file.
5609 * config/sparc/nbsd64.mh: New file.
5610 * config/sparc/nbsd64.mt: New file.
5611 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5612 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5613 (HOST_IPC): Remove.
5614 * config/sparc/nbsdaout.mt: Remove.
5615 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5616 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5617 (HOST_IPC): Remove.
5618 * config/sparc/nbsdelf.mt: Remove.
5619 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5620 sparc-nat.c compatiblity defines.
5621 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5622 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5623 * config/sparc/tm-nbsd64.h: New file.
5624 * config/sparc/tm-nbsdaout.h: Remove.
5625 * config/sparc/xm-nbsd.h: Remove.
5626
5627 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5628
5629 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5630 * sparc-tdep.c: Include osabi.h.
5631 (gdbarch_tdep): Add osabi member.
5632 (_initialize_sparc_tdep): Use gdbarch_register.
5633 (sparc_gdbarch_init): Use generic OS ABI framework.
5634 (sparc_dump_tdep): New function.
5635
5636 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5637
5638 * corefile.c (do_captured_read_memory_integer): Return non-zero
5639 result.
5640 (safe_read_memory_integer): Copy result of memory read when
5641 status is non-zero. Also, add comments.
5642
5643 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5644
5645 * Makefile.in (ppc_tdep_h): Define.
5646 (ppc-linux-nat.o)
5647 (ppc-linux-tdep.o)
5648 (rs6000-tdep.o): Use $(ppc_tdep_h).
5649 (ppc-sysv-tdep.o)
5650 (ppcnbsd-nat.o)
5651 (ppcnbsd-tdep.o): New dependency lists.
5652 * ppc-tdep.h: Use generic OS ABI framework.
5653 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5654 (ppc_linux_init_abi): New functions.
5655 (ppc_sysv_abi_broken_use_struct_convention)
5656 (ppc_sysv_abi_use_struct_convention)
5657 (ppc_sysv_abi_push_arguments): Move to...
5658 * ppc-sysv-tdep.c: ...here.
5659 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5660 * rs6000-tdep.c (process_note_abi_tag_sections)
5661 (get_elfosabi): Remove.
5662 (rs6000_gdbarch_init): Use generic OS ABI framework.
5663 (rs6000_dump_tdep): New function.
5664 (_initialize_rs6000_tdep): Use gdbarch_register.
5665 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5666 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5667 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5668 of ppc-linux-tdep.o.
5669 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5670 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5671 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5672 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5673 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5674 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5675
5676 2002-05-29 Jim Blandy <jimb@redhat.com>
5677
5678 * macroscope.c (default_macro_scope): Put `void' in empty argument
5679 list.
5680
5681 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5682
5683 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5684 * arch-utils.c: Include "sim-regno.h".
5685 * gdbarch.sh: Don't include "sim-regno.h".
5686 * gdbarch.h, gdbarch.c: Regenerate.
5687 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5688 here.
5689 * arch-utils.h (legacy_register_sim_regno): To here.
5690 * remote-sim.c (legacy_register_sim_regno): Move function from
5691 here.
5692 * arch-utils.c (legacy_register_sim_regno): To here.
5693
5694 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5695
5696 * sim-regno.h: New file.
5697 * Makefile.in (sim_regno_h): Define.
5698 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5699 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5700 (legacy_register_sim_regno): New function.
5701 (one2one_register_sim_regno): New function.
5702 (gdbsim_fetch_register): Rewrite.
5703 (gdbsim_store_register): Only store a register when
5704 REGISTER_SIM_REGNO is valid.
5705 * d10v-tdep.c: Include "sim-regno.h".
5706 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5707 (d10v_ts3_register_sim_regno): Ditto.
5708 * gdbarch.sh: Include "sim-regno.h".
5709 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5710 * gdbarch.h, gdbarch.c: Regenerate.
5711 * arch-utils.h (default_register_sim_regno): Delete declaration.
5712 * arch-utils.c (default_register_sim_regno): Delete function.
5713
5714 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5715
5716 * ppcnbsd-nat.c: Rewrite.
5717 * ppcnbsd-tdep.c: New file.
5718 * ppcnbsd-tdep.h: New file.
5719 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5720 solib.o, and solib-svr4.o.
5721 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5722 nbsd-tdep.o, and corelow.o.
5723
5724 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5725
5726 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5727 `tr' and `sed'. Mention that `broken' targets are not expected to
5728 build.
5729
5730 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5731
5732 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5733 Let PC point right after the prologue before looking up symbols.
5734
5735 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5736
5737 * i386-tdep.c (i386_register_virtual_type): Return
5738 builtin_type_vec128i for SSE registers.
5739
5740 * gdbtypes.h (builtin_type_vec128i): Declare.
5741
5742 * gdbtypes.c (build_builtin_type_vec128i): New function.
5743 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5744 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5745 (build_gdbtypes): Initialize new builtin vector types.
5746 (_initialize_gdbtypes): Register new vector types with gdbarch.
5747
5748 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5749
5750 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5751 since it has been multi-arch'd.
5752 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5753 Move Alpha and VAX multi-arch news entries to same section
5754 as other multi-arch news.
5755
5756 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5757
5758 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5759 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5760 static. Rename some register numbers to put them in ns32k-tdep
5761 private namespace.
5762 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5763 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5764 functions.
5765 (_initialize_ns32k_tdep): Use gdbarch_register.
5766 * ns32k-tdep.h: New file.
5767 * ns32knbsd-tdep.c: New file.
5768 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5769 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5770 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5771 REGISTER_BYTES, REGISTER_BYTE): Remove.
5772 * config/ns32k/tm-ns32k.h: New file.
5773 * config/ns32k/tm-umax.h: Remove.
5774
5775 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5776
5777 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5778 ns32k_store_struct_return, ns32k_extract_return_value,
5779 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5780 functions.
5781 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5782 ns32k_saved_pc_after_call.
5783 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5784 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5785 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5786 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5787 ns32k_extract_struct_value_address.
5788
5789 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5790
5791 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5792 ns32k_fix_call_dummy): New.
5793 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5794 ns32k_call_dummy_words.
5795 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5796 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5797 CALL_DUMMY_NARGS): Remove.
5798 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5799
5800 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5801
5802 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5803 ns32k_frame_saved_pc, ns32k_frame_args_address,
5804 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5805 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5806 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5807 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5808 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5809 (BREAKPOINT): Remove..
5810 (FRAME_CHAIN): Define as ns32k_frame_chain.
5811 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5812 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5813 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5814 (FRAME_FIND_SAVED_REGS): Remove.
5815 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5816 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5817 (POP_FRAME): Define as ns32k_pop_frame.
5818
5819 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5820
5821 * ns32k-tdep.c (ns32k_register_byte_32082,
5822 ns32k_register_byte_32382, ns32k_register_raw_size,
5823 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5824 functions.
5825 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5826 ns32k_register_byte_32382.
5827 * config/ns32k/tm-umax.h: Update copyright years.
5828 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5829 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5830 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5831 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5832 (ns32k_get_enter_addr): Fix prototype.
5833
5834 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5835
5836 * ns32k-tdep.c: Update copyright years.
5837 (ns32k_register_name_32082): New function.
5838 (ns32k_register_name_32382): Ditto.
5839 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5840 (REGISTER_NAME): Define as ns32k_register_name_32382.
5841 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5842 (REGISTER_NAME): Define as ns32k_register_name_32082.
5843
5844 2002-05-24 Jim Blandy <jimb@redhat.com>
5845
5846 * dwarf2read.c (free_line_header): Use xfree, not free.
5847
5848 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5849
5850 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5851 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5852
5853 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5854
5855 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5856
5857 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5858
5859 From Ross Alexander at NEC Europe:
5860 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5861
5862 2002-05-23 Michael Snyder <msnyder@redhat.com>
5863
5864 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5865 for input, rather than parse_and_eval_address.
5866
5867 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5868
5869 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5870 * Makefile.in (sim_d10v_h): Update definition.
5871
5872 2002-05-24 Andrew Cagney <cagney@redhat.com>
5873
5874 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5875 change `2002-05-22 Michael Snyder' below.
5876 (d10v_push_arguments): Ditto.
5877 (d10v_extract_return_value): Ditto.
5878
5879 2002-05-23 Jim Blandy <jimb@redhat.com>
5880
5881 * macrotab.c (check_for_redefinition): Don't complain if the new
5882 definition is the same as the previous one. Take more arguments
5883 to allow the comparison.
5884 (macro_define_object, macro_define_function): Pass more arguments
5885 to check_for_redefinition.
5886
5887 2002-05-22 Michael Snyder <msnyder@redhat.com>
5888
5889 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5890 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5891 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5892 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5893 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5894 Add a temp variable to save a call (and a memory read).
5895 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5896 if possible (so that PC_IN_CALL_DUMMY will work).
5897
5898 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5899
5900 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5901
5902 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5903
5904 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5905 fde->cie_ptr.
5906 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5907 (dwarf2_build_frame_info): Add offset to fde->initial_location
5908 so that frames of shared libraries are mapped correctly.
5909 (execute_stack_op): Change type of 'result' from ULONGEST to
5910 CORE_ADDR.
5911
5912 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5913
5914 * config/alpha/tm-nbsd.h: Include solib.h.
5915
5916 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5917
5918 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5919 assumptions about the host's byte order.
5920
5921 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5922
5923 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5924 to dependency list.
5925 * alphanbsd-tdep.c: Include solib-svr4.h.
5926 * shnbsd-tdep.c: Ditto.
5927
5928 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5929
5930 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5931 nbsd-tdep.h to dependency list.
5932 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5933 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5934 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5935 nbsdaout.mh and nbsdelf.mh consistently.
5936 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5937 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5938 nbsdaout.mt and nbsdelf.mh consistently.
5939 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5940 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5941 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5942 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5943 a.out shared library stuff from here...
5944 * config/nm-nbsdaout.h: ...to here.
5945 * config/tm-nbsd.h: Remove.
5946 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5947 * config/arm/nbsd.mh: Remove.
5948 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5949 nbsd-tdep.o.
5950 * config/arm/nbsdaout.mh: New file.
5951 * config/arm/nbsdelf.mh: New file.
5952 * config/arm/nm-nbsdaout.h: New file.
5953 * config/i386/nbsd.mh: Remove.
5954 * config/i386/nbsd.mt: Remove.
5955 * config/i386/nbsdaout.mh: New file.
5956 * config/i386/nbsdaout.mt: New file.
5957 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5958 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5959 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5960 i386_register_u_addr): Remove.
5961 * config/i386/nm-nbsdaout.h: New file.
5962 * config/i386/nm-nbsdelf.h: Remove.
5963 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5964 (USE_STRUCT_CONVENTION): Remove.
5965 * config/i386/tm-nbsdaout.h: New file.
5966 * config/i386/tm-nbsdelf.h: Remove.
5967 * config/m68k/nbsd.mh: Remove.
5968 * config/m68k/nbsd.mt: Remove.
5969 * config/m68k/nbsdaout.mh: New file.
5970 * config/m68k/nbsdaout.mt: New file.
5971 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5972 * config/m68k/nm-nbsdaout.h: New file.
5973 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5974 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5975 * config/ns32k/nbsd.mh: Remove.
5976 * config/ns32k/nbsd.mt: Remove.
5977 * config/ns32k/nbsdaout.mh: New file.
5978 * config/ns32k/nbsdaout.mt: New file.
5979 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5980 * config/ns32k/nm-nbsdaout.h: New file.
5981 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5982 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5983 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5984 (SVR4_SHARED_LIBS): Remove.
5985 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5986 * config/sparc/nbsd.mh: Remove.
5987 * config/sparc/nbsd.mt: Remove.
5988 * config/sparc/nbsdaout.mh: New file.
5989 * config/sparc/nbsdaout.mt: New file.
5990 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5991 * config/sparc/nbsdelf.mt: New file.
5992 * config/sparc/nm-nbsdaout.h: New file.
5993 * config/sparc/nm-nbsdelf.h: Remove.
5994 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5995 * config/sparc/tm-nbsdaout.h: New file.
5996
5997 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5998
5999 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6000 mipsnbsd-tdep.c
6001 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6002
6003 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6004
6005 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6006 shnbsd-nat.c.
6007 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6008
6009 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6010
6011 * NEWS: Note new MIPS NetBSD native configuration.
6012 * configure.host (mips*-*-netbsd*): New host.
6013 * configure.tgt (mips*-*-netbsd*): New target.
6014 * mipsnbsd-nat.c: New file.
6015 * mipsnbsd-tdep.c: New file.
6016 * mipsnbsd-tdep.h: New file.
6017 * config/mips/nbsd.mh: New file.
6018 * config/mips/nbsd.mt: New file.
6019 * config/mips/nm-nbsd.h: New file.
6020 * config/mips/tm-nbsd.h: New file.
6021
6022 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6023
6024 * Makefile.in (SFILES): Add osabi.c.
6025 (COMMON_OBS): Add osabi.o.
6026 (osabi.o): New dependency list.
6027 * osabi.c: New file.
6028 * osabi.h: New file.
6029 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6030
6031 * Makefile.in (alpha_tdep_h): Define and use instead of
6032 alpha-tdep.h.
6033 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6034 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6035 Remove.
6036 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6037 * alpha-tdep.h: Include osabi.h.
6038 (alpha_abi): Remove.
6039 (gdbarch_tdep): Use generic OS ABI framework.
6040 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6041 gdbarch_register_osabi.
6042 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6043 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6044 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6045
6046 * Makefile.in (sh_tdep_h): Add osabi.h.
6047 * sh-tdep.h (sh_osabi): Remove.
6048 (gdbarch_tdep): Use generic OS ABI framework.
6049 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6050 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6051 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6052 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6053
6054 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6055 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6056 gdbarch_register_osabi.
6057 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6058 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6059 (get_elfosabi): Rename to...
6060 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6061 ABI framework support routines.
6062 (arm_gdbarch_init): Use generic OS ABI framework.
6063 (arm_dump_tdep): Likewise.
6064 (_initialize_arm_tdep): Likewise.
6065 * arm-tdep.h: Include osabi.h.
6066 (arm_abi): Remove.
6067 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6068 osabi member.
6069 (arm_gdbarch_register_os_abi): Remove prototype.
6070 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6071 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6072
6073 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6074 * mips-tdep.c: Include osabi.h.
6075 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6076 OS ABI framework.
6077
6078 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6079
6080 * h8300-tdep.c: Fix formatting.
6081
6082 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6083
6084 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6085 printing vector registers.
6086
6087 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6088
6089 From Fernando Nasser:
6090 * remote.c (remote_async_open_1): Re-throw the exception when the
6091 connection fails.
6092 (remote_cisco_open): Ditto.
6093 (remote_open_1): Ditto.
6094
6095 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6096
6097 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6098 (remote_start_remote): Add uiout parameter. Pass through to
6099 remote_start_remote_dummy.
6100 (remote_open_1): Use catch_exception instead of catch_errors.
6101 (remote_async_open_1): Ditto.
6102 (remote_cisco_open): Ditto.
6103
6104 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6105
6106 * remote.c (remote_start_remote): Replace PTR with void pointer.
6107 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6108 static.
6109
6110 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6111
6112 * gdb_indent.sh: Allow the script to be run in the sim directory.
6113
6114 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6115
6116 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6117 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6118
6119 * corelow.c (core_open): Only call set_gdbarch_from_file if
6120 exec_bfd is NULL.
6121
6122 2002-05-17 Andrey Volkov <avolkov@transas.com>
6123
6124 * h8300-tdep.c: Add support of EXR register
6125 * config/h8300/tm-h8300.h: Ditto.
6126
6127 2002-05-17 Andrey Volkov <avolkov@transas.com>
6128
6129 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6130
6131 2002-05-17 Andrey Volkov <avolkov@transas.com>
6132
6133 * h8300-tdep.c: Change literal regnums to REGNO.
6134
6135 2002-05-17 Jim Blandy <jimb@redhat.com>
6136
6137 * NEWS: Note addition of macro support.
6138
6139 Expand preprocessor macros in C expressions.
6140 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6141 (scan_macro_expansion, scanning_macro_expansion,
6142 finished_macro_expansion): New function declarations.
6143 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6144 variable declarations.
6145 * parser-defs.h (expression_context_pc): New declaration.
6146 * parse.c (expression_context_pc): New variable.
6147 (parse_exp_1): Set expression_context_pc, as well as
6148 expression_context_block.
6149 * c-exp.y (yylex): If we're not already reading the result of a
6150 macro expansion, try to macro-expand the next token. When we're
6151 done scanning a macro expansion, switch back to the mainline text.
6152 Commas and `if's in a macro's expansion don't terminate the input.
6153 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6154 (macro_original_text, macro_expanded_text,
6155 expression_macro_lookup_func, expression_macro_lookup_baton): New
6156 variables.
6157 (scan_macro_expansion, scanning_macro_expansion,
6158 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6159 c_preprocess_and_parse): New functions.
6160 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6161 c_preprocess_and_parse, instead of c_parse.
6162 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6163 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6164
6165 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6166
6167 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6168 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6169 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6170
6171 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6172
6173 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6174
6175 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6176
6177 * Makefile.in (sh_tdep_h): Define and use.
6178 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6179 register enum): Move to...
6180 * * sh-tdep.h: ...here.
6181 * sh-tdep.c: Include sh-tdep.h.
6182 * sh3-rom.c: Likewise.
6183 * shnbsd-tdep.c: Likewise.
6184
6185 2002-05-16 Michael Snyder <msnyder@redhat.com>
6186
6187 * arm-tdep.c: Spelling fix in comment.
6188
6189 2002-05-16 Jim Blandy <jimb@redhat.com>
6190
6191 Add commands for manually expanding macros and showing their
6192 definitions.
6193 * macrocmd.c, macroscope.c, macroscope.h: New files.
6194 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6195 (macroscope_h): New variable.
6196 (HFILES_NO_SRCDIR): Add macroscope.h.
6197 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6198 (macroscope.o, macrocmd.o): New rules.
6199
6200 Teach the Dwarf 2 reader to read macro information.
6201 * dwarf2read.c: #include "macrotab.h".
6202 (dwarf_macinfo_buffer): New variable.
6203 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6204 dwarf_macinfo_size.
6205 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6206 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6207 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6208 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6209 dwarf2_macro_spaces_in_definition): New complaints.
6210 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6211 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6212 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6213 the partial symbol table.
6214 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6215 from what's recorded in the partial symbol table.
6216 (read_file_scope): If the compilation unit has a
6217 `DW_AT_macro_info' attribute, read its macro information.
6218 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6219
6220 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6221
6222 Fix PR gdb/546
6223 * ser-tcp.c: Don't include <netinet/udp.h>.
6224
6225 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6226
6227 * MAINTAINERS: Update my email address.
6228
6229 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6230
6231 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6232 include file of the same name.
6233
6234 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6235
6236 * configure.tgt: Mark v850 as multi-arched.
6237 * config/v850/tm-v850.h: Remove file.
6238 * config/v850/v850.mt: Eliminate TM_FILE.
6239
6240 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6241
6242 * v850-tdep.c: Full multi-arch.
6243 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6244 Define GDB_MULTI_ARCH to 2.
6245
6246 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6247
6248 * p-exp.y (current_type): New static variable.
6249 Carries the type of the expression at the position that is parsed.
6250 (push_current_type, pop_current_type): Two new functions. Used
6251 to store/restore current_type in expression on specific tokens.
6252 (search_field): New static variable. Set to one after parsing a point
6253 as at that point only a FIELDNAME token should be searched.
6254 (FIELDNAME): New token. After a point only a token belonging to
6255 current_type type definition is allowed.
6256 (all over token rules): reset and change current_type according
6257 to rules.
6258 (exp '[' rule): insert implicit array index field if
6259 exp is a pascal string type.
6260
6261 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6262
6263 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6264 frame info. Use frame_info's saved_regs instead of matching member
6265 in extra_frame_info throughout.
6266 (v850_frame_init_saved_regs): New function.
6267 (v850_init_extra_frame_info): Move most functionality into
6268 v850_frame_init_saved_regs().
6269 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6270 (v850_frame_find_saved_regs): Remove declaration.
6271 (FRAME_FIND_SAVED_REGS): Remove definition.
6272 (v850_frame_init_saved_regs): Add declaration.
6273 (FRAME_INIT_SAVED_REGS): Add definition.
6274
6275 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6276
6277 * v850-tdep.c: Begin multi-arch'ing v850.
6278 (v850_target_architecture_hook): Remove function.
6279 (v850_gdbarch_init): New function. Add code previously in
6280 v850_target_architecture_hook().
6281 (_initialize_v850_tdep): Don't set target_architecture_hook.
6282 Call register_gdbarch_init() instead.
6283
6284 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6285
6286 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6287 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6288 (fixup_class_method_type): Likewise.
6289
6290 2002-05-15 Jim Blandy <jimb@redhat.com>
6291
6292 Add macro structures to GDB's symbol tables. Nobody puts anything
6293 in them yet.
6294 * symtab.h (struct symtab): New member: `macro_table'.
6295 * buildsym.h (pending_macros): New global variable.
6296 * buildsym.c: #include "macrotab.h".
6297 (buildsym_init): Initialize `pending_macros'.
6298 (end_symtab): If we found macro information while reading a CU's
6299 debugging info, do build a symtab structure for it. Make the
6300 symtab point to the macro information, and clear the
6301 `pending_macros' pointer which held it while we were reading the
6302 debug info.
6303 (really_free_pendings): Free any pending macro table.
6304 * objfiles.h (struct objfile): New member: `macro_cache'.
6305 * objfiles.c (allocate_objfile): Set allocate and free functions
6306 for the macro cache's objstack.
6307 (free_objfile): Empty the macro cache's obstack.
6308 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6309 set new allocate and free functions for it.
6310 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6311 free functions for the macro cache's objstack. (Why is this
6312 function building its own objfile?)
6313 * symmisc.c (print_objfile_statistics): Print statistics on the
6314 macro bcache.
6315 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6316
6317 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6318
6319 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6320 (REGISTER_U_ADDR): Delete definition.
6321 (arm_register_u_addr): Delete declaration.
6322
6323 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6324
6325 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6326 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6327
6328 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6329
6330 * regcache.c (register_valid): Revise comments refering to "Not
6331 available" and "unavailable".
6332 * frame.c (frame_register_read): Ditto.
6333 * findvar.c (value_of_register): Ditto.
6334
6335 2002-05-15 Andrew Cagney <cagney@redhat.com>
6336
6337 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6338 (remote-sim.o): Update dependencies.
6339 (d10v-tdep.o): Specify dependencies.
6340 (sim_d10v_h): Define.
6341
6342 2002-05-14 Jim Blandy <jimb@redhat.com>
6343
6344 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6345 * macrotab.c (macro_lookup_inclusion, find_definition,
6346 new_macro_table): Same.
6347
6348 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6349 not `! strcmp ()'. This is a dubious improvement.
6350 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6351
6352 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6353 although it's not necessary, to avoid a warning.
6354
6355 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6356
6357 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6358 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6359 TYPE_INSTANCE_FLAGS.
6360 (struct main_type): New.
6361 (struct type): Move most members to struct main_type. Change
6362 cv_type and as_type to new type_chain member. Add instance_flags.
6363 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6364 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6365 (finish_cv_type): Remove prototype.
6366 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6367 Set TYPE_CHAIN.
6368 (alloc_type_instance): New function.
6369 (smash_type): New function.
6370 (make_pointer_type, make_reference_type, make_function_type)
6371 (smash_to_member_type, smash_to_method_type): Call smash_type.
6372 (make_qualified_type): New function.
6373 (make_type_with_address_space): Call make_qualified_type.
6374 (make_cv_type): Likewise.
6375 (finish_cv_type): Remove unnecessary function.
6376 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6377 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6378 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6379 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6380 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6381 * hpread.c (hpread_read_struct_type): Likewise.
6382 * stabsread.c (read_struct_type): Likewise.
6383
6384 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6385
6386 * configure.tgt: Add a catch all sh* target, for cases like
6387 sh[2,3,4]-elf and sh-hms.
6388
6389 2002-05-14 Keith Seitz <keiths@redhat.com>
6390
6391 * event-loop.c (create_file_handler): Don't do anything but
6392 update data when we are given a fd which we are already
6393 monitoring.
6394
6395 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6396
6397 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6398 (update_context): Use __func__ in warnings.
6399
6400 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6401
6402 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6403 and tcp_close to net_open and net_close.
6404 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6405 using UDP if requested. Don't try to disable Nagle on UDP
6406 sockets.
6407 * remote.c (remote_serial_open): New function. Warn about UDP.
6408 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6409
6410 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6411
6412 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6413
6414 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6415
6416 * configure.tgt: Remove sh-hms target.
6417 * MAINTAINERS: Don't list sh-hms as a separate target.
6418
6419 2002-05-13 Jim Blandy <jimb@redhat.com>
6420
6421 Add first preprocessor macro-expansion files.
6422 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6423 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6424 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6425 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6426 (COMMON_OBS): Add macrotab.o, macroexp.o.
6427 (macroexp.o, macrotab.o): New rules.
6428
6429 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6430
6431 * config/m88k/tm-m88k.h: Update copyright.
6432 (m88k_target_write_pc): Declare
6433 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6434 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6435 (SHIFT_INST_REGS): Update definition.
6436 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6437 using old definition of TARGET_WRITE_PC.
6438 * regcache.c (generic_target_write_pc): Delete code handling
6439 NNPC_REGNUM.
6440 * gdbarch.sh (NNPC_REGNUM): Delete.
6441 * gdbarch.h, gdbarch.c: Regenerate.
6442
6443 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6444
6445 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6446 builtin reg number.
6447
6448 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6449
6450 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6451 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6452 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6453 access macros.
6454 * c-typeprint.c (cp_type_print_method_args): Likewise.
6455 (c_type_print_args): Likewise.
6456 * d10v-tdep.c (d10v_push_arguments): Likewise.
6457 (d10v_extract_return_value): Likewise.
6458 * expprint.c (print_subexp): Likewise.
6459 * gdbtypes.c (lookup_primitive_typename): Likewise.
6460 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6461 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6462 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6463 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6464 (TYPE_VECTOR): Likewise.
6465 * hpread.c (hpread_read_struct_type)
6466 (fix_static_member_physnames, fixup_class_method_type)
6467 (hpread_type_lookup): Likewise.
6468 * mdebugread.c (parse_symbol, parse_type): Likewise.
6469 * p-lang.c (is_pascal_string_type): Likewise.
6470 * valops.c (hand_function_call): Likewise.
6471 * x86-64-tdep.c (classify_argument): Likewise.
6472
6473 * hpread.c (hpread_read_function_type)
6474 (hpread_read_doc_function_type): Call replace_type.
6475 * dstread.c (create_new_type): Delete.
6476 (decode_dst_structure, process_dst_function): Call alloc_type.
6477 Use type access macros.
6478
6479 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6480
6481 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6482 the're not supported by the current architecture.
6483 (i387_fill_fxsave): Likewise.
6484
6485 2002-05-12 Fred Fish <fnf@redhat.com>
6486
6487 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6488 sect_index_xxx members to index the first slot in section_offsets
6489 if all of the section_offsets are zero.
6490
6491 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6492
6493 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6494 checked in with last change.
6495
6496 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6497
6498 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6499 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6500 config.sub.
6501
6502 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6503
6504 * Makefile.in: Update dependencies.
6505
6506 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6507
6508 * language.c (local_hex_string_custom): Simplify. Do not depend
6509 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6510
6511 * memattr.c (mem_info_command): Replace calls to
6512 longest_local_hex_string and longest_local_hex_string_custom.
6513 * buildsym.c (make_blockvector): Ditto.
6514 * solib.c (info_sharedlibrary_command): Ditto.
6515 * tracepoint.c (tracepoints_info): Ditto.
6516 * symtab.c (print_msymbol_info): Ditto.
6517
6518 * language.c (local_hex_string): Delete.
6519 (local_hex_string_custom): Delete.
6520 (longest_local_hex_string): Rename to local_hex_string.
6521 (longest_local_hex_string_custom): Rename to
6522 local_hex_string_custom.
6523 * language.h (local_hex_string): Change parameter type to LONGEST.
6524 (local_hex_string_custom): Ditto.
6525 (longest_local_hex_string): Delete declaration.
6526 (longest_local_hex_string_custom): Ditto.
6527
6528 * solib.c: Update copyright.
6529 * memattr.c: Update copyright.
6530
6531 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6532
6533 * arch-utils.h (legacy_register_to_value): Declare.
6534 (legacy_value_to_register): Declare.
6535 (legacy_convert_register_p): Declare.
6536 * arch-utils.c (legacy_register_to_value): New function.
6537 (legacy_value_to_register): New function.
6538 (legacy_convert_register_p): New function.
6539
6540 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6541 (VALUE_TO_REGISTER): Define.
6542 (CONVERT_REGISTER_P): Define.
6543 * gdbarch.h, gdbarch.c: Regenerate.
6544
6545 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6546 VALUE_TO_REGISTER.
6547 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6548 CONVERT_REGISTER_P.
6549
6550 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6551 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6552
6553 * Makefile.in: Update dependencies for valops.c.
6554 * valops.c: Include "gdb_assert.h".
6555 (typecmp): Skip THIS parameter to methods.
6556 (find_method_list): Remove static_memfuncp argument,
6557 update callers. Check for stub methods.
6558 (find_value_oload_method_list): Don't set *static_memfuncp.
6559 (find_overload_match): Don't check for stub methods. Assert
6560 that methods are not stubbed. Handle static methods.
6561 (value_find_oload_method_list): Remove static_memfuncp argument.
6562 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6563 to the argument list for static stub methods.
6564 * value.h (value_find_oload_method_list): Update prototype.
6565
6566 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6567
6568 * arch-utils.h (generic_register_size): Declare.
6569 (generic_register_raw_size, generic_register_virtual_size): Delete
6570 declarations.
6571 * arch-utils.c (generic_register_raw_size): Delete.
6572 (generic_register_size): New function.
6573 (generic_register_virtual_size): Delete.
6574
6575 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6576 default generic_register_size.
6577 * gdbarch.h, gdbarch.c: Re-generate.
6578
6579 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6580 register_virtual_size.
6581 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6582 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6583
6584 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6585
6586 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6587 * gdbarch.h, gdbarch.c: Regenerate.
6588 * gnu-v3-abi.c: Update copyright.
6589 (vtable_address_point_offset): Update.
6590 (gnuv3_rtti_type): Update.
6591 (gnuv3_baseclass_offset): Update.
6592 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6593 (init_fetch_link_map_offsets): Update.
6594 * remote.c (get_remote_state): Update.
6595
6596 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6597
6598 * TODO: Remove value_headof/value_from_vtable_info comment.
6599 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6600 * values.c (value_headof, value_from_vtable_info): Delete.
6601 * value.h (value_from_vtable_info): Delete prototype.
6602
6603 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6604
6605 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6606 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6607 $(gdb_regex_h).
6608 (gdb_assert_h): Define.
6609 (gdb_wait_h): Define.
6610 (gdb_regex_h): Define.
6611
6612 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6613
6614 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6615 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6616
6617 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6618
6619 * nbsd-tdep.c: Fix comment.
6620
6621 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6622
6623 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6624 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6625 (nbsd-tdep.o): New dependency list.
6626 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6627 nbsd-tdep.h.
6628 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6629 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6630 * nbsd-tdep.c: New file.
6631 * nbsd-tdep.h: New file.
6632 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6633 nbsd-tdep.h.
6634 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6635 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6636 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6637 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6638
6639 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6640
6641 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6642 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6643 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6644 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6645 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6646 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6647
6648 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6649
6650 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6651 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6652 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6653 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6654 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6655 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6656 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6657
6658 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6659
6660 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6661 fetch_elfcore_registers to...
6662 * i386nbsd-tdep.c: ...here.
6663 (i386nbsd_use_struct_convention): Rename to...
6664 (i386nbsd_aout_use_struct_convention): ...this.
6665 (i386nbsd_supply_reg): New function.
6666 (i386nbsd_fill_reg): New function.
6667 (fetch_core_registers): Use i386nbsd_supply_reg.
6668 (fetch_elfcore_registers): Likewise.
6669 (_initialize_i386nbsd_tdep): New function.
6670 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6671 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6672 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6673 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6674 (i386nbsd_aout_use_struct_convention): ...this.
6675
6676 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6677
6678 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6679 (store_inferior_registers): Use shnbsd_fill_reg.
6680 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6681 sh_nbsd_supply_register): Collapse into...
6682 (shnbsd_supply_reg): ...this.
6683 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6684 (shnbsd_fill_reg): ...this.
6685 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6686 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6687 (fetch_core_registers): Use shnbsd_supply_reg.
6688 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6689 (sh_nbsd_core_fns): Rename to...
6690 (shnbsd_core_fns): ...this.
6691 (sh_nbsd_elfcore_fns): Rename to...
6692 (shnbsd_elfcore_fns): ...this.
6693 (sh_nbsd_init_abi): Rename to...
6694 (shnbsd_init_abi): ...this.
6695 (_initialize_sh_nbsd_tdep): Rename to...
6696 (_initialize_shnbsd_tdep): ...this.
6697 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6698 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6699 sh_nbsd_fill_register): Remove prototypes.
6700 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6701
6702 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6703
6704 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6705 (i387-nat.o): Delete dependency list.
6706 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6707 (x86-64-linux-nat.o): Likewise.
6708 * i387-nat.c: Delete file, moving contents to...
6709 * i387-tdep.c: ...here.
6710 * i387-nat.h: Rename...
6711 * i387-tdep.h: ...to this.
6712 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6713 * i386-linux-nat.c: Likewise.
6714 * i386bsd-nat.c: Likewise.
6715 * i386gnu-nat.c: Likewise.
6716 * i386nbsd-nat.c: Likewise.
6717 * i386v4-nat.c: Likewise.
6718 * x86-64-linux-nat.c: Likewise.
6719 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6720 * config/i386/go32.mh (NATDEPFILES): Likewise.
6721 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6722 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6723 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6724 * config/i386/linux.mh (NATDEPFILES): Likewise.
6725 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6726 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6727 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6728 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6729
6730 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6731
6732 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6733 (alphanbsd-nat.o): Remove dependency list.
6734 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6735 * alphanbsd-nat.c: Delete. Contents moved to...
6736 * alphanbsd-tdep.c: ...here.
6737 (_initialize_alphanbsd_tdep): Register core functions.
6738 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6739
6740 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6741
6742 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6743 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6744 (alphanbsd-nat.o): Likewise.
6745 (alphabsd-tdep.o): New dependency list.
6746 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6747 (fill_gregset): Use alphabsd_fill_reg.
6748 (supply_fpregset): Use alphabsd_supply_fpreg.
6749 (fill_fpregset): Use alphabsd_fill_fpreg.
6750 (fetch_inferior_registers): Use struct reg and struct fpreg
6751 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6752 and alphabsd_supply_fpreg.
6753 (store_inferior_registers): Use struct reg and struct fpreg
6754 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6755 and alphabsd_fill_fpreg.
6756 * alphabsd-tdep.c: New file.
6757 * alphabsd-tdep.h: New file.
6758 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6759 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6760 alphabsd_supply_fpreg.
6761 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6762 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6763
6764 2002-05-11 Eric Christopher <echristo@redhat.com>
6765
6766 * mips-tdep.c (mips_double_register_type): Fix thinko.
6767 (mips_single_register_type): Ditto.
6768 * MAINTAINERS: Add self.
6769
6770 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6771
6772 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6773 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6774 right thing on architectures with different endianness and/or
6775 integer sizes.
6776
6777 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6778
6779 From Christian Limpach <chris@Pin.LU>
6780 * configure.in: Change sed expression which comments out
6781 NATDEPFILES to also comment out continuation lines.
6782 * configure: Regenerate.
6783
6784 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6785
6786 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6787 big patch.
6788
6789 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6790
6791 * sh-tdep.c: Include correct file.
6792
6793 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6794
6795 New support for sh64-elf (sh5) target.
6796
6797 * configure.tgt: For sh64-elf target, default to sh-elf.
6798
6799 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6800 (struct gdbarch_tdep): Add new fields for new registers and ABI
6801 info.
6802
6803 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6804 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6805 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6806 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6807 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6808 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6809 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6810 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6811 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6812 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6813 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6814 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6815 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6816 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6817 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6818 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6819 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6820 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6821 sign_extend, sh64_nofp_frame_init_saved_regs,
6822 sh64_init_extra_frame_info, sh64_get_saved_register,
6823 sh64_extract_struct_value_address, sh64_pop_frame,
6824 sh64_push_arguments, sh64_extract_return_value,
6825 sh64_store_return_value, sh64_show_media_regs,
6826 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6827 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6828 sh_sh64_register_virtual_type,
6829 sh_sh64_register_convert_to_virtual,
6830 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6831 sh64_register_read, sh64_pseudo_register_write,
6832 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6833 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6834 sh64_do_pseudo_register, sh_compact_do_registers_info,
6835 sh64_do_registers_info, sh_gdbarch_init): New functions.
6836
6837 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6838
6839 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6840
6841 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6842
6843 * linespec.c (decode_line_1): Check for a double quote after
6844 a filename correctly.
6845
6846 2002-05-10 Jim Blandy <jimb@redhat.com>
6847
6848 Properly track the size of the current objfile's .debug_line section.
6849 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6850 (DWARF_LINE_SIZE): New macro.
6851 (dwarf2_build_psymtabs_hard): Record the line section's size in
6852 the partial symbol table.
6853 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6854 symbol table.
6855
6856 2002-05-10 Petr Sorfa <petrs@caldera.com>
6857
6858 * ia64-tdep.c: Handle breakpoints on L instruction type
6859 in MLX instruction bundle by moving the breakpoint to
6860 the third slot (X instruction type) as L holds only data.
6861
6862 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6863
6864 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6865 (process_one_symbol): Complain about discarding local symbols
6866 due to a misplaced N_LBRAC entry.
6867
6868 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6869
6870 From Daniel Berlin <dan@cgsoftware.com>
6871 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6872 decrease the depth we are at, in the case of templates.
6873
6874 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6875
6876 * mips-tdep.c (mips_float_register_type): New function.
6877 (mips_double_register_type): New function.
6878 (mips_print_register): Use them.
6879 (do_fp_register_row): Likewise.
6880
6881 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6882
6883 * signals/signals.c (signals): Remove conditional compilation around
6884 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6885 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6886
6887 2002-05-09 Michael Snyder <msnyder@redhat.com>
6888
6889 * remote-rdp.c (remote_rdp_can_run): Remove.
6890
6891 2002-05-09 Tom Tromey <tromey@redhat.com>
6892
6893 * jv-valprint.c (java_val_print): Handle `char' as a special case
6894 of TYPE_CODE_INT.
6895
6896 2002-05-09 Michael Snyder <msnyder@redhat.com>
6897
6898 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6899 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6900 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6901 str r(0123),[sp,#nn].
6902 (arm_skip_prologue): Ditto. Also make disassembly
6903 order-independent by placing it in a loop.
6904
6905 2002-05-06 Michael Snyder <msnyder@redhat.com>
6906
6907 * stabsread.c (read_type): Add recognition for new attribute:
6908 "@V;" means that an array type is actually a vector.
6909 This is analogous to the vector flag that's been added to dwarf2.
6910
6911 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6912
6913 * i386-tdep.h (i386_abi): New enum.
6914 (struct gdbarch_tdep): Replace os_ident member with abi.
6915 (i386_gdbarch_register_os_abi): New prototype.
6916 * i386-tdep.c (i386_abi_names): New array.
6917 (process_note_abi_tag_sections): Removed.
6918 (process_note_sections): New function.
6919 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6920 (struct i386_abi_handler): New struct.
6921 (i386_abi_handler_list): New variable.
6922 (i386_gdbarch_register_os_abi): New function.
6923 (i386_gdbarch_init): Adapt for the changes given above.
6924
6925 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6926
6927 * gregset.h: Say "GNU/Linux".
6928
6929 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6930
6931 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6932 (build_gdbtypes): Build builtin_type_v2_float.
6933 (_initialize_gdbtypes): Register new builtin type.
6934
6935 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6936
6937 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6938 (clear_gdbarch_swap): New function.
6939 (initialize_non_multiarch): Call.
6940 (gdbarch_update_p): Before calling init(), swap out and clear the
6941 existing architecture.
6942 * gdbarch.c: Regenerate.
6943
6944 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6945
6946 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6947 alphanbsd-tdep.c.
6948
6949 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6950
6951 * sh-nbsd-nat.c: Rename to...
6952 * shnbsd-nat.c: ...this.
6953 * sh-nbsd-tdep.c: Rename to...
6954 * shnbsd-tdep.c: ...this.
6955 * sh-nbsd-tdep.h: Rename to...
6956 * shnbsd-tdep.h: ...this.
6957 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6958 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6959
6960 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6961
6962 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6963 concatenation for command help messages.
6964
6965 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6966
6967 * NEWS: Note new sh*-*-netbsdelf* configuration.
6968 * configure.host: Set gdb_host_cpu to sh for all sh*.
6969 (sh*-*-netbsdelf*): New host.
6970 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6971 (sh*-*-netbsdelf*): New target.
6972 * sh-nbsd-nat.c: New file.
6973 * sh-nbsd-tdep.c: New file.
6974 * sh-nbsd-tdep.h: New file.
6975 * config/sh/nbsd.mh: New file.
6976 * config/sh/nbsd.mt: New file.
6977 * config/sh/nm-nbsd.h: New file.
6978 * config/sh/tm-nbsd.h: New file.
6979
6980 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6981
6982 * sh-tdep.c (sh_osabi_names): Declare.
6983 (process_note_abi_tag_sections): New function.
6984 (get_elfosabi): Ditto.
6985 (sh_gdbarch_register_os_abi): Ditto.
6986 (sh_dump_tdep): Ditto.
6987 _initialize_sh_tdep): Use gdbarch_register to register
6988 sh_gdbarch_init and sh_dump_tdep.
6989 * config/sh/tm-sh.h (sh_osabi): Declare.
6990 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6991
6992 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6993
6994 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6995 (thumb_scan_prologue): Ditto.
6996 (arm_find_callers_reg): Ditto.
6997 (arm_frame_chain): Ditto.
6998 (arm_init_extra_frame_info): Ditto.
6999 (arm_frame_saved_pc): Ditto.
7000 (arm_pop_frame): Ditto.
7001 (arm_push_return_address): New function.
7002 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7003 call_dummy_location, call_dummy_breakpoint_offset_p,
7004 call_dummy_breakpoint_offset, call_dummy_p,
7005 call_dummy_stack_adjust_p, call_dummy_words,
7006 sizeof_call_dummy_words, call_dummy_start_offset,
7007 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7008 call_dummy_address, push_return_address and push_dummy_frame for
7009 generic dummy frames.
7010
7011 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7012
7013 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7014 size computation for alloca.
7015 (sh_fp_frame_init_saved_regs): Likewise.
7016
7017 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7018
7019 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7020 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7021 * arm-tdep.c (arm_store_return_value): Use them.
7022 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7023 * remote-rdp.c (remote_rdp_fetch_register): Use
7024 ARM_MAX_REGISTER_RAW_SIZE.
7025 (remote_rdp_store_register): Likewise.
7026
7027 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7028
7029 * dwarf2cfi.c: Code cleanup, removed unused variables,
7030 added default labels to switch {} statements.
7031 * x86-64-tdep.c: Ditto.
7032 * x86-64-linux-nat.c: Ditto.
7033
7034 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7035
7036 * solib.h: Protect against multiple inclusion.
7037
7038 2002-05-06 Jim Blandy <jimb@redhat.com>
7039
7040 Add first preprocessor macro-expansion files.
7041 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7042 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7043 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7044 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7045 (COMMON_OBS): Add macrotab.o, macroexp.o.
7046 (macroexp.o, macrotab.o): New rules.
7047
7048 Separate the job of reading the line number info statement program
7049 header (...expialidocious) out into its own function.
7050 * dwarf2read.c (struct line_head, struct filenames, struct
7051 directories): Replace with...
7052 (struct line_header): New structure, containing the full
7053 contents of the statement program header, including the
7054 include directory and file name tables.
7055 (read_file_scope): If we have line number info, instead of just
7056 calling dwarf_decode_lines to do all the work, call
7057 dwarf_decode_line_header first to get a `struct line_header'
7058 containing the data in the statement program header, and then
7059 pass that to dwarf_decode_lines, which will pick up where that
7060 left off. Be sure to clean up the `struct line_header' object.
7061 (dwarf_decode_line_header, free_line_header, add_include_dir,
7062 add_file_name): New functions.
7063 (dwarf_decode_lines): Move all the code to read the statement
7064 program header into dwarf_decode_line_header. Take the line
7065 header it built as the first argument, instead of the offset to
7066 the compilation unit's line number info. Use the new `struct
7067 line_header' type instead of the old structures. No need to do
7068 cleanups here now, since we don't allocate anything.
7069 (dwarf2_statement_list_fits_in_line_number_section,
7070 dwarf2_line_header_too_long): New complaints.
7071
7072 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7073
7074 * gdbtypes.c (init_vector_type): New function.
7075 (build_builtin_type_vec128): Simplify the representation of SIMD
7076 registers.
7077 (build_gdbtypes): Initialize new builtin vector types.
7078 (_initialize_gdbtypes): Register new vector types with gdbarch.
7079 (builtin_type_v4_float, builtin_type_v4_int32,
7080 builtin_type_v8_int16, builtin_type_v16_int8,
7081 builtin_type_v2_int32, builtin_type_v4_int16,
7082 builtin_type_v8_int8): New (renamed) SIMD types.
7083
7084 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7085
7086 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7087 (i387_fill_fxsave): Likewise.
7088
7089 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7090
7091 * alpha-tdep.c (alpha_extract_return_value): Don't use
7092 non-constant array size in prototype.
7093
7094 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7095
7096 From Brian Taylor <briant at model dot com>:
7097 * ui-out.c (ui_out_field_core_addr): Use the function
7098 longest_local_hex_string_custom'to format addresses > 32 bits
7099 wide.
7100
7101 * ui-out.c (ui_out_field_core_addr): Update comment.
7102
7103 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7104
7105 * stack.c (select_and_print_frame): Make static. Delete the
7106 parameter `level'.
7107 (func_command): Update call.
7108 (select_frame_command): Delete code computing the frame level.
7109 * frame.h (select_and_print_frame): Delete declaration.
7110
7111 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7112
7113 * sparc-tdep.c (sparc_get_saved_register): Comment why
7114 get_prev_frame call is safe.
7115
7116 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7117
7118 * frame.h (select_frame): Delete level parameter.
7119 * stack.c (select_frame): Update. Use frame_relative_level to
7120 obtain the frame's level.
7121 (select_and_print_frame): Update call.
7122 (select_frame_command): Ditto.
7123 (up_silently_base): Ditto.
7124 (down_silently_base): Ditto.
7125 * ocd.c (ocd_start_remote): Ditto.
7126 * remote-rdp.c (remote_rdp_open): Ditto.
7127 * remote-mips.c (mips_initialize): Ditto.
7128 (common_open): Ditto.
7129 * remote-e7000.c (e7000_start_remote): Ditto.
7130 * m3-nat.c (select_thread): Ditto.
7131 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7132 (child_get_current_exception_event): Ditto.
7133 * varobj.c (varobj_create): Ditto.
7134 (varobj_update): Ditto.
7135 (c_value_of_root): Ditto.
7136 * tracepoint.c (finish_tfind_command): Ditto.
7137 * corelow.c (core_open): Ditto.
7138 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7139 * thread.c (info_threads_command): Ditto.
7140 (switch_to_thread): Ditto.
7141 * infrun.c (normal_stop): Ditto.
7142 (restore_selected_frame): Ditto.
7143 (restore_inferior_status): Ditto.
7144 * breakpoint.c (insert_breakpoints): Ditto.
7145 (watchpoint_check): Ditto.
7146 (bpstat_stop_status): Ditto.
7147 (do_enable_breakpoint): Ditto.
7148 * blockframe.c (flush_cached_frames): Ditto.
7149 (reinit_frame_cache): Ditto.
7150
7151 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7152
7153 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7154 maintainer.
7155
7156 2002-05-04 Jim Blandy <jimb@redhat.com>
7157
7158 * gdbtypes.c (replace_type): Doc fix.
7159
7160 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7161
7162 * valprint.c (strcat_longest): Delete commented out function.
7163 Update copyright.
7164
7165 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7166
7167 * MAINTAINERS: Mark a29k as deleted.
7168 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7169 Move new configurations to the top.
7170 * configure.tgt: Remove a29k.
7171 * config/a29k/tm-vx29k.h: Delete.
7172 * config/a29k/vx29k.mt: Delete.
7173 * config/a29k/tm-a29k.h: Delete.
7174 * config/a29k/a29k-udi.mt: Delete.
7175 * config/a29k/a29k.mt: Delete.
7176 * a29k-tdep.c: Delete.
7177 * remote-udi.c: Delete.
7178 * remote-mm.c: Delete.
7179 * remote-eb.c: Delete.
7180 * remote-adapt.c: Delete.
7181 * Makefile.in: Remove obsolete code.
7182 * config/s390/s390x.mt: Ditto.
7183 * config/s390/s390.mt: Ditto.
7184 * config/sparc/sparclynx.mh: Ditto.
7185 * config/sparc/linux.mh: Ditto.
7186 * config/pa/hppaosf.mh: Ditto.
7187 * config/pa/hppabsd.mh: Ditto.
7188 * config/ns32k/nbsd.mt: Ditto.
7189 * config/mips/vr5000.mt: Ditto.
7190 * config/m68k/sun3os4.mh: Ditto.
7191 * config/m68k/nbsd.mt: Ditto.
7192 * config/m68k/m68klynx.mh: Ditto.
7193 * config/m32r/m32r.mt: Ditto.
7194 * config/i386/x86-64linux.mt: Ditto.
7195 * config/i386/nbsdelf.mt: Ditto.
7196 * config/i386/nbsd.mt: Ditto.
7197 * config/i386/i386lynx.mh: Ditto.
7198
7199 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7200
7201 * target.c (debug_print_register): New function. Handle oversize
7202 registers.
7203 (debug_to_fetch_registers): Call.
7204 (debug_to_store_registers): Call.
7205
7206 2002-05-03 Jim Blandy <jimb@redhat.com>
7207
7208 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7209 (read_type): Doc fix.
7210 * gdbtypes.c (replace_type): Doc fix.
7211
7212 * stabsread.c (multiply_defined_struct): New complaint.
7213 (read_struct_type): If the type we were passed isn't empty, or
7214 incomplete, don't read the new struct type into it; complain,
7215 and return the original type unchanged. Take a new `type_code'
7216 argument, which is the type code for the new type.
7217 (read_type): Rather than storing the type's type code here, pass
7218 it as an argument to read_struct_type, and let that take care of
7219 storing it. That way, we don't overwrite the original type code,
7220 so read_struct_type can use it to decide whether we're overwriting
7221 something we shouldn't.
7222 (complain_about_struct_wipeout): New function.
7223
7224 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7225
7226 * gdbarch.sh: Assert that gdbarch is non-NULL.
7227 * gdbarch.c: Regenerate.
7228
7229 2002-05-03 Jason Merrill <jason@redhat.com>
7230
7231 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7232 and return NULL.
7233
7234 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7235
7236 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7237 (x86_64_dwarf2gdb_regno_map_length),
7238 (x86_64_dwarf2_reg_to_regnum): Added.
7239 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7240 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7241 (_initialize_x86_64_tdep): Synced with the change above.
7242 (x86_64_skip_prologue): Reformulated message.
7243
7244 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7245
7246 * f-exp.y: Also use new prev_lexptr variable
7247 to improve error reporting. Based on Michael Snyder
7248 2002-04-24 dated patch to c-exp.y.
7249 * jv-exp.y: Likewise.
7250 * m2-exp.y: Likewise.
7251
7252 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7253
7254 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7255 we are dealing with vectors.
7256
7257 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7258
7259 * config/m68k/tm-nbsd.h: Obvious fix,
7260 correct machine name.
7261
7262 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7263
7264 * p-typeprint.c (pascal_type_print_base): Add support
7265 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7266
7267 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7268
7269 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7270 for fondamental pascal 'char' type.
7271
7272 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7273
7274 * p-lang.h (is_pascal_string_type): Declaration changed,
7275 new sixth argument of type char ** added.
7276 * p-lang.c (is_pascal_string_type): Implementation
7277 changed. Args length_pos, length_size, string_pos, char_size
7278 can now be NULL. New argument arrayname set to the field
7279 name of the char array. Return value set to char array
7280 field index plus one.
7281 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7282 is_pascal_string_type function.
7283
7284 2002-05-02 Andrew Cagney <cagney@redhat.com>
7285
7286 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7287 <cagney@redhat.com> change.
7288 * gdbarch.c: Regenerate.
7289
7290 2002-05-02 Andrew Cagney <cagney@redhat.com>
7291
7292 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7293 before probing for a new one. Detect errorenous gdbarch_init
7294 functions.
7295 * gdbarch.c: Regenerate.
7296
7297 2002-05-01 Andrew Cagney <cagney@redhat.com>
7298
7299 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7300 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7301 * config/v850/tm-v850.h: Ditto. Update copyright.
7302
7303 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7304
7305 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7306 current_gdbarch.
7307
7308 2002-04-30 Michael Snyder <msnyder@redhat.com>
7309
7310 * arm-tdep.c: Whitespace clean-ups.
7311 (arm_skip_prologue): Fix thinko; two lines
7312 should have been removed as part of 4/24 change.
7313
7314 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7315
7316 * rs6000-tdep.c: Added comment describing how fpscr register
7317 numbers were chosen.
7318
7319 2002-04-30 Michael Snyder <msnyder@redhat.com>
7320
7321 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7322
7323 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7324
7325 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7326 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7327 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7328
7329 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7330
7331 From Louis Hamilton <hamilton@redhat.com>:
7332 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7333 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7334 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7335 not bfd-private xcoff data, to determine wordsize.
7336 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7337
7338 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7339
7340 GDB 5.2 released from 5.2 branch.
7341
7342 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7343
7344 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7345 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7346 (x86_64_register_info_table): Added comments with register numbers.
7347
7348 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7349
7350 * rs6000-tdep.c (rs6000_extract_return_value,
7351 rs6000_store_return_value): Handle returning vectors.
7352 (rs6000_gdbarch_init): Use
7353 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7354 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7355 New function.
7356 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7357 vectors.
7358 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7359 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7360
7361 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7362
7363 * hpread.c (hpread_psymtab_to_symtab_1,
7364 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7365 with fprintf_unfiltered (gdb_stderr,...).
7366
7367 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7368
7369 * remote-array.c (printf_monitor, write_monitor,
7370 array_insert_breakpoint, array_remove_breakpoint ):
7371 Replace fprintf (stderr,...
7372 with fprintf_unfiltered (gdb_stderr,....
7373 * remote-es.c: Likewise.
7374 * remote-os9k.c: Likewise.
7375 * remote-st.c: Likewise.
7376
7377 2002-04-28 Andreas Schwab <schwab@suse.de>
7378
7379 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7380 linux-proc.o and gcore.o.
7381
7382 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7383
7384 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7385 code without frame pointers.
7386
7387 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7388
7389 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7390 ON_STACK is needed.
7391
7392 2002-04-26 Ben Elliston <bje@redhat.com>
7393
7394 * target.c (do_xfer_memory): Correct reference to the new option
7395 "trust-readonly-sections".
7396
7397 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7398
7399 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7400 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7401 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7402 vectors.
7403 (read_array_type): Record the fact that this array type is really a
7404 vector (i.e. are passed in by value).
7405
7406 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7407
7408 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7409 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7410 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7411 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7412 * alpha-linux-tdep.c: Include frame.h.
7413 (alpha_linux_sigcontext_addr): New function.
7414 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7415 alpha_linux_sigcontext_addr.
7416 * alpha-osf1-tdep.c: Include gdbcore.h.
7417 (alpha_osf1_sigcontext_addr): New function.
7418 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7419 alpha_osf1_sigcontext_addr.
7420 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7421 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7422
7423 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7424
7425 * stack.c (selected_frame_level):
7426 (select_frame): Do not set selected_frame_level.
7427 * frame.h (selected_frame_level): Delete declaration.
7428
7429 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7430
7431 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7432 convert_from_func_ptr-addr when AIX / PowerOpen.
7433
7434 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7435
7436 * valops.c (hand_function_call): Call
7437 generic_save_call_dummy_addr.
7438 * frame.h (generic_save_call_dummy_addr): Declare.
7439 * blockframe.c (struct dummy_frame): Add fields call_lo and
7440 call_hi.
7441 (generic_find_dummy_frame): Check for PC in range call_lo to
7442 call_hi instead of entry_point_address.
7443 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7444 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7445 (generic_save_call_dummy_addr): New function.
7446
7447 2002-04-24 David S. Miller <davem@redhat.com>
7448
7449 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7450 sparc_skip_prologue.
7451 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7452 information to find prologue when possible.
7453 (sparc_prologue_frameless_p): Call examine_prologue directly.
7454 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7455 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7456 second argument.
7457 (SKIP_PROLOGUE): Likewise.
7458
7459 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7460
7461 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7462 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7463 indicate that the condition it was testing is always true.
7464 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7465 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7466 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7467
7468 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7469
7470 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7471 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7472 tdep->jb_pc and tdep->jb_elt_size.
7473 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7474 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7475 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7476 * alpha-nat.c (get_longjmp_target): Remove.
7477 (JB_ELEMENT_SIZE): Ditto.
7478 (JB_PC): Ditto.
7479 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7480 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7481 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7482 to alpha_get_longjmp_target.
7483 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7484 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7485 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7486
7487 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7488
7489 * README: Update to GDB 5.2.
7490
7491 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7492
7493 * gdbarch.sh (LC_ALL): Set to `c'.
7494
7495 2002-04-25 Theodore A. Roth <troth@verinet.com>
7496
7497 * avr-tdep.c: Ran through gdb_indent.sh.
7498
7499 2002-04-25 Theodore A. Roth <troth@verinet.com>
7500
7501 * MAINTAINERS: Add myself as AVR maintainer.
7502 * NEWS: Note new target avr.
7503
7504 2002-04-25 Theodore A. Roth <troth@verinet.com>
7505
7506 * Makefile.in: Add support for AVR target.
7507 * configure.tgt: Add support for AVR target.
7508 * avr-tdep.c: New file
7509 * config/avr/avr.mt: New file.
7510
7511 2002-04-25 Theodore A. Roth <troth@verinet.com>
7512
7513 * MAINTAINERS: Add myself to write-after-approval.
7514
7515 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7516
7517 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7518 with fprintf_unfiltered (gdb_stderr,....
7519
7520 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7521
7522 Fix PR gdb/508.
7523 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7524
7525 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7526
7527 * p-exp.y: Also use new prev_lexptr variable
7528 to improve error reporting. Based on Michael Snyder
7529 2002-04-24 dated patch to c-exp.y.
7530
7531 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7532
7533 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7534 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7535 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7536 to 0.
7537 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7538 and struct value.
7539 (FUNCTION_START_OFFSET): Remove.
7540 (BREAKPOINT): Ditto.
7541
7542 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7543
7544 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7545 * NEWS: Ditto.
7546
7547 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7548
7549 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7550 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7551 alpha_linux_pc_in_sigtramp.
7552 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7553 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7554 alpha_osf1_pc_in_sigtramp.
7555 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7556 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7557 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7558 alphafbsd_pc_in_sigtramp.
7559 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7560 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7561 alphanbsd_pc_in_sigtramp.
7562 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7563 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7564
7565 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7566
7567 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7568
7569 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7570
7571 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7572 alphanbsd-tdep.c.
7573 (alphanbsd-nat.o): New dependency list.
7574 (alphanbsd-tdep.o): Ditto.
7575 * NEWS: Note new native NetBSD/alpha configuration.
7576 * alphanbsd-nat.c: New file.
7577 * alphanbsd-tdep.c: Ditto.
7578 * configure.host (alpha*-*-netbsd*): New host.
7579 * configure.tgt (alpha*-*-netbsd*): New target.
7580 * config/alpha/nbsd.mh: New file.
7581 * config/alpha/nbsd.mt: Ditto.
7582 * config/alpha/nm-nbsd.h: Ditto.
7583 * config/alpha/tm-nbsd.h: Ditto.
7584
7585 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7586
7587 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7588 (alpha-osf1-tdep.o): New dependency list.
7589 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7590 and skip_sigtramp_frame members.
7591 * alpha-linux-tdep.c: Include gdbcore.h.
7592 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7593 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7594 * alpha-osf1-tdep.c: New file.
7595 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7596 alpha-osf1-dep.c.
7597 (alpha_frame_past_sigtramp_frame): New function.
7598 (alpha_dynamic_sigtramp_offset): Ditto.
7599 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7600 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7601 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7602 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7603 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7604 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7605 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7606 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7607 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7608 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7609 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7610 to find_solib_trampoline_target.
7611 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7612 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7613 (SKIP_TRAMPOLINE_CODE): Remove.
7614 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7615 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7616 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7617 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7618 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7619 (PROC_SIGTRAMP_MAGIC): Ditto.
7620 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7621 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7622 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7623 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7624 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7625
7626 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7627
7628 * NEWS: Note that Alpha targets are now multi-arch.
7629
7630 2002-04-24 Michael Snyder <msnyder@redhat.com>
7631
7632 * parser-defs.h (prev_lexptr): New external variable.
7633 * parse.c (parse_exp_1): Set prev_lexptr to null before
7634 calling the language-specific parser.
7635 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7636 (yyerror): Use prev_lexptr in error reporting.
7637
7638 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7639
7640 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7641 * gregset.h: If FILL_FPXREGSET is defined, provide
7642 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7643 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7644 is defined, call fill_fpxregset.
7645
7646 2002-04-24 Roland McGrath <roland@frob.com>
7647
7648 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7649 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7650 (supply_gregset, supply_fpregset): New functions.
7651
7652 * gnu-nat.c (gnu_find_memory_regions): New function.
7653 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7654 (gnu_xfer_memory): Add a cast.
7655
7656 2002-04-24 Michael Snyder <msnyder@redhat.com>
7657
7658 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7659 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7660 of argument regs ("str r(0123), [r11, #-nn"]).
7661 (arm_skip_prologue): Better handling for frameless functions.
7662 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7663 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7664
7665 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7666
7667 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7668 NUM_PSEUDO_REGS can be used.
7669
7670 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7671
7672 * arch-utils.h: Update copyright.
7673
7674 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7675 * gdbarch.h, gdbarch.c: Re-generate.
7676
7677 * inferior.h (IN_SIGTRAMP): Delete definition.
7678 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7679 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7680
7681 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7682 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7683 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7684 (find_proc_framesize): Ditto.
7685 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7686 (alpha_init_extra_frame_info): Ditto.
7687 * infrun.c (handle_inferior_event): Ditto.
7688 (handle_inferior_event): Ditto.
7689 (check_sigtramp2): Ditto.
7690 * blockframe.c (create_new_frame): Ditto.
7691 (get_prev_frame): Ditto.
7692 * ppc-linux-tdep.c: Update comments.
7693 * i386-linux-tdep.c: Update comments.
7694 * breakpoint.c (bpstat_what): Update comment.
7695
7696 2002-04-24 David S. Miller <davem@redhat.com>
7697
7698 * i960-tdep.c (register_in_window_p): New function.
7699 (i960_find_saved_register): Use it instead of
7700 REGISTER_IN_WINDOW_P.
7701 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7702
7703 * symtab.h (find_stab_function_addr): Kill extern.
7704 * minsyms.c (find_stab_function_addr): Remove from here...
7705 * dbxread.c: ... to here, and mark it static.
7706
7707 2002-04-20 David S. Miller <davem@redhat.com>
7708
7709 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7710 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7711
7712 2002-04-21 David S. Miller <davem@redhat.com>
7713
7714 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7715 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7716 (vx_write_register): Likewise.
7717
7718 2002-04-23 J. Brobecker <brobecker@gnat.com>
7719
7720 * source.c (is_regular_file): New function.
7721 (openp): Check wether file to open is a regular file
7722 to avoid opening directories.
7723
7724 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7725
7726 * findvar.c (extract_signed_integer): Cast printf argument
7727 to suppress format warning.
7728 (extract_unsigned_integer): Likewise.
7729 * infcmd.c (registers_info): Likewise.
7730 * top.c (get_prompt_1): Likewise.
7731 * valops.c (value_assign): Likewise.
7732 * valprint.c (print_decimal): Likewise.
7733
7734 2002-04-22 H.J. Lu (hjl@gnu.org)
7735
7736 * c-exp.y (typebase): Support
7737
7738 [long|long long|short] [signed|unsigned] [int|]
7739
7740 and
7741
7742 signed [long|long long|short] int
7743
7744 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7745
7746 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7747 and vax-tdep.h.
7748 * vax-tdep.h: New file.
7749 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7750 Make several routines static.
7751 (vax_get_saved_register): New function.
7752 (vax_gdbarch_init): New function.
7753 (_initialize_vax_tdep): Register vax_gdbarch_init.
7754 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7755 Remove macros now under the control of gdbarch.
7756
7757 2002-04-22 Michael Snyder <msnyder@redhat.com>
7758
7759 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7760 Some whitespace and coding standards tweaks.
7761
7762 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7763
7764 * vax-tdep.c: Include regcache.h.
7765 (vax_call_dummy_words): New.
7766 (sizeof_vax_call_dummy_words): New.
7767 (vax_fix_call_dummy): New function.
7768 (vax_saved_pc_after_call): Ditto.
7769 * config/vax/tm-vax.h: Don't include regcache.h.
7770 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7771 (CALL_DUMMY): Remove.
7772 (CALL_DUMMY_WORDS): Define.
7773 (SIZEOF_CALL_DUMMY_WORDS): Define.
7774 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7775
7776 2002-04-18 Michael Snyder <msnyder@redhat.com>
7777
7778 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7779
7780 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7781
7782 * vax-tdep.c (vax_frame_chain): New function.
7783 (vax_push_dummy_frame): Ditto.
7784 (vax_pop_frame): Ditto.
7785 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7786 (FRAMELESS_FUNCTION_INVOCATION): Use
7787 generic_frameless_function_invocation_not.
7788 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7789 (POP_FRAME): Use vax_pop_frame.
7790
7791 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7792
7793 * vax-tdep.c (vax_store_struct_return): New function.
7794 (vax_extract_return_value): Ditto.
7795 (vax_store_return_value): Ditto.
7796 (vax_extract_struct_value_address): Ditto.
7797 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7798 vax_store_struct_return.
7799 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7800 (STORE_RETURN_VALUE): Use vax_store_return_value.
7801 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7802
7803 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7804
7805 * vax-tdep.c (vax_frame_saved_pc): New function.
7806 (vax_frame_args_address_correct): Ditto.
7807 (vax_frame_args_address): Ditto.
7808 (vax_frame_locals_address): Ditto.
7809 (vax_frame_num_args): Move code to be in proximity to
7810 other frame-related functions.
7811 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7812 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7813 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7814 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7815 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7816
7817 2002-04-22 H.J. Lu (hjl@gnu.org)
7818
7819 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7820 includedir.
7821
7822 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7823
7824 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7825 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7826 (FRAME_INIT_SAVED_REGS): New macro.
7827
7828 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7829
7830 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7831
7832 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7833
7834 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7835 where needed.
7836 (fetch_osf_core_registers): Likewise.
7837 (supply_gregset): Likewise.
7838
7839 2002-04-22 J. Brobecker <brobecker@gnat.com>
7840
7841 * symfile.h (get_section_index): Define.
7842 * symfile.c (get_section_index): New function.
7843 * mdebugread.c (SC_IS_SBSS): New macro.
7844 (SC_IS_BSS): Return true for the scBss storage class only, as
7845 the scSBss storage class refers to the .sbss section.
7846 (parse_partial_symbols): Discard the symbols which associated
7847 section does not exist.
7848 Make sure to use the .sbss section index for symbols which
7849 storage class is scBss, rather than using the .bss section index.
7850
7851 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7852
7853 * vax-tdep.c: Update copyright years.
7854 (vax_register_name): New function.
7855 (vax_register_byte): Ditto.
7856 (vax_register_raw_size): Ditto.
7857 (vax_register_virtual_size): Ditto.
7858 (vax_register_virtual_type): Ditto.
7859 * config/vax/tm-vax.h: Update copyright years.
7860 (REGISTER_NAMES): Remove.
7861 (REGISTER_NAME): Define.
7862 (REGISTER_BYTE): Use vax_register_byte.
7863 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7864 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7865 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7866
7867 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7868
7869 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7870 declaration
7871 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7872
7873 2002-04-21 David S. Miller <davem@redhat.com>
7874
7875 * arch-utils.c (generic_prologue_frameless_p): Kill
7876 SKIP_PROLOGUE_FRAMELESS_P code.
7877 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7878 references.
7879 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7880 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7881 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7882 references.
7883 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7884 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7885 (sparc_gdbarch_init): Pass it to
7886 set_gdbarch_prologue_frameless_p.
7887
7888 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7889
7890 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7891 (alphabsd-nat.o): New dependency list.
7892
7893 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7894
7895 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7896 alphafbsd-tdep.c.
7897 (alpha-linux-tdep.o): New dependency list.
7898 (alphafbsd-tdep.o): Likewise.
7899
7900 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7901
7902 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7903 to here...
7904 * alpha-tdep.c: ...from here.
7905 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7906
7907 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7908
7909 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7910 prototype from here...
7911 * alpha-tdep.h: ...to here.
7912
7913 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7914
7915 * frame.h (selected_frame_level): Document as deprecated.
7916 (frame_relative_level): Declare.
7917 * stack.c (frame_relative_level): New function.
7918 (selected_frame_level): Document as deprecated.
7919 (select_frame): Do not set the selected_frame_level.
7920
7921 * stack.c (frame_info, record_selected_frame): Update.
7922 (frame_command, current_frame_command): Update.
7923 (up_silently_base, up_command, down_silently_base): Update.
7924 (down_command): Update.
7925 * inflow.c (kill_command): Update.
7926 * tracepoint.c (finish_tfind_command): Update.
7927 * corelow.c (core_open): Update.
7928 * thread.c (info_threads_command): Update.
7929 (do_captured_thread_select): Update.
7930 * infcmd.c (finish_command): Update.
7931 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7932
7933 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7934
7935 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7936
7937 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7938
7939 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7940 type const.
7941
7942 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7943
7944 * alphafbsd-tdep.c: Update copyright years. Include
7945 alpha-tdep.h.
7946 (alphafbsd_use_struct_convention): Make static.
7947 (alphafbsd_init_abi): New function.
7948 (_initialize_alphafbsd_tdep): New function.
7949 * config/alpha/tm-fbsd.h: Update copyright years.
7950 (USE_STRUCT_CONVENTION): Remove.
7951
7952 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7953
7954 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7955 an Alpha ABI variant.
7956 (alpha_abi_handler_list): Declare.
7957 (alpha_gdbarch_register_os_abi): New function.
7958 (alpha_gdbarch_init): Give registered ABI variant handlers a
7959 chance to tweak the gdbarch once we have set up defaults.
7960 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7961
7962 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7963
7964 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7965 to standard_coerce_float_to_double.
7966 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7967
7968 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7969
7970 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7971 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7972 from gdbarch_tdep rather than a constant.
7973 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7974 the default text address for all Alpha Unix ABIs.
7975 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7976 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7977
7978 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7979
7980 * alpha-tdep.h: New file. Includes several Alpha target constants
7981 taken from...
7982 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7983 let gdbarch deal with.
7984 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7985 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7986 to dependency list.
7987 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7988 Alpha target register names.
7989 * alphabsd-nat.c: Likewise.
7990 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7991 Alpha target register names. Make serveral routines static.
7992 (alpha_get_saved_register): New function.
7993 (alpha_abi_names): New.
7994 (process_note_abi_tag_sections): New function.
7995 (get_elfosabi): New function.
7996 (alpha_gdbarch_init): New function.
7997 (alpha_dump_tdep): New function.
7998 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7999
8000 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8001
8002 * frame.c (find_saved_register): Delete #ifdef
8003 HAVE_REGISTER_WINDOWS code.
8004 * config/sparc/tm-sparc.h: Update comments.
8005 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8006
8007 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8008
8009 * i960-tdep.c (i960_find_saved_register): New function.
8010 (i960_get_saved_register): New function.
8011 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8012 (i960_get_saved_register): Declare.
8013 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8014
8015 2002-04-20 David S. Miller <davem@redhat.com>
8016
8017 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8018
8019 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8020
8021 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8022 instead of NUM_PSEUDO_REGS.
8023
8024 2002-04-20 David S. Miller <davem@redhat.com>
8025
8026 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8027 GDB_MULTI_ARCH_PARTIAL
8028 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8029 define, let tm-sp64.h do it.
8030
8031 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8032
8033 * frame.c (find_saved_register): Avoid a NULL pointer
8034 dereference and actually walk the frame list.
8035
8036 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8037
8038 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8039 sorted in most most-recent-used order. Document.
8040 * gdbarch.h, gdbarch.c: Regenerate.
8041
8042 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8043
8044 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8045 instead of ->prev.
8046 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8047 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8048 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8049 instead of ->prev.
8050
8051 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8052
8053 Fix PR gdb/471.
8054 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8055 (build_builtin_type_vec128): Ditto.
8056 (append_composite_type_field): Fix calculation of type length in
8057 union case.
8058
8059 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8060
8061 * config/djgpp/README: Update.
8062
8063 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8064 compiler warnings.
8065
8066 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8067
8068 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8069 (alpha_setup_arbitrary_frame): ...to this.
8070 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8071 for alpha_setup_arbitrary_frame.
8072
8073 2002-04-18 Andrew Cagney <cagney@redhat.com>
8074
8075 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8076 * gdbarch.h, gdbarch.c: Regenerate.
8077
8078 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8079 * target.h (memory_breakpoint_from_pc): Update declaration.
8080 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8081
8082 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8083 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8084 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8085 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8086 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8087 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8088 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8089 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8090 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8091 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8092 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8093 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8094
8095 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8096 const pointer.
8097 * monitor.c (monitor_insert_breakpoint): Ditto.
8098 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8099
8100 * config/mcore/tm-mcore.h: Update copyright.
8101 * mem-break.c: Ditto.
8102 * xstormy16-tdep.c: Ditto.
8103
8104 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8105
8106 * p-exp.y: Add precedence rule for '^' token.
8107 This removes the shift/reduce conflicts.
8108 Remove the comment concerning these shift/reduce conflicts.
8109
8110 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8111
8112 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8113 (registers_powerpc_nofp): New register set for processors
8114 without floating point unit.
8115
8116 2002-04-18 David S. Miller <davem@redhat.com>
8117
8118 * MAINTAINERS: Add myself to write-after-approval.
8119
8120 2002-04-17 Michael Snyder <msnyder@redhat.com>
8121
8122 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8123
8124 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8125
8126 * rs6000-tdep.c (frame_initial_stack_address): Use
8127 frame_register_read to read the alloca_reg.
8128
8129 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8130
8131 * frame.c (find_saved_register): Find saved registers in the next
8132 not prev frame.
8133 Fix PR gdb/365.
8134
8135 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8136
8137 * gdbarch.sh (LANG): Set to ``c''.
8138
8139 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8140
8141 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8142
8143 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8144
8145 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8146 Update copyright.
8147
8148 * hpread.c (hpread_get_lntt): Add declaration.
8149 Also fix PR gdb/391.
8150
8151 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8152
8153 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8154 * aclocal.m4, configure: Re-generate.
8155 Fix PR gdb/391.
8156
8157 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8158
8159 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8160 instead of tm_print_insn.
8161
8162 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8163
8164 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8165
8166 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8167
8168 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8169 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8170 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8171
8172 2002-04-12 Don Howard <dhoward@redhat.com>
8173
8174 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8175 max_user_call_depth.
8176 (init_cmd_lists): Initialize the new value;
8177 * cli/cli-script.c (execute_user_command): Limit the call depth of
8178 user defined commands. This avoids a core-dump when user commands
8179 are infinitly recursive.
8180
8181 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8182
8183 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8184 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8185 from tdep struct instead of DEFAULT_LR_SAVE.
8186 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8187 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8188 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8189
8190 2002-04-12 Michael Snyder <msnyder@redhat.com>
8191
8192 * Remote.c: Spelling fix.
8193 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8194 If no symbol found for "sbrk", try "_sbrk".
8195 (make_output_phdrs): Use bfd_section_name.
8196 (gcore_copy_callback): Use bfd_section_name.
8197 * eval.c: Indentation fix-ups.
8198 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8199 in case it gets applied to an address that is already
8200 in the instruction space.
8201 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8202 * symfile.c: Fix indentation, long lines.
8203 * source.c: White space fix-up.
8204
8205 2002-04-12 Andrew Cagney <cagney@redhat.com>
8206
8207 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8208 * frame.c (frame_register_read): New function. Return non-zero on
8209 success.
8210 (read_relative_register_raw_bytes_for_frame): Delete.
8211 (read_relative_register_raw_bytes): Delete.
8212 * frame.h (frame_register_read): Declare.
8213 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8214 * sh-tdep.c: Ditto.
8215 * infcmd.c (do_registers_info): Ditto.
8216 * hppa-tdep.c: Ditto.
8217 * rs6000-tdep.c: Ditto.
8218 * h8500-tdep.c: Ditto.
8219 * mips-tdep.c: Ditto.
8220 * h8300-tdep.c: Ditto.
8221 * z8k-tdep.c: Ditto.
8222
8223 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8224
8225 From Jimi X <jimix@watson.ibm.com>:
8226 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8227 64-bit SysV ABI.
8228
8229 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8230
8231 From Jimi X <jimix@watson.ibm.com>:
8232 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8233 bfd info.
8234
8235 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8236
8237 From Jimi X <jimix@watson.ibm.com>:
8238 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8239 register sets for these processor variants.
8240
8241 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8242
8243 * regformats/reg-ppc.dat: Support FPSCR.
8244
8245 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8246
8247 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8248 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8249 Add fpscr as an invalid/unfetchable register.
8250 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8251 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8252 (fill_fpregset): Add support for register fpscr.
8253 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8254 (fill_gregset): Account for the fact that register ``mq'' might
8255 not exist.
8256 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8257 (registers_power): Add fpscr to register set at slot 71.
8258 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8259 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8260
8261 2002-04-11 Michael Snyder <msnyder@redhat.com>
8262
8263 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8264 * configure: Regenerate.
8265 * config.in: Regenerate.
8266 * acconfig.h: Add define for _SYSCALL32.
8267 * core-sol2.c: Remove #define _SYSCALL32.
8268 * solib-legacy.c: Remove #define _SYSCALL32.
8269
8270 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8271
8272 * stack.c (select_frame): Cleanup internal error message, do not
8273 use %p.
8274
8275 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8276
8277 * stack.c (select_frame): Check that selected_frame and the
8278 specified level are as expected.
8279 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8280 Update copyright.
8281 * frame.h (struct frame_info): Add field `level'. Update
8282 copyright.
8283 Work-in-progress PR gdb/464.
8284
8285 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8286
8287 * maint.c (maint_print_section_info): Rename print_section_info.
8288 (print_bfd_section_info, print_objfile_section_info): Update.
8289 * inferior.h (struct gdbarch): Add opaque declaration.
8290 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8291 * gdbarch.h: Regenerate.
8292
8293 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8294
8295 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8296 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8297 (kernel_u_size): Added.
8298 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8299 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8300
8301 2002-04-04 Jim Ingham <jingham@apple.com>
8302
8303 * valarith.c (find_size_for_pointer_math): New function, either returns
8304 the size for a pointer's target, returns 1 for void *, or errors for
8305 incomplete types.
8306 (value_add, value_sub): use find_size_for_pointer_math.
8307
8308 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8309
8310 * linux-low.c (linux_look_up_symbols): New hook.
8311 (linux_target_ops): Add linux_look_up_symbols.
8312 * remote-utils.c (decode_address): New function.
8313 (look_up_one_symbol): New function.
8314 * server.c (handle_query): Call target look_up_symbols hook.
8315 * server.h (look_up_one_symbol): Add prototype.
8316 * target.h (struct target_ops): Add look_up_symbols hook.
8317
8318 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8319
8320 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8321 override FP_REGNUM with frame->fp. Update copyright.
8322 * parse.c (num_std_regs, std_regs): Delete.
8323 (target_map_name_to_register): Do not search std_regs. Update
8324 function description.
8325 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8326 declarations. Update copyright.
8327 Fix PR gdb/251.
8328
8329 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8330
8331 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8332 after the last symbol in a block.
8333
8334 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8335
8336 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8337 is non zero as a found symbol.
8338
8339 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8340
8341 * findvar.c: Include "builtin-regs.h".
8342 (value_of_register): Call value_of_builtin_reg when applicable.
8343 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8344 (target_map_name_to_register): Call
8345 builtin_reg_map_name_to_regnum.
8346 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8347 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8348 (builtin_regs_h): Define.
8349 (builtin-regs.o): New target.
8350 (findvar.o): Add $(builtin_regs_h).
8351 * builtin-regs.c, builtin-regs.h: New files.
8352 * std-regs.c: New file.
8353 Partial fix for PR gdb/251.
8354
8355 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8356
8357 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8358 it's no longer required.
8359
8360 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8361
8362 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8363
8364 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8365
8366 From Jimi X <jimix@watson.ibm.com>:
8367 * rs6000-tdep.c (rs6000_software_single_step): Use
8368 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8369 and size. Use target_insert_breakpoint() and
8370 target_remove_breakpoint() to insert and remove breakpoints
8371 instead of explicit memory reads and writes.
8372
8373 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8374
8375 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8376 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8377 ELF_OBJECT_FORMAT ifdef.
8378
8379 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8380
8381 From Jimi X <jimix@watson.ibm.com>:
8382 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8383
8384 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8385
8386 From Jimi X <jimix@watson.ibm.com>:
8387 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8388 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8389
8390 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8391
8392 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8393 s/asprintf/xasprintf/.
8394 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8395
8396 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8397
8398 I believe Jeff Law denies responsability for this one:
8399 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8400 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8401 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8402 Work-around for PR gdb/366.
8403
8404 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8405
8406 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8407 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8408 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8409
8410 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8411
8412 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8413 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8414 information.
8415
8416 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8417
8418 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8419 maintainer.
8420
8421 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8422
8423 * README (Reporting Bugs in GDB): Document the bug web page as the
8424 prefered way of submitting bugs.
8425 Fix PR gdb/402.
8426
8427 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8428
8429 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8430 -1. Update comment.
8431 * gdbarch.h, gdbarch.c: Re-generate.
8432
8433 2002-04-07 Andreas Schwab <schwab@suse.de>
8434
8435 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8436 buffer to regcache_collect.
8437
8438 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8439
8440 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8441 * gdbarch.c, gdbarch.h: Re-generate.
8442
8443 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8444
8445 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8446 declaration. Fix -Werror.
8447
8448 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8449
8450 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8451 * gdbarch.c: Regenerate.
8452
8453 2002-04-05 Michael Snyder <msnyder@redhat.com>
8454
8455 * breakpoint.c (clear_command): Rewrite middle section to
8456 combine two loops with identical control conditions.
8457 Add a cleanup to eliminate a memory leak.
8458 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8459
8460 2002-04-05 H.J. Lu (hjl@gnu.org)
8461
8462 * solib-svr4.c (bkpt_names): Add "__start".
8463
8464 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8465
8466 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8467 as test for 64 bit target.
8468
8469 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8470
8471 * h8500-tdep.c (h8500_write_fp): Delete function.
8472 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8473 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8474 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8475 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8476 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8477 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8478 (s390_write_fp):
8479 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8480 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8481 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8482 (d10v_write_fp): Delete function.
8483 * inferior.h (write_fp, generic_target_write_fp): Delete
8484 declarations.
8485 * regcache.c (generic_target_write_fp): Delete function.
8486 (write_fp): Delete function.
8487 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8488 * gdbarch.h, gdbarch.c: Regenerate.
8489 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8490 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8491 (sparc64_write_fp): Delete declaration.
8492 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8493 (h8500_write_fp): Delete declaration.
8494
8495 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8496
8497 * sparc-tdep.c (sparc64_write_fp): Delete.
8498 (sparc_push_dummy_frame): Replace write_fp call with code to store
8499 the FP directly.
8500 (sparc_gdbarch_init): Do not initialize write_fp.
8501
8502 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8503
8504 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8505 clause.
8506
8507 2002-03-29 Jim Blandy <jimb@redhat.com>
8508
8509 * stack.c (get_selected_block): Add new argument `addr_in_block',
8510 used to return the exact code address we used to select the block,
8511 not just the block.
8512 * blockframe.c (get_frame_block, get_current_block): Same.
8513 * frame.h (get_frame_block, get_current_block,
8514 get_selected_block): Update declarations.
8515 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8516 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8517
8518 2002-04-05 Michael Snyder <msnyder@redhat.com>
8519
8520 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8521 warning message.
8522
8523 2002-04-05 J. Brobecker <brobecker@gnat.com>
8524
8525 * utils.c (xfullpath): New function.
8526 * defs.h (xfullpath): Add declaration.
8527 * source.c (openp): Use xfullpath in place of gdb_realpath to
8528 avoid resolving the basename part of filenames when the
8529 associated file is a symbolic link. This fixes a potential
8530 inconsistency between the filenames known to GDB and the
8531 filenames it prints in the annotations.
8532 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8533 to be able to match a filename with either the real filename, or
8534 the name of any symbolic link to this file.
8535 (lookup_partial_symtab): Ditto.
8536
8537 2002-04-04 Michael Snyder <msnyder@redhat.com>
8538
8539 * breakpoint.c: Add support for hardware breakpoints in overlays.
8540 (overlay_events_enabled): New state variable.
8541 (insert_breakpoints): Use overlay_events_enabled to decide
8542 whether to attempt to set a breakpoint at the overlay load addr.
8543 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8544 (remove_breakpoint): Use overlay_events_enabled to decide
8545 whether breakpoints need to be removed from overlay load addr.
8546 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8547 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8548 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8549 disable_overlay_breakpoints): Update overlay_events_enabled.
8550
8551 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8552
8553 * dwarf2read.c (struct function_range): New.
8554 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8555 (check_cu_functions): New.
8556 (read_file_scope): Initialize global function lists.
8557 Call dwarf_decode_line after processing children.
8558 (read_func_scope): Add to global function list.
8559 (dwarf_decode_lines): Call check_cu_functions everywhere
8560 record_line is called. Call record_line with a linenumber
8561 of 0 to mark sequence ends.
8562
8563 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8564
8565 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8566 change sync with glibc.
8567
8568 2002-04-03 Jim Blandy <jimb@redhat.com>
8569
8570 * configure.in: Call AC_C_INLINE.
8571 * configure: Regenerated.
8572
8573 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8574
8575 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8576 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8577
8578 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8579
8580 * NEWS: Mention gcore support on FreeBSD/i386.
8581
8582 * fbsd-proc.c: New file.
8583 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8584 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8585
8586 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8587 while statement.
8588
8589 2002-03-29 Jim Blandy <jimb@redhat.com>
8590
8591 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8592 unescaped newlines in string literals, but newer ones don't. So
8593 escape them.
8594
8595 2002-03-26 Michael Snyder <msnyder@redhat.com>
8596 Andrew Cagney <cagney@redhat.com>
8597
8598 * cli/cli-dump.c: New file. Dump memory to file,
8599 restore file to memory.
8600 * cli/cli-dump.h: New file.
8601 * Makefile.in: Add rules, dependencies for cli-dump.o.
8602 * NEWS: Mention new commands.
8603
8604 2002-03-28 Michael Snyder <msnyder@redhat.com>
8605
8606 * symfile.c (symbol_file_add): Move test for null symbols to later.
8607
8608 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8609
8610 From veksler at il.ibm.com:
8611 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8612 the xstrduped original path.
8613 Fix PR gdb/417.
8614
8615 2002-03-27 Michael Snyder <msnyder@redhat.com>
8616
8617 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8618 * infcmd.c (_initialize_infcmd): Ditto.
8619 * language.c (_initialize_language): Ditto.
8620 * symfile.c (_initialize_symfile): Ditto.
8621 * top.c (_init_main): Ditto.
8622 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8623
8624 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8625
8626 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8627 vector registers handling.
8628 (skip_prologue): Handle new AltiVec instructions. Fill in new
8629 fields of frame data.
8630 (frame_get_saved_regs): Fill in information for AltiVec registers.
8631
8632 2002-03-27 Jim Blandy <jimb@redhat.com>
8633
8634 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8635 a function; leave this macro here to invoke that function.
8636 (symbol_init_mangled_name): Declaration for that function.
8637 * symtab.c (symbol_init_mangled_name): New function.
8638
8639 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8640
8641 * valarith.c: Replace strerror with safe_strerror.
8642 * tracepoint.c: Ditto.
8643 * lin-lwp.c: Ditto.
8644 * go32-nat.c: Ditto.
8645 * inflow.c: Ditto.
8646 * gnu-nat.c: Ditto.
8647
8648 2002-03-27 Andreas Schwab <schwab@suse.de>
8649
8650 * event-top.c (command_line_handler): Remove useless if.
8651
8652 2002-03-27 Andreas Jaeger <aj@suse.de>
8653
8654 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8655 comment.
8656
8657 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8658
8659 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8660 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8661 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8662 (x86_64_linux_dr_get_status, supply_gregset),
8663 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8664 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8665 (x86_64_register_info_table): Add.
8666 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8667 (x86_64_register_raw_size, x86_64_register_virtual_type),
8668 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8669 general x86_64_register_info_table.
8670 (i386_gdbarch_init): gdbarch_register_bytes is now set
8671 dynamicaly during initialization.
8672 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8673 * gdbserver/linux-x86-64-low.c: Ditto.
8674
8675 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8676
8677 * gdbserver/server.c (main): Call target_signal_to_host_p
8678 and target_signal_to_host on signals received from the remote.
8679 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8680 target_signal_from_host on signals sent to the remote.
8681 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8682 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8683
8684 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8685
8686 * signals/signals.c: Include "server.h" in gdbserver build.
8687 (target_signal_from_name): Don't use STREQ.
8688 (_initialize_signals): Likewise. Don't include function in
8689 gdbserver build.
8690
8691 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8692
8693 * signals.c: Moved to...
8694 * signals/signals.c: Here.
8695 * Makefile (signals.o): Update.
8696
8697 2002-03-26 Jeff Law (law@redhat.com)
8698
8699 * somread.c (som_symtab_read): Remove some commented out code and
8700 updated related comments. Do not set the minimal symbol table to
8701 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8702 in a dynamic executable.
8703 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8704 where we are unable to find the minimal symbol for the given
8705 PC value.
8706
8707 2002-03-25 Jeff Law (law@redhat.com)
8708
8709 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8710
8711 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8712
8713 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8714
8715 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8716
8717 * command.h: Update copyright.
8718 (struct cmd_list_element): Replace definition with opaque
8719 declaration.
8720 (enum cmd_types): Document that it will eventually be moved to
8721 cli/cli-decode.h
8722 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8723 (MALLOCED_REPLACEMENT): Delete macro.
8724 * Makefile.in (cli_decode_h): Add $(command_h).
8725 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8726 * top.c: Include "cli/cli-decode.h".
8727 * completer.c: Include "cli/cli-decode.h".
8728 * maint.c: Include "cli/cli-decode.h".
8729 * cli/cli-decode.h: Include "command.h".
8730 (enum command_class): Delete.
8731 (enum cmd_types): Comment out.
8732 (enum cmd_auto_boolean): Delete.
8733 (enum var_types): Delete.
8734
8735 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8736
8737 * cli/cli-decode.c: Include "gdb_assert.h".
8738 (add_set_or_show_cmd): New static function.
8739 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8740 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8741 all fields, such as func, from the set command.
8742
8743 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8744
8745 * MAINTAINERS (sh-elf): Change warning flag to -w.
8746
8747 2002-03-23 Andrew Cagney <cagney@redhat.com>
8748
8749 * defs.h (error): Add printf format attribute.
8750 * thread-db.c (thread_from_lwp): Fix error format string.
8751 * stack.c (parse_frame_specification): Ditto.
8752 * cli/cli-decode.c (undef_cmd_error): Ditto.
8753 * scm-lang.c (scm_lookup_name): Ditto.
8754 * tracepoint.c (trace_error): Ditto.
8755 * remote-utils.c (usage): Ditto.
8756 * remote.c (compare_sections_command): Ditto.
8757 Fix PR gdb/328.
8758
8759 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8760
8761 * gdbtypes.c (append_composite_type_field): New function.
8762 (init_composite_type): New function.
8763 * gdbtypes.h (append_composite_type_field): Declare.
8764 (init_composite_type): Ditto.
8765
8766 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8767
8768 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8769 function.
8770 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8771 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8772 structure returning convention for SYSV ABI case, but not
8773 for GNU/Linux, FreeBSD, or NetBSD.
8774
8775 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8776
8777 * symtab.h (lookup_block_symbol): Add mangled_name argument
8778 to prototype.
8779
8780 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8781 with new mangled_name argument.
8782 * linespec.c (decode_line_1): Likewise.
8783 * valops (value_of_this): Likewise.
8784 * symtab.c (lookup_transparent_type): Likewise.
8785 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8786 (lookup_symbol): If we are given a mangled name, pass it down
8787 to lookup_symbol_aux.
8788 (lookup_block_symbol): If we are given a mangled name to check
8789 against, only return symbols which match it.
8790
8791 2002-03-22 Christopher Faylor <cgf@redhat.com>
8792
8793 * win32-nat.c (child_create_inferior): Check for proper shell to use
8794 here, in case the user changes it on the fly.
8795 (_initialize_inftarg): Remove shell path considerations.
8796
8797 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8798
8799 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8800 for gdbarch_max_register_raw_size and max_register_virtual_size.
8801 Adjust copyright year.
8802
8803 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8804
8805 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8806 in a function to cover the entire beginning of the function
8807 as well if it does not already.
8808
8809 2002-03-21 Tom Rix <trix@redhat.com>
8810
8811 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8812 (rs6000_ptrace64): Renamed from ptrace64.
8813
8814 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8815
8816 * gdbserver/remote-utils.c (remote_open): Don't call
8817 getprotobyname, we're all using TCP here so just use
8818 IPPROTO_TCP.
8819 * gdbserver/gdbreplay.c (remote_open): Ditto.
8820
8821 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8822
8823 * regcache.c (_initialize_regcache): No need to call
8824 build_regcache() at this time; it gets called whenever
8825 the gdbarch changes.
8826
8827 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8828
8829 * sparc-nat.c: Include sys/param.h where possible.
8830
8831 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8832
8833 Fix PR gdb/422.
8834 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8835 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8836 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8837 complex types.
8838 * stabsread.c (rs6000_builtin_type): Likewise.
8839 (read_sun_floating_type): Likewise.
8840
8841 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8842
8843 * stabsread.c (read_member_functions): Remove skip code for duplicate
8844 constructor/destructor methods. Use standard parsing for these
8845 methods and just do not chain them to the list of methods after
8846 parsing.
8847
8848 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8849
8850 * coffread.c: Remove redundant static declarations. Replace
8851 occurrences of `PTR' with `void *'.
8852 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8853 * top.h (quit_cover): Likewise.
8854 * defs.h (catch_errors): Likewise.
8855
8856 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8857
8858 * defs.h (XMALLOC): Define.
8859 * gdb-events.sh (XMALLOC): Delete macro.
8860 * gdb-events.c, gdb-events.h: Regenerate.
8861 * gdbarch.sh (XMALLOC): Delete macro.
8862 * gdbarch.c: Regenerate.
8863 * serial.c (XMALLOC): Delete macro.
8864 * ui-file.c (XMALLOC): Ditto.
8865 * ser-unix.h (XMALLOC): Ditto.
8866 * sh-tdep.c (XMALLOC): Ditto.
8867 * ui-out.c (XMALLOC): Ditto.
8868 * utils.c (XMALLOC): Ditto.
8869 * i386-tdep.c (XMALLOC): Ditto.
8870 * gdb-events.c (XMALLOC): Ditto.
8871 * d10v-tdep.c (XMALLOC): Ditto.
8872 * cli-out.c (XMALLOC): Ditto.
8873
8874 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8875 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8876 * ui-file.c, ui-out.c: Ditto.
8877
8878 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8879
8880 * command.h (struct cmd_list_element): Add field context.
8881 (set_cmd_context, get_cmd_context): Declare.
8882 * cli/cli-decode.h: Ditto.
8883 * cli/cli-decode.c (get_cmd_context): New function.
8884 (set_cmd_context): New function.
8885 (add_cmd): Initialize context.
8886 Part of fixing PR gdb/145 and PR gdb/146.
8887
8888 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8889
8890 * cli/cli-decode.c (cmd_type): New function.
8891 * command.h (cmd_type): Declare.
8892 * infrun.c (set_schedlock_func): Call function cmd_type.
8893 * kod.c (kod_set_os): Call cmd_type.
8894 * cris-tdep.c (cris_version_update): Use function cmd_type.
8895 (cris_mode_update, cris_abi_update): Ditto.
8896
8897 * command.h: (execute_cmd_post_hook): Declare.
8898 (execute_cmd_pre_hook): Declare.
8899 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8900 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8901 functions. Execute pre/post hook while ensuring that afterwords
8902 hook_in is cleared.
8903 * top.c (execute_command): Use execute_cmd_post_hook, and
8904 execute_cmd_pre_hook to execute pre/post commands.
8905 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8906 hook_stop_stub.
8907 (hook_stop_stub): Call execute_cmd_pre_hook.
8908
8909 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8910
8911 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8912 set'' and this leads to a core dump. Move xstrdup of
8913 operating_system to after check that it is not NULL.
8914
8915 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8916
8917 * kod.c (kod_set_os): Remove unnecessary check that
8918 ``command->type'' is set_cmd.
8919
8920 * valprint.c (set_input_radix): Use input_radix.
8921 (set_output_radix): Use output_radix.
8922 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8923 isn't reverted.
8924
8925 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8926
8927 * value.h (struct value): Delete field ``substring_addr''. Change
8928 aligner fields to force_doublest_align, force_longest_align,
8929 force_core_addr_align and force_pointer_aligh.
8930
8931 * value.h (struct value): Fix typo in above change.
8932
8933 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8934
8935 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8936 to fix internal_error from ``maintenance print architecture''.
8937
8938 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8939
8940 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8941 for gcc versions after gcc-2.8.1.
8942
8943 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8944
8945 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8946 for method resolution. Restore adjustment of ``this'' pointer after
8947 calling value_struct_elt, which was accidentally removed during the
8948 HP merge.
8949
8950 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8951
8952 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8953 value_of_register.
8954 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8955 get_saved_register.
8956 * value.h (value_of_register): Update.
8957
8958 2002-03-14 Richard Henderson <rth@redhat.com>
8959
8960 * configure.in: Detect declaration for canonicalize_file_name.
8961 * utils.c (canonicalize_file_name): Declare, if needed.
8962 (gdb_realpath): Prefer realpath if available and usable.
8963 * config.in, configure: Rebuild.
8964
8965 2002-03-14 Richard Henderson <rth@redhat.com>
8966
8967 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8968 a constant array bound.
8969
8970 * MAINTAINERS: Add myself to write-after-approval.
8971
8972 2002-03-14 Michael Snyder <msnyder@redhat.com>
8973
8974 * symfile.c (syms_from_objfile): Return immediately if no syms.
8975 (symbol_file_add): Return immediately if no syms.
8976 (find_sym_fns): Return immediately if no syms.
8977
8978 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8979
8980 * gdbserver/remote-util.c (remote_open): Print remote-side's
8981 IP address when remote debugging over the network.
8982
8983 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8984
8985 * config/sparc/fbsd.mh: Fix copyright.
8986 * config/sparc/fbsd.mt: Likewise.
8987
8988 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8989
8990 * MAINTAINERS: Fix typo in name of gdb warnings option.
8991 (x86-64): Fix formating so that this can be parsed by awk.
8992
8993 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8994
8995 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8996 * defs.h: Include "gdb/signals.h".
8997 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8998
8999 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9000
9001 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9002 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9003 from x86-64-tdep.h
9004
9005 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9006 Don Howard <dhoward@redhat.com>
9007
9008 * mips-tdep.c (ST0_FR): Define.
9009 (mips2_fp_compat): New function, temporarily disabled.
9010 (mips_read_fp_register_single): New function.
9011 (mips_read_fp_register_double): New function.
9012 (mips_print_register): Use them.
9013 (do_fp_register_row): Likewise.
9014
9015 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9016
9017 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9018 approval''.
9019
9020 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9021
9022 * stabsread.c (read_member_functions): Fix is_stub test for
9023 static member functions, improve comment.
9024
9025 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9026
9027 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9028 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9029 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9030 commands that set boolean values.
9031 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9032 (arm_rdi_resume): Always initialize PC.
9033 (arm_rdi_open): Don't use rslt as a boolean.
9034 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9035 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9036 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9037 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9038
9039 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9040
9041 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9042 * configure: Rebuilt.
9043
9044 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9045
9046 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9047 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9048
9049 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9050
9051 * cli/cli-decode.c (set_cmd_completer): New function.
9052 * command.h (set_cmd_completer): Declare.
9053 * cli/cli-decode.h (set_cmd_completer): Ditto.
9054
9055 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9056 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9057 * win32-nat.c (_initialize_inftarg): Ditto.
9058 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9059 * proc-api.c (_initialize_proc_api): Ditto.
9060 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9061 * source.c (_initialize_source): Ditto.
9062 * exec.c (_initialize_exec): Ditto.
9063 * solib.c (_initialize_solib): Ditto.
9064 * top.c (init_main): Ditto.
9065 * tracepoint.c (_initialize_tracepoint): Ditto.
9066 * symfile.c (_initialize_symfile): Ditto.
9067 * printcmd.c (_initialize_printcmd): Ditto.
9068 * infcmd.c (_initialize_infcmd): Ditto.
9069 * corefile.c (_initialize_core): Ditto.
9070
9071 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9072
9073 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9074
9075 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9076
9077 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9078
9079 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9080
9081 * NEWS: Update headings, 5.2 has branched.
9082
9083 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9084
9085 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9086 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9087 (register_addr, REGISTER_RAW_SIZE): Likewise.
9088 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9089 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9090
9091 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9092
9093 * MAINTAINERS (x86-64): Add myself.
9094 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9095 changed value_ptr -> struct value *
9096
9097 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9098
9099 * configure.host (sparc64-*-freebsd): Add.
9100 * configure.tgt: Likewise.
9101 * config/sparc/fbsd.mh: New file.
9102 * config/sparc/fbsd.mt: Likewise.
9103 * config/sparc/nm-fbsd.h: Likewise.
9104 * config/sparc/tm-fbsd.h: Likewise.
9105
9106 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9107
9108 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9109 regformats/reg-s390x.dat.
9110
9111 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9112
9113 * utils.c: Add FIXME explaining true/false problem.
9114
9115 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9116
9117 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9118
9119 2002-02-28 Michael Chastain <mec@shout.net>
9120
9121 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9122
9123 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9124
9125 * gdbserver/linux-s390-low.c: New file.
9126 * regformats/reg-s390.dat: New file.
9127 * regformats/reg-s390x.dat: New file.
9128 * gdbserver/configure.srv: Add S/390.
9129 * gdbserver/Makefile.in: Add S/390.
9130 * configure.tgt: Enable gdbserver for S/390.
9131
9132 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9133
9134 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9135 first line of the doc string for "info dos", except at the end of
9136 the sentence, since the short help stops at the first period.
9137
9138 2002-02-28 Jason Merrill <jason@redhat.com>
9139
9140 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9141
9142 2002-02-27 Fred Fish <fnf@redhat.com>
9143
9144 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9145 comment (dumy -> dummy).
9146
9147 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9148
9149 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9150
9151 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9152
9153 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9154
9155 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9156
9157 * gdbserver/acconfig.h: New file.
9158 * gdbserver/i387-fp.c: New file.
9159 * gdbserver/i387-fp.h: New file.
9160 * gdbserver/linux-x86-64.c: New file.
9161 * regformats/reg-x86-64.dat: New file.
9162 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9163 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9164 * gdbserver/configure.in: Add support for regsets.
9165 * gdbserver/config.in: Regenerate.
9166 * gdbserver/configure: Regenerate.
9167 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9168 * gdbserver/linux-low.h: New file.
9169 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9170 for regsets.
9171 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9172 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9173 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9174 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9175 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9176 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9177 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9178 "i387-fp.h". Add PTRACE_GETREGS and friends.
9179 * gdbserver/regcache.c (supply_register): New function.
9180 (supply_register_by_name): New function.
9181 (collect_register): New function.
9182 (collect_register_by_name): New function.
9183
9184 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9185
9186 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9187 (config.status): Add configure.srv dependency.
9188 (server_h): Add config.h dependency.
9189
9190 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9191
9192 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9193 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9194 * gdbserver/configure.srv: Change i386-*-linux* to use
9195 reg-i386-linux.o.
9196
9197 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9198
9199 * x86-64-tdep.c: Re-indent. Update copyright date.
9200
9201 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9202
9203 From Michal Ludvig <mludvig@suse.cz>:
9204 * x86-64-tdep.c (value.h): Delete.
9205 (gdb_assert.h): Include.
9206 (x86_64_register_convert_to_virtual,
9207 x86_64_register_convert_to_raw ): Add check which lets only
9208 floating-point values to be converted.
9209 (value_push): Delete.
9210 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9211 (i386_gdbarch_init): Number of register_bytes fixed.
9212
9213 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9214
9215 * MAINTAINERS: Add x86-64 target.
9216
9217 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9218
9219 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9220 * osfsolib.c (solib_map_sections): Ditto.
9221 * irix5-nat.c (solib_map_sections): Ditto.
9222 * corelow.c (gdb_check_format): Ditto.
9223 * symfile.c (symfile_bfd_open): Ditto.
9224 * solib.c (solib_map_sections): Ditto.
9225 Fix PR gdb/354.
9226
9227 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9228
9229 * remote.c (_initialize_remote): By default, disable ``e'' and
9230 ``E'' step out-of-range packets.
9231
9232 2002-02-26 Andreas Schwab <schwab@suse.de>
9233
9234 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9235 m68k_linux_frame_saved_pc.
9236 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9237 in_sigtramp.
9238 (SIGCONTEXT_PC_OFFSET): Remove.
9239 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9240 m68k_linux_sigtramp_saved_pc): New functions.
9241 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9242 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9243 (UCONTEXT_PC_OFFSET): Define.
9244 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9245 non-RT and RT signal trampolines.
9246
9247 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9248
9249 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9250 (TARGET_NBPG, STACK_END_ADDR): Delete
9251 (VARIABLES_INSIDE_BLOCK): Delete.
9252
9253 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9254
9255 * utils.c (perror_with_name): Make string parameter constant.
9256 (print_sys_errmsg): Ditto.
9257 (query): Ditto.
9258 * defs.h (perror_with_name): Update.
9259 (print_sys_errmsg): Update.
9260 (query): Update.
9261
9262 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9263
9264 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9265 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9266
9267 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9268
9269 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9270 if it already matches the current architecture from the exec file.
9271 Include arch-utils.h for gdbarch_info_init prototype.
9272 * Makefile.in (rs6000-nat.o): Update dependencies.
9273
9274 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9275
9276 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9277 list of exported variables.
9278
9279 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9280
9281 * gdbserver/configure.srv: New file.
9282 * gdbserver/configure.in: Use configure.srv instead
9283 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9284 from it.
9285 * gdbserver/configure: Regenerated.
9286 * gdbserver/terminal.h: New file.
9287 * gdbserver/Makefile.in: Update for configure changes. Remove
9288 more unneeded include paths.
9289
9290 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9291
9292 From wiz at danbala:
9293 * config/sparc/tm-sp64.h: Fix grammar and typos.
9294 Fix PR gdb/287.
9295
9296 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9297
9298 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9299 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9300 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9301 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9302 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9303 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9304 * s390-tdep.c: Ditto.
9305 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9306 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9307 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9308 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9309 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9310 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9311 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9312 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9313 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9314 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9315 Fix PR gdb/378.
9316
9317 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9318
9319 * lin-thread.c: Delete file.
9320 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9321 to gdb_proc_service.h.
9322 * configure: Re-generate.
9323
9324 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9325 * serial.c (serial_open): Delete check for "ocd".
9326 Fix PR gdb/349.
9327
9328 * Makefile.in (linux-thread.o): Delete target.
9329 * linux-thread.c: Delete file.
9330
9331 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9332 renamed SH files to be consistent.
9333
9334 * symtab.c (sort_search_symbols): Use xfree.
9335
9336 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9337
9338 * arm-linux-tdep.c (arm_linux_init_abi): Register
9339 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9340 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9341 definition with undef, since we don't want the sysvr4 definition.
9342 (SKIP_TRAMPOLINE_CODE): Likewise.
9343
9344 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9345
9346 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9347
9348 * configure.in: (AC_CHECK_FUNCS) Added test for
9349 canonicalize_file_name Regenerated.
9350 * config.in, configure: Regenerated.
9351 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9352 defined use canonicalize_file_name.
9353
9354 2002-02-23 Michael Chastain <mec@shout.net>
9355
9356 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9357
9358 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9359
9360 * README: Remove references to cygnus.com.
9361 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9362 dot com'' form. Remove references to cygnus.com and sourceware.
9363
9364 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9365
9366 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9367 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9368 1003.1-2001 no longer allows "head -1".
9369 * gdb/Makefile.in (version.c): Likewise.
9370 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9371 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9372 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9373
9374 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9375
9376 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9377 * command.h (cmd_cfunc_eq): Declare.
9378 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9379
9380 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9381 ``struct cmd_list_element *''.
9382 * cli/cli-cmds.c (is_complete_command): Update. Use
9383 cmd_cfunc_eq.
9384 * top.c (execute_command): Pass the command to
9385 is_complete_command.
9386 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9387
9388 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9389
9390 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9391 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9392 architecture defines.
9393 * s390-tdep.c (s390_gdbarch_init): Likewise.
9394
9395 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9396
9397 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9398 (arm_linux_push_arguments): Likewise.
9399 (arm_linux_init_abi): Register them. Also register linux-specific
9400 call_dummy_words.
9401 (find_minsym_and_objfile): Use strcmp, not STREQ.
9402 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9403 (arm_linux_call_dummy_words): Delete declaration.
9404 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9405 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9406 declarations.
9407 (LOWEST_PC): Delete.
9408
9409 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9410
9411 * maint.c (print_section_info): Do not prepend `0x' to filepos
9412 output, it will be handled by local_hex_string_custom.
9413
9414 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9415
9416 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9417 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9418 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9419
9420 2002-02-22 Jim Blandy <jimb@redhat.com>
9421
9422 Indicate that the bcache functions don't change the strings
9423 they're passed.
9424 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9425 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9426
9427 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9428
9429 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9430
9431 2002-02-21 Christopher Faylor <cgf@redhat.com>
9432
9433 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9434 find the complete path to a loaded DLL.
9435
9436 2002-02-21 Fred Fish <fnf@redhat.com>
9437
9438 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9439 that marks the end of the range of a function, enter a line number
9440 entry that has a line number of zero and a PC offset that matches
9441 the end of the function. This starts a range of PC's for which no
9442 line number information is known.
9443 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9444 PC's for which no line number info is found (line number is zero)
9445 then we didn't find any valid line information.
9446 * symtab.h: Document use of zero line number entry.
9447
9448 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9449
9450 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9451 (have_ptrace_getvrregs): Define for run time checks.
9452 (gdb_vrregset_t): New type for Altivec register handling.
9453 (fetch_register, store_register): Fetch/store altivec register
9454 when needed.
9455 (fetch_altivec_register, store_altivec_register): New functions.
9456 (supply_vrregset, fill_vrregset): New functions.
9457 (fetch_altivec_registers, store_altivec_registers): New functions.
9458 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9459 registers as well.
9460
9461 2002-02-21 Jiri Smid <smid@suse.cz>
9462
9463 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9464
9465 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9466
9467 * Makefile.in (armnbsd-nat.o): Update dependencies.
9468 * armnbsd-nat.c (supply_gregset): New function. Common code to
9469 supply the integer register set.
9470 (supply_fparegset): New function. Similar for FPA registers.
9471 (fetch_regs, fetch_fp_regs): Use them.
9472 (fetch_core_registers): Likewise.
9473 (fetch_elfcore_registers): New function.
9474 (arm_netbsd_elfcore_fns): New core-file type specification.
9475 (_initialize_arm_netbsd_nat): Register it.
9476
9477 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9478
9479 * armnbsd-nat.c: Include gdbcore.h.
9480 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9481 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9482 'void' to declaration, to shut up ARI.
9483 (fetch_core_registers): Make static. Rewrite using supply_register.
9484 (arm_netbsd_core_fns): New core-file type specification.
9485 (_initialize_arm_netbsd_nat): New function.
9486
9487 2002-02-21 Christopher Faylor <cgf@redhat.com>
9488
9489 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9490 value.
9491
9492 2002-02-20 Christopher Faylor <cgf@redhat.com>
9493
9494 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9495 fails.
9496
9497 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9498
9499 * jv-exp.y (parse_number): Change type of implicit longs
9500 to builtin_type_uint64.
9501
9502 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9503
9504 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9505 to be an integer instead of a `union wait'.
9506
9507 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9508
9509 * mips-linux-nat.c: Call the operating system GNU/Linux.
9510 * mips-linux-tdep.c: Likewise.
9511 * mips-tdep.c: Likewise.
9512
9513 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9514
9515 Fix PR gdb/265.
9516 * jv-exp.y (parse_number): Handle 64-bit integers.
9517
9518 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9519
9520 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9521 AC_STDC_HEADERS to AC_HEADER_STDC.
9522 * gdbserver/configure: Regenerated.
9523
9524 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9525
9526 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9527 is defined.
9528 * sparc-tdep.c (get_longjmp_target): Likewise.
9529
9530 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9531
9532 * News: Add news about ARM and Multi-arch. Mention the new target
9533 arm*-*-netbsd*.
9534
9535 2002-02-19 Jim Blandy <jimb@redhat.com>
9536
9537 * stabsread.c (error_type_complaint): Improve error message.
9538
9539 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9540
9541 * gdbserver/README: Update documentation.
9542 * gdbserver/configure.in: Update configury to match documentation.
9543 * gdbserver/Makefile.in: Likewise.
9544 * gdbserver/configure: Regenerated.
9545 * gdbserver/aclocal.m4: New file, generated by aclocal.
9546 * gdbserver/config.in: New file, generated by autoheader.
9547
9548 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9549
9550 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9551 armnbsd-nat.c.
9552
9553 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9554
9555 * arm-tdep.h (enum arm_float_model): New enum.
9556 (struct gdbarch_tdep): Add fp_model.
9557 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9558 up floating-point conversions until we know the floating-point model
9559 in use by the inferior. Don't complain about being unable to
9560 determine the ABI of the inferior when we don't have one.
9561 (arm_extract_return_value): Support different floating-point models.
9562 (arm_store_return_value): Likewise.
9563 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9564 ARM_FLOAT_SOFT.
9565 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9566
9567 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9568
9569 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9570 of ``current_gdbarch''.
9571
9572 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9573
9574 * armnbsd-nat.c : ANSIfy all function declarations.
9575 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9576 (fetch_inferior_registers): Re-implement in terms of above.
9577 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9578 (store_inferior_registers): Re-implement in terms of above.
9579
9580 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9581
9582 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9583 kernel.
9584 * arm-linux-tdep.c: Likewise.
9585 * config/arm/tm-linux.h: Likewise.
9586
9587 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9588
9589 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9590 * config/arm/nbsd.mt (TM_FILE): Delete.
9591 * config/arm/tm-nbsd.h: Delete.
9592
9593 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9594
9595 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9596 Initialize CALL_DUMMY_LENGTH.
9597
9598 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9599
9600 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9601 function.
9602 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9603 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9604 defines one thing and that is incorrect for this port.
9605 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9606
9607 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9608
9609 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9610
9611 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9612
9613 * win32-nat.c (display_selector): New function. Displays information
9614 about the information returned by GetThreadSelectorEntry API function.
9615 (display_selectors): New function. Displays the infomation of
9616 the selector given as argument, or of CS, DS ans FS selectors
9617 if no argument is given.
9618 ( _initialize_inftarg): Add "w32" as info prefix command.
9619 Add "info w32 selector" as command calling display_selectors.
9620
9621 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9622
9623 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9624 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9625 if not defined.
9626
9627 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9628
9629 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9630
9631 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9632
9633 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9634 (arm_fix_call_dummy): Call it.
9635 (arm_call_dummy_breakpoint_offset): Delete.
9636 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9637 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9638
9639 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9640
9641 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9642 Default to func_frame_chain_valid.
9643 * gdbarch.h, gdbarch.c: Re-generate.
9644 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9645
9646 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9647
9648 * ppc-linux-nat.c: Update copyright.
9649 (fetch_register, store_register): Add tid parameter, don't compute
9650 tid here.
9651 (fetch_ppc_registers, store_ppc_registers): Add tid
9652 parameter. Pass it along to callees.
9653 (fetch_inferior_registers, store_inferior_registers): Compute tid
9654 here, and pass it to calleed functions.
9655 (fill_gregset, supply_fpregset): Clean up formatting.
9656
9657 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9658
9659 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9660 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9661
9662 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9663
9664 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9665 * gdbarch.c gdbarch.h: Regenerate.
9666 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9667 function.
9668 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9669 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9670 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9671
9672 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9673 * arm-tdep.c (arm_get_longjmp_target): New function.
9674 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9675 this to a positive value register arm_get_longjmp_target as the
9676 longjmp handler.
9677 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9678 (arm_linux_init_abi): Set up longjmp description in tdep.
9679 * armnbsd-nat.c (get_longjmp_target): Delete.
9680 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9681 description in tdep.
9682 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9683 (get_longjmp_target): Delete declaration.
9684 (GET_LONGJMP_TARGET): Delete.
9685 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9686 (GET_LONGJMP_TARGET): Delete.
9687
9688 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9689
9690 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9691 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9692 of ``current_gdbarch''.
9693
9694 2002-02-17 Tom Tromey <tromey@redhat.com>
9695
9696 * cli/cli-cmds.c (compare_strings): New function.
9697 (complete_command): Only print each unique item once.
9698 * completer.h (complete_line): Declare.
9699 * completer.c (complete_line): New function.
9700 (line_completion_function): Use it.
9701
9702 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9703
9704 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9705 * gdbarch.h, gdbarch.c: Re-generate.
9706
9707 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9708
9709 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9710
9711 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9712
9713 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9714 * valops.c (value_arg_coerce): Don't take the address of a reference
9715 to convert an argument to a reference.
9716
9717 2002-02-15 Christopher Faylor <cgf@redhat.com>
9718
9719 * win32-nat.c (get_image_name): New function.
9720 (handle_load_dll): Use get_image_name function.
9721 (get_child_debug_event): Avoid registering debug events until possibly
9722 execed process is started.
9723 (child_create_inferior): Allow invocation via shell so that command
9724 line redirection, etc. works ok.
9725 (_initialize_inftarg): Add new command: "set shell" to control whether
9726 a shell is used to start a process.
9727
9728 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9729
9730 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9731 instead of find_register_by_number.
9732 (cannot_store_register): Likewise.
9733
9734 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9735
9736 * dwarf2read.c: Replace fprintf (stderr, ...) by
9737 fprintf_unfiltered (gdb_stderr, ...).
9738
9739 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9740
9741 * gdbserver/gdbserver.1: Document --attach.
9742
9743 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9744
9745 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9746 descriptions.
9747 * arm-tdep.c (arm_default_arm_le_breakpoint)
9748 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9749 (arm_default_thumb_be_breakpoint): New. Initialize them from
9750 traditional breakpoint defines.
9751 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9752 (arm_gdbarch_init): Initialize new breakpoint variables.
9753 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9754 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9755 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9756 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9757 code out to ...
9758 (arm_netbsd_init_abi_common): ... here; new function.
9759 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9760 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9761 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9762 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9763
9764 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9765
9766 * arm-tdep.h (enum arm_abi): New enum.
9767 (struct gdbarch_tdep): New structure.
9768 (LOWEST_PC): Provide a default.
9769 (arm_gdbarch_register_os_abi): Declare new function.
9770 * arm-tdep.c (arm_abi_names): New array.
9771 (process_note_abi_tag_sections): New function.
9772 (get_elfosabi): New function.
9773 (arm_gdbarch_register_os_abi): New function.
9774 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9775 support for that ABI has been built in, then call the appropriate
9776 configuration routine. Use gdbarch_num_regs() to get the number
9777 of registers.
9778 (arm_dump_tdep): New function.
9779 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9780 place-holder functions.
9781 (_initialize_arm_tdep): Register them.
9782 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9783
9784 * armnbsd-tdep.c: New file.
9785 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9786 * config/arm/nbsd.mt (TDEPFILES): Add it.
9787 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9788
9789 * armnbsd-nat.c: Include regcache.h.
9790 * Makefile.in (armnbsd-nat.o): Update dependency list.
9791
9792 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9793
9794 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9795
9796 * gdbserver/Makefile.in: Fix typos in target rules.
9797
9798 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9799
9800 Fix part of PR gdb/267.
9801 * linespec.c (find_methods): Handle constructors specially for now.
9802
9803 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9804
9805 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9806 handling.
9807 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9808 standard_coerce_float_to_double().
9809
9810 2002-02-14 Christopher Faylor <cgf@redhat.com>
9811
9812 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9813 GDBINIT_FILENAME.
9814
9815 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9816
9817 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9818 find_variant_by_name, because it confuses the multiarch
9819 framework. Return NULL if there isn't an architecture with the
9820 user supplied name, instead of forcing a different one without
9821 recording the change with the multiarch machinery.
9822 (find_variant_by_name): Delete.
9823
9824 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9825
9826 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9827 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9828
9829 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9830
9831 * stack.c (print_frame_info_base): When calling
9832 print_frame_info_listing_hook, set current_source_symtab.
9833
9834 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9835
9836 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9837 and remove unused $(INCLUDE_DIR).
9838 Add regcache.c to OBS.
9839 Add generated register protocol files to clean target.
9840 Update dependencies for new objects, obsolete old target code.
9841
9842 * gdbserver/linux-low.c: Remove all platform-specific code to
9843 new files. Remove various dead code. Update to use regcache
9844 functionality.
9845 * gdbserver/remote-utils.c (fromhex): Add return statement
9846 to quiet warning.
9847 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9848 constant.
9849 (input_interrupt): Add integer parameter to match prototype
9850 of a signal handler.
9851 (outreg): Use register_data ().
9852 (prepare_resume_reply): Use gdbserver_expedite_regs.
9853 * gdbserver/server.c (main): Dynamically allocate own_buf because
9854 PBUFSIZ is no longer constant. Use registers_to_string () and
9855 registers_from_string ().
9856 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9857 for error (), fatal (), and warning (). Update definition of
9858 PBUFSIZ to use regcache functionality. Add include guard.
9859 * gdbserver/utils.c (fatal): Add missing ``const''.
9860 (warning): New function.
9861
9862 * regformats/regdat.sh: Include "regcache.h" in generated files.
9863 Provide init_registers () function.
9864 * regformats/regdef.h: Add prototype for set_register_cache ().
9865 Add include guard.
9866
9867 * gdbserver/linux-arm-low.c: New file.
9868 * gdbserver/linux-i386-low.c: New file.
9869 * gdbserver/linux-ia64-low.c: New file.
9870 * gdbserver/linux-m68k-low.c: New file.
9871 * gdbserver/linux-mips-low.c: New file.
9872 * gdbserver/linux-ppc-low.c: New file.
9873 * gdbserver/linux-sh-low.c: New file.
9874
9875 * gdbserver/regcache.c: New file.
9876 * gdbserver/regcache.h: New file.
9877
9878 * gdbserver/low-linux.c: Removed obsolete file.
9879
9880 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9881
9882 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9883 * config/i386/linux.mt: Likewise.
9884 * config/ia64/linux.mt: Likewise.
9885 * config/m68k/linux.mh: Likewise.
9886 * config/powerpc/linux.mh: Likewise.
9887 * config/mips/linux.mt: Likewise.
9888
9889 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9890
9891 * config/i386/i386lynx.mh: Mark gdbserver variables
9892 as (currently) obsolete for this target.
9893 * config/i386/nbsd.mt: Likewise.
9894 * config/i386/nbsdelf.mt: Likewise.
9895 * config/m32r/m32r.mt: Likewise.
9896 * config/m68k/m68klynx.mh: Likewise.
9897 * config/m68k/nbsd.mt: Likewise.
9898 * config/m68k/sun3os4.mh: Likewise.
9899 * config/mips/vr5000.mt: Likewise.
9900 * config/ns32k/nbsd.mt: Likewise.
9901 * config/pa/hppabsd.mh: Likewise.
9902 * config/pa/hppaosf.mh: Likewise.
9903 * config/powerpc/nbsd.mt: Likewise.
9904 * config/rs6000/rs6000lynx.mh: Likewise.
9905 * config/s390/s390.mt: Likewise.
9906 * config/s390/s390x.mt: Likewise.
9907 * config/sparc/sparclynx.mh: Likewise.
9908 * config/sparc/sun4os4.mh: Likewise.
9909 * config/i386/x86-64linux.mt: Likewise.
9910 * config/sparc/linux.mh: Likewise.
9911
9912 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9913
9914 * configure.tgt: Configure gdbserver only for known working
9915 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9916 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9917 SUBDIRS if it is configured. Update comment for ${nativefile}.
9918 * configure: Regenerated.
9919
9920 2002-02-13 Michael Snyder <msnyder@redhat.com>
9921
9922 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9923
9924 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9925 (default_gcore_mach): Just return 0, work around a problem in bfd.
9926 (default_gcore_target): OK to return NULL if exec_bfd is null.
9927 (make_mem_sec): Use a cast, avoid a warning.
9928
9929 * procfs.c (find_memory_regions_callback): Use a cast instead of
9930 calling host_pointer_to_address (which complains if
9931 sizeof (host pointer) != sizeof (target pointer)).
9932 (procfs_make_note_section): Avoid overflow in psargs string.
9933
9934 * procfs.c (procfs_make_note_section): Make the default
9935 implementation return an error.
9936
9937 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9938
9939 * procfs.c (procfs_make_note_section): Provide a default definition
9940 (for alpha-dec-osf4.0f). Fix typos.
9941
9942 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9943
9944 * linux-proc.c: Add include of regcache.h.
9945 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9946
9947 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9948
9949 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9950 * memattr.c (create_mem_region): Disallow useless empty region.
9951 Regions are half-open intervals, so allow [A..B) [B..C) as
9952 non-overlapping.
9953
9954 2002-02-13 Michael Chastain <mec@shout.net>
9955
9956 * defs.h: Kill CONST_PTR.
9957 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9958 * c-lang.c (c_builtin_types): Likewise.
9959 * ch-lang.c (ch_builtin_types): Likewise.
9960 * f-lang.c (f_builtin_types): Likewise.
9961 * language.c (unknown_builtin_types): Likewise.
9962 * m2-lang.c (m2_builtin_types): Likewise.
9963 * p-lang.c (pascal_builtin_types): Likewise.
9964 * scm-lang.c (c_builtin_types): Likewise.
9965
9966 2002-02-13 Keith Seitz <keiths@redhat.com>
9967
9968 * arm-tdep.h (arm_get_next_pc): Add declaration.
9969
9970 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9971
9972 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9973 with other related struct-returning functions.
9974 (arm_extract_struct_value_address): New function.
9975 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9976 initialize float_format, double_format and long_double_format as
9977 appropriate to the endianness of the target.
9978 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9979 (arm_use_struct_convention): Delete declaration.
9980 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9981
9982 2002-02-13 Keith Seitz <keiths@redhat.com>
9983
9984 * defs.h (core_addr_to_string_nz): New function.
9985
9986 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9987
9988 Apply missing bits of 2002-01-15 patch.
9989 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9990 (fill_fpregset): Use i387_fill_fsave.
9991
9992 2002-02-12 Keith Seitz <keiths@redhat.com>
9993
9994 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9995 (core_addr_to_string_nz): New function.
9996
9997 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9998
9999 * arm-linux-nat.c: Really include arm-tdep.h.
10000 * config/arm/tm-linux.h (struct type, struct value): Declare.
10001
10002 2002-02-11 Michael Snyder <msnyder@redhat.com>
10003
10004 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10005 (gcore section): Ifdef for Solaris and Unixware only.
10006 (procfs_do_thread_registers): Unixware needs one lwpstatus
10007 per thread (not one prstatus or pstatus).
10008 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10009 not over all gdb threads. For unixware, call elfcore_write_pstatus
10010 once before iterating over threads.
10011
10012 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10013
10014 * arm-tdep.h: New file.
10015 * arm-tdep.c: Include arm-tdep.h.
10016 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10017 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10018 (arm_print_float_info, arm_register_type, convert_to_extended)
10019 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10020 (arm_extract_return_value, arm_register_name): Make static.
10021 (arm_software_single_step): Similarly. Fix types in declaration.
10022 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10023 (arm_store_return_value, arm_store_struct_return): New functions.
10024 (arm_gdbarch_init): Register the above functions. Also register
10025 call_dummy_start_offset, sizeof_call_dummy_words,
10026 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10027 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10028 max_register_virtual_size, register_size. Set up
10029 prologue_cache.saved_regs here, rather than ...
10030 (_initialize_arm_tdep): ... here.
10031 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10032 declarations.
10033 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10034 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10035 (arm_print_float_info, arm_register_type, convert_to_extended)
10036 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10037 (arm_extract_return_value, arm_register_name): Delete declarations.
10038 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10039 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10040 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10041 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10042 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10043 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10044 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10045 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10046 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10047 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10048 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10049 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10050 interface.
10051 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10052 * remote-rdi.c remote-rdp.c: Likewise.
10053 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10054 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10055 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10056 definition.
10057
10058 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10059 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10060 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10061 from non-ARM_ prefixed definitions.
10062 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10063 all uses of above.
10064 * remote-rdi.c remote-rdp.c: Likewise.
10065 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10066
10067 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10068
10069 * arm-tdep.c (arm_frameless_function_invocation)
10070 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10071 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10072 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10073 (arm_pop_frame, arm_get_next_pc): Make static.
10074 (arm_gdbarch_init): Register above in gdbarch structure.
10075 (arm_read_fp): Renamed from arm_target_read_fp.
10076 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10077 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10078 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10079 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10080 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10081 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10082 (arm_pc_is_thumb_dummy): Delete declarations.
10083 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10084 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10085 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10086 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10087
10088 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10089
10090 * symtab.c (compare_search_syms): New function.
10091 (sort_search_symbols): New function.
10092 (search_symbols): Sort symbols after searching rather than
10093 before.
10094
10095 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10096
10097 * NEWS: Linux -> GNU/Linux.
10098
10099 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10100
10101 * gdbarch.sh: For for level one methods, disallow a definition
10102 when partially multi-arched. Add comments explaining rationale.
10103 * gdbarch.h: Re-generate.
10104
10105 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10106
10107 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10108 multi-arch partial.
10109
10110 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10111
10112 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10113 field. Use diff -u.
10114 * gdbarch.c: Re-generate.
10115
10116 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10117
10118 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10119 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10120 partial.
10121
10122 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10123
10124 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10125 multi-arch partial.
10126 (PUSH_ARGUMENTS): Switch to using predefault.
10127 * gdbarch.c: Regenerate.
10128
10129 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10130
10131 * valops.c (PUSH_ARGUMENTS): Delete definition.
10132 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10133 partial. Default to default_push_arguments.
10134 * gdbarch.h, gdbarch.c: Regenerate.
10135
10136 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10137
10138 * defs.h (throw_exception): Rename return_to_top_level. Update
10139 comments.
10140 * utils.c (error_stream, internal_verror, quit): Ditto.
10141 * top.c (throw_exception, catcher): Ditto.
10142 * sparclet-rom.c (sparclet_load): Ditto.
10143 * remote.c (interrupt_query, minitelnet): Ditto.
10144 * remote-sds.c (interrupt_query): Ditto.
10145 * remote-mips.c (mips_error, mips_kill): Ditto.
10146 * ocd.c (interrupt_query): Ditto.
10147 * monitor.c (monitor_interrupt_query): Ditto.
10148 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10149 * target.h: Update comment.
10150
10151 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10152
10153 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10154
10155 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10156 default_double_format.
10157 * gdbarch.h, gdbarch.c: Re-generate.
10158 * findvar.c (floatformat_unknown): Delete variable definition.
10159 * doublest.h (floatformat_unknown): Delete variable declaration.
10160
10161 2002-02-09 Jim Blandy <jimb@redhat.com>
10162
10163 * stabsread.c (read_type): Add code to parse Sun's syntax for
10164 prototyped function types.
10165
10166 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10167
10168 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10169 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10170
10171 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10172
10173 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10174 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10175 now _initialize_xcoffsolib gets called again and overrides the
10176 commands from solib.c in a native configuration.
10177
10178 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10179
10180 * doublest.c (store_typed_floating): Don't try to return a value.
10181 Fixes PR gdb/290.
10182
10183 2002-02-08 Jim Blandy <jimb@redhat.com>
10184
10185 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10186 is prototyped and has no arguments, print its argument list as
10187 `(void)'.
10188
10189 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10190
10191 * MAINTAINERS (write-after-approval): Add myself.
10192 (paper-trail): I've escaped!
10193
10194 2002-02-08 Christopher Faylor <cgf@redhat.com>
10195
10196 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10197 changes.
10198 (_initialize_check_for_gdb_ini): Ditto.
10199
10200 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10201
10202 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10203 xaprintf -> xasprintf.
10204
10205 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10206
10207 * win32-nat.c: Remove use of printf and sprintf functions.
10208
10209 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10210
10211 * arm-tdep.c (arm_frame_chain_valid): Make static.
10212 (arm_push_arguments): Likewise.
10213 (arm_gdbarch_init): New function.
10214 (_initialize_arm_tdep): Call it.
10215 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10216 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10217 (FRAME_CHAIN_VALID): Delete.
10218 (arm_frame_chain_valid): Delete declaration.
10219 (PUSH_ARGUMENTS): Delete.
10220 (arm_push_arguments): Delete declaration.
10221 (CALL_DUMMY_P): Delete.
10222
10223 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10224 Corinna Vinschen <vinschen@redhat.com>
10225
10226 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10227 on builtin float types.
10228
10229 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10230
10231 * utils.c: Include <curses.h> before "bfd.h".
10232 * tui/tui-hooks.c: Likewise.
10233 * tui/tui.c: Likewise.
10234 * tui/tuiCommand.c: Likewise.
10235 * tui/tuiData.c: Likewise.
10236 * tui/tuiDataWin.c: Likewise.
10237 * tui/tuiDisassem.c: Likewise.
10238 * tui/tuiGeneralWin.c: Likewise.
10239 * tui/tuiIO.c: Likewise.
10240 * tui/tuiLayout.c: Likewise.
10241 * tui/tuiRegs.c: Likewise.
10242 * tui/tuiSource.c: Likewise.
10243 * tui/tuiSourceWin.c: Likewise.
10244 * tui/tuiStack.c: Likewise.
10245 * tui/tuiWin.c: Likewise.
10246
10247 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10248
10249 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10250 to include space for pseudoregs as well. Update loops accordingly.
10251 (sh_fp_frame_init_saved_regs): Ditto.
10252 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10253
10254 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10255
10256 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10257 Add Richard Earnshaw to Arm maintainers.
10258
10259 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10260
10261 * defs.h (warning_begin): Delete declaration.
10262
10263 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10264 Delete macro.
10265
10266 2002-02-07 Michael Snyder <msnyder@redhat.com>
10267
10268 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10269 Logic bug, remove misplaced else.
10270
10271 2002-02-07 Klee Dienes <klee@apple.com>
10272
10273 * fork-inferior.c (fork_inferior): Add '!' to the list of
10274 characters that need to be quoted when building a string for the
10275 shell. Quote '!' specifically with a backslash, since CSH chokes
10276 when trying to evaluate "str!str".
10277
10278 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10279
10280 * rdi-share/host.h: Only provide a typedef for bool if it is not
10281 defined.
10282
10283 2002-02-04 Michael Snyder <msnyder@redhat.com>
10284
10285 * breakpoint.h (enum bptype): Add new overlay event bp type.
10286 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10287
10288 * breakpoint.c (create_internal_breakpoint): New function.
10289 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10290 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10291 (create_thread_event_breakpoint): Ditto.
10292 (create_solib_event_breakpoint): Ditto.
10293 (create_overlay_event_breakpoint): New function.
10294 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10295 (update_breakpoints_after_exec): Delete and re-initialize
10296 overlay event breakpoints after an exec. Add FIXME comment
10297 about longjmp breakpoint.
10298 (print_it_typical): Ignore overlay event breakpoints.
10299 (print_one_breakpoint): Ditto.
10300 (mention): Ditto.
10301 (bpstat_what): Do not stop for overlay event breakpoints.
10302 (delete_breakpoint): Don't delete overlay event breakpoints.
10303 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10304 (breakpoint_re_set): Re-create overlay event breakpoint.
10305
10306 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10307 (overlay_manual_command): Disable overlay breakpoints.
10308 (overlay_off_command): Disable overlay breakpoints.
10309
10310 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10311
10312 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10313 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10314 to here from config/tm-arm.h.
10315 (coff_sym_is_thumb): Make static.
10316 (arm_elf_make_msymbol_special): New function.
10317 (arm_coff_make_msymbol_special): New function.
10318 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10319 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10320 (coff_sym_is_thumb): Delete declaration.
10321 (arm_elf_make_msymbol_special): Declare.
10322 (arm_coff_make_msymbol_special): Declare.
10323 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10324 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10325
10326 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10327
10328 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10329
10330 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10331
10332 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10333 * gdbarch.c gdbarch.h: Regenerate.
10334 * arch-utils.c (default_print_float_info): New function.
10335 * arch-utils.h (default_print_float_info): Prototype it.
10336 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10337 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10338 (PRINT_FLOAT_INFO): Document it.
10339
10340 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10341 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10342 (PRINT_FLOAT_INFO): Define.
10343
10344 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10345
10346 * win32-nat.c (_initialize_check_for_gdb_ini):
10347 Add typecast to sprintf argument to suppress a warning.
10348
10349 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10350
10351 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10352 to allow easier handling of pass state.
10353 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10354 that gives exception name and address.
10355 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10356 and set last_sig value to ourstatus->value.sig. Some missing
10357 exceptions added.
10358 (child_continue): Correctly report continue_status.
10359 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10360 TARGET_SIGNAL_0 (new default value).
10361 (child_resume): consider sig argument passed to decide if
10362 the exception should be passed to debuggee or not.
10363
10364 2002-02-05 Michael Snyder <msnyder@redhat.com>
10365
10366 * regcache.c (fetch_register): Call target_fetch_register
10367 only if we don't call FETCH_PSEUDO_REGISTER.
10368 (store_register): Call target_store_register only if we
10369 don't call STORE_PSEUDO_REGISTER.
10370
10371 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10372
10373 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10374 ELF_MAKE_MSYMBOL_SPECIAL.
10375 * gdbarch.c, gdbarch.h: Regenerate.
10376 * arch-utils.c (default_make_msymbol_special): New function.
10377 * arch-utils.h (default_make_msymbol_special): Export.
10378 * elfread.c (elf_symtab_read): Compile use of
10379 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10380 multiarched.
10381 * coffread.c (coff_symtab_read): Ditto, for
10382 COFF_MAKE_MSYMBOL_SPECIAL.
10383
10384 2002-02-05 Jim Blandy <jimb@redhat.com>
10385
10386 * solib-svr4.c (svr4_truncate_ptr): New function.
10387 (svr4_relocate_section_addresses): Do the address arithmetic with
10388 the appropriate truncation for target addresses, even when
10389 CORE_ADDR is larger than a target address.
10390
10391 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10392
10393 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10394 to (int *).
10395
10396 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10397
10398 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10399 code.
10400
10401 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10402
10403 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10404
10405 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10406
10407 * gdbserver/linux-low.c: Remove unused include files.
10408
10409 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10410
10411 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10412 (read_inferior_memory): Use it.
10413 (write_inferior_memory): Likewise.
10414
10415 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10416
10417 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10418 grubbing through sys_errlist.
10419
10420 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10421
10422 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10423
10424 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10425 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10426
10427 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10428
10429 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10430 (do_sfunc, set_cmd_sfunc): New functions.
10431
10432 * command.h (struct cmd_list_element): Add field func.
10433 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10434 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10435 * cli/cli-decode.h: Ditto.
10436
10437 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10438 (help_all, help_cmd_list): Ditto.
10439 (find_cmd, complete_on_cmdlist): Ditto.
10440 * top.c (execute_command): Ditto.
10441
10442 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10443 function.sfunc.
10444
10445 * infcmd.c (notice_args_read): Fix function signature.
10446
10447 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10448 * cli/cli-decode.c (add_set_cmd): Ditto.
10449 * utils.c (initialize_utils): Ditto.
10450 * maint.c (_initialize_maint_cmds): Ditto.
10451 * infrun.c (_initialize_infrun): Ditto.
10452 * demangle.c (_initialize_demangler): Ditto.
10453 * remote.c (add_packet_config_cmd): Ditto.
10454 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10455 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10456 * proc-api.c (_initialize_proc_api): Ditto.
10457 * kod.c (_initialize_kod): Ditto.
10458 * valprint.c (_initialize_valprint): Ditto.
10459 * top.c (init_main): Ditto.
10460 * infcmd.c (_initialize_infcmd): Ditto.
10461 * corefile.c (_initialize_core): Ditto.
10462 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10463 * arch-utils.c (initialize_current_architecture): Ditto.
10464 (_initialize_gdbarch_utils): Ditto.
10465 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10466
10467 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10468 * wince.c (_initialize_inftarg): Ditto.
10469 * symfile.c (_initialize_symfile): Ditto.
10470 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10471 * language.c (_initialize_language): Ditto.
10472 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10473
10474 2002-02-04 Michael Snyder <msnyder@redhat.com>
10475
10476 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10477
10478 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10479
10480 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10481 Add rules for building the register data files.
10482
10483 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10484
10485 * regformats/regdat.sh: Add braces to the definition of
10486 expedite_regs_${arch}.
10487
10488 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10489
10490 * regformats/regdef.h (struct reg): Add comment describing the
10491 requirements for offset and size fields.
10492
10493 2002-02-04 Andreas Schwab <schwab@suse.de>
10494
10495 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10496 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10497
10498 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10499
10500 * gdbarch.sh (copyright): Update years in generated header.
10501 (SMASH_TEXT_ADDRESS): Add rule.
10502 * gdbarch.h, gdbarch.c: Re-generate.
10503 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10504 * dbxread.c: Likewise.
10505 * dwarfread.c: Likewise.
10506 * elfread.c: Likewise.
10507 * somread.c: Likewise.
10508
10509 * arm-tdep.c (arm_smash_text_address): New function.
10510 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10511
10512 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10513
10514 Add support for hardware watchpoints on win32 native.
10515 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10516 CONTEXT_DEBUG_REGISTERS.
10517 (dr variable): New variable. Static array containing a local copy
10518 of debug registers.
10519 (debug_registers_changed): New variable. Reflects when debug registers
10520 are changed and need to be written to inferior.
10521 (debug_registers_used): New variable. Reflects when any debug register
10522 was set, used when new threads are created.
10523 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10524 i386-nat code.
10525 (thread_rec): Set dr array if id is the thread of current_event .
10526 (child_continue, child_resume): Change the debug registers for all
10527 threads if debug_registers_changed.
10528 (child_add_thread): Change the debug registers if debug_registers_used.
10529 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10530 Link nm.h to new nm-cygwin.h file.
10531 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10532 of hardware registers.
10533
10534 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10535
10536 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10537 Restore behavour broken by 2002-01-20 Andrew Cagney
10538 <ac131313@redhat.com> IEEE_FLOAT removal.
10539
10540 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10541
10542 * c-valprint.c (c_val_print): Pass a proper valaddr to
10543 cp_print_class_method.
10544 * valops.c (search_struct_method): If there is only one method
10545 and args is NULL, return that method.
10546
10547 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10548
10549 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10550 accessing tag_name directly.
10551
10552 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10553
10554 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10555 of accessing tag_name directly.
10556
10557 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10558
10559 PR gdb/280
10560 * gdbtypes.c (replace_type): New function.
10561 * gdbtypes.h (replace_type): Add prototype.
10562 * stabsread.c (read_type): Use replace_type.
10563
10564 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10565
10566 * Makefile.in (memattr.o): Add missing dependencies rule.
10567
10568 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10569
10570 * breakpoint.c (break_at_finish_command): Really export.
10571 (break_at_finish_at_depth_command): Ditto.
10572 (tbreak_at_finish_command): Ditto.
10573 * hppa-tdep.c: Include completer.h.
10574 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10575 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10576
10577 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10578
10579 * utils.c (do_write): New function.
10580 (error_stream): Rewrite combining the code from error_begin and
10581 verror.
10582 (verror): Rewrite using error_stream.
10583 (error_begin): Delete function.
10584
10585 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10586
10587 * utils.c (error_begin): Make static.
10588 * defs.h (error_begin): Delete declaration.
10589
10590 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10591 (decode_line_1): Use cplusplus_error instead of error_begin,
10592 cplusplus_hint and return_to_top_level.
10593 * coffread.c (coff_symfile_read): Use error instead of error_begin
10594 and return_to_top_level.
10595 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10596
10597 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10598
10599 * language.h (type_error, range_error): Make string parameter
10600 constant.
10601 * language.c (warning_pre_print): Delete extern declaration.
10602 * dwarfread.c (warning_pre_print): Ditto.
10603 * language.c (type_error, range_error): Rewrite to use verror and
10604 vwarning instead of warning_begin.
10605
10606 2002-02-01 Michael Snyder <msnyder@redhat.com>
10607
10608 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10609 (set_ignore_count): Move misplaced comment back where it belongs.
10610
10611 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10612
10613 * command.h (NO_FUNCTION): Delete macro.
10614 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10615 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10616 * tracepoint.c (_initialize_tracepoint): Ditto.
10617 * cli/cli-decode.c (add_set_cmd): Ditto.
10618 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10619
10620 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10621
10622 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10623 Update ``this'' pointer when calling virtual functions.
10624
10625 2002-02-01 Michael Snyder <msnyder@redhat.com>
10626
10627 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10628 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10629
10630 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10631
10632 * regformats/reg-arm.dat: New file.
10633 * regformats/reg-i386.dat: New file.
10634 * regformats/reg-ia64.dat: New file.
10635 * regformats/reg-m68k.dat: New file.
10636 * regformats/reg-mips.dat: New file.
10637 * regformats/reg-ppc.dat: New file.
10638 * regformats/reg-sh.dat: New file.
10639 * regformats/regdef.h: New file.
10640 * regformats/regdat.sh: New file.
10641
10642 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10643
10644 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10645 (arm_frame_args_address, arm_frame_locals_address): New functions.
10646 (arm_frame_num_args): New function.
10647 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10648 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10649 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10650
10651 2002-01-31 Michael Snyder <msnyder@redhat.com>
10652
10653 * breakpoint.c (break_at_finish_command): Export.
10654 (break_at_finish_at_depth_command): Export.
10655 (tbreak_at_finish_command): Export.
10656 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10657 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10658 "txbreak" commands, which are HPPA specific.
10659
10660 * printcmd.c (disassemble_command): Remove an ancient
10661 artifact of an old merge.
10662
10663 * symfile.h (enum overlay_debugging_state):
10664 Define enum constant values for overlay mode.
10665 * symfile.c (overlay_debugging): Use enums instead of literals.
10666 (overlay_is_mapped, overlay_auto_command,
10667 overlay_manual_command): Ditto.
10668
10669 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10670 breakpoint_here_p, breakpoint_inserted_here_p,
10671 breakpoint_thread_match, bpstat_stop_status,
10672 describe_other_breakpoints, check_duplicates, clear_command):
10673 Coding standard fixes.
10674
10675 * target.c (target_xfer_memory): Add spaces, coding standard.
10676 (do_xfer_memory): Add missing line to trust-readonly
10677 code: check bfd SEC_READONLY flag for section.
10678
10679 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10680
10681 * PROBLEMS: Fix typo, 5.1->5.1.1.
10682
10683 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10684
10685 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10686 data symbols, since we search based on textlow and texthigh.
10687 (find_pc_sect_symtab): Likewise.
10688
10689 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10690
10691 * defs.h (vwarning): Declare.
10692 * utils.c (vwarning): New function.
10693 (warning): Call vwarning.
10694 (warning_begin): Delete function.
10695
10696 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10697 the warning message.
10698 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10699 warning_begin.
10700
10701 2002-01-30 Michael Snyder <msnyder@redhat.com>
10702
10703 * NEWS: Mention "set trust-readonly-sections" command.
10704 Mention generate-core-file command.
10705
10706 2002-01-15 Michael Snyder <msnyder@redhat.com>
10707
10708 * target.c: New command, "set trust-readonly-sections on".
10709 (do_xfer_memory): Honor the suggestion to trust readonly sections
10710 by reading them from the object file instead of from the target.
10711 (initialize_targets): Register command "set trust-readonly-sections".
10712
10713 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10714
10715 * parse.c (target_map_name_to_register): Simplify, search regs and
10716 pseudo-regs using a single loop.
10717
10718 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10719
10720 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10721
10722 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10723
10724 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10725 * config/i386/i386v42mp.mh: Add i387-nat.o .
10726 * i386v4-nat.c: Include i387-nat.h.
10727 (supply_fpregset): Use i387_supply_fsave.
10728 (fill_fpregset): Use i387_fill_fsave.
10729
10730 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10731
10732 * arm-tdep.c (arm_call_dummy_words): Define.
10733 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10734 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10735 (CALL_DUMMY_WORDS): Define.
10736 (arm_call_dummy_words): Declare.
10737 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10738 (arm_linux_call_dummy_words): Declare.
10739
10740 2002-01-30 Andreas Schwab <schwab@suse.de>
10741
10742 * m68klinux-nat.c: Fix last change to use regcache_collect
10743 instead of referencing registers[] directly.
10744
10745 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10746
10747 * parse.c (target_map_name_to_register): Delete code wrapped in
10748 #ifdef REGISTER_NAME_ALIAS_HOOK.
10749
10750 2002-01-28 Michael Snyder <msnyder@redhat.com>
10751
10752 * regcache.c (legacy_read_register_gen): Need to be able to
10753 read pseudo-register as well as real register.
10754 (legacy_write_register_gen): Ditto.
10755
10756 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10757
10758 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10759 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10760 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10761 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10762 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10763 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10764 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10765 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10766 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10767 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10768 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10769 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10770 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10771 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10772 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10773 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10774 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10775 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10776 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10777 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10778
10779 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10780
10781 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10782 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10783 (initialize_current_architecture): Update target_byte_order using
10784 information from BFD.
10785 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10786 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10787
10788 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10789
10790 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10791 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10792
10793 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10794 #ifdef INVALID_FLOAT.
10795 * infcmd.c (do_registers_info): Ditto.
10796 * values.c (unpack_double): Ditto. Add comment.
10797
10798 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10799 already commented out.
10800
10801 2002-01-26 Andreas Schwab <schwab@suse.de>
10802
10803 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10804 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10805 registers and add support for PTRACE_GETREGS.
10806
10807 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10808
10809 GDB 5.1.1 released from 5.1 branch.
10810 * NEWS: Add 5.1.1 news.
10811 * README: Sync with 5.1 branch.
10812
10813 2002-01-23 Fred Fish <fnf@redhat.com>
10814
10815 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10816 stabstring on initial malloc. Reallocing will copy it for us,
10817 if necessary.
10818
10819 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10820
10821 * Makefile.in (hpread_h): Delete.
10822 (HFILES_NO_SRCDIR): Remove hpread.h.
10823 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10824 (hpread.o): Update dependencies.
10825 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10826
10827 * hp-psymtab-read.c: Remove file.
10828 * hp-symtab-read.c: Remove file.
10829 * hpread.h: Remove file.
10830
10831 * hpread.c: Merge all contents of hp-psymtab-read.c,
10832 hp-symtab-read.c and hpread.h into this file, as it was prior to
10833 January 1999.
10834
10835 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10836 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10837 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10838 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10839
10840 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10841
10842 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10843 fill_gregset): Call gdbarch_tdep() just once, assign result to
10844 variable and use that, instead of calling the function several
10845 times.
10846
10847 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10848
10849 * configure.host: Accept sparcv9 as alias for sparc64.
10850 * configure.tgt: Likewise.
10851
10852 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10853
10854 * solib-aix5.c (build_so_list_from_mapfile)
10855 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10856 arguments is not reversed.
10857 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10858 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10859
10860 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10861
10862 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10863 modified version of obsolete sh_fetch_pseudo_register.
10864 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10865 (sh4_register_read): New function.
10866 (sh_pseudo_register_write): New function. Renamed and modified
10867 version of obsolete sh_store_pseudo_register.
10868 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10869 (sh4_register_write): New function.
10870 (sh_gdbarch_init): Remove setting of gdbarch function
10871 fetch_pseudo_register and store_pseudo_register. Remove setting of
10872 register_convert_to_raw, register_convert_to_virtual,
10873 register_convertible.
10874 (sh_sh4_register_convertible): Delete. No longer needed. All is
10875 taken care by architecture specific functions
10876 register_read/register_write.
10877 (sh_sh4_register_convert_to_virtual): Make static.
10878 (sh_sh4_register_convert_to_raw): Ditto.
10879
10880 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10881
10882 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10883 (floatformat_is_nan, floatformat_mantissa): Ditto.
10884
10885 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10886 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10887 builtin_type_ieee_double_little,
10888 builtin_type_ieee_double_littlebyte_bigword,
10889 builtin_type_m68881_ext, builtin_type_i960_ext,
10890 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10891 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10892 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10893 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10894
10895 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10896
10897 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10898 parameter. Set frameless flag if it exists and depended of
10899 whether the scanned function is frameless or not.
10900 (xstormy16_skip_prologue): If function is frameless, return
10901 result of xstormy16_scan_prologue().
10902 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10903 call.
10904
10905 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10906
10907 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10908 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10909 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10910 sh_sh4_register_byte, sh_sh4_register_raw_size,
10911 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10912 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10913 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10914 sh_store_pseudo_register, sh_do_pseudo_register): Call
10915 gdbarch_tdep() just once, assign result to variable and use that,
10916 instead of calling the function several times.
10917
10918 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10919
10920 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10921 macros instead of LAST_FPU_CTRL_REGNUM.
10922 (store_register): Likewise.
10923
10924 2002-01-21 Jim Blandy <jimb@redhat.com>
10925
10926 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10927 is up-to-date before running the program, not just when a program
10928 exits.
10929
10930 2002-01-21 Fred Fish <fnf@redhat.com>
10931
10932 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10933 when we have found all instructions we are looking for.
10934
10935 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10936
10937 * arm-tdep.c (arm_register_name): New function.
10938 (arm_registers_names): Make static.
10939 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10940 (arm_register_name): Declare.
10941 (REGISTER_NAME): Use it.
10942
10943 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10944 Kevin Buettner <kevinb@redhat.com>
10945
10946 Convert arm targets to new FRAME interface.
10947 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10948 (arm_frame_find_save_regs): Delete.
10949 (arm_frame_init_saved_regs): New.
10950 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10951 Allocate extra_info as required. Convert all uses of fsr.regs
10952 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10953 to use extra_info.
10954 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10955 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10956 (check_prologue_cache, save_prologue_cache): Likewise.
10957 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10958 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10959 (FRAME_FIND_SAVED_REGS): Delete.
10960 (arm_frame_find_saved_regs): Delete prototype.
10961 (arm_frame_init_saved_regs): New prototype.
10962 (FRAME_INIT_SAVED_REGS): Define.
10963
10964 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10965
10966 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10967
10968 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10969
10970 From Jeff Law <law@redhat.com>:
10971 * infttrace.c: Include <sys/pstat.h>.
10972 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10973 exec file if the ttrace equivalent fails.
10974
10975 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10976
10977 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10978 (closeLogFile): Ditto.
10979
10980 2002-01-20 Michael Chastain <mec@shout.net>
10981
10982 * top.c (print_gdb_version): Bump copyright year to 2002.
10983
10984 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10985
10986 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10987 Zannoni and Eli Zaretskii.
10988
10989 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10990
10991 * buildsym.c: Update copyright years.
10992 * c-typeprint.c: Likewise.
10993 * dwarf2read.c: Likewise.
10994 * f-typeprint.c: Likewise.
10995 * gdbtypes.c: Likewise.
10996 * gdbtypes.h: Likewise.
10997 * hp-symtab-read.c: Likewise.
10998 * hpread.c: Likewise.
10999 * mdebugread.c: Likewise.
11000 * p-typeprint.c: Likewise.
11001
11002 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11003
11004 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11005 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11006 byte-order selectable.
11007 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11008 * arch-utils.c: Ditto.
11009 (set_endian): Ditto.
11010 (set_endian_from_file): Ditto.
11011 * gdbserver/low-sim.c (create_inferior): Ditto.
11012 * gdbarch.sh: Ditto.
11013 * gdbarch.h: Re-generate.
11014 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11015 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11016 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11017 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11018 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11019 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11020 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11021 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11022 macro definition.
11023 * config/mips/tm-wince.h: Remove #undef of macro
11024 TARGET_BYTE_ORDER_SELECTABLE.
11025 * config/sh/tm-wince.h: Ditto.
11026
11027 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11028
11029 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11030 member function fields. Add accessor macro
11031 TYPE_FN_FIELD_ARTIFICIAL.
11032 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11033 * c-typeprint.c (c_type_print_base): Skip artificial member
11034 functions.
11035
11036 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11037
11038 * f-typeprint.c: Delete unused function f_type_print_args.
11039 * p-typeprint.c: Delete unused function pascal_type_print_args.
11040
11041 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11042
11043 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11044 comment. Add ``artificial'' to ``union field_location''.
11045
11046 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11047
11048 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11049 * mdebugread.c (parse_symbol): Likewise.
11050 * stabsread.c (define_symbol): Likewise.
11051 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11052 initializing TYPE_FIELD_BITPOS to n (obsolete).
11053 (hpread_doc_function_type): Likewise.
11054 * hpread.c (hpread_function_type): Likewise.
11055
11056 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11057
11058 * configure.in (host_makefile_frag): Only require a host makefile
11059 fragment when a native build.
11060 * configure: Re-generate.
11061
11062 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11063
11064 * doublest.h (floatformat_from_type): Declare.
11065 * doublest.c (floatformat_from_type): New function.
11066 (convert_typed_floating): Use.
11067
11068 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11069 call to function floatformat_from_type.
11070
11071 * gdbarch.sh (IEEE_FLOAT): Delete.
11072 * gdbarch.h, gdbarch.c: Re-generate.
11073 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11074 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11075 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11076 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11077 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11078 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11079 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11080 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11081 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11082 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11083 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11084 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11085
11086 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11087 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11088 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11089 * sh-tdep.c (sh_gdbarch_init): Ditto.
11090 * mips-tdep.c (mips_gdbarch_init): Ditto.
11091 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11092 * cris-tdep.c (cris_gdbarch_init): Ditto.
11093
11094 2002-01-20 Jiri Smid <smid@suse.cz>
11095
11096 * configure.host, configure.tgt: Support x86-64.
11097 * NEWS: Note new target x86-64.
11098
11099 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11100 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11101 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11102 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11103 x86-64-linux-nat.o): Fix dependencies.
11104
11105 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11106
11107 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11108 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11109 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11110 * config/sparc/xm-sun4os4.h: Delete file.
11111 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11112
11113 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11114
11115 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11116 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11117 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11118 * config/i386/i386lynx.mh (XM_FILE): Delete.
11119 * config/rs6000/xm-rs6000ly.h: Delete file.
11120 * config/sparc/xm-sparclynx.h: Delete file.
11121 * config/m68k/xm-m68klynx.h: Delete file.
11122 * config/i386/xm-i386lynx.h: Delete file.
11123 * config/xm-lynx.h: Delete file.
11124 * config/djgpp/fnchange.lst: Update.
11125
11126 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11127
11128 * alpha-tdep.c (alpha_register_byte): New function.
11129 (alpha_register_raw_size): Ditto.
11130 (alpha_register_virtual_size): Ditto.
11131 (alpha_skip_prologue_internal): Renamed from
11132 alpha_skip_prologue.
11133 (alpha_skip_prologue): New version that calls
11134 alpha_skip_prologue_internal.
11135 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11136 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11137 second argument from alpha_skip_prologue.
11138 (REGISTER_BYTE): Use alpha_register_byte.
11139 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11140 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11141 (FRAMELESS_FUNCTION_INVOCATION): Use
11142 generic_frameless_function_invocation_not.
11143 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11144 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11145
11146 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11147
11148 * config/mips/xm-news-mips.h: Delete file.
11149 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11150
11151 * config/m88k/xm-m88k.h: Delete file.
11152 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11153 * config/m88k/xm-delta88v4.h: Ditto.
11154 * config/m88k/xm-delta88.h: Ditto.
11155
11156 * config/alpha/xm-fbsd.h: Delete file.
11157 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11158
11159 * config/sparc/xm-sparc.h: Delete file.
11160 * Makefile.in (xm-sun4os4.h): Delete dependency.
11161 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11162 * config/sparc/xm-sun4os4.h: Ditto.
11163 * config/sparc/xm-linux.h: Ditto.
11164
11165 * config/i386/xm-windows.h: Delete file.
11166
11167 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11168
11169 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11170 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11171
11172 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11173
11174 * alpha-tdep.c (alpha_call_dummy_words): New.
11175 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11176 (CALL_DUMMY_P): Define.
11177 (CALL_DUMMY_WORDS): Define.
11178 (SIZEOF_CALL_DUMMY_WORDS): Define.
11179
11180 2002-01-19 Per Bothner <per@bothner.com>
11181
11182 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11183 isn't NULL, which can happen with some gcj-3.x-produced code.
11184
11185 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11186
11187 * alpha-tdep.c (alpha_register_virtual_type): New function.
11188 (alpha_init_frame_pc_first): Ditto.
11189 (alpha_fix_call_dummy): Ditto.
11190 (alpha_store_struct_return): Ditto.
11191 (alpha_extract_struct_value_address): Ditto.
11192 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11193 alpha_register_virtual_type.
11194 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11195 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11196 alpha_extract_struct_value_address.
11197 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11198 (INIT_FRAME_PC): Use init_frame_pc_noop.
11199 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11200
11201 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11202
11203 * i386gnu-nat.c: Include "i386-tdep.h".
11204 (fetch_fpregs): Simplify code dealing with uninitialized floating
11205 point states such that it doesn't require FP7_REGNUM.
11206
11207 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11208
11209 * alpha-tdep.c (frame_extra_info): New.
11210 (alpha_find_saved_regs): Make static. Use
11211 frame->extra_info.
11212 (alpha_frame_init_saved_regs): New function.
11213 (alpha_frame_saved_pc): Use frame->extra_info.
11214 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11215 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11216 (init_extra_frame_info): Rename to...
11217 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11218 (alpha_print_extra_frame_info): New function.
11219 (alpha_frame_locals_address): Ditto.
11220 (alpha_frame_args_address): Ditto.
11221 (alpha_pop_frame): Use frame->extra_info.
11222 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11223 alpha_frame_args_address.
11224 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11225 (alpha_find_saved_regs): Remove prototype.
11226 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11227 (EXTRA_FRAME_INFO): Remove.
11228 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11229 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11230
11231 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11232
11233 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11234 (alpha_cannot_fetch_register): Ditto.
11235 (alpha_cannot_store_register): Ditto.
11236 (alpha_register_convertible): Ditto.
11237 (alpha_use_struct_convention): Ditto.
11238 * config/alpha/tm-alpha.h: Update copyright years.
11239 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11240 (INNER_THAN): Use core_addr_lessthan.
11241 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11242 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11243 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11244 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11245 (FRAME_CHAIN): Remove unnecessary cast.
11246
11247 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11248
11249 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11250 obsolete.
11251
11252 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11253
11254 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11255 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11256 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11257 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11258 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11259 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11260 * x86-64-linux-nat.c: Ditto.
11261
11262 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11263
11264 * alpha-tdep.c (alpha_register_name): New function.
11265 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11266 (REGISTER_NAME): Define.
11267
11268 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11269
11270 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11271
11272 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11273
11274 * alpha-tdep.c: Update copyright years.
11275 (alpha_next_pc): New function.
11276 (alpha_software_single_step): Ditto.
11277 * config/alpha/tm-alpha.h: Add prototype for
11278 alpha_software_single_step.
11279
11280 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11281
11282 * alphabsd-nat.c: Update copyright years.
11283 (fill_gregset): Use regcache_collect.
11284 (fill_fpregset): Likewise.
11285 (fetch_inferior_registers): Only fetch integer registers
11286 if requested to do so.
11287 (store_inferior_registers): Only store integer registers
11288 if requested to do so.
11289
11290 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11291
11292 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11293 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11294 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11295 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11296 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11297 * config/arm/linux.mh (XDEPFILES): Delete.
11298 * config/arm/nbsd.mh (XDEPFILES): Delete.
11299 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11300 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11301 * config/i386/i386m3.mh (XDEPFILES): Delete.
11302 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11303 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11304 * config/i386/fbsd.mh (XDEPFILES): Delete.
11305 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11306 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11307 * config/i386/i386v4.mh (XDEPFILES): Delete.
11308 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11309 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11310 * config/i386/i386aix.mh (XDEPFILES): Delete.
11311 * config/i386/go32.mh (XDEPFILES): Delete.
11312 * config/i386/cygwin.mh (XDEPFILES): Delete.
11313 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11314 * config/i386/i386mach.mh (XDEPFILES): Delete.
11315 * config/i386/i386v32.mh (XDEPFILES): Delete.
11316 * config/i386/linux.mh (XDEPFILES): Delete.
11317 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11318 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11319 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11320 * config/i386/i386sco.mh (XDEPFILES): Delete.
11321 * config/i386/i386v.mh (XDEPFILES): Delete.
11322 * config/i386/nbsd.mh (XDEPFILES): Delete.
11323 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11324 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11325 * config/i386/symmetry.mh (XDEPFILES): Delete.
11326 * config/i386/obsd.mh (XDEPFILES): Delete.
11327 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11328 * config/ia64/linux.mh (XDEPFILES): Delete.
11329 * config/ia64/aix.mh (XDEPFILES): Delete.
11330 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11331 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11332 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11333 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11334 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11335 * config/m68k/linux.mh (XDEPFILES): Delete.
11336 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11337 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11338 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11339 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11340 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11341 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11342 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11343 * config/m88k/delta88.mh (XDEPFILES): Delete.
11344 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11345 * config/m88k/m88k.mh (XDEPFILES): Delete.
11346 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11347 * config/mips/linux.mh (XDEPFILES): Delete.
11348 * config/mips/irix6.mh (XDEPFILES): Delete.
11349 * config/mips/irix5.mh (XDEPFILES): Delete.
11350 * config/mips/irix4.mh (XDEPFILES): Delete.
11351 * config/mips/irix3.mh (XDEPFILES): Delete.
11352 * config/mips/decstation.mh (XDEPFILES): Delete.
11353 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11354 (NATDEPFILES): Move core-aout.o to here.
11355 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11356 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11357 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11358 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11359 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11360 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11361 * config/pa/hpux11.mh (XDEPFILES): Delete.
11362 * config/powerpc/aix.mh (XDEPFILES): Delete.
11363 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11364 * config/powerpc/linux.mh (XDEPFILES): Delete.
11365 * config/romp/rtbsd.mh: Rename XDEPFILES.
11366 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11367 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11368 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11369 * config/s390/s390.mh (XDEPFILES): Delete.
11370 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11371 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11372 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11373 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11374 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11375 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11376 * config/sparc/linux.mh (XDEPFILES): Delete.
11377 * config/vax/vaxult.mh (XDEPFILES): Delete.
11378 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11379 * Makefile.in (DEPFILES): Remove XDEPFILES.
11380
11381 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11382
11383 * utils.c (internal_verror): Fix comments, default is yes not no.
11384 Update queries to match. Default to quit and dump core.
11385
11386 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11387
11388 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11389 copyright.
11390 * defs.h, event-top.c, gdbcmd.h: Ditto.
11391 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11392 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11393 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11394 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11395 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11396 * mi/mi-main.c:Ditto.
11397
11398 * stack.c, symfile.c: Update copyright.
11399
11400 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11401
11402 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11403 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11404 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11405 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11406
11407 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11408
11409 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11410 * gdbserver/low-lynx.c (myattach): Likewise.
11411 * gdbserver/low-nbsd.c (myattach): Likewise.
11412 * gdbserver/low-sim.c (myattach): Likewise.
11413 * gdbserver/low-sparc.c (myattach): Likewise.
11414 * gdbserver/low-sun3.c (myattach): Likewise.
11415
11416 * gdbserver/low-linux.c (myattach): New function.
11417
11418 * gdbserver/server.c (attach_inferior): New function.
11419 (main): Handle "--attach".
11420
11421 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11422
11423 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11424 maintainer.
11425
11426 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11427
11428 * c-typeprint.c (is_type_conversion_operator): Add additional
11429 check for non-conversion operators.
11430
11431 2002-01-15 Michael Snyder <msnyder@redhat.com>
11432
11433 * linux-proc.c: Add "info proc" command, a la procfs.c.
11434 (read_mapping): New function, abstract and re-use code.
11435 (linux_find_memory_regions): Use new func read_mapping.
11436 (linux_info_proc_cmd): New function, implement "info proc".
11437 (_initialize_linux_proc): Add new command "info proc".
11438
11439 2002-01-15 Michael Snyder <msnyder@redhat.com>
11440
11441 * symfile.c (generic_load): Use bfd_map_over_sections method
11442 instead of manipulating bfd structure members directly.
11443 (add_section_size_callback): New function, bfd sections callback
11444 used by generic_load.
11445 (load_sections_callback): New function, bfd sections callback
11446 used by generic_load.
11447
11448 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11449
11450 [Based on work by Jim Blandy]
11451 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11452 (builtin_type_vec128): Export.
11453 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11454 types.
11455 (builtin_type_vec128): New builtin type for 128 bit vector
11456 registers.
11457 (build_gdbtypes): Initialize builtin_type_v16qi and
11458 builtin_type_v8hi. Create the vec128 register builtin type
11459 structure.
11460 (build_builtin_type_vec128): New function.
11461 (_initialize_gdbtypes): Register builtin_type_v16qi and
11462 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11463 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11464 AltiVec register to new builtin type.
11465
11466 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11467
11468 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11469 to make_cv_type.
11470
11471 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11472
11473 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11474 CLEAN_UP_REGISTER_VALUE.
11475 * regcache.c (supply_register): Update only call.
11476
11477 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11478
11479 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11480 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11481 a29k-*-vxworks* targets as obsolete.
11482
11483 2002-01-14 Michael Snyder <msnyder@redhat.com>
11484
11485 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11486 until we can resolve portability issues.
11487 * gregset.h: Remove references to fpxregs.
11488 * gcore.c (gcore_command): Initialize note_sec to NULL.
11489
11490 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11491
11492 * signals.c (target_signal_to_name): Rewrite. Only use
11493 signals[].name when in bounds and non-NULL.
11494
11495 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11496
11497 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11498 * signals.c (target_signal_to_name): Verify that SIG is within the
11499 bounds of the signals array.
11500
11501 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11502
11503 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11504
11505 2002-01-13 Keith Seitz <keiths@redhat.com>
11506
11507 * stack.c (print_frame_info_base): Print the frame's pc
11508 only if when print_frame_info_listing_hook is not defined.
11509
11510 2002-01-13 Keith Seitz <keiths@redhat.com>
11511
11512 * varobj.c (varobj_set_value): Make sure that there were no
11513 errors evaluating the object before attempting to set its
11514 value.
11515 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11516 so this offset adjustment is no longer necessary.
11517 (create_child): Don't set the error flag if the child is
11518 a CPLUS_FAKE_CHILD.
11519 (value_of_child): If value_fetch_lazy fails, return NULL
11520 so that callers will be notified that an error occurred.
11521 (c_value_of_variable): Delay check of variable's validity
11522 until later. We actually want all structs and unions to have
11523 the value "{...}".
11524 Do not return "???" for variables which could not be evaluated.
11525 This error condition must be returned to the caller so that it
11526 can get the error condition from gdb.
11527 (cplus_name_of_child): Adjust index for vptr before figuring
11528 out the name of the child.
11529 (cplus_value_of_child): If a child's (real) parent is not valid,
11530 don't even bother trying to give a value for it. Just return
11531 an error. Change all instances in this function.
11532 (cplus_type_of_child): If our parent is one of the "fake"
11533 parents, we need to get at the type of the real parent, and
11534 derive the child's true type using this information.
11535
11536 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11537
11538 From 2002-01-09 John Marshall <johnm@falch.net>:
11539 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11540 sources.redhat.com, and tweak some related URLs which had
11541 suffered from linkrot.
11542
11543 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11544
11545 From Jeff law:
11546 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11547 structures passed in registers.
11548
11549 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11550
11551 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11552 white space which prevented compilation. Reported by DSK
11553 <dsk@student.unsw.edu.au>.
11554
11555 2002-01-11 Michael Snyder <msnyder@redhat.com>
11556
11557 * symfile.c (build_section_addr_info_from_section_tab):
11558 Use bfd access method instead of manipulating bfd directly.
11559 (syms_from_objfile): Ditto.
11560 (simple_overlay_update_1): Ditto.
11561 (simple_overlay_update): Ditto.
11562 (generic_load): Ditto.
11563 (overlay_unmapped_address): FIXME comment, bfd access methods.
11564 (sections_overlap): FIXME comment, bfd access methods.
11565 (pc_in_mapped_range): FIXME comment, bfd access methods.
11566 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11567 (section_is_mapped): FIXME comment, bfd access methods.
11568 (section_is_overlay): FIXME comment, bfd access methods.
11569
11570 * symfile.c (generic_load): Whitespace and long line cleanups.
11571 Remove duplicate variable, change several local variables to
11572 more appropriate data types.
11573 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11574
11575 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11576
11577 From Peter Schauer:
11578 * language.c (longest_local_hex_string_custom): Use phex_nz to
11579 convert NUM to a hex string.
11580
11581 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11582
11583 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11584 the function.
11585 Update Copyright year.
11586
11587 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11588
11589 * language.c (longest_raw_hex_string): Delete unused function.
11590
11591 2002-01-11 Petr Sorfa <petrs@caldera.com>
11592
11593 * MAINTAINERS (write-after-approval): Add myself.
11594 * dwarf2read.c (read_tag_string_type): Handling of
11595 DW_AT_byte_size.
11596 (read_tag_string_type): FORTRAN fix to prevent propagation of
11597 first string size.
11598 (set_cu_language): Handling of DW_LANG_Fortran95
11599
11600 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11601
11602 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11603 GETPID(inferior_ptid).
11604 (store_inferior_registers): Likewise.
11605
11606 2002-01-10 Jason Merrill <jason@redhat.com>
11607
11608 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11609 Fix DW_OP_minus.
11610
11611 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11612
11613 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11614 and bfd/elf32-sh-nbsd.c.
11615
11616 2002-01-10 Michael Snyder <msnyder@redhat.com>
11617
11618 * NEWS: Mention --pid and corefile/proc-id behavior change.
11619
11620 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11621 * gcore.c: Include cli/cli-decode.h instead of command.h.
11622
11623 * main.c (captured_main): Add new command line option "--pid".
11624 If the second command line argument (following the symbol-file)
11625 begins with a digit, try to attach to it before trying to open
11626 it as a corefile.
11627 (print_gdb_help): Document the "--pid" argument.
11628
11629 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11630
11631 * completer.c (command_completer): New function.
11632
11633 * completer.h <command_completer>: Add prototype.
11634
11635 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11636 completer for the "help" command.
11637
11638 2002-01-09 Jason Merrill <jason@redhat.com>
11639
11640 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11641
11642 2002-01-09 Michael Snyder <msnyder@redhat.com>
11643
11644 * i386-linux-nat.c (fill_fpxregset): Make global.
11645 (store_fpxregset): Ditto.
11646
11647 * gregset.h (gdb_fpxregset_t): Define.
11648 (supply_fpxregset): Prototype.
11649 (fill_fpxregset): Prototype.
11650
11651 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11652
11653 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11654
11655 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11656 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11657 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11658
11659 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11660
11661 * MAINTAINERS: Update target maintainer rules so that any
11662 Maintainer can approve a tested patch for a maintenance-only
11663 target.
11664
11665 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11666
11667 * MAINTAINERS (write-after-approval): Add myself.
11668
11669 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11670 IN_SIGTRAMP.
11671
11672 2002-01-08 Michael Snyder <msnyder@redhat.com>
11673
11674 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11675 real name of the executable, rather than the /proc name.
11676
11677 2002-01-03 Michael Snyder <msnyder@redhat.com>
11678
11679 Implement a "generate-core-file" command in gdb, save target state.
11680 * gcore.c: New file. Implement new command 'generate-core-file'.
11681 Save a corefile image of the current state of the inferior.
11682 * linux-proc.c: Add linux-specific code for saving corefiles.
11683 * target.h (struct target_ops): Add new target vectors for saving
11684 corefiles; to_find_memory_regions and to_make_corefile_notes.
11685 (target_find_memory_regions): New macro.
11686 (target_make_corefile_notes): New macro.
11687 * target.c (update_current_target): Inherit new target methods.
11688 (dummy_find_memory_regions): New place-holder method.
11689 (dummy_make_corefile_notes): New place-holder method.
11690 (init_dummy_target): Initialize new dummy target vectors.
11691 * exec.c (exec_set_find_memory_regions): New function.
11692 Allow the exec_ops vector for memory regions to be taken over.
11693 (exec_make_note_section): New function, target vector method.
11694 * defs.h (exec_set_find_memory_regions): Export prototype.
11695 * procfs.c (proc_find_memory_regions): New function, corefile method.
11696 (procfs_make_note_section): New function, corefile method.
11697 (init_procfs_ops): Set new target vector pointers.
11698 (find_memory_regions_callback): New function.
11699 (procfs_do_thread_registers): New function.
11700 (procfs_corefile_thread_callback): New function.
11701 * sol-thread.c (sol_find_memory_regions): New function.
11702 (sol_make_note_section): New function.
11703 (init_sol_thread_ops): Initialize new target vectors.
11704 * inftarg.c (inftarg_set_find_memory_regions): New function.
11705 Allow to_find_memory_regions vector to be taken over.
11706 (inftarg_set_make_corefile_notes): New function.
11707 Allow to_make_corefile_notes vector to be taken over.
11708 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11709 interface layer if not target_has_execution (may be a corefile).
11710 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11711 * config/sparc/sun4sol2.mh: Ditto.
11712 * config/alpha/alpha-linux.mh: Ditto.
11713 * config/arm/linux.mh: Ditto.
11714 * config/i386/x86-64linux.mh: Ditto.
11715 * config/ia64/linux.mh: Ditto.
11716 * config/m68k/linux.mh: Ditto.
11717 * config/mips/linux.mh: Ditto.
11718 * config/powerpc/linux.mh: Ditto.
11719 * config/sparc/linux.mh: Ditto.
11720
11721 2002-01-07 Michael Snyder <msnyder@redhat.com>
11722
11723 * arm-linux-nat.c: Remove references to regcache.c internal data
11724 (registers[] and register_valid[]).
11725
11726 2002-01-07 Michael Snyder <msnyder@redhat.com>
11727
11728 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11729 so that attaching to a pid will automatically read the process's
11730 symbol file and shlibs.
11731 * Makefile.in: Add rule for linux-proc.o.
11732 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11733 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11734 * config/arm/linux.mh: Ditto.
11735 * config/i386/linux.mh: Ditto.
11736 * config/i386/x86-64linux.mh: Ditto.
11737 * config/ia64/linux.mh: Ditto.
11738 * config/m68k/linux.mh: Ditto.
11739 * config/mips/linux.mh: Ditto.
11740 * config/powerpc/linux.mh: Ditto.
11741 * config/sparc/linux.mh: Ditto.
11742
11743 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11744
11745 * win32-nat.c: Add i386-tdep.h dependency.
11746
11747 2002-01-07 Michael Snyder <msnyder@redhat.com>
11748
11749 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11750 instead of bfd_get_arch_size. Don't bail out just because
11751 there's no exec_bfd.
11752
11753 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11754 * p-valprint.c (pascal_object_print_value): Ditto.
11755 * somread.c (som_symtab_read): Ditto.
11756 * symfile.c (simple_free_overlay_region_table): Ditto.
11757 * valops.c (value_assign): Ditto.
11758
11759 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11760 use tilde_expand and strerror for opening save-tracepoints file.
11761
11762 * thread-db.c (thread_db_new_objfile): Indendation fix.
11763
11764 * infptrace.c (GDB_MAX_ALLOCA): New define.
11765 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11766 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11767 can be overridden with whatever value is appropriate to the host).
11768 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11769 alloca to allocate potentially large buffer.
11770 * rs6000-nat.c (child_xfer_memory): Ditto.
11771 * symm-nat.c (child_xfer_memory): Ditto.
11772 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11773
11774 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11775
11776 From Nick Clifton <nickc@redhat.com>
11777 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11778
11779 2002-01-07 Michael Snyder <msnyder@redhat.com>
11780
11781 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11782 Don't use exec_bfd if it's NULL.
11783
11784 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11785
11786 * valops.c (value_arg_coerce): Fix formatting.
11787
11788 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11789
11790 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11791 * gnu-nat.c: Ditto.
11792
11793 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11794
11795 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11796 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11797 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11798 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11799 z8k-coff have not been multi-arched. Update z8k-coff build
11800 status.
11801
11802 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11803
11804 * MAINTAINERS: Mark a29k target as obsolete.
11805 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11806 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11807 comments.
11808 * NEWS: Note that a29k targets are obsolete.
11809 * a29k-tdep.c: Mark as obsolete.
11810 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11811 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11812 a29k-*-vxworks* targets as obsolete.
11813 * remote-adapt.c: Obsolete.
11814 * remote-eb.c: Obsolete.
11815 * remote-mm.c: Obsolete.
11816 * remote-udi.c: Obsolete.
11817 * config/a29k/a29k-udi.mt: Obsolete.
11818 * config/a29k/a29k.mt: Obsolete.
11819 * config/a29k/tm-a29k.h: Obsolete.
11820 * config/a29k/tm-vx29k.h: Obsolete.
11821 * config/a29k/vx29k.mt: Obsolete.
11822
11823 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11824
11825 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11826 with BFD_ENDIAN_BIG.
11827
11828 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11829
11830 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11831 * configure, config.in: Re-generate.
11832 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11833 * defs.h: Do not include <endian.h>.
11834
11835 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11836
11837 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11838 * config.in: Regenerate.
11839 * configure.in: Update copyright years.
11840 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11841 * configure: Regenerate.
11842 * i386bsd-nat.c: Update copyright years.
11843 (fill_gregset): Use regcache_collect.
11844 (fetch_inferior_registers): Only fetch integer registers
11845 if requested to do so. Add support for XMM registers
11846 using PT_GETXMMREGS.
11847 (store_inferior_registers): Only store integer registers
11848 if requested to do so. Add support for XMM registers
11849 using PT_SETXMMREGS.
11850 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11851 (store_inferior_registers): Remove.
11852 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11853 (fetch_elfcore_registers): New function.
11854 (i386nbsd_elfcore_fns): New.
11855 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11856 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11857 i386bsd-nat.o.
11858 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11859 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11860 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11861 * config/i386/tm-nbsd.h: Update copyright years.
11862 (HAVE_SSE_REGS): Define.
11863 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11864 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11865 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11866 (SIGCONTEXT_PC_OFFSET): Remove.
11867 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11868
11869 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11870
11871 * configure.tgt: Remove powerpc-*-macos* target.
11872 * config/m68k/xm-mpw.h: Delete file.
11873 * config/xm-mpw.h: Delete file.
11874 * ser-mac.c: Delete file.
11875 * mpw-make.sed: Delete file.
11876 * mpw-config.in: Delete file.
11877 * mac-xdep.c: Delete file.
11878 * mac-gdb.r: Delete file.
11879 * mac-defs.h: Delete file.
11880 * mac-nat.c: Delete file.
11881 * config/powerpc/macos.mh: Delete file.
11882 * config/powerpc/macos.mt: Delete file.
11883 * config/powerpc/nm-macos.h: Delete file.
11884 * config/powerpc/tm-macos.h: Delete file.
11885 * source.c (openp, open_source_file): Remove obsolete code.
11886 * top.c (gdb_readline): Ditto.
11887 * utils.c (query): Ditto.
11888 * event-top.c (display_gdb_prompt): Ditto.
11889 * Makefile.in (ser-mac.o): Delete obsolete target.
11890 * NEWS: Update.
11891
11892 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11893
11894 * defs.h (BIG_ENDIAN): Delete macro definition.
11895 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11896 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11897 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11898 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11899 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11900 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11901 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11902 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11903 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11904 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11905 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11906 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11907 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11908 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11909 * gdbarch.c: Re-generate.
11910
11911 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11912
11913 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11914 for core files.
11915
11916 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11917
11918 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11919
11920 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11921
11922 * value.h (value_ptr): Delete typedef.
11923
11924 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11925
11926 * i386nbsd-nat.c: Update copyright years.
11927 Include i386-tdep.h.
11928
11929 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11930
11931 * stabsread.c: Update copyright years.
11932
11933 From Debashis Mahata <debashis.mahata@wipro.com>:
11934 (read_struct_fields): Deal with Sun C compiler erroneous stab
11935 output for structs and unions.
11936 Fix PR gdb/269.
11937
11938 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11939
11940 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11941 prototype.
11942
11943 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11944
11945 * cp-abi.c: Fix whitespace.
11946 (baseclass_offset): New wrapper function.
11947 * cp-abi.h (baseclass_offset): Add prototype.
11948 (struct cp_abi_ops): Add baseclass_offset pointer.
11949
11950 * valops.c (vb_match): Move to...
11951 * gnu-v2-abi.c (vb_match): here.
11952 * valops.c (baseclass_offset): Move to...
11953 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11954
11955 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11956
11957 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11958 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11959 * hpacc-abi.c (init_hpacc_ops): Likewise.
11960
11961 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11962
11963 * valops.c (find_overload_match): Accept obj as a
11964 reference parameter. Update it before returning.
11965 * value.h (find_overload_match): Update prototype.
11966 * eval.c (evaluate_subexp_standard): Pass object to
11967 find_overload_match by reference.
11968
11969 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11970
11971 * valarith.c: Replace value_ptr with struct value pointer. Remove
11972 register attribute from value declarations.
11973 * valops.c: Ditto.
11974 * value.h: Ditto.
11975 * scm-lang.c (scm_lookup_name): Ditto.
11976
11977 2002-01-03 Michael Snyder <msnyder@redhat.com>
11978
11979 Abstract the functionality of iterating over mapped memory
11980 regions into a general purpose iterator function.
11981 * procfs.c (iterate_over_mappings): New function, general purpose
11982 iterator for memory sections.
11983 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11984 (solib_mappings_callback): New function, callback for above.
11985 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11986 (info_mappings_callback): New function, callback for above.
11987
11988 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11989
11990 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11991
11992 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11993 * i386-tdep.c: Include "elf-bfd.h".
11994 (process_note_abi_tag_sections): New function.
11995 (i386_gdbarch_init): Add code to recognize various OS/ABI
11996 combinations.
11997
11998 * maint.c (_initialize_maint_cmds): Add missing \ in
11999 string-literal.
12000
12001 For older changes see ChangeLog-2001
12002 \f
12003 Local Variables:
12004 mode: change-log
12005 left-margin: 8
12006 fill-column: 74
12007 version-control: never
12008 End: