* configure.in: Define NEW_PROC_API on Interix too.
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2
3 * configure.in: Define NEW_PROC_API on Interix too.
4 * configure: Regenerate.
5
6 2002-10-21 Joel Brobecker <brobecker@gnat.com>
7
8 * configure: Regenerate using the proper version of autoconf.
9
10 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
11
12 * findvar.c (read_var_value): Temporarily disable TLS code, until
13 complete TLS support is added.
14
15 2002-10-21 Jim Blandy <jimb@redhat.com>
16 Elena Zannoni <ezannoni@redhat.com>
17
18 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
19 for thread local storage locations.
20 (struct symbol): Add objfile field.
21 (SYMBOL_OBJFILE): Define.
22 * dwarf2read.c (is_thread_local): New static variable.
23 (new_symbol): If variable is in thread local fill in address class
24 and objfile appropriately.
25 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
26 stack operation.
27 * printcmd.c (address_info): Print the information for thread
28 local storage variable.
29 * findvar.c (read_var_value): In case of thread local variable,
30 defer to the target vector code to compute address.
31
32 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
33
34 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
35 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
36
37 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
38
39 * symtab.h (address_class): Rename
40 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
41 * hpread.c (hpread_process_one_debug_symbol): Ditto.
42 * printcmd.c (address_info): Ditto.
43 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
44
45 2002-10-20 Mark Kettenis <kettenis@gnu.org>
46
47 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
48 DBREG_DRX macro to acces debug registers.
49
50 * Makefile.in (i386obsd-tdep.o): New target.
51
52 * solib-sunos.c: Include "bcache.h" and "regcache.h".
53 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
54
55 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
56 * config/i386/obsd.mt: New file.
57 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
58 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
59 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
60 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
61 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
62 * i386obsd-tdep.c: New file.
63
64 2002-10-19 Adam Fedor <fedor@gnu.org>
65
66 * objc-exp.y (name_not_typename): Fix invalid comment.
67
68 2002-10-20 Mark Kettenis <kettenis@gnu.org>
69
70 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
71 to allocate partial syms and macro byte caches.
72
73 2002-10-18 David Carlton <carlton@math.stanford.edu>
74
75 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
76
77 2002-10-18 Adam Fedor <fedor@gnu.org>
78
79 * stabsread.c (find_name_end): New function.
80 (define_symbol): Use it.
81
82 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
83
84 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
85 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
86 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
87 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
88
89 2002-10-17 David Carlton <carlton@math.stanford.edu>
90
91 * symfile.h: Add opaque declaration for struct obstack.
92 Declare obsavestring to take a const char *.
93 * symfile.c (obsavestring): Make first argument a const char *.
94
95 2002-10-16 Adam Fedor <fedor@gnu.org>
96
97 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
98 names when matching breakpoints in current file.
99
100 2002-10-16 Kevin Buettner <kevinb@redhat.com>
101
102 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
103 (read_tag_pointer_type): Add address class support.
104 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
105 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
106 New methods.
107 * gdbarch.h, gdbarch.c: Regenerate.
108 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
109 (make_type_with_address_space, recursive_type_dump): Add address
110 class support.
111 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
112 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
113 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
114
115 2002-10-16 Klee Dienes <kdienes@apple.com>
116
117 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
118 to get the last character of a char[] buffer, not
119 name[sizeof(vptr_name)-1].
120
121 2002-10-14 Adam Fedor <fedor@gnu.org>
122
123 * symtab.h: New objc_specific struct.
124 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
125 (SYMBOL_DEMANGLED_NAME): Likewise.
126
127 2002-10-14 Adam Fedor <fedor@gnu.org>
128
129 * symfile.c (init_filename_language_table): Add ObjC file extension.
130
131 2002-10-14 Adam Fedor <fedor@gnu.org>
132
133 * utils.c (puts_filtered_tabular): New function.
134 (fprintf_symbol_filtered): Get ObjC demangled name.
135 * defs.h (puts_filtered_tabular): Declared.
136
137 2002-10-14 Kevin Buettner <kevinb@redhat.com>
138
139 * c-lang.h (c_type_print_varspec_prefix): Delete.
140 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
141 ``need_post_space'' parameter. Adjust all callers.
142
143 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
144
145 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
146 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
147 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
148 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
149
150 2002-10-13 Adam Fedor <fedor@gnu.org>
151
152 * source.c (print_source_lines): Update comments.
153
154 2002-10-13 Adam Fedor <fedor@gnu.org>
155
156 * valops.c (value_of_local): New function.
157 (value_of_this): Use it.
158 * value.h (value_of_local): Declared.
159
160 2002-10-13 Adam Fedor <fedor@gnu.org>
161
162 * parse.c: (length_of_subexp, prefixify_subexp): Handle
163 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
164
165 2002-10-12 Adam Fedor <fedor@gnu.org>
166
167 * language.c (binop_result_type): Add language_objc to case.
168 (integral_type): Likewise.
169 (character_type): Likewise.
170 (string_type): Likewise.
171 (boolean_type): Likewise.
172 (structured_type): Likewise.
173 (binop_type_check): Likewise.
174
175 2002-10-11 Adam Fedor <fedor@gnu.org>
176
177 * printcmd.c (address_info): Print 'self' for ObjC.
178
179 2002-10-11 Adam Fedor <fedor@gnu.org>
180
181 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
182 OP_SELF.
183
184 2002-10-11 Adam Fedor <fedor@gnu.org>
185
186 * language.h (CAST_IS_CONVERSION): Add language_objc.
187
188 2002-10-11 Adam Fedor <fedor@gnu.org>
189
190 * defs.h (enum language): Add language_objc.
191
192 2002-10-11 Klee Dienes <kdienes@apple.com>
193
194 * findvar.c (read_memory_typed_address): New function.
195 * gdbcore.h (read_memory_typed_address): Add prototype.
196 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
197 to read a value destined for a CORE_ADDR, not read_memory_integer.
198 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
199 (f77_get_dynamic_lowerbound): Ditto.
200
201 2002-10-11 Martin M. Hunt <hunt@redhat.com>
202
203 * utils.c (string_to_core_addr): After turning string into
204 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
205 which will do necessary sign-extension, etc.
206
207 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
208
209 * c-exp.y (THIS): Delete token and grammar rule.
210 (yylex): Don't return THIS.
211 * cp-valprint.c (vtbl_ptr_name_old): Delete.
212 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
213 * demangle.c (cplus_markers): Update comment. Put '$'
214 first. Remove CPLUS_MARKER.
215 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
216 * jv-exp.y (THIS): Delete token and grammar rule.
217 (yylex): Don't return THIS.
218 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
219 * objc-exp.y (THIS): Delete token and grammar rule.
220 (yylex): Don't return THIS.
221 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
222 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
223 (read_member_functions): Likewise for opname.
224 (read_tilde_fields): Use is_cplus_marker.
225
226 * defs.h (CPLUS_MARKER): Don't define.
227 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
228 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
229 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
230 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
231 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
232
233 * config/i386/tm-i386v4.h: Delete file.
234 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
235 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
236 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
237 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
238 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
239 * config/i386/i386sco5.mt (TM_FILE): Likewise.
240 * config/i386/i386v4.mt (TM_FILE): Likewise.
241 * config/i386/ncr3000.mt (TM_FILE): Likewise.
242
243 2002-10-10 Marko Mlinar <markom@opencores.org>
244
245 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
246 accidentially not commited 2002-10-09
247 * gdbarch.h, gdbarch.c: Re-generate.
248
249 2002-10-09 Marko Mlinar <markom@opencores.org>
250
251 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
252 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
253 * gdbarch.h, gdbarch.c: Re-generate.
254
255 2002-10-08 Petr Sorfa <petrs@caldera.com>
256
257 Revised and re-submitted by John Wolfe <jlw@caldera.com>
258
259 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
260 so we can work on more than one compilation unit at a time. This
261 helps prepare GDB to handle inter-CU die references.
262 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
263 the code to be defined before struct comp_unit_head.
264 (comp_unit_head): Added new members - offset, cu_head,
265 begin_die, next and dwarf2_abbrevs.
266 (dwarf2_abbrevs): Removed single static var; now member of
267 struct comp_unit_head.
268 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
269 members.
270 (psymtab_to_symtab_1): Changed to work with the new
271 struct comp_unit_head.
272 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
273 constructs the dwarf2_abbrevs[] inside the cu_header.
274 (dwarf2_empty_abbrev_table): Now expects a ptr to a
275 dwarf2_abbrev table to clean up.
276 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
277 handling of dwarf2_abbrevs inside the cu_header.
278 (read_partial_die): Now supports the call to the new
279 dwarf2_lookup_abbrev.
280 (read_full_die): Now supports the call to the new
281 dwarf2_lookup_abbrev.
282
283 2002-10-06 Christopher Faylor <cgf@redhat.com>
284
285 * Makefile.in (install-gdbtk): Add missing continuation backslash to
286 insure that shell variables, such as "transformed_name" are propagated
287 to later shell statements in rule.
288
289 2002-10-06 Mark Kettenis <kettenis@gnu.org>
290
291 * config/i386/nm-i386sco.h: Add protection against
292 multiple-inclusion. Include "i386/nm-i386v.h".
293 (REGISTER_U_ADDR): Remove define.
294 (i386_register_u_addr): Remove prototype.
295
296 2002-10-04 Michael Snyder <msnyder@redhat.com>
297
298 * m32r-stub.c (handle_exception): Make sure exception is "trap"
299 before treating it as a single-step event.
300
301 2002-10-03 Adam Fedor <fedor@gnu.org>
302
303 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
304 (objc_demangle): Remove assignment in if statements, Replace
305 free with xfree.
306 (add_msglist): Likewise.
307 (end_msglist): Likewise.
308 (complare_selectors): Likewise.
309 (selectors_info): Likewise.
310 (compare_classes): Likewise.
311 (classes_info): Likewise.
312 (print_object_command): Likewise.
313 (find_objc_msgcall_submethod): Replace PTR with void *.
314 * objc-lang.h: Remove check for __STDC__.
315
316 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
317
318 * ui-out.h (ui_out_field_fmt_int): New prototype.
319 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
320 of field width and alignment.
321 * stack.c (print_frame_info_base): When printing frame level, use
322 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
323 PR gdb/192
324
325 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
326
327 * MAINTAINERS: Add self to Write After Approval list.
328
329 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
330
331 * infcmd.c (interrupt_target_command_wrapper): Delete.
332 (interrupt_target_command): Make non static.
333 (nofp_registers_info): Make static.
334 * stack.c (return_command_wrapper): Delete.
335 (return_command): Make non static.
336
337 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
338
339 * event-top.c (gdb_setup_readline): New function. Code moved from
340 _initialize_event_loop().
341 (_initialize_event_loop): Call gdb_setup_readline().
342
343 2002-10-02 Andrew Cagney <ac131313@redhat.com>
344
345 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
346 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
347 * gdbarch.h, gdbarch.c: Re-generate.
348
349 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
350
351 Fix PR gdb/778
352 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
353 before recursing.
354 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
355 of fill_in_vptr_fieldno.
356
357 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
358
359 * inferior.h (registers_info, stepi_command, nexti_command,
360 continue_command, interrupt_target_command): Export from infcmd.c.
361 * frame.h (args_info, selected_frame_level_changed_hook,
362 return_command): Export from stack.c.
363 * v850ice.c (stepi_command, nexti_command, continue_command): use
364 prototypes from inferior.h.
365 * tracepoint.c (registers_info, args_info, locals_info): Use
366 prototypes from frame.h and inferior.h.
367 * Makefile.in (mi-main.o): Add dependency on frame.h.
368
369 2002-10-02 Andrew Cagney <ac131313@redhat.com>
370
371 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
372 value in register 3 adjusted by ppc_gp0_regnum.
373
374 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
375
376 2002-10-02 Marko Mlinar <markom@opencores.org>
377
378 * MAINTAINERS: Add myself to the Write After Approval list.
379
380 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
381
382 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
383 of the section for the N64 ABI, fixed.
384
385 * config/mips/tm-irix6.h: Include solib.h.
386
387 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
388
389 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
390 GNU operators.
391
392 2002-10-01 Andrew Cagney <ac131313@redhat.com>
393
394 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
395 and that "mi0" syntax has been removed.
396
397 2002-09-30 David Carlton <carlton@math.stanford.edu>
398
399 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
400 * ppc-sysv-tdep.c: #include "gdb_string.h".
401 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
402 pacify GCC.
403
404 2002-10-01 Andrew Cagney <ac131313@redhat.com>
405
406 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
407 "vrsave"'s register number.
408
409 2002-09-30 Andrew Cagney <ac131313@redhat.com>
410
411 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
412 use frame_unwind_signed_register to obtain the PC.
413 (mips_frame_chain): Handle a generic dummy frame.
414 (mips_init_extra_frame_info): When a generic dummy frame, don't
415 re-compute the frame base.
416 (mips_pop_frame): Handle generic dummy frames.
417 (mips_gdbarch_init): When generic dummy frames, set
418 use_generic_dummy_frames, push_dummy_frame to
419 generic_push_dummy_frame, pc_in_call_dummy to
420 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
421 generic_save_dummy_frame_tos.
422
423 2002-09-30 Andrew Cagney <ac131313@redhat.com>
424
425 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
426 against TOP when TOP was explictly set.
427 (generic_push_dummy_frame): Set TOP to zero.
428
429 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
430
431 * event-loop.c (start_event_loop): Rename variable 'result' to
432 'gdb_result', to avoid conflicts with upcoming intepreters changes.
433
434 2002-09-30 Keith Seitz <keiths@redhat.com>
435
436 * gdb-events.sh (selected_thread_changed): New event.
437 * gdb-events.c: Regenerated.
438 * gdb-events.h: Regenerated.
439
440 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
441
442 * MAINTAINERS: Add self to Write After Approval list.
443
444 2002-09-30 Fernando Nasser <fnasser@redhat.com>
445
446 * disasm.c: New file.
447 * disasm.h: New file.
448 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
449 (compare_lines): Ditto.
450 (dump_insns): Ditto.
451 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
452 argument.
453 (do_assembly_only): Ditto.
454 (do_disassembly): Renamed to gdb_disassembly and moved to
455 disasm.c. Sdded uiout argument.
456 * Makefile.in: Add new files. Reorder SFILES list. Update
457 dependencies. Include libgdb.a later in the insight executable.
458
459 2002-09-29 Andrew Cagney <ac131313@redhat.com>
460
461 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
462 bfd/elf64-alpha-fbsd.c.
463
464 2002-09-29 Andrew Cagney <ac131313@redhat.com>
465
466 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
467 i386gnu-tdep.c.
468
469 2002-09-29 Andrew Cagney <ac131313@redhat.com>
470
471 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
472 __FUNCTION__.
473 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
474 function name.
475 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
476 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
477 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
478 (S_msg_sig_post_reply): Ditto.
479
480 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
481
482 * sh-tdep.c (sh_use_struct_convention): Use definition according
483 to ABI.
484 (sh_push_arguments): Store in register with correct endianess.
485 (sh_default_store_return_value): Ditto.
486 (sh_gdbarch_init): Set sizeof long double to 8.
487
488 2002-09-27 Mark Kettenis <kettenis@gnu.org>
489
490 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
491 Fix some whitespace problems.
492
493 2002-09-27 David Carlton <carlton@math.stanford.edu>
494
495 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
496 (mcore-tdep.o): Ditto.
497 (ns32k-tdep.o): Ditto.
498 (ns32knbsd-tdep.o): Ditto.
499 (sh3-rom.o): Ditto.
500 (vax-tdep.o): Ditto.
501 * cris-tdep.c: #include "gdb_string.h"
502 * mcore-tdep.c: Ditto.
503 * ns32k-tdep.c: Ditto.
504 * ns32knbsd-tdep.c: Ditto.
505 * sh3-rom.c: Ditto.
506 * vax-tdep.c: Ditto.
507
508 2002-09-27 David Carlton <carlton@math.stanford.edu>
509
510 * config/djgpp/fnchange.lst: Add entries for
511 gdb/testsuite/gdb.c++/m-static files.
512
513 2002-09-27 Jim Wilson <wilson@redhat.com>
514
515 * MAINTAINERS: Add myself to the Write After Approval list.
516
517 2002-09-26 Martin M. Hunt <hunt@redhat.com>
518
519 * mips-tdep.c (find_proc_desc): Initialize startaddr.
520
521
522 2002-09-26 Andrew Cagney <ac131313@redhat.com>
523
524 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
525 frame.
526
527 2002-09-26 Andrew Cagney <ac131313@redhat.com>
528
529 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
530 (rs6000_struct_return_address): Delete variable.
531 (rs6000_store_struct_return): Update.
532 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
533 deprecated_extract_struct_value_address.
534 (rs6000_frame_align): New function.
535 (rs6000_gdbarch_init): Set frame_align.
536
537 2002-09-26 Andrew Cagney <ac131313@redhat.com>
538
539 From Grace Sainsbury <graces@redhat.com>:
540 * Makefile.in (gdbtk-main.o): New target.
541 (gdb.o): New target.
542 (main_h): Define.
543 (main.o): Update dependencies.
544 (gdb$(EXEEXT)): Add gdb.o.
545 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
546 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
547 (SUBDIR_GDBTK_CLEAN): Set.
548 (install-gdbtk): Install the insight binary.
549 (uninstall-gdbtk): New target.
550 (all-gdbtk, clean-gdbtk): New rule.
551 * top.c (use_windows): Default to zero.
552 * main.c: Include "main.h".
553 (main): Delete.
554 (struct captured_main_args): Delete.
555 (gdb_main): New function.
556 * main.h: New file.
557 * gdb.c: New File.
558
559 2002-09-25 Andrew Cagney <cagney@redhat.com>
560
561 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
562 (frame_map_regnum_to_name): New function.
563 (frame_map_name_to_regnum): New function.
564 * frame.h (frame_map_name_to_regnum): Declare.
565 (frame_map_regnum_to_name): Declare.
566 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
567 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
568 * parse.c: Do not include "builtin-regs.h".
569 (target_map_name_to_register): Delete function.
570 (write_dollar_variable): Use frame_map_name_to_regnum.
571 * parser-defs.h (target_map_name_to_register): Delete declaration.
572 * expprint.c: Include "frame.h".
573 (print_subexp): Use frame_map_regnum_to_name.
574 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
575 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
576
577 2002-09-25 Andrew Cagney <ac131313@redhat.com>
578
579 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
580 wasn't saved, and the next innermost frame is a dummy, return the
581 dummy frame's link register.
582
583 2002-09-24 Jim Blandy <jimb@redhat.com>
584
585 Fix from Paul Breed:
586 * main.c (captured_main): Add a `break' after the case for 'b'.
587
588 2002-09-24 Keith Seitz <keiths@redhat.com>
589
590 * varobj.c (c_type_of_child): Use get_target_type instead
591 of TYPE_TARGET_TYPE.
592
593 2002-09-22 Fernando Nasser <fnasser@redhat.com>
594
595 * source.c (get_current_or_default_source_symtab_and_line): Remove
596 function.
597 (set_default_source_symtab_and_line): New function. Attempts to
598 determine a source file to list lines from if one is not currently
599 defined.
600 (get_current_source_symtab_and_line): Initialize sal.pc and
601 sal.end fields.
602 (set_current_source_symtab_and_line): Mark argument as const.
603 * source.h: Update declarations and comments.
604 * linespec.c (decode_line_1): Replace call to removed routine above.
605 * stack.c (print_frame_info_base): Ditto.
606 * cli/cli-cmds.c (edit_command): Ditto.
607 (list_command): Ditto.
608
609 2002-09-22 Fernando Nasser <fnasser@redhat.com>
610
611 * source.c (get_current_or_default_source_symtab_and_line): Initialize
612 sal.pc and sal.end fields.
613 (get_current_or_default_source_symtab_and_line): Ditto.
614 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
615 so we do not cause a new source symtab to be searched for (reverting an
616 unintentional change from the 2002-09-20 patch).
617 * scm-lang.c (scm_unpac): Ditto.
618
619 2002-09-21 Andrew Cagney <cagney@redhat.com>
620
621 * complaints.c (symfile_explanations): Remove new-line from
622 ``isolated_message''.
623 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
624 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
625
626 2002-09-20 Nick Clifton <nickc@redhat.com>
627
628 * NEWS: Announce that V850EA ISA is no longer supported.
629 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
630
631 2002-09-20 David Carlton <carlton@math.stanford.edu>
632
633 * Makefile.in (c-lang.o): Correct dependencies.
634 (utils.o): Gather dependencies.
635 (charset.o): Move.
636 * c-lang.c: #include "gdb_string.h"
637
638 2002-09-20 Fernando Nasser <fnasser@redhat.com>
639
640 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
641 * cli/cli-cmds.c (list_command): New function. Implements the new
642 cli edit command.
643 (_init_cli_cmds): Add new command definition.
644 * gdb.1: Document edit command.
645 * doc/gdb.texinfo: Document edit command.
646
647 2002-09-20 Fernando Nasser <fnasser@redhat.com>
648
649 * source.c: Make global variables current_source_symtab and
650 current_source_line static.
651 (list_command): Moved to cli/cli-cmds.c.
652 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
653 (get_first_line_listed): New accessor function.
654 (get_lines_to_list): New accessor function.
655 (get_current_source_symtab_and_line): New function. Retrieves the
656 position in the source code that we consider current.
657 (get_current_or_default_source_symtab_and_line): New function.
658 Like the above but attempts to determine a default position if one
659 is not currently defined.
660 (set_current_source_symtab_and_line): New function. Sets the source
661 code position considered current and returns the previously set one.
662 (clear_current_source_symtab_and_line): Reset stored information about
663 a current source line.
664 (_initialize_source): Remove registration for the "list" command and
665 its alias.
666 * source.h: Add declarations for the new functions above.
667 * symtab.h: Remove declarations for the global variables mentioned
668 above.
669 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
670 obtain current source line.
671 * linespec.c (decode_line_1): Ditto.
672 * macroscope.c (default_macro_scope): Ditto.
673 * scm-lang.c (scm_unpac): Ditto.
674 * stack.c (print_frame_info_base): Ditto.
675 * symfile.c (clear_symtab_users): Ditto.
676 * symtab.c (decode_line_spec): Ditto.
677 * cli/cli-cmds.c (list_command): Moved here from source.c.
678 (ambiguous_line_spec): Moved here from source.c.
679 (_init_cli_cmds): Add definition for "list" and its alias.
680 * Makefile.in: Update dependencies.
681
682 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
683
684 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
685 with what gcc thinks is correct.
686
687 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
688
689 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
690 multiple register push instruction.
691
692 2002-09-19 Jim Blandy <jimb@redhat.com>
693
694 Add support for distinct host and target character sets.
695 * charset.c, charset.h: New files.
696 * c-exp.y: #include "charset.h".
697 (yylex): Convert character and string literals to the target
698 character set, before returning them as the semantic value of the
699 token.
700 * c-lang.c: #include "charset.h".
701 (c_emit_char): Use charset-specific methods to recognize
702 characters with backslash escape forms, to decide which characters
703 to print literally and which to print using numeric escape
704 sequences, and to convert target characters to host characters
705 before printing.
706 * utils.c: #include "charset.h".
707 (no_control_char_error): New function.
708 (parse_escape): Use charset-specific methods to recognize
709 backslash escapes, parse `control character' notation, and convert
710 characters from the host character set to the target character set.
711 * configure.in: Set the default host character set.
712 Check where to find iconv, and what its argument types might be.
713 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
714 * Makefile.in (SFILES): List charset.c.
715 (COMMON_OBS): List charset.o.
716 (charset.o): New rule.
717 (charset_h): New header dependency variable.
718 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
719 (LIBICONV): New variable, set by configure.
720 (CLIBS): Include $(LIBICONV) here.
721 * aclocal.m4, config.in, configure: Regenerated.
722
723 2002-09-19 Joel Brobecker <brobecker@gnat.com>
724
725 * ada-exp.y: Add missing semicolons to end rules. Fixes a
726 bison 1.35 warning.
727
728 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
729
730 * gdb_mbuild.sh: New file.
731
732 2002-09-19 Andrew Cagney <ac131313@redhat.com>
733
734 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
735
736 2002-09-18 Andrew Cagney <ac131313@redhat.com>
737
738 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
739 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
740 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
741 valops.c, value.h: Revert previous change.
742
743 2002-09-18 Michael Snyder <msnyder@redhat.com>
744
745 Preliminary support for Objective-C:
746 * defs.h (language_objc): New enum value.
747 (puts_filtered_tabular): Declaration only, exported from utils.c.
748 (skip_quoted): Delete, declared in completer.h.
749 * c-exp.y: Include completer.h.
750 * p-exp.y: Ditto.
751 * jv-exp.y: Ditto.
752 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
753 New operator enum values.
754 * language.h (CAST_IS_CONVERSION): Test for language_objc.
755 * language.c (binop_result_type): Handle language_objc case.
756 (integral_type, character_type, string_type, boolean_type,
757 structured_type, binop_type_check): Ditto.
758 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
759 (struct objc_specific): Add to general_symbol_info.
760 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
761 (SYMBOL_DEMANGLED_NAME): Handle objc case.
762 * parser-defs.h (struct objc_class_str): New struct type.
763 (start_msglist, end_msglist, add_msglist): Declaration only,
764 exported from objc-lang.c.
765 * value.h (value_of_local, value_nsstring,
766 call_function_by_hand_expecting_type): Exported from valops.c.
767 * valops.c (find_function_addr): Export.
768 (call_function_by_hand_expecting_type): New function.
769 (value_of_local): New function.
770 * symfile.c (init_filename_language_table): Add ".m" extension
771 for Objective-C.
772 * utils.c (puts_filtered_tabular): New function.
773 (fprintf_symbol_filtered): Add objc demangling support (disabled).
774 (set/show demangle): Extend help-string to refer to ObjC.
775 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
776 * stabsread.c (symbol_reference_defined): Objective-C symbols
777 may contain colons: make allowances when scanning stabs strings
778 for colons.
779 (objc_find_colon): New function.
780 * printcmd.c (address_info): If language == objc then print
781 "self" instead of "this".
782 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
783 OP_NSSTRING, and OP_SELF.
784 (prefixify_subexp): Ditto.
785 * source.c (print_source_lines): Mention objc in comment.
786 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
787 method names.
788
789 2002-09-18 Andrew Cagney <ac131313@redhat.com>
790
791 * complaints.h: Update copyright.
792 (struct complaints): Declare.
793 (struct complaint): Make `message' constant.
794 (internal_complaint): Declare.
795 (complaint): Declare.
796 (complaint_root): Delete declaration.
797 (symfile_complaints): Delete declaration.
798 (struct complaints): Add opaque declaration.
799 (clear_complaints): Add a complaints parameter.
800 * complaints.c: Update copyright.
801 (enum complaint_series): Define.
802 (complaint_root): Delete.
803 (struct complaints): Define.
804 (complaint_sentinel, symfile_complaint_book): New variables.
805 (symfile_explanations, symfile_complaints): New variables.
806 New variables.
807 (get_complaints): New function.
808 (vcomplaint): New function.
809 (complaint): New function.
810 (internal_complaint): New function.
811 (complain): Call vcomplain with symfile_complaint.
812 (clear_complaints): Rewrite.
813 (_initialize_complaints): Use add_setshow_command.
814 * Makefile.in (complaints.o): Update dependencies.
815 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
816 to call to clear_complaints.
817 (new_symfile_objfile, reread_symbols): Ditto.
818 (oldsyms_complaint): Delete.
819 (empty_symtab_complaint, unknown_option_complaint): Delete.
820 (free_named_symtabs): Use complaint instead of complain.
821
822 2002-09-18 Michael Snyder <msnyder@redhat.com>
823
824 Contributed by Apple Computer, Inc. Merged with current sources
825 by Adam Fedor <fedor@doc.com> [cagney].
826
827 * objc-lang.c: First clean-up round: comments, indentation.
828 * objc-lang.h: Ditto.
829 * objc-lang.y: Ditto.
830
831 2002-09-18 Andrew Cagney <ac131313@redhat.com>
832
833 * maint.c (maintenance_internal_error): Print the parameter as the
834 error message.
835 (maintenance_internal_warning): New function.
836 (_initialize_maint_cmds): Add command `maint internal-warning'.
837
838 * defs.h (internal_warning, internal_vwarning): Declare.
839 * utils.c (struct internal_problem): Define.
840 (internal_vproblem): New function.
841 (internal_warning): New function.
842 (internal_vwarning): New function.
843 (internal_warning_problem, internal_error_problem): New variables.
844 (internal_verror): Just call internal_vproblem.
845
846 2002-09-18 Michael Snyder <msnyder@redhat.com>
847
848 * objc-lang.c: New file, support for Objective-C.
849 Preliminary check-in, not yet integrated into gdb.
850 * objc-lang.h: New file.
851 * objc-exp.y: New file.
852
853 2002-09-18 Andrew Cagney <ac131313@redhat.com>
854
855 * infrun.c (signal_stop_update): Convert definition to ISO C.
856 (signal_print_update): Ditto.
857 (signal_pass_update): Ditto.
858 * inflow.c (terminal_save_ours): Ditto.
859
860 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
861 comments.
862
863 * config/djgpp/fnchange.lst: Handle name clashes between
864 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
865 bfd/coff-tic80.c.
866
867 * i386-linux-tdep.h: Fix tipo.
868
869 2002-09-18 Adam Fedor <fedor@gnu.org>
870
871 * MAINTAINERS: Add myself to the Write After Approval list.
872
873 2002-09-18 Jim Blandy <jimb@redhat.com>
874
875 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
876 texthigh and textlow to reader-specific structs caused
877 objfile_relocate to miss them. This is fixable, but the work that
878 the change was supposed to prepare GDB for never got done anyway.
879
880 2002-09-18 David Carlton <carlton@math.stanford.edu>
881
882 * MAINTAINERS: Alphabetize Write After Approval list.
883
884 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
885
886 Fix PR gdb/709
887 * values.c (value_static_field): Call read_var_value.
888
889 2002-09-18 Andrew Cagney <ac131313@redhat.com>
890
891 * valops.c (hand_function_call): Align the initial stack pointer
892 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
893 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
894 return value.
895 * mips-tdep.c (mips_frame_align): New function.
896 (mips_gdbarch_init): Set frame_align.
897 * gdbarch.sh (FRAME_ALIGN): New method.
898 * gdbarch.h, gdbarch.c: Re-generate.
899
900 2002-09-18 Michal Ludvig <mludvig@suse.cz>
901
902 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
903 registers.
904
905 2002-09-17 Andrew Cagney <ac131313@redhat.com>
906
907 * NEWS: Mention that MIPS $fp behavior changed.
908 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
909 reference to FP_REGNUM.
910 (mipsnbsd_cannot_store_register): Ditto.
911 * mips-linux-nat.c: Update copyright.
912 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
913 (mips_linux_cannot_store_register): Ditto.
914 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
915 * config/mips/tm-mips.h: Update copyright.
916 (FP_REGNUM): Delete macro.
917 (MIPS_REGISTER_NAMES): Replace "fp" with "".
918 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
919 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
920 (mips_r3041_reg_names, mips_r3051_reg_names)
921 (mips_r3081_reg_names): Replace "fp" with "".
922 Fix PR gdb/480.
923
924 2002-09-17 Theodore A. Roth <troth@verinet.com>
925
926 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
927 generic_read_register_dummy() (PR gdb/703).
928 (avr_push_return_address): #if 0 out unused vars.
929 (avr_gdbarch_init): Enable use of avr_push_return_address().
930
931 2002-09-17 Michael Snyder <msnyder@redhat.com>
932
933 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
934 RTE will take care of it.
935
936 2002-09-17 Andrew Cagney <ac131313@redhat.com>
937
938 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
939 invalid, return SP_REGNUM.
940
941 2002-09-17 Michael Snyder <msnyder@redhat.com>
942
943 * mips-tdep.c (mips_pop_frame): Read saved values of floating
944 point registers without sign extension.
945
946 2002-09-17 Andrew Cagney <cagney@redhat.com>
947
948 * blockframe.c (deprecated_read_register_dummy): Rename
949 generic_read_register_dummy.
950 * frame.c (frame_unwind_signed_register): New function.
951 (frame_unwind_unsigned_register): New function.
952 * frame.h (frame_unwind_signed_register): Declare.
953 (frame_unwind_unsigned_register): Declare.
954 (deprecated_read_register_dummy): Rename
955 generic_read_register_dummy.
956
957 * h8300-tdep.c (h8300_frame_chain): Update.
958 (h8300_frame_saved_pc): Update.
959 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
960 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
961 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
962 (s390_frame_chain): Update.
963 * v850-tdep.c (v850_find_callers_reg): Update.
964 (v850_frame_saved_pc): Update.
965 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
966 (m32r_find_callers_reg): Update.
967 (m32r_frame_saved_pc): Update.
968 * sh-tdep.c (sh_find_callers_reg): Update.
969 (sh64_get_saved_pr): Update.
970 (sh_init_extra_frame_info): Update.
971 (sh_init_extra_frame_info): Update.
972 (sh64_init_extra_frame_info): Update.
973 (sh64_init_extra_frame_info): Update.
974 * mcore-tdep.c (mcore_find_callers_reg): Update.
975 (mcore_frame_saved_pc): Update.
976 (mcore_init_extra_frame_info): Update.
977 * i386-tdep.c (i386_frame_saved_pc): Update.
978 * ia64-tdep.c (ia64_frame_saved_pc): Update.
979 (ia64_init_extra_frame_info): Update.
980 (ia64_init_extra_frame_info): Update.
981 * d10v-tdep.c (d10v_frame_saved_pc): Update.
982 * cris-tdep.c (cris_init_extra_frame_info): Update.
983 * avr-tdep.c (avr_frame_chain): Update.
984 (avr_init_extra_frame_info): Update.
985 (avr_frame_saved_pc): Update.
986 * arm-tdep.c (arm_find_callers_reg): Update.
987 (arm_init_extra_frame_info): Update.
988 (arm_frame_saved_pc): Update.
989
990 2002-09-17 Tom Tromey <tromey@redhat.com>
991
992 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
993 is "'".
994
995 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
996
997 * MAINTAINERS: Remove "non multi-arched" text from h8300.
998 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
999 NEXT_PROLOGUE_INSN.
1000 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1001 NEXT_PROLOGUE_INSN.
1002
1003 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1004
1005 * osfsolib.c: Remove file, replaced by solib-osf.c.
1006 * Makefile.in: Remove compilation rules for osfsolib.c.
1007
1008 2002-09-16 David Carlton <carlton@math.stanford.edu>
1009
1010 * cp-valprint.c (cp_print_class_method): Correct args to
1011 check_stub_method_group.
1012
1013 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1014
1015 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1016 `set architecture'. Unify naming convention of functions.
1017 (h8300_skip_prologue): Improve prologue analysis.
1018 (h8300_push_arguments): Rewritten to more closely match GCC's
1019 bizarre argument-passing behavior, along with the comment describing
1020 said behavior.
1021 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1022 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1023 sim, remote-e7000.c, remote-hms.c and remote.c
1024
1025 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1026
1027 * i386-tdep.c (gdb_print_insn_i386): Removed.
1028 (i386_print_insn): New function.
1029 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1030 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1031 tm_print_insn_info.
1032
1033 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1034
1035 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1036 zero.
1037
1038 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1039
1040 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1041 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1042 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1043
1044 2002-09-13 Christopher Faylor <cgf@redhat.com>
1045
1046 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1047
1048 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1049
1050 * gdbtypes.c (check_stub_method): Make static.
1051 (check_stub_method_group): New function.
1052 * gdbtypes.h: Update prototypes.
1053 * cp-support.c: New file.
1054 * cp-support.h: New file.
1055
1056 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1057 (update_method_name_from_physname): New function.
1058 (read_member_functions): Correct method names for operators
1059 and v3 constructors/destructors. Separate v2 constructors and
1060 destructors.
1061 * Makefile.in (stabsread.o): Update dependencies.
1062 (SFILES): Add cp-support.c.
1063 (COMMON_OBS): Add cp-support.o.
1064 (cp_support_h, cp-support.o): Add.
1065
1066 * cp-valprint.c (cp_print_class_method): Call
1067 check_stub_method_group instead of check_stub_method. Remove
1068 extraneous QUITs.
1069 * p-valprint.c (pascal_object_print_class_method): Likewise.
1070 * valops.c (search_struct_method): Likewise.
1071 (find_method_list, value_struct_elt_for_reference): Likewise.
1072
1073 2002-09-13 Andrew Cagney <cagney@redhat.com>
1074
1075 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1076 * gdbarch.h, gdbarch.c: Regenerate.
1077
1078 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1079
1080 * frame.c (find_saved_register): Delete function.
1081 * frame.h (find_saved_register): Delete declaration.
1082 Fix PR gdb/631.
1083
1084 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1085
1086 * mips-tdep.c (read_next_frame_reg): Re-hack using
1087 frame_register_unwind.
1088
1089 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1090
1091 * mips-tdep.c (mips_get_saved_register): Re-hack using
1092 frame_register_unwind.
1093
1094 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1095
1096 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1097 vector. Will be useful for Interix.
1098 * gdbarch.h, gdbarch.c: Regenerate.
1099
1100 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1101 name of the malloc function by NAME_OF_MALLOC.
1102
1103 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1104
1105 * value.h (find_function_in_inferior): Add const keyword to
1106 one of the parameters. Allows us to invoke this function with
1107 a const char *.
1108 * valops.c (find_function_in_inferior): Likewise.
1109
1110 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1111
1112 * exec.c (xfer_memory): Fix compilation warning with old versions
1113 of GCC.
1114 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1115
1116 2002-09-12 David Carlton <carlton@math.stanford.edu>
1117
1118 * symtab.h: Run through gdb_indent.h.
1119 Add 2002 to Copyright year list.
1120
1121 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1122
1123 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1124 mach constants.
1125 * MAINTAINERS: Add myself to write after approval list.
1126
1127 2002-09-11 J. Brobecker <brobecker@gnat.com>
1128
1129 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1130
1131 2002-09-11 J. Brobecker <brobecker@gnat.com>
1132
1133 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1134 Interix.
1135
1136 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1137
1138 * procfs.c (do_detach): Clear current signal, not just fault.
1139 Corrects problem with breakpoint trap signal leaking to detached
1140 process on Tru64.
1141
1142 2002-09-10 Michael Snyder <msnyder@redhat.com>
1143
1144 * buildsym.c (finish_block): Protect against null pointer.
1145
1146 2002-09-10 Andrew Cagney <cagney@redhat.com>
1147
1148 * infcmd.c (default_print_registers_info): Send all output to
1149 ``file'' instead of ``gdb_stdout''.
1150
1151 2002-09-10 Michael Snyder <msnyder@redhat.com>
1152
1153 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1154 LONGEST, and use signed register read (addresses are sign-
1155 extended for mips).
1156
1157 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1158
1159 * event-loop.c (gdb_do_one_event): Make public.
1160 * event-loop.h (gdb_do_one_event): Declare.
1161
1162 2002-09-10 Jeff Law <law@redhat.com>
1163
1164 * infttrace.c (child_resume): Simplify and rework to avoid
1165 TT_PROC_CONTINUE.
1166
1167 2002-09-09 Fred Fish <fnf@intrinsity.com>
1168
1169 * printcmd.c (print_scalar_formatted): "len" is the number of
1170 target bytes, NOT the number of target bits.
1171
1172 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1173
1174 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1175 * top.c (init_main): Set rl_terminal_name.
1176
1177 2002-09-08 Aidan Skinner <aidan@velvet.net>
1178
1179 * ada-lang.c (ada_array_bound, ada_type_match,
1180 _initialize_ada_language): Fix K&R definitions.
1181 * ada-tasks.c (get_current_task): Fix K&R definitions.
1182 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1183
1184 2002-09-07 Christopher Faylor <cgf@redhat.com>
1185
1186 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1187 Add XP.
1188
1189 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1190
1191 * i386-tdep.c (i386_register_virtual_type,
1192 i386_register_convertible, i386_register_convert_to_virtual,
1193 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1194 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1195 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1196 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1197 Don't set push_arguments twice.
1198
1199 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1200 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1201 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1202 sigtramp_end to NULL.
1203 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1204 defines.
1205 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1206
1207 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1208 whitespace.
1209
1210 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1211 * gdbarch.h, gdbarch.c: Re-generate.
1212 * blockframe.c (find_pc_sect_partial_function): Convert to use
1213 SIGTRAMP_START_P predicate.
1214
1215 2002-09-05 Michael Snyder <msnyder@redhat.com>
1216
1217 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1218 generic_dummy_frame method and old method. Also distinguish
1219 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1220 (arm_extract_return_value): Use new regcache method.
1221
1222 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1223 adjustment that doesn't conform to the ABI.
1224 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1225 saved regcache, not from current regcache.
1226
1227 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1228
1229 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1230 * README: Update.
1231
1232 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1233
1234 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1235 if arm_apcs_32 is false.
1236
1237 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1238
1239 GDB 5.3 branch created.
1240
1241 2002-09-03 Theodore A. Roth <troth@verinet.com>
1242
1243 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1244 generic_unwind_get_saved_register.
1245
1246 2002-09-03 David Carlton <carlton@math.stanford.edu>
1247
1248 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1249 argument (PR gdb/653). Update call to smash_to_method_type.
1250 (read_structure_scope): Update call to dwarf2_add_member_fn.
1251
1252 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1253
1254 * x86-64-linux-tdep.c: Include gdb_string.h
1255 * x86-64-linux-nat.c: Ditto.
1256
1257 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1258
1259 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1260 when YYDEBUG is set to 1.
1261 * c-exp.y: Likewise.
1262 * f-exp.y: Likewise.
1263 * jv-exp.y: Likewise.
1264 * m2-exp.y: Likewise.
1265 * p-exp.y: Likewise.
1266
1267 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1268
1269 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1270 dependency list.
1271 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1272 solib_svr4_fetch_link_map_offsets to
1273 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1274 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1275 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1276 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1277 solib-svr4.o, and solib-legacy.o.
1278 * config/i386/tm-nbsd.h: Include solib.h.
1279
1280 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1281
1282 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1283 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1284 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1285 comment noting that this needs its own target configuration.
1286 * config/i386/nbsd.mt: New file.
1287 * config/i386/nbsdaout.mt: Remove.
1288 * config/i386/nbsdelf.mt: Ditto.
1289 * config/i386/tm-nbsdaout.h: Ditto.
1290
1291 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1292
1293 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1294 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1295 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1296 tdep->sigtramp_end.
1297 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1298 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1299 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1300
1301 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1302
1303 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1304 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1305 * i386-tdep.h (i386bsd_init_abi): New prototype.
1306 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1307 function declaration.
1308 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1309 for NetBSD-a.out or NetBSD-ELF.
1310 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1311 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1312 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1313 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1314 and nbsd-tdep.h.
1315 (i386nbsd_pc_in_sigtramp): New function.
1316 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1317 i386nbsd_pc_in_sigtramp.
1318 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1319 and i386nbsdelf_init_abi OS ABI handlers.
1320 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1321 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1322
1323 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1324
1325 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1326 registers if the target really has them.
1327
1328 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1329
1330 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1331 than nbsd-tdep.h.
1332
1333 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1334
1335 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1336 list.
1337 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1338 (alphanbsd_skip_sigtramp_frame): New functions.
1339 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1340 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1341 to alphanbsd_sigcontext_addr.
1342
1343 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1344
1345 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1346 list.
1347 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1348 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1349 nbsd_pc_in_sigtramp.
1350 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1351 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1352 * nbsd-tdep.c: Include gdb_string.h.
1353 (nbsd_pc_in_sigtramp): New function.
1354 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1355 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1356 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1357 ppcnbsd_pc_in_sigtramp.
1358 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1359 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1360 shnbsd_pc_in_sigtramp.
1361 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1362 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1363 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1364
1365 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1366
1367 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1368 watchpoints to NULL.
1369 (insert_breakpoints): set val field of watchpoints if NULL.
1370
1371
1372 2002-08-29 Jim Blandy <jimb@redhat.com>
1373
1374 * symtab.c (lookup_symbol_aux): In the cases where we find a
1375 minimal symbol of an appropriate name and use its address to
1376 select a symtab to read and search, use `name' (as passed to us)
1377 as the demangled name when searching the symtab's global and
1378 static blocks, not the minsym's name.
1379
1380 2002-08-29 Keith Seitz <keiths@redhat.com>
1381
1382 * stack.c (print_frame_info_base): Always set current_source_symtab
1383 and current_source_line.
1384
1385 2002-08-29 Donn Terry <donnte@microsoft.com>
1386
1387 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1388
1389 2002-08-28 Keith Seitz <keiths@redhat.com>
1390
1391 * stack.c (select_frame): Add FIXME concerning selected-frame
1392 events.
1393 (select_frame_command): Send selected-frame-level-changed
1394 event notification, but only if the level actually changed.
1395 (up_silently_base): Add selected-frame-level-changed event
1396 notification.
1397 (down_silently_base): Likewise.
1398
1399 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1400
1401 * Makefile.in: Update dependencies for all gdb/*.c files.
1402
1403 2002-08-27 Tom Tromey <tromey@redhat.com>
1404
1405 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1406 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1407 Update dependencies.
1408 * i387-tdep.c: Include gdb_string.h.
1409 * osabi.c: Likewise.
1410 * i386-linux-nat.c: Likewise.
1411 * lin-lwp.c: Likewise.
1412 * ax-gdb.c: Likewise.
1413 * signals/signals.c: Likewise.
1414 * jv-valprint.c: Likewise.
1415 * p-lang.c: Likewise.
1416 * c-valprint.c: Likewise.
1417 * cp-abi.c: Likewise.
1418
1419 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1420
1421 * cli/cli-script.h (copy_command_lines): Export.
1422 * breakpoint.c: Include cli/cli-script.h.
1423 * Makefile.in (breakpoint.o): Update dependencies.
1424
1425 2002-08-26 Michael Snyder <msnyder@redhat.com>
1426
1427 * breakpoint.c (insert_breakpoints): Protect all references
1428 to 'process_warning'. Shorten long lines.
1429
1430 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1431
1432 * cli/cli-script.c (copy_command_lines): New function.
1433 * defs.h (copy_command_lines): Export.
1434 * testsuite/gdb.base/commands.exp: New tests for commands
1435 attached to a temporary breakpoint, and for commands that
1436 delete the breakpoint they are attached to.
1437
1438 2002-08-26 Michael Snyder <msnyder@redhat.com>
1439
1440 * breakpoint.c (bpstat_stop_status): Instead of copying the
1441 pointer to the breakpoint commands struct, make a new copy
1442 of the struct and point to that.
1443 (bpstat_clear): Free the commands struct.
1444 (bpstat_clear_actions): Free the commands struct.
1445 (bpstat_do_actions): Free the command actions. Also execute
1446 the local cleanups, instead of deleting them.
1447 (delete_breakpoint): Leave the commands field of the bpstat
1448 chain alone -- it will be freed later.
1449
1450 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1451
1452 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1453 deleted in 2002-08-20 commit. This function is still used by
1454 ppc-linux-nat.c.
1455
1456 2002-08-26 Keith Seitz <keiths@redhat.com>
1457
1458 * gdb-events.sh: Add selected-frame-level-changed event.
1459 * gdb-events.c: Regenerated.
1460 * gdb-events.h: Regenerated.
1461
1462 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1463
1464 Fix PR gdb/393:
1465 * inflow.c (terminal_save_ours): New function to save terminal
1466 settings.
1467 * inferior.h (terminal_save_ours): Declare.
1468 * target.c (debug_to_terminal_save_ours): New function.
1469 (cleanup_target): Defaults to_terminal_save_ours.
1470 (update_current_target): Inherit to_terminal_save_ours.
1471 (setup_target_debug): Set to_terminal_save_ours.
1472 * target.h (target_terminal_save_ours): New to save terminal settings.
1473 (target_ops): New member to_terminal_save_ours.
1474 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1475 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1476 * inftarg.c (init_child_ops): Likewise.
1477 * m3-nat.c (init_m3_ops): Likewise.
1478 * procfs.c (init_procfs_ops): Likewise.
1479 * wince.c (init_child_ops): Likewise.
1480 * win32-nat.c (init_child_ops): Likewise.
1481 * sol-thread.c (init_sol_thread_ops): Likewise.
1482
1483 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1484
1485 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1486 use regcache_* functions.
1487 (i386_gdbarch_init): Set store_return_value instead of
1488 deprecated_store_return_value.
1489
1490 * regcache.c (regcache_raw_write_signed,
1491 regcache_raw_write_unsigned): New functions.
1492 * regcache.h (regcache_raw_write_signed,
1493 regcache_raw_write_unsigned): New prototypes.
1494
1495 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1496
1497 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1498 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1499 source file dependencies. Cleanup corresponding generator rules.
1500
1501 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1502
1503 * regcache.h (register_offset_hack): Declare.
1504 (regcache_cooked_read_using_offset_hack): Declare.
1505 (regcache_cooked_write_using_offset_hack): Declare.
1506
1507 * regcache.c (register_offset_hack): New function.
1508 (regcache_cooked_read_using_offset_hack): New function.
1509 (regcache_cooked_write_using_offset_hack): New function.
1510 (regcache_dump): Check that the registers, according to their
1511 offset, are packed hard against each other.
1512 (cooked_xfer_using_offset_hack): New function.
1513
1514 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1515
1516 * regcache.c (struct regcache_descr): Add field register_type.
1517 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1518 in as a parameter
1519 (init_regcache_descr): Initialize register_type. Pass the descr
1520 to init_legacy_regcache_descr. Use register_type instead of
1521 REGISTER_VIRTUAL_TYPE.
1522 (register_type): New function.
1523 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1524 * regcache.h (register_type): Declare.
1525
1526 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1527
1528 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1529 instead of deprecated_store_return_value. Fix fallout from
1530 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1531
1532 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1533
1534 * regcache.c (max_register_size): New function.
1535 (init_legacy_regcache_descr): Ensure that max_register_size is
1536 large enough for REGISTER_VIRTUAL_SIZE.
1537 * regcache.h (max_register_size): Declare.
1538
1539 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1540
1541 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1542 store_return_value.
1543 (e500_extract_return_value): Change type of valbuf pointer to
1544 void.
1545
1546 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1547
1548 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1549 workaround.
1550
1551 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1552 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1553 long long) to prevent compiler warning on 64-bit systems.
1554
1555 2002-08-23 Andrew Cagney <cagney@redhat.com>
1556
1557 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1558 (DEPRECATED_STORE_RETURN_VALUE): New method.
1559 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1560 * gdbarch.h, gdbarch.c: Re-generate.
1561
1562 * values.c (set_return_value): Pass current_regcache to
1563 STORE_RETURN_VALUE.
1564 * arch-utils.h (legacy_store_return_value): Declare.
1565 * arch-utils.c (legacy_store_return_value): New function.
1566 (legacy_extract_return_value): Update parameters.
1567
1568 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1569 STORE_RETURN_VALUE.
1570 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1571 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1572 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1573 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1574 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1575 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1576 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1577 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1578 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1579 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1580
1581 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1582 * i386-tdep.c (i386_extract_return_value): Update.
1583 * arch-utils.c (legacy_extract_return_value): Update.
1584 * frv-tdep.c (frv_gdbarch_init): Update.
1585 * cris-tdep.c (cris_gdbarch_init): Update.
1586 * d10v-tdep.c (d10v_gdbarch_init): Update.
1587 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1588 * m68k-tdep.c (m68k_gdbarch_init): Update.
1589 * mcore-tdep.c (mcore_gdbarch_init): Update.
1590 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1591 * s390-tdep.c (s390_gdbarch_init): Update.
1592 * sparc-tdep.c (sparc_gdbarch_init): Update.
1593 * sh-tdep.c (sh_gdbarch_init): Update.
1594 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1595 * v850-tdep.c (v850_gdbarch_init): Update.
1596 * avr-tdep.c (avr_gdbarch_init): Update.
1597 * ia64-tdep.c (ia64_gdbarch_init): Update.
1598 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1599 * vax-tdep.c (vax_gdbarch_init): Update.
1600 * alpha-tdep.c (alpha_gdbarch_init): Update.
1601 * arm-tdep.c (arm_gdbarch_init): Update.
1602 * mips-tdep.c (mips_gdbarch_init): Update.
1603 * i386-tdep.c (i386_gdbarch_init): Update.
1604
1605 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1606
1607 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1608 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1609
1610 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1611
1612 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1613 problems.
1614
1615 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1616
1617 * infrun.c (handle_inferior_event): Move a comment outside of a
1618 function call, in order to avoid indent reformatting this part
1619 of the code in an unreadable way.
1620
1621 2002-08-23 Grace Sainsbury <graces@redhat.com>
1622
1623 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1624 when breakpoints fail. Move general breakpoint error messages to
1625 insert_breakpoints.
1626 * breakpoint.c (insert_breakpoints): Change warnings when
1627 breakpoints are nto inserted to specify the type. Remove call to
1628 memory_error when hardware breakpoints can't be inserted. Remove
1629 multiple calls to warning so all messages are sent to the user at
1630 once.
1631 (delete_breakpoints): Make insert error messsages more explicit.
1632
1633 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1634
1635 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1636 gdbserver/ChangeLog.
1637
1638 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1639
1640 * i386-tdep.c: Include "objfiles.h".
1641 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1642 skip_trampoline_code.
1643 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1644 (CPLUS_MARKER): Define to '.'.
1645
1646 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1647 member.
1648 (linux_corefile_thread_callback): Increase args->num_notes.
1649 (linux_make_note_section): Initialize thread_args.num_notes, and
1650 use it to determine whether notes for any threads were created.
1651
1652 2002-08-23 Donn Terry <donnte@microsoft.com>
1653
1654 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1655 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1656 and PCUNKILL.
1657 (write_with_trace): Conditionalize out the switch branch handling
1658 PCSHOLD if the corresponding macro is not defined. Likewise for
1659 PRSABORT and PRSTOP.
1660 This change will be needed by the Interix port.
1661
1662 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1663
1664 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1665 write_register wherever possible instead of manipulating the
1666 register bytes directly.
1667 Assign VALUE_CONTENTS to a variable and use that.
1668 The GPR numbers are now dependent on the architecture.
1669
1670 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1671
1672 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1673 ev_offset fields.
1674 (skip_prologue): Add support for BookE/e500 instructions.
1675 (e500_extract_return_value): New function.
1676 (frame_get_saved_regs): Add support for saving ev registers and
1677 pseudo gpr's.
1678 (e500_store_return_value): New function.
1679 (rs6000_gdbarch_init): Move up default intializations of
1680 deprecated_extract_return_value and store_return_value. Overwrite
1681 init of store_return_value with e500 specific version.
1682 Set extract_return_value for e500.
1683
1684 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1685
1686 * blockframe.c (generic_call_dummy_register_unwind): Use
1687 regcache_cooked_read to catch cases in which the variable is
1688 stored in a pseudo register.
1689
1690 2002-08-22 Andrew Cagney <cagney@redhat.com>
1691
1692 * NEWS: Mention that the i960 has been made obsolete.
1693 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1694 i960-tdep.c
1695 (remote-nrom.o): Obsolete target.
1696 (remote-nindy.o, i960-tdep.o): Ditto.
1697 * remote-nrom.c: Make file obsolete.
1698 * remote-nindy.c, remote-vx960.c: Ditto.
1699 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1700 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1701 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1702 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1703 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1704 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1705 i960-*-vxworks* obsolete.
1706 * MAINTAINERS: Note that the i960 is obsolete.
1707
1708 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1709
1710 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1711 detach to allow reinitialization.
1712
1713 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1714
1715 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1716 attempt).
1717
1718 2002-08-22 Jim Blandy <jimb@redhat.com>
1719
1720 * coffread.c (coff_symfile_read): Don't try to read the line
1721 number table from disk if the image file doesn't have a symbol
1722 table; we'll never actually look at the info anyway, and Windows
1723 ships DLL's with bogus file offsets for the line number data.
1724
1725 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1726
1727 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1728 an e500 executable.
1729
1730 2002-08-21 Michael Snyder <msnyder@redhat.com>
1731
1732 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1733 (MSYMBOL_SIZE): Replace macro with function.
1734 (DEFAULT_MIPS_TYPE): Delete unused macro.
1735 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1736 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1737
1738 2002-08-21 Jim Blandy <jimb@redhat.com>
1739
1740 * valops.c (value_cast): Simplify and correct logic for doing a
1741 static cast from a pointer to a base class to a pointer to a
1742 derived class.
1743
1744 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1745
1746 * infcmd.c (default_print_registers_info): Replace
1747 do_registers_info.
1748 (registers_info): Use gdbarch_print_registers_info instead of
1749 DO_REGISTERS_INFO.
1750 * inferior.h (default_print_registers_info): Replace
1751 do_registers_info.
1752 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1753 (DO_REGISTERS_INFO): Change to a predicate function.
1754 * gdbarch.h, gdbarch.c: Regenerate.
1755
1756 2002-08-21 Keith Seitz <keiths@redhat.com>
1757
1758 * gdb-events.sh: Add target-changed event.
1759 * gdb-events.c: Regenerated.
1760 * gdb-events.c: Regenerated.
1761 * valops.c (value_assign): Add target-changed event notification
1762 to inlval_register, lval_memory, and lval_reg_frame_relative.
1763
1764 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1765
1766 * NEWS: Add an entry regarding the improvement of the next/step
1767 operation on Alpha Tru64 multi-processor machines.
1768
1769 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1770
1771 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1772 directores.
1773 * Makefile.in: Update all _h macro definitions.
1774 * Makefile.in (install-gdbtk): Move to install section.
1775 (rdi-share/libangsd.a): Move to end of file.
1776
1777 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1778
1779 * frame.c (frame_register_unwind): When a register, set addrp to
1780 the register's byte.
1781
1782 2002-08-20 Michael Snyder <msnyder@redhat.com>
1783
1784 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1785 used locally, so move them from the target machine header to here.
1786 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1787 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1788 Make static.
1789 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1790
1791 2002-08-20 Andrew Cagney <cagney@redhat.com>
1792
1793 * NEWS: Mention that the Apollo line was made obsolete.
1794 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1795 m68*-hp-hpux* obsolete.
1796 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1797 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1798 * buildsym.c (make_blockvector): Make static.
1799 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1800 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1801 (ALLDEPFILES): Remove dstread.c.
1802 (dstread.o): Obsolete make rule.
1803 * dstread.c: Makefile obsolete.
1804 * dst.h: Ditto.
1805 * config/m68k/hp300hpux.mt: Ditto.
1806 * config/m68k/hp300hpux.mh: Ditto.
1807 * config/m68k/hp300bsd.mt: Ditto.
1808 * config/m68k/hp300bsd.mh: Ditto.
1809 * config/m68k/apollo68b.mt: Ditto.
1810 * config/m68k/apollo68v.mh: Ditto.
1811 * config/m68k/apollo68b.mh: Ditto.
1812
1813 2002-08-20 Michael Snyder <msnyder@redhat.com>
1814
1815 * mips-tdep.c (mips_in_return_stub): Make static.
1816 (mips_gdbarch_init): Set in_solib_return_trampoline.
1817 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1818
1819 2002-08-20 Michael Snyder <msnyder@redhat.com>
1820
1821 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1822 * gdbarch.c, gdbarch.h: Regenerate.
1823 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1824 Add.
1825 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1826
1827 2002-08-20 Michael Snyder <msnyder@redhat.com>
1828
1829 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1830 (mips_gdbarch_init): Set skip_trampoline_code,
1831 in_solib_call_trampoline.
1832 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1833 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1834
1835 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1836
1837 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1838
1839 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1840 vector type for ev registers.
1841 (e500_pseudo_register_read): New function.
1842 (e500_pseudo_register_write): New function.
1843 (e500_dwarf2_reg_to_regnum): New function.
1844 (PPC_UISA_NOFP_SPRS): New macro.
1845 (PPC_EV_REGS): New macro.
1846 (PPC_GPRS_PSEUDO_REGS): New macro.
1847 (registers_e500): New register set for e500.
1848 (variants): Add e500 variant.
1849 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1850 before setting architectural dependent variations. Initialize ev
1851 registers numbers. Add case for e500 architecture. Set the
1852 number of pseudo registers.
1853
1854 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1855
1856 * rs6000-tdep.c: Clean up comments.
1857
1858 2002-08-20 Andrew Cagney <cagney@redhat.com>
1859
1860 * h8300-tdep.c: Re-indent file.
1861
1862 2002-08-20 Jim Blandy <jimb@redhat.com>
1863
1864 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1865 default for this.
1866
1867 2002-08-20 Keith Seitz <keiths@redhat.com>
1868
1869 * breakpoints.c (watch_command_1): Use internal breakpoint
1870 when setting a watchpoint_scope breakpoint.
1871
1872 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1873
1874 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1875 (build_builtin_type_vec64i): Ditto.
1876 (build_builtin_type_vec128): Ditto.
1877 (build_builtin_type_vec128i): Ditto.
1878
1879 2002-08-19 Michael Snyder <msnyder@redhat.com>
1880
1881 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1882 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1883 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1884 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1885 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1886 CALL_DUMMY_ADDRESS): Delete.
1887 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1888 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1889 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1890 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1891 push_return_address.
1892 (mips_register_raw_size, mips_eabi_use_struct_convention,
1893 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1894 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1895 mips_init_extra_frame_info, mips_eabi_push_arguments,
1896 mips_n32n64_push_arguments, mips_push_return_address,
1897 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1898 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1899
1900 2002-08-19 Michael Snyder <msnyder@redhat.com>
1901
1902 * mips-tdep.c (mips_frame_num_args): New function.
1903 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1904 frame_saved_pc, frame_args_address, frame_locals_address,
1905 frame_num_args, and frame_args_skip.
1906 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1907 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1908 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1909 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1910
1911 2002-08-20 Michael Snyder <msnyder@redhat.com>
1912
1913 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1914 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1915 * mips-tdep.c (mips_store_struct_return): New function.
1916 (mips_extract_struct_value_address): New function.
1917 (mips_gdbarch_init): Set store_struct_return and
1918 extract_struct_value_address.
1919
1920 2002-08-20 David Carlton <carlton@math.stanford.edu>
1921
1922 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1923 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1924 (read_file_scope): Check that line_header is nonzero before
1925 decoding macro information.
1926
1927 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1928
1929 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1930 flag the general-purpose registers as floating-point on targets
1931 that don't support the floating-point registers.
1932
1933 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1934
1935 * rs6000-tdep.c (altivec_register_p): Delete.
1936 (rs6000_do_altivec_registers): Delete.
1937 (rs6000_altivec_registers_info): Delete.
1938 (rs6000_do_registers_info): Delete.
1939 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1940 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1941
1942 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1943
1944 * infcmd.c (do_registers_info): Print vector registers in hex
1945 format only.
1946 (print_vector_info): Check that printing registers
1947 makes sense.
1948 (print_float_info): Ditto.
1949
1950 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1951
1952 * mips-tdep.c (mips_gdbarch_init): Update.
1953 (mips_o32_extract_return_value): Rewrite.
1954 (mips_o32_store_return_value): Rewrite.
1955 (mips_o32_xfer_return_value): New function.
1956 (mips_xfer_register): Tweak debug print message. Allow for
1957 buf_offset when dumping the value transfered.
1958
1959 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1960
1961 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1962 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1963 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1964 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1965 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1966
1967 2002-08-14 Michael Snyder <msnyder@redhat.com>
1968
1969 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1970
1971 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1972
1973 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1974 register.
1975 (P): New macro to define a register as a pseudo register.
1976 (R, R4, R8, R16, FR32, R64, R0): Updated.
1977 (struct variant): Add new fields for number of pseudo registers
1978 and number of total registers.
1979 (tot_num_registers): New macro replacing....
1980 (num_registers): ...deleted macro.
1981 (num_registers): New function.
1982 (num_pseudo_registers): New function.
1983 (variants): Update all variants to intialize new fields correctly.
1984 Postpone initialization of number of pseudo regs and real regs.
1985 (init_variants): New function.
1986 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1987 registers offsets.
1988
1989 2002-08-19 David Carlton <carlton@math.stanford.edu>
1990
1991 * valops.c (search_struct_field): Change error message to treat
1992 return value of 0 from value_static_field as meaning that field is
1993 optimized out.
1994 (value_struct_elt_for_reference): Ditto.
1995 * values.c (value_static_field): Treat an unresolved location the
1996 same as a nonexistent symbol. Fix PR gdb/635.
1997 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1998 enclosed. Fix PR gdb/574.
1999 * MAINTAINERS: Add self to Write After Approval list.
2000
2001 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2002
2003 * mips-tdep.c (mips_xfer_register): New function.
2004 (mips_n32n64_extract_return_value): Rewrite.
2005 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2006 instead of deprecated_extract_return_value.
2007
2008 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2009
2010 * rs6000-tdep.c (TDEP): Delete macro.
2011 (branch_dest): Replace use of TDEP macro with its body.
2012 (rs6000_pop_frame): Ditto.
2013 (rs6000_push_arguments): Ditto.
2014 (rs6000_skip_trampoline_code): Ditto.
2015 (rs6000_frame_saved_pc): Ditto.
2016 (rs6000_frame_chain): Ditto.
2017 (rs6000_register_name): Ditto.
2018 (rs6000_register_byte): Ditto.
2019 (rs6000_register_raw_size): Ditto.
2020 (rs6000_register_virtual_type): Ditto.
2021 (rs6000_register_convertible): Ditto.
2022 (rs6000_convert_from_func_ptr_addr): Ditto.
2023
2024 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2025
2026 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2027 conditionally.
2028 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2029 MIPS_LINUX_JB_ELEMENT_SIZE.
2030 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2031 for MAX_REGISTER_RAW_SIZE arrays.
2032 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2033 MIPS_LINUX_JB_ELEMENT_SIZE.
2034
2035 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2036
2037 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2038
2039 2002-08-19 Aidan Skinner <aidan@velvet.net>
2040
2041 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2042 ada-valprint.c ada-tasks.c.
2043 (YYFILES): Add ada-exp.y.
2044 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2045 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2046 (ada-exp.tab.o): New target.
2047
2048 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2049
2050 * regcache.c (regcache_xfer_part): New function.
2051 (regcache_raw_read_part): New function.
2052 (regcache_raw_write_part): New function.
2053 (regcache_cooked_read_part): New function.
2054 (regcache_cooked_write_part): New function.
2055 * regcache.h (regcache_raw_read_part): Declare.
2056 (regcache_raw_write_part): Declare.
2057 (regcache_cooked_read_part): Declare.
2058 (regcache_cooked_write_part): Declare.
2059
2060 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2061
2062 * remote.c (remote_open_1): Add async_p.
2063 (remote_async_open_1): Delete.
2064 (open_remote_target): Delete.
2065 (remote_open, extended_remote_open): Update calls to remote_open_1.
2066 (remote_async_open, extended_remote_async_open): Call
2067 remote_open_1 instead of remote_async_open_1.
2068
2069 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2070
2071 * blockframe.c: Fix a few coding standard violations.
2072
2073 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2074
2075 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2076 here from ...
2077 * config/i386/tm-i386sco5.h: ... here. File removed.
2078 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2079
2080 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2081 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2082 (TM_FILE): Set to tm-i386.h.
2083 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2084 * config/i386/tm-i386v.h: Remove file.
2085 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2086 instead of "i386/tm-i386v.h".
2087 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2088 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2089 "i386/tm-i386v.h".
2090 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2091 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2092 "i386/tm-i386.h".
2093
2094 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2095
2096 * config/i386/nm-i386v.h: Add protection against
2097 multiple-inclusion.
2098 (i386_register_u_addr): Remove prototype.
2099 (register_u_addr): New prototype.
2100 (REGISTER_U_ADDR): Redefine accordingly.
2101 * i386v-nat.c: Improve several comments.
2102 (i386_register_u_addr): Change signature and rename to
2103 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2104 ubase variable.
2105
2106 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2107
2108 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2109 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2110 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2111 deprecated_extract_return_value.
2112 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2113 rename mips_o32o64_push_arguments.
2114 (mips_gdbarch_init): Update.
2115 (mips_extract_return_value): Delete.
2116 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2117 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2118 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2119 (mips_n32n64_extract_return_value): Clone
2120 mips_extract_return_value.
2121 (mips_store_return_value): Delete.
2122 (mips_o32_store_return_value): Clone mips_store_return_value.
2123 (mips_o64_store_return_value): Clone mips_store_return_value.
2124 (mips_eabi_store_return_value): Clone mips_store_return_value.
2125 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2126
2127 2002-08-18 Aidan Skinner <aidan@velvet.net>
2128
2129 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2130 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2131
2132 2002-08-18 Aidan Skinner <aidan@velvet.net>
2133
2134 * ada-lang.c: Run through gdb_indent.sh.
2135 * ada-lang.h: Run through gdb_indent.sh.
2136 * ada-tasks.c: Run through gdb_indent.sh.
2137 * ada-typeprint.c: Run through gdb_indent.sh.
2138 * ada-valprint.c: Run through gdb_indent.sh.
2139
2140 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2141
2142 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2143 ABI.
2144
2145 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2146
2147 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2148
2149 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2150 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2151
2152 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2153 write_register_gen instead of write_register_bytes.
2154
2155 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2156 i[3456]-*-osf1mk* configurations have been made obsolete.
2157 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2158 i[3456]86-*-osf1mk* hosts obsolete.
2159 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2160 targets obsolete.
2161 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2162 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2163 config/i386/i386m3.mt, config/i386/nm-m3.h,
2164 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2165 config/i386/i386mk.mh, config/i386/i386mk.mt,
2166 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2167 obsolete.
2168 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2169 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2170 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2171
2172 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2173
2174 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2175 (hppa_value_returned_from_stack): Declare.
2176 (hppa_extract_return_value): Declare.
2177 * config/pa/hppa.mt: New file.
2178 * configure.tgt: Recognize hppa*-*-*.
2179 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2180
2181 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2182
2183 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2184 comment.
2185
2186 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2187
2188 * top.c (gdb_rl_operate_and_get_next): Make sure
2189 operate-and-get-next functions correctly even when the history
2190 list is completely filled.
2191
2192 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2193
2194 * MAINTAINERS (Target Instruction Set Architectures): Rename
2195 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2196 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2197 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2198 already listed under Host/Native.
2199
2200 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2201 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2202 mips*-*-*.
2203
2204 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2205
2206 * config/ia64/ia64.mt: New file.
2207 * config/alpha/alpha.mt: New file.
2208 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2209 ia64-linux-gnu. Mention that ia64-elf is broken.
2210 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2211
2212 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2213
2214 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2215 generic_func_frame_valid instead of func_frame_valid.
2216
2217 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2218
2219 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2220 procfs appears to be broken when debugging on multi-processor
2221 machines. So enable software single stepping in order to avoid
2222 using the procfs interface to do next/step operations, using
2223 internal breakpoints instead.
2224
2225 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2226 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2227 make this pc address equal to the value it would have if the
2228 system stepping capability was used. Also set a new flag used
2229 to ensure that we don't readjust the PC one more time later.
2230
2231 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2232 address by DECR_PC_AFTER_BREAK when software single step is
2233 in use for this architecture, as this has already been taken
2234 care of in handle_inferior_event().
2235
2236 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2237
2238 * infrun.c (handle_inferior_event): Minor reformatting, to make
2239 a rather long condition expression easier to read.
2240
2241 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2242
2243 * Makefile.in (gdbtk.o): Move to end of file.
2244 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2245 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2246 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2247 (gdbtk-wrapper.o, gdbres.o): Ditto.
2248
2249 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2250
2251 * Makefile.in (copying.o): Separate out compile rule.
2252 (hpux-thread.o, procfs.o, signals.o): Ditto.
2253 (v850ice.o, z8k-tdep.o): Ditto.
2254 (tui-file.o): Move to TUI section.
2255 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2256 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2257
2258 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2259
2260 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2261 skip_trampoline_code, for better namespace-proofing.
2262
2263 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2264
2265 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2266
2267 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2268
2269 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2270
2271 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2272 signal, check whether we hit a breakpoint before checking for a
2273 single step breakpoint. Otherwise, GDB fails to notice that a
2274 breakpoint has been hit when stepping onto a breakpoint.
2275
2276 2002-08-16 Keith Seitz <keiths@redhat.com>
2277
2278 * gdb-events.sh (clear_gdb_event_hooks): New function.
2279 * gdb-events.c: Regenerate.
2280 * gdb-events.h: Regenerate.
2281
2282 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2283
2284 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2285 not_a_sw_breakpoint.
2286 * breakpoint.h (bpstat_stop_status): Add parameter names.
2287
2288 2002-08-16 Grace Sainsbury <graces@redhat.com>
2289
2290 * remote.c (remote_insert_hw_breakpoint)
2291 (remote_remove_hw_breakpoint): Fix calculation of length field
2292 for Z-packet.
2293
2294 2002-08-15 Michael Snyder <msnyder@redhat.com>
2295
2296 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2297 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2298 (supply_fpregset): Ditto.
2299
2300 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2301 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2302 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2303 (TARGET_READ_SP): Delete.
2304 (DO_REGISTERS_INFO): Delete.
2305 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2306 Delete.
2307 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2308 from macros to functions.
2309
2310 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2311 (mips_register_convertible, mips_register_convert_to_virtual,
2312 mips_register_convert_to_raw): Make static.
2313 (mips_read_sp): New function.
2314 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2315 (mips_do_registers_info): Make static.
2316 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2317 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2318 (mips_register_convert_from_type, mips_register_convert_to_type):
2319 New functions.
2320 (mips_gdbarch_init): Set up function_start_offset,
2321 register_virtual_size, pc_in_sigtramp.
2322
2323 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2324
2325 * infcmd.c (vector_info): New function.
2326 (_initialize_infcmd): Add command "info vector".
2327 (print_vector_info): New function.
2328
2329 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2330 * gdbarch.h, gdbarch.c: Regenerate.
2331
2332 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2333
2334 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2335 ``print_all''. Only print vector registers when ``print_all''.
2336
2337 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2338
2339 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2340 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2341
2342 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2343 Add `args' parameter.
2344 * gdbarch.h, gdbarch.c: Regenerate.
2345
2346 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2347
2348 * infcmd.c (float_info): Call print_float_info.
2349 (print_float_info): New function. By default, print the
2350 floating-point registers.
2351
2352 * arch-utils.h (default_print_float_info): Delete declaration.
2353 * arch-utils.c (default_print_float_info): Delete function.
2354
2355 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2356
2357 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2358 out define.
2359
2360 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2361 FRAME.
2362
2363 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2364 * configure.host: Make i[3456]86-*-aix host obsolete.
2365 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2366 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2367 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2368 config/i386/xm-i386aix.h: Make files obsolete.
2369 * i386aix-nat.c: Make file obsolete.
2370 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2371 (i386aix-nat.o): Make target obsolete.
2372
2373 * config/i386/nm-gnu.h: Removed.
2374 * config/i386/nm-i386gnu.h: New file.
2375 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2376 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2377 Moved here from ...
2378 * config/i386/tm-i386gnu.h: ... here. Removed.
2379 * config/i386/xm-i386gnu.h: Removed.
2380 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2381 (NAT_FILE): Set to nm-i386gnu.h.
2382 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2383 * i386-tdep.c: New file.
2384 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2385 (i386gnu-tdep.o): Specify dependencies.
2386
2387 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2388
2389 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2390 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2391 Adjust a few comments to reflect reality a bit closer.
2392 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2393 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2394 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2395 target_insert_watchpoint, target_remove_watchpoint):
2396 Move defines to ...
2397 * config/i386/nm-i386sco5.h: ... here.
2398 (kernel_u_size): Add prototype. Improve a few comments and add
2399 protection against multiple inclusion.
2400
2401 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2402 out define.
2403
2404 * uw-thread.c (SP_ARG0): Define if not already defined.
2405 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2406
2407 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2408
2409 * config/i386/tm-i386.h: Don't include "regcache.h".
2410
2411 * i387-tdep.h (i387_print_float_info): New prototype.
2412 * i387-tdep.c (print_i387_value, print_i387_ext,
2413 print_i387_status_word, print_i387_control_word): Add `struct
2414 ui_file *' argument and use it for output.
2415 (i387_print_float_info): Renamed from i387_float_info. Add
2416 `struct gdbarch *' and `struct ui_file *' arguments and use the
2417 latter for output.
2418 * i386-tdep.c: Include "i387-tdep.h".
2419 (i386_gdbarch_init): Set print_float_info.
2420 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2421 (FLOAT_INFO): Remove define.
2422
2423 2002-08-13 Michael Snyder <msnyder@redhat.com>
2424
2425 * mips-tdep.c (mips_push_arguments): Rename to
2426 mips_eabi_push_arguments, and tune for EABI.
2427 (MIPS_REGS_HAVE_HOME_P): Delete.
2428 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2429 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2430 Delete references to mips_regs_have_home_p.
2431
2432 2002-08-14 Keith Seitz <keiths@redhat.com>
2433
2434 * Makefile.in (install-gdbtk): Create insight plugin directory.
2435 Install plugins.tcl file.
2436
2437 2002-08-14 Keith Seitz <keiths@redhat.com>
2438
2439 * configure.in: Move SUBDIRS to near top of the file so that
2440 --enable options may add things to it.
2441 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2442 * configure: Regenerate.
2443
2444 2002-08-13 Michael Snyder <msnyder@redhat.com>
2445
2446 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2447 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2448 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2449
2450 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2451
2452 * vax-tdep.c (vax_get_saved_register): Delete function.
2453 (vax_gdbarch_init): Update.
2454 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2455 (ns32k_gdbarch_init): Update.
2456 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2457 (alpha_gdbarch_init): Update.
2458
2459 2002-08-13 Andrew Cagney <cagney@redhat.com>
2460
2461 * regcache.c (init_regcache_descr): Overallocate the
2462 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2463 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2464 nr_raw_registers.
2465 (set_register_cached): Add range checking assertions. Use
2466 current_regcache.
2467
2468 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2469
2470 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2471 numbers for MMX registers.
2472
2473 2002-08-13 Andrew Cagney <cagney@redhat.com>
2474
2475 * i386-tdep.c (i386_gdbarch_init): Use
2476 generic_unwind_get_saved_register.
2477
2478 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2479
2480 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2481 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2482 target vector.
2483 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2484 Delete. Add comment regarding this now-deleted target method.
2485
2486 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2487
2488 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2489 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2490 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2491 real PC and the page number (if it's within the memory bank window).
2492 (m68hc11_pseudo_register_write): Likewise when saving.
2493 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2494 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2495 (m68hc11_register_raw_size): And use 32-bit for it.
2496 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2497 16K memory bank is used by the prog; also use the virtual pc.
2498
2499 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2500
2501 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2502 (m68hc11_gdbarch_init): Install it in gdbarch.
2503 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2504 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2505 (MSYMBOL_SIZE): New for documentation.
2506 (insn_return_kind): Enum to specify how a function returns.
2507 (frame_extra_info): Cleanup and record the return mode.
2508 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2509 register in address computation.
2510 (m68hc11_get_return_insn): New to obtain the return instruction used
2511 by the function.
2512 (m68hc11_frame_init_saved_regs): Take into account the return
2513 instruction used by the function for far and interrupt functions.
2514 (m68hc11_init_extra_frame_info): Take into account page register.
2515 (m68hc11_frame_args_address): Adjust according to the return mode.
2516 (show_regs): Print page register only when it's used.
2517
2518 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2519
2520 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2521 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2522 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2523 registers.
2524 (m68hc11_register_raw_size): Likewise.
2525
2526 2002-08-13 Andrew Cagney <cagney@redhat.com>
2527
2528 * i386-tdep.c (i386_register_name): Handle mmx registers.
2529 (mmx_regnum_p): New function.
2530 (i386_mmx_names): New array.
2531 (mmx_num_regs): New variable.
2532 (i386_pseudo_register_read): New function.
2533 (i386_pseudo_register_write): New function.
2534 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2535
2536 * regcache.c (regcache_raw_read_unsigned): New function.
2537 (regcache_raw_read_signed): New function.
2538 * regcache.h (regcache_raw_read_unsigned): Declare.
2539 (regcache_raw_read_signed): Declare.
2540
2541 2002-08-13 Andrew Cagney <cagney@redhat.com>
2542
2543 * regcache.c (regcache_raw_read_as_address): Delete function.
2544 (regcache_cooked_read_signed): New function.
2545 (regcache_cooked_read_unsigned): New function.
2546 * regcache.h (regcache_cooked_read_signed): Declare.
2547 (regcache_cooked_read_unsigned): Declare.
2548 (regcache_raw_read_as_address): Delete declaration.
2549
2550 * blockframe.c (generic_read_register_dummy): Use
2551 regcache_cooked_read_unsigned.
2552 * i386-tdep.c (i386_extract_struct_value_address): Use
2553 regcache_cooked_read_unsigned.
2554
2555 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2556
2557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2558 double sizes according to ELF ABI flags.
2559 (gdbarch_tdep): Record elf_flags.
2560
2561 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2562
2563 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2564 (m6812_prolog): They can appear in 68HC12 function prologue.
2565 (m68hc11_frame_chain): Cleanup.
2566
2567 2002-08-12 Andrew Cagney <cagney@redhat.com>
2568
2569 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2570 declarations.
2571 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2572 (i386_linux_register_raw_size): Delete function.
2573 (i386_linux_init_abi): Update.
2574 * i386-tdep.c (i386_register_raw_size): Delete function.
2575 (i386_register_byte): Delete function.
2576 (i386_gdbarch_init): Update.
2577 (i386_register_size): Delete array.
2578 (i386_register_offset): Delete array.
2579
2580 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2581 (REGISTER_RAW_SIZE): Delete macro.
2582 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2583 (REGISTER_BYTE): Delete macro.
2584
2585 2002-08-11 Aidan Skinner <aidan@velvet.net>
2586
2587 * ada-lang.c (ada_lookup_partial_symbol)
2588 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2589 prototype names so that grep ^func works properly.
2590
2591 * ada-lang.c (ada_array_element_type)
2592 (ada_lookup_partial_symbol): Fix typos in parameter list.
2593
2594 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2595 Fix prototype names so that grep ^func works properly.
2596
2597 2002-08-10 Andrew Cagney <cagney@redhat.com>
2598 Elena Zannoni <ezannoni@redhat.com>
2599 Martin M. Hunt <hunt@redhat.com>
2600
2601 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2602 (build_builtin_type_vec128i): Set the vector bit.
2603 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2604 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2605 (build_builtin_type_vec64): New function.
2606 (build_builtin_type_vec64i): New function.
2607 (build_gdbtypes): Initialize builtin_type_vec64 and
2608 builtin_type_vec64i.
2609
2610 2002-08-09 Andrew Cagney <cagney@redhat.com>
2611
2612 * regcache.c (regcache_dump): Compare the register offset
2613 with REGISTER_BYTE.
2614 * arch-utils.c (generic_register_byte): New function.
2615 * arch-utils.h (generic_register_byte): Declare.
2616 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2617 * gdbarch.h, gdbarch.c: Regenerate.
2618
2619 2002-08-09 Andrew Cagney <cagney@redhat.com>
2620
2621 * regcache.c: Include "gdbcmd.h"
2622 (_initialize_regcache): Add commands "maintenance print
2623 registers", "maintenance print raw-registers" and "maintenance
2624 print cooked-registers".
2625 (enum regcache_dump_what): Define.
2626 (dump_endian_bytes): New function.
2627 (regcache_dump): New function.
2628 (regcache_print): New function.
2629 (maintenance_print_registers): New function.
2630 (maintenance_print_raw_registers): New function.
2631 (maintenance_print_cooked_registers): New function.
2632 * Makefile.in (regcache.o): Update dependencies.
2633
2634 2002-08-09 Michael Snyder <msnyder@redhat.com>
2635
2636 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2637 (mips_push_arguments): Correct some comments. Use paddr_nz
2638 for printing addresses in debug output. Replace static
2639 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2640 (mips_n32n64_push_arguments): New function, cloned from
2641 mips_push_arguments and tuned for the n32/n64 ABI.
2642 (mips_push_register): Buffer needs dynamic allocation.
2643 (mips_print_register): Ditto.
2644 (do_gp_register_row): Ditto.
2645 (mips_store_return_value): Ditto.
2646 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2647
2648 2002-08-09 Don Howard <dhoward@redhat.com>
2649
2650 * memattr.c (mem_info_command): Print special case of upper bound
2651 as max CORE_ADDR + 1.
2652
2653 2002-08-08 Michael Snyder <msnyder@redhat.com>
2654
2655 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2656 returns structs by ref if they're too big to fit in two registers.
2657
2658 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2659
2660 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2661 saved regs value.
2662 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2663 mips_find_saved_regs().
2664 (mips_pop_frame): Likewise.
2665
2666 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2667
2668 * blockframe.c (frame_saved_regs_register_unwind): Revise
2669 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2670 frames are in use.
2671
2672 2002-08-09 Grace Sainsbury <graces@redhat.com>
2673
2674 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2675 T-packets; the 'a' is not taken as a register number.
2676 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2677 (remote_stopped_data_address): New functions; add to target
2678 vector.
2679 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2680 prototypes to match other implementations of this
2681 function. replace integer argument with pointer -- the length
2682 field in the Z-packet is the length of what is pointed to or 1 if
2683 pointer is null. Add to target vector.
2684 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2685 target vector.
2686
2687 From Mark Salter:
2688 * remote.c (remote_wait): Add support to extract optional
2689 watchpoint information from T-packet. Ignore unrecognized
2690 optional info in T-packet.
2691 (remote_async_wait): Ditto.
2692
2693 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2694
2695 * cli/cli-dump.c: Change fopen modes to use binary open modes
2696 as defined in include/fopen-bin.h throughout.
2697
2698 2002-08-08 Michael Snyder <msnyder@redhat.com>
2699
2700 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2701
2702 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2703
2704 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2705 assertion failure by returning early after a warning.
2706
2707 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2708
2709 * mips-tdep.c (mips_find_saved_regs): Make static.
2710 (mips_frame_init_saved_regs): New function.
2711 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2712 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2713 (mips_find_saved_regs): Delete declaration.
2714
2715 2002-08-08 Grace Sainsbury <graces@redhat.com>
2716
2717 * remote.c (remote_wait, remote_async_wait): Change
2718 thread_num from int to ULONGEST.
2719 (unpack_varlen_hex): Change result parameter from
2720 int * to ULONGEST *.
2721
2722 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2723
2724 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2725 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2726 powerpc*-*-*.
2727 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2728
2729 2002-08-08 Andrew Cagney <cagney@redhat.com>
2730
2731 * gcore.c (override_derive_stack_segment): Delete variable.
2732 (preempt_derive_stack_segment): Delete function.
2733 (derive_stack_segment): Delete function.
2734 (default_derive_stack_segment): Renamed to derive_stack_segment.
2735 (override_derive_heap_segment): Delete variable.
2736 (preempt_derive_heap_segment): Delete function.
2737 (derive_heap_segment): Delete function.
2738 (default_derive_heap_segment): Rename to derive_heap_segment.
2739
2740 2002-08-06 Michael Snyder <msnyder@redhat.com>
2741
2742 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2743 * mips-tdep.c (mips_EABI_use_struct_convention,
2744 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2745 New functions. (mips_use_struct_convention): Delete.
2746 (mips_gdbarch_init): set use_gdbarch_convention.
2747
2748 2002-08-06 Michael Snyder <msnyder@redhat.com>
2749
2750 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2751 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2752 mips_o32_reg_struct_has_addr): New functions.
2753 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2754
2755 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2756
2757 * regcache.c (pseudo_register): Delete function.
2758 (fetch_register): Delete function.
2759 (store_register): Delete function.
2760 (regcache_raw_read, legacy_read_register_gen): Use
2761 target_fetch_registers instead of fetch_register.
2762 (legacy_write_register_gen, regcache_raw_write): Use
2763 target_store_register instead of store_register.
2764 (write_register_bytes): Ditto.
2765
2766 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2767 (STORE_PSEUDO_REGISTER): Delete.
2768 * gdbarch.h, gdbarch.c: Regenerate.
2769
2770 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2771
2772 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2773 write dump file binary.
2774
2775 2002-08-05 Michael Snyder <msnyder@redhat.com>
2776
2777 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2778 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2779 (mips_gdbarch_init): Set N32 target to be mips64.
2780
2781 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2782
2783 * frame.c (find_saved_register): Break out of loop once saved
2784 register address is found. Don't mention sparc in loop comment
2785 anymore.
2786
2787 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2788
2789 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2790 mips_default_saved_regsize to 8.
2791
2792 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2793
2794 * gcore.c: Do not include <sys/procfs.h>.
2795 * Makefile.in (gcore.o): Update dependencies.
2796
2797 2002-08-06 Andrew Cagney <cagney@redhat.com>
2798
2799 * configure.tgt: Make arc-*-* obsolete.
2800 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2801 * MAINTAINERS: Make arc-elf obsolete.
2802 * arc-tdep.c: Make file obsolete.
2803 * config/arc/arc.mt: Ditto.
2804 * config/arc/tm-arc.h: Ditto.
2805
2806 2002-08-05 Theodore A. Roth <troth@verinet.com>
2807
2808 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2809
2810 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2811
2812 * mcore-tdep.c (mcore_gdbarch_init): Use
2813 generic_unwind_get_saved_register instead of
2814 generic_get_saved_register.
2815 * v850-tdep.c (v850_gdbarch_init): Ditto.
2816 * frv-tdep.c (frv_gdbarch_init): Ditto.
2817 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2818 * s390-tdep.c (s390_gdbarch_init): Ditto.
2819 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2820 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2821 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2822
2823 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2824
2825 * objfiles.h: Add missing #include "symfile.h"
2826
2827 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2828
2829 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2830
2831 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2832 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2833 of FIELD_BITSIZE.
2834
2835 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2836
2837 * NEWS: Cleanup and nitpick.
2838
2839 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2840
2841 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2842
2843 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2844
2845 * Makefile.in (gdbtk-bp.o): Update dependencies.
2846 (gdbtk-register.o): Ditto.
2847 (gdbtk-varobj.o): Ditto.
2848
2849 2002-08-03 Andrew Cagney <cagney@redhat.com>
2850
2851 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2852 m68hc11_fetch_pseudo_register.
2853 (m68hc11_pseudo_register_write): Replace
2854 m68hc11_store_pseudo_register.
2855 (m68hc11_gdbarch_init): Update.
2856
2857 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2858
2859 * gdbarch.sh: Include "gdb_string.h".
2860 * gdbarch.c: Regenerate.
2861
2862 * regcache.c: Include "gdb_string.h".
2863 * ax-general.c: Ditto.
2864 * varobj.c: Ditto.
2865 * std-regs.c: Ditto.
2866 * fbsd-proc.c: Ditto.
2867 * thread.c: Ditto.
2868
2869 * Makefile.in (regcache.o): Update dependencies.
2870 (thread.o, gdbarch.o): Ditto.
2871 (ax-general.o, gdbarch.o): Ditto.
2872 (varobj.o, std-regs.o): Ditto.
2873 (fbsd-proc.o): Specify dependencies.
2874
2875 2002-08-02 Andrew Cagney <cagney@redhat.com>
2876
2877 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2878 regnum.
2879 (regcache_cooked_write): Ditto.
2880
2881 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2882
2883 * regcache.c (regcache_cooked_read): New function.
2884 (regcache_cooked_write): New function.
2885 (read_register_gen): Rewrite using regcache_cooked_read.
2886 (write_register_gen): Rewrite using regcache_cooked_write.
2887
2888 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2889 Declare.
2890
2891 2002-08-02 Andrew Cagney <cagney@redhat.com>
2892
2893 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2894 Replace the architecture methods register_read and register_write.
2895 * gdbarch.h, gdbarch.c: Regenerate.
2896 * regcache.c (init_regcache_descr): Update.
2897 (read_register_gen): Update.
2898 (write_register_gen): Update.
2899 (supply_register): Update comment.
2900
2901 * sh-tdep.c (sh_gdbarch_init): Update.
2902 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2903 `regcache' and `gdbarch' parameters. Make `buffer' a void
2904 pointer. Update code.
2905 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2906 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2907 void pointer. Update code.
2908 (sh64_register_write): Delete.
2909 (sh4_register_read): Delete.
2910 (sh64_register_read): Delete.
2911 (sh4_register_write): Delete.
2912 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2913 void pointer, `to' parameter a void pointer.
2914 (sh_sh64_register_convert_to_raw): Ditto.
2915
2916 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2917
2918 * mips-tdep.c (mips_register_virtual_type): Use architecture
2919 invariant return values.
2920
2921 2002-08-01 Andrew Cagney <cagney@redhat.com>
2922
2923 * linux-proc.c: Include "gdb_string.h".
2924 * Makefile.in (linux-proc.o): Update dependency list.
2925
2926 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2927
2928 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2929 comment.
2930
2931 2002-08-01 Grace Sainsbury <graces@redhat.com>
2932
2933 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2934 to_insert_watchpoint, to_remove_watchpoint,
2935 to_stopped_by_watchpoint, to_stopped_data_address,
2936 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2937 target vecctor. Define their corresponding macros so they call
2938 them.
2939
2940 * target.c: Add default and debug versions of for
2941 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2942 to_insert_watchpoint, to_remove_watchpoint,
2943 to_stopped_by_watchpoint, to_stopped_data_address,
2944 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2945
2946 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2947
2948 * mips-tdep.c (mips_register_virtual_type): New function.
2949 (mips_gdbarch_init): Register mips_register_virtual_type()
2950 with gdbarch machinery.
2951 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2952 this file instead of tm-bigmips.h.
2953 (MIPS_REGSIZE): Delete this macro.
2954 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2955 multiarch version in mips-tdep.c will be found.
2956
2957 2002-08-01 Andrew Cagney <cagney@redhat.com>
2958
2959 * NEWS: Menion that CHILL has been made obsolete.
2960
2961 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2962 * stabsread.c (read_range_type): Ditto.
2963 * gdbtypes.h: Ditto.
2964 * language.c (binop_type_check): Ditto.
2965 (binop_result_type): Ditto.
2966 (integral_type): Ditto.
2967 (character_type): Ditto.
2968 (string_type): Ditto.
2969 (boolean_type): Ditto.
2970 (structured_type): Ditto.
2971 (lang_bool_type): Ditto.
2972 (binop_type_check): Ditto.
2973 * language.h (_LANG_chill): Ditto.
2974 * dwarfread.c (set_cu_language): Ditto.
2975 * dwarfread.c (CHILL_PRODUCER): Ditto.
2976 * dwarfread.c (handle_producer): Ditto.
2977 * expression.h (enum exp_opcode): Ditto.
2978 * eval.c: Ditto for comments.
2979 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2980 * expprint.c (print_subexp): Ditto.
2981 (print_subexp): Ditto.
2982 * valops.c (value_cast): Ditto.
2983 (search_struct_field): Ditto.
2984 * value.h (COERCE_VARYING_ARRAY): Ditto.
2985 * symfile.c (init_filename_language_table): Ditto.
2986 (add_psymbol_with_dem_name_to_list): Ditto.
2987 * valarith.c (value_binop): Ditto.
2988 (value_neg): Ditto.
2989 * valops.c (value_slice): Ditto.
2990 * symtab.h (union language_specific): Ditto.
2991 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2992 (SYMBOL_DEMANGLED_NAME): Ditto.
2993 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2994 * defs.h (enum language): Ditto.
2995 * symtab.c (got_symtab): Ditto.
2996 * utils.c (fprintf_symbol_filtered): Ditto.
2997
2998 * ch-typeprint.c: Make file obsolete.
2999 * ch-valprint.c: Make file obsolete.
3000 * ch-lang.h: Make file obsolete.
3001 * ch-exp.c: Make file obsolete.
3002 * ch-lang.c: Make file obsolete.
3003
3004 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3005 CHILL_LIB.
3006 (TARGET_FLAGS_TO_PASS): Ditto.
3007 (CHILLFLAGS): Obsolete.
3008 (CHILL): Obsolete.
3009 (CHILL_FOR_TARGET): Obsolete.
3010 (CHILL_LIB): Obsolete.
3011 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3012 ch-valprint.c.
3013 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3014 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3015 ch-lang.o.
3016 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3017 targets.
3018
3019 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3020
3021 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3022 This does not change anything at the moment, but will be helpful
3023 later when full Ada support is integrated.
3024
3025 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3026
3027 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3028 help message.
3029
3030 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3031
3032 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3033 and save it in a local variable. Use variable in later test.
3034
3035 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3036
3037 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3038 test. (Thanks to Daniel Jacobowitz.)
3039
3040 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3041
3042 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3043 (mips_abi_strings): Add "n64".
3044 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3045
3046 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3047
3048 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3049 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3050
3051 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3052
3053 * utils.c (host_pointer_to_address, address_to_host_pointer):
3054 Use gdb_assert() instead of explicit call to internal_error().
3055
3056 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3057
3058 * Makefile.in (rs6000-nat.o): Update dependencies.
3059
3060 From Nicholas Duffek:
3061 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3062 (aix-thread.o): New rule.
3063 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3064 * config/powerpc/aix432.mh: New file.
3065
3066 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3067
3068 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3069 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3070 (fetch_core_registers, ppc_linux_supply_gregset)
3071 (ppc_linux_supply_fpregset): New functions.
3072 (ppc_linux_regset_core_fns): New.
3073 (_initialize_ppc_linux_tdep): Call add_core_fns.
3074 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3075 and ppc_linux_supply_gregset.
3076 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3077 (supply_fpregset): Call ppc_linux_supply_fpregset.
3078 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3079 corelow.o.
3080 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3081
3082 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3083
3084 * symtab.c (lookup_symbol): Demangle before lowercasing.
3085
3086 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3087
3088 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3089 declaration.
3090 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3091 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3092 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3093 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3094 "gdb_string.h".
3095 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3096 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3097 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3098 (avr-tdep.o, mon960-rom.o): Ditto.
3099 (aout_stabs_gnu_h): Define.
3100 (symtab_h): Remove $(gdb_obstack_h).
3101
3102 2002-07-30 Jim Blandy <jimb@redhat.com>
3103
3104 Patch from David Carlton <carlton@math.stanford.edu>:
3105 * gdbinit.in: Move the `dir' commands that add GDB's own source
3106 directory to the search path to the end, so that the `gdb' source
3107 directory will be searched first.
3108
3109 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3110
3111 * gdb_obstack.h: New file.
3112 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3113 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3114 * objfiles.h: Include "gdb_obstack.h".
3115 * Makefile.in (gdb_obstack_h): Define.
3116 (symtab_h): Add $(gdb_obstack_h).
3117 (objfiles_h): Add $(gdb_obstack_h).
3118
3119 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3120 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3121 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3122 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3123 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3124 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3125 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3126 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3127
3128 * Makefile.in (bcache.o): Update dependencies.
3129 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3130 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3131 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3132 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3133 (stabsread.o, symfile.o, symmisc.o): Ditto.
3134 (symtab.o, typeprint.o, macroexp.o): Ditto.
3135 (macrotab.o, mdebugread.o): Ditto.
3136 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3137 (coff_ecoff_h, aout_aout64_h): Define.
3138 (aout_stabs_gnu_h, libaout_h): Define.
3139
3140 2002-07-29 Andrew Cagney <cagney@redhat.com>
3141
3142 * regcache.c (struct regcache_descr): Rename nr_registers to
3143 nr_cooked_registers. Revise comments describing the structure
3144 member fields.
3145 (init_regcache_descr): Update.
3146 (init_legacy_regcache_descr): Update.
3147 (read_register_gen, write_register_gen): When a cooked register in
3148 the raw register range, directly access the value from the raw
3149 register cache.
3150
3151 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3152
3153 * z8k-tdep.c: Do not include "obstack.h".
3154 * h8300-tdep.c, h8500-tdep.c: Ditto.
3155 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3156 * valprint.c, v850-tdep.c: Ditto.
3157 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3158 * mn10200-tdep.c: Ditto.
3159
3160 * Makefile.in (z8k-tdep.o): Update dependencies.
3161 (m68hc11-tdep.o, valprint.o): Ditto.
3162 (v850-tdep.o, d10v-tdep.o): Ditto.
3163 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3164 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3165 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3166 (sh_opc_h, gdb_sim_sh_h): Define.
3167 (elf_sh_h, elf_bfd_h): Define.
3168 (opcode_m68hc11_h): Define.
3169 (OPCODES_SRC, OPCODES_DIR): define.
3170 (OPCODES): Use $(OPCODES_DIR).
3171 (gdb_sim_d10v_h): Rename sim_d10v_h.
3172 (gdb_sim_arm_h): Rename sim_arm_h.
3173
3174 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3175
3176 * utils.c (host_pointer_to_address, address_to_host_pointer):
3177 Change internal_error() message to indicate function responsible
3178 for the error.
3179
3180 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3181
3182 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3183 calls to local_hex_string_custom().
3184
3185 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3186
3187 * irix5-nat.c: Move IRIX shared library support from here...
3188 * solib-irix.c: ...to here. Revised substantially to work with
3189 generic solib framework.
3190
3191 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3192 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3193 * mips-irix-tdep.c: New file.
3194
3195 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3196 (mips-irix-tdep.o, solib-irix.o): New rules.
3197 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3198 solib-irix.o.
3199 * config/mips/irix6.mt (TDEPFILES): Likewise.
3200 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3201
3202 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3203
3204 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3205 disabled (via ``#if 0'') includes.
3206
3207 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3208
3209 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3210 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3211 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3212 Add support for the fpscr register.
3213 * rs6000-nat.c (regmap, fetch_inferior_registers)
3214 (store_inferior_registers, fetch_core_registers): Likewise.
3215
3216 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3217
3218 * rs6000-nat.c (language.h): Include.
3219 (special_regs): Delete this array.
3220 (regmap): New function.
3221 (fetch_register, store_register): Use regmap() to map gdb
3222 register numbers to ptrace register numbers. Also, use
3223 outputs from regmap() to make decisions regarding type of
3224 ptrace() call to make. In particular, don't compare against
3225 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3226 (fetch_inferior_registers, store_inferior_registers): Where
3227 possible, obtain register numbers from tdep struct. Don't
3228 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3229 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3230 (LAST_UISA_SP_REGNUM): Delete.
3231
3232 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3233
3234 * rs6000-nat.c (ppc-tdep.h): Include.
3235 (fetch_registers, store_register, fetch_core_registers): Don't
3236 access registers[] directly. Instead, use supply_register() or
3237 regcache_collect() as appropriate.
3238 (find_toc_address): Format hex address with local_hex_string().
3239
3240 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3241
3242 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3243 bfd/elf32-frv.c.
3244
3245 2002-07-24 Tom Tromey <tromey@redhat.com>
3246
3247 * jv-exp.y: Marked all strings with _().
3248 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3249 internal_error.
3250 (MethodInvocation, CastExpression, parse_number, yyerror,
3251 java_type_from_name, push_expression_name, yylex): Typo fixes.
3252
3253 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3254
3255 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3256 (tee_file_flush, tee_file_write, tee_file_fputs)
3257 (tee_file_isatty): New.
3258 * ui-file.h (tee_file_new): Add prototype.
3259
3260 2002-07-24 Aidan Skinner <aidan@velvet.net>
3261
3262 * ada-lang.c: Change k&r style function definitions to prototyped
3263 form.
3264 * ada-typeprint.c: Change k&r style function definitions to prototyped
3265 form.
3266 * ada-valprint.c: Change k&r style function definitions to prototyped
3267 form.
3268
3269 2002-07-24 Andrew Cagney <cagney@redhat.com>
3270
3271 * README: Remove reference to remote-bug.
3272 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3273 remote-bug.c.
3274 (m88k-nat.o): Delete rule.
3275 (m88k-tdep.o): Delete rule.
3276 (remote-bug.o): Delete rule.
3277 * MAINTAINERS: Mark as obsolete.
3278 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3279 * m88k-tdep.c: Make file obsolete.
3280 * config/m88k/m88k.mh: Ditto.
3281 * config/m88k/delta88v4.mh: Ditto.
3282 * config/m88k/delta88v4.mt: Ditto.
3283 * config/m88k/delta88.mt: Ditto.
3284 * config/m88k/delta88.mh: Ditto.
3285 * remote-bug.c: Ditto.
3286 * config/m88k/tm-delta88.h: Ditto.
3287 * config/m88k/nm-delta88v4.h: Ditto.
3288 * config/m88k/xm-delta88.h: Ditto.
3289 * config/m88k/xm-dgux.h: Ditto.
3290 * config/m88k/tm-m88k.h: Ditto.
3291 * config/m88k/nm-m88k.h: Ditto.
3292 * config/m88k/tm-delta88v4.h: Ditto.
3293 * m88k-nat.c: Ditto.
3294 * cxux-nat.c: Ditto.
3295 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3296 and m88*-*-* obsolete.
3297 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3298 m88*-*-* obsolete.
3299
3300 2002-07-24 Andrew Cagney <cagney@redhat.com>
3301
3302 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3303 constant. Same for local pointer variables.
3304 (extract_signed_integer): Ditto.
3305 * defs.h (extract_unsigned_integer): Update.
3306 (extract_signed_integer): Update.
3307
3308 2002-07-24 Andrew Cagney <cagney@redhat.com>
3309
3310 * regcache.c (regcache_raw_write): Change buf parameter to a
3311 constant void pointer.
3312 (regcache_raw_read): Change buf parameter to a void pointer.
3313 (legacy_write_register_gen): Change myaddr parameter a constant
3314 void pointer.
3315 (supply_register): Change val parameter to a const void pointer.
3316 * regcache.h (regcache_raw_write): Update declaration.
3317 (regcache_raw_read): Update declaration.
3318 (supply_register): Update declaration.
3319
3320 2002-07-24 Tom Tromey <tromey@redhat.com>
3321
3322 * defs.h (gdb_readline_wrapper): Declare.
3323 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3324 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3325 * top.c (gdb_readline_wrapper): New function.
3326 (command_line_input): Use it.
3327
3328 2002-07-24 Andrew Cagney <cagney@redhat.com>
3329
3330 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3331 regcache_read and regcache_write.
3332 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3333 * regcache.c: Update.
3334 * sh-tdep.c (sh64_push_arguments): Update comment.
3335 (sh_pseudo_register_read): Update.
3336 (sh_pseudo_register_write): Update.
3337 (sh4_register_read): Update.
3338 (sh4_register_write): Update.
3339 (sh64_pseudo_register_read): Update.
3340 (sh64_pseudo_register_write): Update.
3341 (sh64_register_read): Update.
3342 (sh64_register_write): Update.
3343 * i386-tdep.c (i386_extract_return_value): Update.
3344 (i386_extract_struct_value_address): Update.
3345 (i386_extract_return_value): Update.
3346 * blockframe.c (generic_read_register_dummy): Update.
3347 (generic_call_dummy_register_unwind): Update
3348 * infrun.c (write_inferior_status_register): Update.
3349
3350 2002-07-23 Jim Blandy <jimb@redhat.com>
3351
3352 * parser-defs.h (expression_context_pc): Make this extern.
3353 (Thanks to Michael Snyder.)
3354
3355 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3356
3357 GDB 5.2.1 released from 5.2 branch.
3358 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3359 * README: Update to mention 5.2.1.
3360
3361 2002-07-23 Mark Salter <msalter@redhat.com>
3362
3363 * remote.c (remote_read_bytes): Fix check for error.
3364
3365 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3366
3367 * aix-thread.c (language.h): Include.
3368 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3369 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3370 Print newlines at end of debug messages.
3371 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3372 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3373
3374 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3375
3376 * aix-thread.c (ppc-tdep.h): Include.
3377 (special_register_p): New function.
3378 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3379 (store_regs_user_thread): Use register number information from
3380 gdbarch_tdep struct instead of hardcoded offsets relative to
3381 FIRST_UISA_SP_REGNUM.
3382 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3383 special_register_p() instead of using FPLAST_REGNUM and
3384 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3385 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3386 will be MQ's register number.
3387
3388 2002-07-22 Michael Snyder <msnyder@redhat.com>
3389
3390 * aix-thread.c (ops): Rename to aix_thread_ops.
3391 (base_ops): Rename to base_target.
3392 (ops_attach): Rename to aix_thread_attach.
3393 (ops_detach): Rename to aix_thread_detach.
3394 (ops_resume): Rename to aix_thread_detach.
3395 (ops_wait): Rename to aix_thread_wait.
3396 (ops_kill): Rename to aix_thread_kill.
3397 (init_ops): Rename to init_aix_thread_ops.
3398 (ops_fetch_register): Rename to aix_thread_fetch_register.
3399 (ops_store_register): Rename to aix_thread_store_register.
3400 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3401 (ops_thread_alive): Rename to aix_thread_thread_alive.
3402 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3403 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3404 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3405 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3406 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3407 (store_regs_lib): Rename to store_regs_user_thread.
3408 (store_regs_kern): Rename to store_regs_kernel_thread.
3409
3410 2002-07-22 Michael Snyder <msnyder@redhat.com>
3411
3412 * aix-thread.c (ops_prepare_to_store): Eliminate.
3413 (init_ops): Don't initialize ops.prepare_to_store.
3414 (store_regs_kern): Pre-fetch register buffers from child,
3415 because some registers may not be in the cache. Copy
3416 regs from register cache only if they are cached.
3417 (store_regs_lib): Copy regs from register cache only
3418 if they are cached.
3419 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3420 fill_gprs64): Ditto.
3421
3422 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3423
3424 * aix-thread.c (gdb_assert.h): Include.
3425 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3426 register sizes (from register cache) match size of buffer holding
3427 register data.
3428 (fill_sprs32): Change parameter types to match those in the ptrace()
3429 buffer.
3430 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3431 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3432
3433 2002-07-22 Michael Snyder <msnyder@redhat.com>
3434
3435 * aix-thread.c (supply_sprs64): Cosmetic change.
3436 (supply_sprs32): Cosmetic change.
3437 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3438 (fill_sprs64): Use regcache_collect instead of read_register.
3439 (store_regs_lib): Use regcache_collect instead of
3440 read_register. Use fill_sprs32 instead of fill_sprs64,
3441 if debugging a 32-bit architecture.
3442 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3443 out of the register cache, instead of passing a pointer into
3444 the register cache directly to ptrace. Use regcache_collect
3445 insteaad of read_register.
3446 (ops_prepare_to_store): Use target_read_registers instead
3447 of read_register_bytes.
3448
3449 2002-07-20 Aidan Skinner <aidan@velvet.net>
3450
3451 * MAINTAINERS: Add self under write after approval.
3452
3453 2002-07-20 Aidan Skinner <aidan@velvet.net>
3454
3455 * ada-tasks.c: Change k&r style function definitions to prototyped
3456 form.
3457
3458 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3459
3460 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3461 * x86-64-tdep.c: Include "objfiles.h".
3462 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3463 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3464
3465 2002-07-17 Michal Ludvig <michal@suse.cz>
3466
3467 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3468 (update_context): Initialise cfa variable.
3469
3470 2002-07-17 Michael Snyder <msnyder@redhat.com>
3471
3472 * aix-thread.c: Shorten some long lines.
3473 Bring comments into line with code spec.
3474
3475 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3476
3477 * infrun.c: Re-indent using gdb_indent.sh.
3478
3479 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3480
3481 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3482 Leave the indentation temporarily untouched, to minimize the diffs.
3483
3484 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3485
3486 * stabsread.c: Make os9k sections of the code obsolete,
3487 for real this time.
3488 * stabsread.h: Make os9k sections of the code obsolete.
3489
3490 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3491
3492 * linux-low.c (regsets_store_inferior_registers): Add free()
3493 at the end of a loop to prevent memory leak.
3494 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3495 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3496 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3497 line a comment.
3498 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3499
3500 2002-07-17 Jim Blandy <jimb@redhat.com>
3501
3502 * macrocmd.c (info_macro_command): Remove newline from error
3503 message.
3504
3505 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3506
3507 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3508 (sh_gdbarch_init): Use it for sh-dsp.
3509
3510 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3511
3512 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3513 64-bit DWARF2 format.
3514
3515 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3516
3517 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3518 <sys/proc.h> when not available.
3519
3520 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3521
3522 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3523 * stabsread.c: Make os9k sections of the code obsolete.
3524 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3525 * config/i386/i386os9k.mt: Make file obsolete.
3526 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3527 (COMMON_OBS): Remove os9kread.o
3528 (SFILES): Remove os9kread.c.
3529 (os9kread.o, remote-os9k.o): Make target obsolete.
3530 * remote-os9k.c: Make file obsolete.
3531 * os9kread.c: Make file obsolete.
3532 * Makefile.in
3533
3534 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3535
3536 * NEWS: Mention that the FR30 has been made obsolete.
3537 * fr30-tdep.c: Make file obsolete.
3538 * config/fr30/tm-fr30.h: Ditto.
3539 * config/fr30/fr30.mt: Ditto.
3540 * configure.tgt: Make fr30-*-elf obsolete.
3541 * MAINTAINERS: Make fr30-elf obsolete.
3542
3543 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3544
3545 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3546 found is not inside a section.
3547
3548 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3549
3550 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3551 strerror().
3552 (pdc_realloc): Use xrealloc() instead of realloc().
3553
3554 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3555
3556 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3557 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3558 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3559 macros.
3560
3561 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3562
3563 * aix-thread.c (ptrace_check): Eliminate goto.
3564 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3565 problem.
3566
3567 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3568
3569 * aix-thread.c (gdbcmd.h): Include.
3570 (DEBUG, DBG, DBG2, dbg): Eliminate.
3571 (debug_aix_thread): New static global.
3572 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3573 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3574 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3575 invocations to DBG and DBG2 macros to test against
3576 ``debug_aix_thread'' and call fprintf_unfiltered().
3577 (_initialize_aix_thread): Add new command "set debug aix-thread".
3578
3579 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3580
3581 From Gerhard Tonn <TON@de.ibm.com>:
3582 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3583 instead of supply_register.
3584
3585 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3586
3587 * dwarf2cfi.c: Include "gdb_assert.h".
3588 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3589 non-NULL.
3590 (update_context): Do not use __func__. Add missing ``break''.
3591 (update_context): Do not use __func__.
3592
3593 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3594
3595 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3596 and its setting. Set gdbarch instruction printing functions
3597 directly. For non-rs6000 case use new function
3598 gdb_print_insn_powerpc.
3599 (gdb_print_insn_powerpc): New function.
3600
3601 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3602
3603 * NEWS: Mention that the d30v has been marked obsolete.
3604 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3605 * configure.tgt: Mark d30v-*-* as obsolete.
3606 * d30v-tdep.c: Mark file as obsolete.
3607 * config/d30v/d30v.mt: Ditto.
3608 * config/d30v/tm-d30v.h: Ditto.
3609
3610 2002-07-13 Aidan Skinner <aidan@velvet.net>
3611
3612 * ada-tasks.c (add_task_entry): replace calls to
3613 malloc() with xmalloc
3614 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3615
3616 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3617 ada_finish_decode_line_1, all_sals_for_line
3618 ada_breakpoint_rewrite): replace calls to free() with xfree()
3619
3620 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3621
3622 From Nicholas Duffek (with minor changes by Martin Hunt,
3623 Louis Hamilton, and Kevin Buettner):
3624 * aix-thread.c: New file.
3625
3626 2002-07-12 Petr Sorfa <petrs@caldera.com>
3627
3628 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3629 complaint for invalid attribute class or form.
3630 (read_func_scope): DW_AT_frame_base
3631 better handling of DW_AT_block*.
3632 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3633 better handling of DW_AT_block*.
3634 (read_common_block): DW_AT_location
3635 better handling of DW_AT_block*.
3636 (read_partial_die): DW_AT_location better handling
3637 of DW_AT_block*.
3638 (new_symbol): DW_AT_external better handling of
3639 DW_AT_block*. Proper initialization of variable
3640 "addr".
3641 (attr_form_is_block): New function that returns true
3642 if the attribute's form is of DW_FORM_block*.
3643
3644 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3645
3646 * valops.c (find_method_list): Remove comment about
3647 removed STATIC_MEMFUNCP argument.
3648 (value_find_oload_method_list): Likewise.
3649
3650 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3651
3652 From Nicholas Duffek:
3653 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3654 target_new_objfile_hook.
3655
3656 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3657
3658 From Nicholas Duffek:
3659 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3660 csect.
3661
3662 2002-07-12 Andrew Cagney <cagney@redhat.com>
3663
3664 * MAINTAINERS: Mention --enable-sim-build-warnings.
3665 (m68hc11-elf): Disable sim build warnings.
3666 (m32r-elf): Mark as broken obsolete candidate.
3667 (x86_64-linux-gnu): Mark as buildable with -Werror.
3668 (arm-elf): Change -w to ``,'' which enables warnings but not
3669 -Werror.
3670
3671 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3672
3673 * bcache.h: Update copyright.
3674 (struct bstring, struct bcache): Move definition to "bcache.c".
3675 Replaced by opaque declaration.
3676 (bcache_xfree): Replace free_bcache.
3677 (bcache_xmalloc, bcache_memory_used): Declare.
3678
3679 * bcache.c: Update copyright.
3680 (struct bstring, struct bcache): Moved to here from "bcache.h".
3681 Update comments.
3682 (bcache_xmalloc, bcache_memory_used): New functions.
3683 (bcache_xfree): Replace function free_bcache.
3684
3685 * Makefile.in (objfiles.o): Add $(bcache_h).
3686 (objfiles_h): Remove $(bcache_h).
3687 (symfile.o): Add $(bcache_h).
3688
3689 * symmisc.c: Update copyright.
3690 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3691 (print_objfile_statistics): Use bcache_memory_used.
3692
3693 * symfile.c: Include "bcache.h".
3694 (reread_symbols): Use bcache_xfree.
3695 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3696 (add_psymbol_to_list): Pass psymbol_cache by value.
3697 (add_psymbol_with_dem_name_to_list): Ditto.
3698
3699 * objfiles.h: Update copyright.
3700 (struct bcache): Declare opaque. Do not include "bcache.h".
3701 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3702 bcache'' pointers.
3703 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3704
3705 * objfiles.c: Include "bcache.h". Update copyright.
3706 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3707 macro_cache.
3708 (free_objfile): Use bcache_xfree.
3709
3710 2002-07-11 Grace Sainsbury <graces@redhat.com>
3711
3712 * monitor.c (monitor_fetch_register): Make name a constant.
3713 (monitor_store_register): Same.
3714
3715 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3716
3717 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3718 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3719 (finish_block) For non-function blocks, hash the symbol table. For
3720 function blocks, mark the symbol table as unhashed.
3721 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3722 (msymbol_hash_iw): Likewise.
3723 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3724 value.
3725 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3726 (lookup_minimal_symbol): Likewise for both.
3727 * symtab.h (struct block): Add `hashtable' flag. Comment the
3728 hashtable.
3729 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3730 (ALL_BLOCK_SYMBOLS): Update.
3731 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3732 (struct symbol): Add `hash_next' pointer.
3733 * symtab.c (lookup_block_symbol): Search using the hash table when
3734 possible.
3735 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3736 (search_symbols, find_addr_symbol): Likewise.
3737
3738 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3739 (read_dst_symtab): Likewise.
3740 * jv-lang.c (get_java_class_symtab): Likewise.
3741 * mdebugread.c: Include "gdb_assert.h".
3742 (shrink_block): Assert that the block being modified is not hashed.
3743 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3744 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3745 symbols.
3746 (dump_symtab): Recognize hashed blocks.
3747 * printcmd.c (print_frame_args): Assert that function blocks do not
3748 have hashed symbol tables.
3749 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3750 (fill_in_ada_prototype, debug_print_block): Likewise.
3751 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3752
3753 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3754
3755 * stack.c (print_frame): Use result of frame_address_in_block()
3756 instead of fi->pc when evaluating symbols.
3757 (backtrace_command_1): Ditto.
3758
3759 2002-07-11 Andrew Cagney <cagney@redhat.com>
3760
3761 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3762 Make static.
3763
3764 * arm-tdep.c (arm_register_name): Make return type constant.
3765
3766 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3767
3768 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3769 prototype.
3770 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3771 * s390-tdep.c (s390_fp_regnum): Ditto.
3772 (s390_read_fp): Ditto.
3773 (s390_pop_frame): Ditto.
3774 (_initialize_s390_tdep): Ditto.
3775 * remote.c (get_remote_state): Ditto.
3776 * procfs.c (mappingflags): Ditto.
3777 * memattr.c (_initialize_mem): Ditto.
3778 * mcore-tdep.c (mcore_pop_frame): Ditto.
3779 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3780 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3781 * language.c (set_case_str): Ditto.
3782 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3783 * frv-tdep.c (new_variant): Ditto.
3784 (frv_stopped_data_address): Ditto.
3785 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3786 (context_alloc): Ditto.
3787 (frame_state_alloc): Ditto.
3788 (unwind_tmp_obstack_init): Ditto.
3789 (unwind_tmp_obstack_free): Ditto.
3790 (cfi_read_fp): Ditto.
3791 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3792 (cris_pop_frame): Ditto.
3793 * c-lang.c (scanning_macro_expansion): Ditto.
3794 (finished_macro_expansion): Ditto.
3795 (c_preprocess_and_parse): Ditto.
3796 * gdbarch.sh: Ditto.
3797 * gdbarch.h, gdbarch.c: Regenerate.
3798 * config/mn10200/tm-mn10200.h: Adjust indentation.
3799 * target.c: Adjust indentation.
3800 * symtab.h: Adjust indentation.
3801 * stabsread.h: Adjust indentation.
3802 * remote-es.c: Adjust indentation.
3803 * os9kread.c: Adjust indentation.
3804
3805 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3806
3807 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3808 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3809
3810 2002-07-10 Grace Sainsbury <graces@redhat.com>
3811
3812 * NEWS: Mention m68k, mcore multi-arching.
3813 * MAINTAINERS: Change status of m68k, mcore to reflect
3814 multi-arching.
3815
3816 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3817
3818 * valops.c (find_overload_match): Free oload_syms.
3819
3820 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3821
3822 Define HAVE_SYS_PROC_H if sys/proc.h exists
3823 * configure.in: Add check for sys/proc.h
3824 * config.in: Regenerate.
3825 * configure: Regenerate.
3826
3827 2002-07-09 Grace Sainsbury <graces@redhat.com>
3828
3829 * config/m68k/tm-m68k.h: Remove macros wrapped in
3830 #if !GDB_MULTI_ARCH.
3831
3832 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3833
3834 * config.in, configure: Regenerate.
3835
3836 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3837
3838 * dwarf2cfi.c: Include "gcore.h".
3839 (execute_stack_op): Fix implementation of the
3840 DW_OP_deref and DW_OP_deref_size operators by letting do their
3841 lookup in the target.
3842
3843 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3844
3845 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3846 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3847 tdep->sc_sp_offset.
3848
3849 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3850
3851 Fix PR gdb/595, gdb/602
3852 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3853 Don't call value_cast, just read the vtable pointer; update comments
3854 to match.
3855
3856 2002-07-05 Grace Sainsbury <graces@redhat.com>
3857
3858 * config/mcore/tm-mcore.h: Remove file.
3859 * config/mcore/mcore.mt: Remove definition of TM_FILE
3860 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3861
3862 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3863
3864 * i386bsd-tdep.c: Include "gdb_string.h".
3865
3866 2002-07-04 Grace Sainsbury <graces@redhat.com>
3867
3868 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3869 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3870 mcore-tdep.
3871 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3872 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3873 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3874 (RETVAL_REGNUM): Move macros from tm-mcore.h
3875 (mcore_reg_struct_has_addr): New function.
3876 (mcore_gdbarch_init): Added initializations for the macros removed
3877 from tm-mcore.h.
3878
3879 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3880
3881 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3882 traditonal string branding within the ELF header.
3883
3884 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3885
3886 * symtab.c (remove_params): New function.
3887 (make_symbol_overload_list): Use it instead of cplus_demangle.
3888 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3889
3890 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3891
3892 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3893
3894 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3895 New variables.
3896 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3897 and tdep->sigtramp_end.
3898 * i386obsd-nat.c: New file.
3899 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3900
3901 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3902 Don't call get_current_frame().
3903
3904 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3905
3906 * i386-nat.c (child_post_startup_inferior): New function
3907 calling i386_cleanup_dregs if
3908 I386_USE_GENERIC_WATCHPOINTS is defined.
3909 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3910 conditional to acknowledge that i386-nat.c has its
3911 own child_post_startup_inferior function.
3912
3913 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3914
3915 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3916 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3917 instead of MAX_REGISTER_RAW_SIZE.
3918 (i386_extract_return_value, i386_extract_struct_value_address):
3919 Convert to use regcache.
3920 (i386_gdbarch_init): Set max_register_raw_size and
3921 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3922 Set extract_return_value and extract_struct_value_address instead
3923 of their deprecated variants.
3924
3925 Convert i386 target to generic dummy frames.
3926 * i386-tdep.c: Include "symfile.h".
3927 (i386_frameless_signal_p): Consider a function to be frameless if
3928 the pc points at the first instruction of the function.
3929 (i386_frame_chain): Handle (generic) call dummies.
3930 (i386_frame_saved_pc): Likewise.
3931 (i386_frame_init_saved_regs): Remove code dealing with call
3932 dummies on the stack.
3933 (i386_push_dummy_frame): Removed.
3934 (i386_call_dummy_words): Removed.
3935 (i386_fix_call_dummy): Removed.
3936 (i386_push_return_address): New function.
3937 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3938 parameter, and don't call get_current_frame.
3939 (i386_pop_frame): New function.
3940 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3941 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3942 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3943 call_dummy_length to 0, set call_dummy_words to NULL, set
3944 sizeof_call_dummy_words to 0, set fix_call_dummy to
3945 generic_fix_call_dummy, set pc_in_call_dummy to
3946 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3947 generic_push_dummy_frame, set push_return_address to
3948 i386_push_return_address and set frame_chain_valid to
3949 generic_file_frame_chain_valid.
3950
3951 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3952
3953 * gdbarch.sh (struct regcache): Add opaque declaration.
3954 (EXTRACT_RETURN_VALUE): New architecture method.
3955 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3956 * gdbarch.h, gdbarch.c: Regenerate.
3957 * arch-utils.c (legacy_extract_return_value): New function.
3958 * arch-utils.h (legacy_extract_return_value): Declare.
3959 * values.c (value_being_returned): Re-enable code handling
3960 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3961 deprecated_grub_regcache_for_registers call to block handling
3962 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3963 (EXTRACT_RETURN_VALUE): Do not define.
3964
3965 2002-07-03 Grace Sainsbury <graces@redhat.com>
3966
3967 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3968 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3969 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3970 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3971 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3972 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3973 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3974 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3975 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3976 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3977 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3978 argument so the function fits the prototype in the architecture
3979 vector.
3980 (mcore_pop_frame): Remove argument so the function fits the
3981 prototype. Use get_current_frame instead of the argument.
3982 (mcore_push_arguments): Change type of struct_return so the
3983 function can be used in the architecture vector.
3984 (mcore_store_struct_return): Add.
3985 (mcore_frame_init_saved_regs): Add.
3986 (mcore_gdbarch_init): Add function calls to replace the macros
3987 removed from tm-mcore.h
3988
3989 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3990
3991 * infcmd.c (print_return_value): Remove compatibility code calling
3992 deprecated_grub_regcache_for_registers.
3993
3994 * values.c: Include "regcache.h".
3995 (value_being_returned): Update. Use
3996 deprecated_grub_regcache_for_registers to extract the register
3997 buffer address.
3998 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3999 ``struct regcache''.
4000 * Makefile.in (values.o): Add dependency on $(regcache_h).
4001
4002 * inferior.h (run_stack_dummy): Change type of second parameter to
4003 a ``struct regcache''.
4004 * valops.c (hand_function_call): Change type of retbuf to ``struct
4005 regcache''. Allocate using regcache_xmalloc, clean using
4006 make_cleanup_regcache_xfree.
4007 * infcmd.c (run_stack_dummy): Update. Use
4008 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4009
4010 * regcache.c (do_regcache_xfree): New function.
4011 (make_cleanup_regcache_xfree): New function.
4012 * regcache.h (make_cleanup_regcache_xfree): Declare.
4013
4014 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4015
4016 * event-top.c (command_line_handler): Don't read past
4017 beginning of buffer.
4018
4019 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4020
4021 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4022 struct frame_id.
4023 (varobj_create): Store frame_id for root.
4024 (varobj_gen_name): Use xasprintf.
4025 (varobj_update): Save and restore frame using get_frame_id() and
4026 frame_find_by_id().
4027 (create_child): Use xasprintf.
4028 (new_root_variable): Initialize frame_id.
4029 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4030 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4031 to prevent memory leak.
4032
4033 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4034
4035 * valops.c (hand_function_call): Move declaration of retbuf to
4036 start of function, allocate using malloc, add a cleanup but before
4037 the inf_status cleanup, cleanup the buffer. Rename local variable
4038 old_chain to inf_status_cleanup.
4039
4040 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4041
4042 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4043
4044 * cli/cli-decode.c (cmd_func_p): New function.
4045 (cmd_func): New function.
4046
4047 * command.h: Add cmd_func() and cmd_func_p().
4048
4049 2002-07-03 Grace Sainsbury <graces@redhat.com>
4050
4051 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4052 (REGISTER_SIZE): Remove.
4053 (MAX_REGISTER_RAW_SIZE): Remove.
4054 (REGISTER_VIRTUAL_TYPE): Remove.
4055 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4056 (REGISTER_NAME): Remove.
4057 (USE_GENERIC_DUMMY_FRAMES): Remove.
4058 (CALL_DUMMY): Remove.
4059 (CALL_DUMMY_START_OFFSET): Remove.
4060 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4061 (CALL_DUMMY_LOCATION): Remove.
4062 (FIX_CALL_DUMMY): Remove.
4063 (CALL_DUMMY_ADDRESS): Remove.
4064 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4065 (SAVE_DUMMY_FRAME_TOS): Remove.
4066 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4067 (mcore_register_virtual_type): New function.
4068 (mcore_register_byte): New function.
4069 (mcore_register_size): New function.
4070 (mcore_register_name): New function.
4071 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4072 macros removed from tm-mcore.h.
4073 (mcore_dump_tdep): Add.
4074 (_initialize_mcore_tdep): Add gdbarch_register call.
4075
4076 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4077
4078 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4079 frameless_look_for_prologue, such that we actually call this
4080 function.
4081
4082 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4083
4084 * frame.h (frame_address_in_block): New function.
4085
4086 * blockframe.c (frame_address_in_block): New function extracted
4087 from get_frame_block().
4088 (get_frame_block): Use frame_address_in_block().
4089 (block_innermost_frame): Use frame_address_in_block() to match
4090 the frame pc address against the block boundaries rather than
4091 the frame pc directly. This prevents a failure when a frame pc
4092 is actually a return-address pointing immediately after the end
4093 of the given block.
4094
4095 2002-07-02 Grace Sainsbury <graces@redhat.com>
4096
4097 * MAINTAINERS: Add self under write after approval.
4098
4099 2002-07-02 Grace Sainsbury <graces@redhat.com>
4100
4101 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4102 used in architecture vector. The default is
4103 m68k_local_breakpoint_from_pc.
4104 (m68k_local_breakpoint_from_pc): Add.
4105 (enum): Add register numbers from tm-m68k.h.
4106 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4107 vector.
4108 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4109 GDB_MULTI_ARCH_PARTIAL.
4110 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4111 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4112 m68k-tdep.c.
4113 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4114 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4115 to enum in m68k-tdep.c
4116
4117 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4118
4119 * solib-osf.c (open_map): Compute the list of shared libraries
4120 loaded by the inferior, rather than the list of libraries loaded
4121 by GDB itself. Otherwise, GDB ends up reading the symbols from
4122 the wrong shared libraries...
4123
4124 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4125
4126 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4127 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4128 macros.
4129 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4130 Remove functions.
4131 (FRAMELESS_SIGNAL): Remove function.
4132 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4133 i386_linux_saved_pc_after_call): Removed.
4134 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4135 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4136 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4137
4138 * i386-tdep.c (i386_frameless_signal_p): New function.
4139 (i386_frame_chain): Deal with frameless signals.
4140 (i386_sigtramp_saved_sp): New function.
4141 (i386_frame_saved_pc): Deal with frameless signals.
4142 (i386_saved_pc_after_call): Make sure the correct value is
4143 returned just after entry into a sigtramp.
4144 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4145 i386fbsd4_sc_sp_offset): New variables.
4146 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4147 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4148 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4149 similiar to what we already did for sc_pc_offset.
4150 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4151 tdep->sc_sp_offset.
4152
4153 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4154
4155 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4156
4157 * config/i386/tm-x86-64linux.h: New.
4158 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4159 definitions.
4160 * config/i386/nm-x86-64.h: Rename to ...
4161 * config/i386/nm-x86-64linux.h: ... this one.
4162 * config/i386/x86-64linux.mh: Reflect the above change.
4163
4164 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4165
4166 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4167 with sigcontext_addr. Add sc_sp_offset.
4168 (i386bsd_sigtramp_saved_pc): Remove prototype.
4169 (i386bsd_sicontext_addr): Add prototype.
4170 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4171 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4172 (i386_svr4_sigtramp_saved_pc): Removed.
4173 (i386_svr4_sigcontext_addr): New function.
4174 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4175 Initialize tdep->sigcontext_addr instead. Initialize
4176 tdep->sc_pc_offset and tdep->sc_sp_offset.
4177 (i386_gdbarch_init): Likewise.
4178 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4179 any more.
4180 (i386bsd_sigtramp_saved_pc): Remove function.
4181 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4182 Initialize tdep->sigcontext_addr instead. Initialize
4183 tdep->sc_pc_offset.
4184 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4185 of tdep->sigtramp_saved_pc.
4186 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4187 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4188 instead.
4189
4190 * i386-tdep.c (i386_frameless_function_invocation,
4191 i386_frame_num_args, i386_frame_init_saved_regs,
4192 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4193 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4194 i386_extract_return_value, i386_store_return_value,
4195 i386_extract_struct_value_address, i386_register_virtual_type,
4196 i386_register_convertible, i386_register_convert_to_virtual,
4197 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4198 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4199 static.
4200
4201 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4202
4203 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4204
4205 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4206 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4207 this macro. Include "value.h".
4208
4209 2002-06-30 Aidan Skinner <aidan@velvet.net>
4210
4211 * ada-exp.tab.c: remove as it's a generated file
4212 * ada-lex.c: remove as it's a generated file
4213
4214 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4215
4216 * config/i386/tm-i386.h (struct frame_info, struct
4217 frame_saved_regs, struct value, struct type): Remove forward
4218 declarations.
4219
4220 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4221 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4222 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4223 (FILL_FPXREGSET): Define.
4224
4225 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4226
4227 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4228 i[3456]86-*-netbsd* case.
4229 * config/i386/tm-obsd.h: Removed.
4230 * config/i386/obsd.mt: Removed.
4231 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4232 core-aout.o.
4233 (MH_CFLAGS): Add -DYYDEBUG=0.
4234
4235 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4236 i386nbsd_sc_pc_offset on OpenBSD too.
4237
4238 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4239 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4240 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4241 define.
4242 * i386bsd-tdep.c: Include "arch-utils.h".
4243 (i386bsd_aout_in_solib_call_trampoline): New function.
4244 (i386bsd_init_abi): Set in_solib_call_trampoline to
4245 i386bsd_aout_in_solib_call_trampoline.
4246 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4247 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4248
4249 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4250
4251 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4252 (struct obstack, struct bcache): Add opaque declarations.
4253 * Makefile.in (macrotab_h): Update
4254
4255 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4256
4257 * blockframe.c (generic_find_dummy_frame): Change return type to
4258 ``struct regcache''.
4259 (struct dummy_frame): Replace field ``registers'' with regcache, a
4260 struct regcache object.
4261 (generic_find_dummy_frame): Update.
4262 (generic_push_dummy_frame): Update. Use regcache_xfree,
4263 regcache_xmalloc and regcache_cpy.
4264 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4265 regcache_xfree.
4266 (deprecated_generic_find_dummy_frame): Update.
4267 (generic_read_register_dummy): Update. Use
4268 regcache_read_as_address.
4269 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4270 (generic_get_saved_register): Update. Use regcache_read.
4271
4272 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4273
4274 * Makefile.in (objfiles_h): Add $(bcache_h).
4275 * objfiles.h: Include "bcache.h".
4276
4277 * Makefile.in (symtab_h): Remove $(bcache_h).
4278 * symtab.h: Do not include "bcache.h".
4279
4280 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4281
4282 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4283 generic_func_frame_chain_valid.
4284
4285 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4286
4287 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4288 * config/i386/tm-fbsd.h: Likewise.
4289
4290 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4291
4292 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4293 generic_unwind_get_saved_register.
4294
4295 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4296
4297 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4298 * regcache.c (supply_register): Add missing argument to
4299 register_buffer call.
4300
4301 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4302
4303 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4304 Solaris /bin/grep does not not like it. From Peter Schauer.
4305
4306 2002-06-26 Tom Tromey <tromey@redhat.com>
4307
4308 * command.h (add_setshow_cmd): Declare.
4309 (add_setshow_cmd_full): Declare.
4310 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4311 returns void. Use add_setshow_cmd_full.
4312 (add_setshow_cmd_full): New function.
4313 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4314 (add_setshow_boolean_cmd): Likewise.
4315
4316 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4317
4318 * config/vax/tm-vax.h: Protect from multiple inclusion.
4319 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4320 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4321 * config/vax/tm-vaxbsd.h: ...here. New file.
4322 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4323
4324 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4325
4326 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4327 (BELIEVE_PCC_PROMOTION): Remove.
4328 (AP_REGNUM): Move to...
4329 * config/vax/nm-vax.h: ...here.
4330 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4331 (vax_breakpoint_from_pc): New function.
4332 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4333 and gdbarch_believe_pcc_promotion.
4334
4335 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4336
4337 * Makefile.in (vax_tdep_h): Define.
4338 (vax-tdep.o): Use $(vax_tdep_h).
4339 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4340 (vax_dump_tdep): New function.
4341 (_initialize_vax_tdep): Register vax_dump_tdep.
4342 * vax-tdep.h: Include osabi.h.
4343 (struct gdbarch_tdep): New.
4344
4345 2002-06-26 Andrew Cagney <cagney@redhat.com>
4346
4347 * frame.h (deprecated_generic_find_dummy_frame): Rename
4348 generic_find_dummy_frame.
4349 * blockframe.c (generic_find_dummy_frame): Make static.
4350 (deprecated_generic_find_dummy_frame): New function.
4351 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4352 generic_find_dummy_frame with deprecated_find_dummy_frame.
4353 (sh64_nofp_frame_init_saved_regs): Ditto.
4354 (sh_fp_frame_init_saved_regs): Ditto.
4355 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4356 (s390_frame_chain): Ditto.
4357 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4358
4359 2002-06-26 Grace Sainsbury <graces@redhat.com>
4360
4361 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4362 gdbarch vector are at the top.
4363 (NUM_REGS): Remove.
4364 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4365 (FRAME_ARGS_ADDRESS): Remove.
4366 (FRAME_LOCALS_ADDRESS): Remove.
4367 (FRAME_NUM_ARGS): Remove.
4368 (FRAME_ARGS_SKIP): Remove.
4369 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4370 (m68k_gdbarch_init): Add gdbarch initializations for macros
4371 undefined in tm-m68k.h
4372
4373 2002-06-26 Grace Sainsbury <graces@redhat.com>
4374
4375 * monitor.h: Add the function regname to monitor_ops
4376 structure. This way NUM_REGS does not have to be a constant.
4377 * monitor.c (monitor_fetch_register): Added support for regname
4378 function. The function is called if the array regnames is NULL.
4379 (monitor_store_register): Same.
4380 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4381 regnames array.
4382 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4383 cpu32bug_cmds.regname to point to new function.
4384 * abug-rom.c (abug_regname): Same as above.
4385 (init_abug_cmds): Same.
4386 * dbug-rom.c (dbug_regname): Same as above.
4387 (init_dbug_cmds): Same.
4388 * remote-est.c (est_regname): Same.
4389 (init_est_cmds): Same.
4390 * rom68k-rom.c (rom68k_regname): Same.
4391 (init_rom68k_cmds): Same.
4392
4393 2002-06-25 Tom Tromey <tromey@redhat.com>
4394
4395 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4396
4397 2002-06-25 Andrew Cagney <cagney@redhat.com>
4398
4399 * infrun.c (stop_registers): Change variable's type to ``struct
4400 regcache'''.
4401 (xmalloc_inferior_status): Delete function.
4402 (free_inferior_status): Delete function.
4403 (normal_stop): Use regcache_cpy.
4404 (struct inferior_status): Change type of fields ``stop_registers''
4405 and ``registers'' to ``struct regcache''.
4406 (write_inferior_status_register): Use regcache_write.
4407 (save_inferior_status): Instead of calling
4408 xmalloc_inferior_status, allocate the inf_status buffer directly.
4409 Use regcache_dup_no_passthrough and regcache_dup to save the
4410 buffers.
4411 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4412 Replace the stop_registers regcache instead of overriding it. Use
4413 regcache_xfree. Instead of calling free_inferior_status, xfree
4414 the buffer directly.
4415 (discard_inferior_status): Use regcache_xfree. Instead of calling
4416 free_inferior_status, xfree the buffer directly.
4417 (build_infrun): Use regcache_xmalloc.
4418 (_initialize_infrun): Delete redundant call to build_infrun.
4419
4420 * Makefile.in (infcmd.o): Add $(regcache_h).
4421
4422 * infcmd.c: Include "regcache.h".
4423 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4424 obtain the address of `stop_registers' register buffer.
4425 (print_return_value): Ditto.
4426
4427 * inferior.h (struct regcache): Add opaque declaration.
4428 (stop_registers): Change variable's declared type to ``struct
4429 regcache''.
4430
4431 2002-06-24 Tom Tromey <tromey@redhat.com>
4432
4433 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4434 * target.c (initialize_targets): Fixed typo in
4435 trust-readonly-sections `show' documentation.
4436
4437 * main.c: Marked all strings with _().
4438
4439 2002-06-24 Don Howard <dhoward@redhat.com>
4440
4441 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4442 that means max CORE_ADDR+1.
4443 (lookup_mem_region): Ditto.
4444 (mem_info_command): Ditto.
4445
4446 2002-06-24 Grace Sainsbury <graces@redhat.com>
4447
4448 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4449 (REGISTER_BYTES_OK): Remove.
4450 (REGISTER_BYTES): Remove.
4451 (STORE_STRUCT_RETURN): Remove.
4452 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4453 (STORE_RETURN_VALUE): Remove.
4454 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4455 (FRAME_CHAIN): Remove.
4456 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4457 (FRAME_SAVED_PC): Remove.
4458 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4459 (m68k_store_struct_return): Add.
4460 (m68k_deprecated_extract_return_value): Add.
4461 (m68k_deprecated_extract_struct_value_address): Add.
4462 (m68k_store_return_value): Add.
4463 (m68k_frame_chain): Add.
4464 (m68k_frameless_function_invocation): Add.
4465 (m68k_frame_saved_pc): Add.
4466 (m68k_gdbarch_init): added set_gdbarch calls for new
4467 functions and deleted macros.
4468
4469 2002-06-23 Tom Tromey <tromey@redhat.com>
4470
4471 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4472 (ALLDEPFILES): Likewise.
4473 (udiheaders): Removed.
4474 (udip2soc.o): Likewise.
4475 (udi2go32.o): Likewise.
4476 (udr.o): Likewise.
4477 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4478
4479 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4480
4481 * infrun.c (_initialize_infrun): Delete unnecessary call to
4482 build_infrun.
4483
4484 * regcache.h: Update comments describing the regcache_cpy family
4485 of functions.
4486 (regcache_save, regcache_restore): Delete declaration.
4487 (regcache_save_no_passthrough): Delete declaration.
4488 (regcache_restore_no_passthrough): Delete declaration.
4489 * regcache.c (regcache_save): Delete function.
4490 (regcache_save_no_passthrough): Delete function.
4491 (regcache_restore): Delete function.
4492 (regcache_restore_no_passthrough): Delete function.
4493
4494 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4495
4496 * config/m68k/tm-m68k.h: Fix typo.
4497 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4498 (m68k_frame_init_saved_regs): Declare.
4499
4500 2002-06-21 Jim Blandy <jimb@redhat.com>
4501
4502 Remove some vestiges of Harris 88k support.
4503 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4504 register numbering quirk.
4505 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4506 odd symbols occurring in Harris 88k ELF targets.
4507
4508 2002-06-21 Tom Tromey <tromey@redhat.com>
4509
4510 * gdb_locale.h: New file.
4511 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4512 (defs_h): Added gdb_locale.h.
4513 * configure, config.in: Rebuilt.
4514 * configure.in (PACKAGE): Define.
4515 * defs.h: Include gdb_locale.h.
4516 * main.c (captured_main): Call setlocale, bindtextdomain,
4517 textdomain.
4518
4519 2002-06-21 Dave Brolley <brolley@redhat.com>
4520
4521 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4522 * config/frv/frv.mt: New file.
4523 * config/frv/tm-frv.h: New file.
4524 * configure.tgt: Support frv-*-*.
4525 * Makefile.in (frv-tdep.o): New target.
4526 * frv-tdep.c: New file.
4527 * NEWS: Mention frv.
4528
4529 2002-06-21 Dave Brolley <brolley@redhat.com>
4530
4531 * MAINTAINERS: Add self to "Write After Approval" list.
4532
4533 2002-06-21 Grace Sainsbury <graces@redhat.com>
4534
4535 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4536 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4537 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4538 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4539 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4540
4541 * m68k-tdep.c: Include arch-utils.h
4542 (m68k_register_raw_size): Add.
4543 (m68k_register_virtual_size): Add.
4544 (m68k_register_virtual_type): Add.
4545 (m68k_register_name): Add.
4546 (m68k_stack_align): Add.
4547 (m68k_register_byte): Add.
4548 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4549 tm-m68k.h.
4550
4551 2002-06-21 Grace Sainsbury <graces@redhat.com>
4552
4553 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4554 m68k_find_saved_regs.
4555 (m68k_pop_frame): Removed saved_regs structure, and replaced
4556 references to it with frame->saved_regs.
4557 (m68k_gdbarch_init): Added function calls to initialize the
4558 gdbarch structure.
4559 (m68k_fix_call_dummy): Add.
4560 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4561 (CALL_DUMMY): Remove.
4562 (CALL_DUMMY_LENGTH): Remove.
4563 (CALL_DUMMY_START_OFFSET): Remove.
4564 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4565 (FIX_CALL_DUMMY): Remove.
4566 (PUSH_DUMMY_FRAME): Remove.
4567 (POP_FRAME): Remove.
4568
4569 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4570
4571 * parse.c (parse_fprintf): New function used to avoid calls to
4572 fprintf in bison parser generated debug code.
4573 * parser-defs.h: Declaration of new parse_fprintf function.
4574 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4575 Set YYDEBUG to 1 by default.
4576 Set YYFPRINTF as parse_fprintf.
4577
4578 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4579
4580 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4581 encoding anymore.
4582 (pointer_encoding, enum ptr_encoding): New.
4583 (execute_cfa_program): Take care about pointer encoding.
4584 (dwarf2_build_frame_info): Only call parse_frame_info for
4585 .debug_frame and .eh_frame.
4586 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4587 fixed augmentation handling, added relative addressing,
4588 ignore duplicate FDEs. Added comments.
4589 * dwarf2cfi.c: Reindented.
4590
4591 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4592
4593 * event-top.c (command_handler): Don't use space_at_cmd_start
4594 unless there is sbrk() on the host. Assign time and space data
4595 to union fields of the appropriate length.
4596
4597 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4598
4599 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4600 x86_64_register_name. Return type changed to 'const char *'.
4601 (x86_64_register_name2nr): Rename to x86_64_register_number.
4602 (x86_64_gdbarch_init): Update to reflect the change.
4603 * x86-64-tdep.h: Ditto.
4604 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4605 (supply_fpregset): Ditto.
4606
4607 2002-06-19 Andrew Cagney <cagney@redhat.com>
4608
4609 * regcache.h: Update copyright.
4610 (struct regcache, struct gdbarch): Add opaque declarations.
4611 (current_regcache): Declare global variable.
4612 (regcache_read, regcache_write): Add gdbarch parameter.
4613 (regcache_save, regcache_save_no_passthrough)
4614 (regcache_restore, regcache_restore_no_passthrough)
4615 (regcache_dup, regcache_dup_no_passthrough)
4616 (regcache_cpy, regcache_cpy_no_passthrough)
4617 (deprecated_grub_regcache_for_registers)
4618 (deprecated_grub_regcache_for_register_valid)
4619 (regcache_valid_p): Add function declarations.
4620
4621 * regcache.c: Update copyright.
4622 (regcache_descr_handle): New global variable.
4623 (struct regcache_descr): Define.
4624 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4625 (regcache_descr, xfree_regcache_descr): New functions.
4626 (struct regcache): Define.
4627 (regcache_xmalloc, regcache_xfree): New functions.
4628 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4629 (regcache_dup, regcache_dup_no_passthrough): New functions.
4630 (regcache_valid_p, regcache_read_as_address): New functions.
4631 (deprecated_grub_regcache_for_registers): New function.
4632 (deprecated_grub_regcache_for_register_valid): New function.
4633 (current_regcache): New global variable.
4634 (register_buffer): Add regcache parameter. Update calls.
4635 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4636 (read_register_gen, write_register_gen): Update register_buffer
4637 call. Test for legacy_p instead of gdbarch_register_read_p or
4638 gdbarch_register_write_p.
4639 (regcache_collect): Update register_buffer call.
4640 (build_regcache): Rewrite. Use deprecated grub functions.
4641 (regcache_save, regcache_save_no_passthrough): New functions.
4642 (regcache_restore, regcache_restore_no_passthrough): New
4643 functions.
4644 (_initialize_regcache): Create the regcache_data_handle. Swap
4645 current_regcache global variable.
4646
4647 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4648 parameter to regcache_read and regcache_write calls.
4649 (sh4_register_read): Ditto.
4650 (sh64_pseudo_register_read): Ditto.
4651 (sh64_register_read): Ditto.
4652 (sh_pseudo_register_write): Ditto.
4653 (sh4_register_write): Ditto.
4654 (sh64_pseudo_register_write): Ditto.
4655 (sh64_register_write): Ditto.
4656
4657 * defs.h (XCALLOC): Define.
4658
4659 2002-06-19 Grace Sainsbury <graces@redhat.com>
4660
4661 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4662 * m68k-tdep.c (m68k_gdbarch_init): Added.
4663 (m68k_dump_tdep): Added.
4664
4665 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4666
4667 * ada-lang.c (fill_in_ada_prototype): Update comment.
4668
4669 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4670
4671 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4672 MIPS_ABI_LAST.
4673 (mips_abi_string, mips_abi_strings): New.
4674 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4675 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4676 tdep->mips_abi_string. Honor mips_abi_string. Default to
4677 O32 if no ABI is found.
4678 (mips_dump_tdep): Use mips_abi_strings.
4679 (mips_abi_update): New function.
4680 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4681 ``set mips abi'' and ``show mips abi''. Check the size of
4682 mips_abi_strings.
4683
4684 2002-06-19 Andrew Cagney <cagney@redhat.com>
4685
4686 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4687 constant.
4688
4689 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4690
4691 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4692 current frame using only the first stack size adjustment. All
4693 subsequent size adjustments are not considered to be part of
4694 the "static" part of the current frame.
4695 Compute the address of the saved registers relative to the
4696 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4697 in use in this frame.
4698
4699 2002-06-18 Don Howard <dhoward@redhat.com>
4700
4701 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4702 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4703 suggesting this solution.
4704
4705 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4706
4707 * config/romp/xm-rtbsd.h: Delete file.
4708 * config/romp/rtbsd.mh: Delete file.
4709
4710 2002-06-18 Keith Seitz <keiths@redhat.com>
4711
4712 * breakpoint.c (condition_command): Post breakpoint_modify
4713 when a condition is added to an existing breakpoint.
4714 (commands_command): Likewise for commands.
4715 (set_ignore_count): Likewise for ignore counts.
4716 If no tty, do not simply return, still need to send event
4717 notification.
4718 (ignore_command): Only print a newline if the command came
4719 from a tty.
4720 Don't call breakpoints_changed, since this is now properly
4721 handled by set_ignore_count.
4722
4723 2002-06-18 Andrew Cagney <cagney@redhat.com>
4724
4725 * MAINTAINERS: Note that cris-elf target can be compiled with
4726 -Werror.
4727 * cris-tdep.c (cris_register_name): Make return type constant.
4728 (cris_breakpoint_from_pc): Ditto.
4729
4730 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4731
4732 * frame.h (struct frame_info): Change type of context to
4733 'struct context'.
4734
4735 2002-06-17 Andrew Cagney <cagney@redhat.com>
4736
4737 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4738 pointer.
4739 * gdbarch.h, gdbarch.c: Regenerate.
4740 * config/mips/tm-mips.h (mips_register_name): Update.
4741 * i386-tdep.h (i386_register_name): Update.
4742 * mips-tdep.c (mips_register_name): Update
4743 * alpha-tdep.c (alpha_register_name): Update.
4744 * arch-utils.c (legacy_register_name): Update.
4745 * arch-utils.h (legacy_register_name): Update.
4746 * avr-tdep.c (avr_register_name): Update.
4747 * ia64-tdep.c (ia64_register_name): Update.
4748 * i386-tdep.c (i386_register_name): Update.
4749 * sparc-tdep.c (sparc32_register_name): Update.
4750 (sparc64_register_name): Update.
4751 (sparclite_register_name): Update.
4752 (sparclet_register_name): Update.
4753 * sh-tdep.c (sh_generic_register_name): Update.
4754 (sh_sh_register_name): Update.
4755 (sh_sh3_register_name): Update.
4756 (sh_sh3e_register_name): Update.
4757 (sh_sh_dsp_register_name): Update.
4758 (sh_sh3_dsp_register_name): Update.
4759 (sh_sh4_register_name): Update.
4760 (sh_sh64_register_name): Update.
4761 * s390-tdep.c (s390_register_name): Update.
4762 * rs6000-tdep.c (rs6000_register_name): Update.
4763 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4764 (ns32k_register_name_32382): Update.
4765 * d10v-tdep.c (d10v_ts2_register_name): Update.
4766 (d10v_ts3_register_name): Update.
4767 * xstormy16-tdep.c (xstormy16_register_name): Update.
4768 * vax-tdep.c (vax_register_name): Update.
4769 * v850-tdep.c (v850_register_name): Update.
4770 * m68hc11-tdep.c (m68hc11_register_name): Update.
4771 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4772 (am33_register_name): Update.
4773
4774 2002-06-17 Grace Sainsbury <graces@redhat.com>
4775
4776 * m68k-tdep.c: Reindented.
4777
4778 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4779
4780 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4781 list of predefined types.
4782
4783 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4784
4785 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4786 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4787 REGISTER_CONVERT_TO_RAW): Remove defines.
4788 (i386_register_virtual_type, i386_register_convertible,
4789 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4790 Remove prototypes.
4791 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4792 macros mentioned above.
4793
4794 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4795 (i386lynx_saved_pc_after_call): Remove prototype.
4796 * i386ly-tdep.c: Include "i386-tdep.h".
4797 (i386lynx_saved_pc_after_call): Make static. Use
4798 read_memory_nobpt instead of read_memory. Use
4799 read_memory_unsigned_integer instead of read_memory_integer.
4800 (i386lynx_init_abi): New function.
4801 (i386lynx_coff_osabi_sniffer): New function.
4802 (_initialize_i386bsd_tdep): New function.
4803
4804 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4805 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4806 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4807 (i386_fix_call_dummy): Remove prototype.
4808 * i386-tdep.c (i386_call_dummy_words): New variable.
4809 (i386_gdbarch_init): Adjust for removal of the
4810 macros mentioned above.
4811
4812 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4813
4814 * command.h (add_setshow_auto_boolean_cmd): Replace
4815 add_set_auto_boolean_cmd.
4816 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4817 add_set_auto_boolean_cmd.
4818 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4819 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4820 mask-address'' command.
4821 (show_mask_address): Add cmd parameter.
4822 * remote.c (add_packet_config_cmd): Update. Change type of
4823 set_func and show_func to cmd_sfunc_ftype.
4824 (_initialize_remote): Update `set remote Z-packet'
4825 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4826 (show_remote_protocol_e_packet_cmd): Ditto.
4827 (show_remote_protocol_E_packet_cmd): Ditto.
4828 (show_remote_protocol_P_packet_cmd): Ditto.
4829 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4830 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4831 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4832 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4833 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4834 (show_remote_protocol_Z_packet_cmd): Ditto.
4835 (show_remote_protocol_binary_download_cmd): Ditto.
4836 (show_remote_cmd): Pass NULL to all of above.
4837
4838 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4839
4840 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4841 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4842 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4843 POP_FRAME): Remove defines.
4844 (i386_push_arguments, i386_store_struct_return,
4845 i386_extract_return_value, i386_store_return_value,
4846 i386_extract_struct_value_address, i386_push_dummy_frame,
4847 i386_pop_frame): Renove prototypes.
4848 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4849 macros mentioned above.
4850
4851 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4852
4853 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4854 add_set_boolean_cmd.
4855 (add_setshow_cmd): New function.
4856 * command.h (add_setshow_boolean_cmd): Replace
4857 add_set_boolean_cmd.
4858 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4859 and ``set rdiromatzero''.
4860 * maint.c (_initialize_maint_cmds): Update commented out code.
4861 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4862 * target.c (initialize_targets): Update `set
4863 trust-readonly-sections'.
4864 * remote.c (_initialize_remote): Update `set remotebreak'.
4865
4866 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4867
4868 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4869 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4870 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4871 fit into multi-arch framework.
4872 (i386_breakpoint_from_pc): New function.
4873 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4874 above.
4875
4876 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4877 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4878 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4879 (i386_frameless_function_invocation, i386_frame_num_args,
4880 i386_frame_init_saved_regs): Remove prototypes.
4881 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4882 macros mentioned above.
4883
4884 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4885
4886 * cli/cli-decode.c (set_cmd_cfunc): Update.
4887 (set_cmd_sfunc): Update.
4888 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4889 (set_cmd_sfunc, set_cmd_cfunc): Update.
4890 * cli/cli-decode.h: Update.
4891
4892 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4893
4894 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4895 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4896
4897 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4898
4899 * defs.h (auto_boolean): Declare enum.
4900 * command.h (cmd_auto_boolean): Delete enum.
4901 * mips-tdep.c (mask_address_var): Update.
4902 (mips_mask_address_p): Update.
4903 (show_mask_address): Update.
4904 * remote.c (struct packet_config): Update.
4905 (update_packet_config): Update.
4906 (show_packet_config_cmd): Update.
4907 (packet_ok): Update.
4908 (add_packet_config_cmd): Update.
4909 (_initialize_remote):
4910 * command.h: Update.
4911 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4912 (do_setshow_command): Update.
4913 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4914 * cli/cli-decode.h: Update.
4915
4916 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4917
4918 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4919 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4920 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4921 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4922 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4923 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4924
4925 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4926 list of DJGPP COFF targets.
4927
4928 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4929 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4930 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4931 (FP0_REGNUM): Remove define.
4932 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4933 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4934 (i386_register_virtual_size): Remove protoype.
4935 * i386-tdep.c (i386_register_virtual_size): Removed.
4936 (i386_extract_return_value, i386_store_return_value): Use
4937 FP0_REGNUM instead of NUM_FREGS to determine whether the
4938 floating-point registers are available.
4939 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4940 Adjust for removal of macros mentioned above.
4941
4942 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4943
4944 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4945 comments.
4946 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4947 Remove prototypes.
4948 (supply_gregset, fill_gregset): Remove use of register keyword and
4949 remove declaration for regmap. Use I386_NUM_GREGS instead of
4950 NUM_REGS and NUM_FREGS.
4951 (FPREGSET_FSAVE_OFFSET): Remove.
4952 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4953 NUM_FREGS to determine whether the floating-point registers are
4954 available.
4955
4956 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4957 gnu_store_registers): Replace usage of NUM_GREGS with
4958 I386_NUM_GREGS.
4959
4960 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4961 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4962 usage of NUM_GREGS with I386_NUM_GREGS.
4963
4964 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4965
4966 * i386bsd-nat.c: Include "i386-tdep.h".
4967 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4968 I386_NUM_GREGS.
4969
4970 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4971 and associated comment. They no longer make any sense, since we
4972 don't use this file anymore on Linux.
4973
4974 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4975 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4976 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4977 elements in these arrays.
4978 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4979 MAX_NUM_REGS.
4980
4981 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4982
4983 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4984 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4985
4986 2002-06-14 Andrew Cagney <cagney@redhat.com>
4987
4988 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4989 EXTRACT_RETURN_VALUE.
4990 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4991 EXTRACT_STRUCT_VALUE_ADDRESS.
4992 * gdbarch.h, gdbarch.c: Regenerate.
4993
4994 * values.c (value_being_returned): Handle
4995 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4996 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4997
4998 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4999 * arm-tdep.c (arm_gdbarch_init): Update.
5000 * avr-tdep.c (avr_gdbarch_init): Update.
5001 * cris-tdep.c (cris_gdbarch_init): Update.
5002 * d10v-tdep.c (d10v_gdbarch_init): Update.
5003 * ia64-tdep.c (ia64_gdbarch_init): Update.
5004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5005 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5006 * s390-tdep.c (s390_gdbarch_init): Update.
5007 * sh-tdep.c (sh_gdbarch_init): Update.
5008 * s390-tdep.c (s390_gdbarch_init): Update.
5009 * sparc-tdep.c (sparc_gdbarch_init): Update.
5010 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5011 * v850-tdep.c (v850_gdbarch_init): Update.
5012 * vax-tdep.c (vax_gdbarch_init): Update.
5013 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5014 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5015
5016 * config/arc/tm-arc.h: Update.
5017 * config/d30v/tm-d30v.h: Update.
5018 * config/fr30/tm-fr30.h: Update.
5019 * config/h8300/tm-h8300.h: Update.
5020 * config/h8500/tm-h8500.h: Update.
5021 * config/i386/tm-i386.h: Update.
5022 * config/i386/tm-ptx.h: Update.
5023 * config/i386/tm-symmetry.h: Update.
5024 * config/i960/tm-i960.h: Update.
5025 * config/m32r/tm-m32r.h: Update.
5026 * config/m68k/tm-delta68.h: Update.
5027 * config/m68k/tm-linux.h: Update.
5028 * config/m68k/tm-m68k.h: Update.
5029 * config/m88k/tm-m88k.h: Update.
5030 * config/mcore/tm-mcore.h: Update.
5031 * config/mips/tm-mips.h: Update.
5032 * config/mn10200/tm-mn10200.h: Update.
5033 * config/pa/tm-hppa.h: Update.
5034 * config/pa/tm-hppa64.h: Update.
5035 * config/sparc/tm-sp64.h: Update.
5036 * config/sparc/tm-sparc.h: Update.
5037 * config/sparc/tm-sparclet.h: Update.
5038 * config/z8k/tm-z8k.h: Update.
5039
5040 2002-06-14 Andrew Cagney <cagney@redhat.com>
5041
5042 * Makefile.in (i386_linux_tdep_h): Define.
5043 (i386_tdep_h, i387_tdep_h): Define.
5044 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5045 $(i386_tdep_h) and $(i387_tdep_h).
5046 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5047
5048 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5049
5050 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5051 Already covered by the default.
5052
5053 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5054 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5055 (i386_gdbarch_init): Initialize long_double_format and long_double
5056 bit.
5057
5058 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5059 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5060 Move these to ...
5061 * config/i386/i386sol2.mh: ... here.
5062 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5063 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5064 (SIGCONTEXT_PC_OFFSET): Remove define.
5065 (IN_SIGTRAMP): Remove define.
5066 * i386-sol2-tdep.c: New file.
5067
5068 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5069 * config/i386/tm-i386nw.h: Removed.
5070
5071 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5072 USE_STRUCT_CONVENTION): Remove defines.
5073 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5074 (get_longjmp_target): Remove prototype.
5075 (IN_SIGTRAMP): Remove define.
5076 (i386bsd_in_sigtramp): Remove prototype.
5077 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5078 function. Update comment accordingly
5079 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5080 (FRAME_SAVED_PC): Remove define.
5081 (i386bsd_frame_saved_pc): Remove prototype.
5082 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5083 GET_LONGJMP_TARGET): Remove defines.
5084 (get_longjmp_target): Remove prototype.
5085 (IN_SIGTRAMP): Remove define.
5086 (i386bsd_in_sigtramp): Remove prototype.
5087 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5088 function. Update comment accordingly
5089 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5090 (FRAME_SAVED_PC): Remove define.
5091 (i386bsd_frame_saved_pc): Remove prototype.
5092 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5093 Remove prototype.
5094 (USE_STRUCT_CONVENTION): Remove prototype.
5095 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5096 declaration.
5097 (_initialize_i386bsd_nat): Revise logic to determine some
5098 constants at compile time when compiling a native GDB. Warn if
5099 things don't match up with what we expect.
5100 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5101 Remove variables.
5102 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5103 to use date stored in `struct gdbarch_tdep'.
5104 (i386bsd_sigcontext_offset): Remove varaible.
5105 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5106 stored in `struct gdbarch_tdep'.
5107 (i386bsd_frame_saved_pc): Make static.
5108 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5109 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5110 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5111 i386fbsd4_sc_pc_offset): New variables.
5112 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5113 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5114 functions.
5115 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5116 functions.
5117 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5118 Modify the value of i386fbsd_sigtramp_start and
5119 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5120 i386fbsd_sigtramp_end.
5121 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5122 function.
5123
5124 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5125 define to i386-linux-tdep.h.
5126 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5127 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5128 defines.
5129 (i386_linux_register_name, i386_linux_register_byte,
5130 i386_linux_register_raw_size): Remove prototypes.
5131 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5132 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5133 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5134 TARGET_WRITE_PC): Remove defines.
5135 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5136 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5137 i386_linux_write_pc): Remove prototypes.
5138 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5139 (get_longjmp_target): Remove prototype.
5140 * i386-linux-tdep.h: New file.
5141 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5142 * i386-linux-tdep.c: Include "i386-tdep.h" and
5143 "i386-linux-tdep.h".
5144 (i386_linux_register_name, i386_linux_register_byte,
5145 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5146 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5147 Make static.
5148 (i386_linux_init_abi): New function.
5149 (_initialize_i386_linux_tdep): New function.
5150
5151 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5152 (i386_saved_pc_after_call): Remove prototype.
5153 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5154 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5155 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5156 (i386_register_name, i386_stab_reg_to_regnum,
5157 i386_dwarf_reg_to_regnum): Remove prototypes.
5158 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5159 SIZEOF_SSE_REGS): Remove defines.
5160 (REGISTER_BYTES): Remove define.
5161 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5162 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5163 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5164 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5165 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5166 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5167 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5168 (get_longjmp_target): Remove prototype.
5169 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5170 (sigtramp_saved_pc): Remove define.
5171 (i386v4_sigtramp_saved_pc): Remove prototype.
5172 * config/i386/tm-go32.h (FRAME_CHAIN,
5173 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5174 (i386go32_frame_saved_pc): Remove prototype.
5175 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5176 (get_longjmp_target): Remove prototype.
5177 * i386-tdep.h: Include "osabi.h".
5178 (enum i386_abi): Removed.
5179 (enum struct_return): New enum.
5180 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5181 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5182 sc_pc_offset members.
5183 (i386_gdbarch_register_os_abi): Remove prototype.
5184 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5185 I386_SSE_NUM_REGS): New defines.
5186 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5187 I386_SSE_SIZEOF_REGS): New defines.
5188 (i386_register_name, i386_register_byte, i386_register_raw_size):
5189 New prototypes.
5190 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5191 (i386bsd_sigtramp_saved_pc): New prototype.
5192 * i386-tdep.c: Don't include "elf-bfd.h".
5193 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5194 i386_frame_chain, i386_saved_pc_after_call): Make static.
5195 (i386_frame_saved_pc): Rewrite to call architecture dependent
5196 function to deal with signal handlers. Make static.
5197 (i386go32_frame_saved_pc): Removed.
5198 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5199 Removed.
5200 (i386_get_longjmp_target): New function.
5201 (default_struct_convention, pcc_struct_convention,
5202 reg_struct_convention, valid_conventions, struct_convention): New
5203 variables.
5204 (i386_use_struct_convention): New function.
5205 (i386v4_sigtramp_saved_pc): Renamed to
5206 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5207 (i386_pc_in_sigtramp): New function.
5208 (i386_abi_names): Removed.
5209 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5210 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5211 Removed.
5212 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5213 i386_gdbarch_register_os_abi): Removed.
5214 (struct i386_abi_handler): Removed.
5215 (i386_abi_handler_list): Removed.
5216 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5217 functions.
5218 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5219 i386_nw_init_abi): New functions.
5220 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5221 Use set_gdbarch_xxx() calls instead of relying on macros for a
5222 number of calls.
5223 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5224 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5225 Register the various architecture variants defined in this file.
5226
5227 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5228
5229 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5230 (struct main_type): Remove arg_types member. Update comments for
5231 struct field.
5232 (TYPE_ARG_TYPES): Remove.
5233 (TYPE_FN_FIELD_ARGS): Update.
5234 (smash_to_method_type): Update prototype.
5235
5236 * c-typeprint.c (cp_type_print_method_args): Take method type
5237 instead of argument list. Use new argument layout. Simplify.
5238 (c_type_print_args): Use new argument layout. Simplify.
5239 (c_type_print_base): Update call to cp_type_print_method_args.
5240 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5241 argument; use die->type instead. Update call to
5242 smash_to_method_type.
5243 (read_structure_scope): Update call to dwarf2_add_member_fn.
5244 * gdbtypes.c (allocate_stub_method): Update comment.
5245 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5246 Use new argument layout.
5247 (check_stub_method): Use new argument layout. Don't count
5248 void as an argument.
5249 (print_arg_types): Update comments. Use new argument layout.
5250 (recursive_dump_type): Don't print arg_types member.
5251 * hpread.c (hpread_read_struct_type): Use new argument layout.
5252 (fixup_class_method_type): Likewise.
5253 (hpread_type_lookup): Likewise.
5254 * stabsread.c (read_type): Update calls to read_args and
5255 smash_to_method_type.
5256 (read_args): Use new argument layout. Simplify.
5257 * valops.c (typecmp): Use new argument layout. Update parameters
5258 and comments. Simplify.
5259 (hand_function_call): Use new argument layout.
5260 (search_struct_method): Update call to typecmp.
5261 (find_overload_match): Use new argument layout.
5262
5263 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5264
5265 * NEWS: Mention multithreaded debug support for gdbserver.
5266
5267 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5268
5269 * MAINTAINERS: Mention NEWS.
5270
5271 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5272
5273 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5274 (struct mips_objfile_private, compare_pdr_entries): New.
5275 (non_heuristic_proc_desc): Read the ".pdr" section if it
5276 is present.
5277
5278 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5279
5280 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5281 (arm_debug): New static variable.
5282 (_initialize_arm_tdep): Add ``set debug arm'' command.
5283
5284 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5285
5286 * Makefile.in (sim_arm_h): Define.
5287 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5288 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5289 (arm_register_sim_regno): New function, map an internal REGNUM
5290 onto a simulator register number.
5291 (arm_gdbarch_init): Set register_sim_regno.
5292
5293 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5294
5295 * MAINTAINERS: Add self.
5296
5297 2002-06-11 Jim Blandy <jimb@redhat.com>
5298
5299 * source.c (source_info): Mention whether the symtab has
5300 information about preprocessor macros.
5301
5302 Call the command `info macro', not `show macro'.
5303 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5304 Fix error message.
5305 (_initialize_macrocmd): Register `info_macro_command' in
5306 `infolist', not `showlist'.
5307
5308 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5309
5310 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5311 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5312 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5313 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5314 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5315 unconditionally.
5316 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5317 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5318 (_initialize_mips_tdep): Remove dead code.
5319 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5320 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5321 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5322 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5323 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5324 MIPS_LAST_FP_ARG_REGNUM): Remove.
5325
5326 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5327
5328 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5329 (unwind_tmp_obstack_free, parse_frame_info)
5330 (update_context, cfi_read_fp, cfi_write_fp)
5331 (cfi_frame_chain, cfi_init_extra_frame_info)
5332 (cfi_virtual_frame_pointer): Use the above function.
5333 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5334
5335 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5336
5337 * v850-tdep.c (v850_type_is_scalar): New function.
5338 (v850_use_struct_convention): Match current gcc implementation
5339 as close as possible.
5340 (v850_push_arguments): Fix stack_offset handling. Don't write
5341 struct_addr into register. This is done by v850_store_struct_return.
5342 (v850_extract_return_value): Care for structs.
5343 (v850_store_return_value): Ditto.
5344 (v850_store_struct_return): Actually write address.
5345
5346 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5347
5348 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5349 without debug information too.
5350
5351 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5352
5353 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5354 Make multi-arch pure.
5355 * gdbarch.h, gdbarch.c: Re-generate.
5356 * arm-tdep.c (arm_print_float_info): Update.
5357 * arch-utils.h (default_print_float_info): Update.
5358 * arch-utils.c (default_print_float_info): Update.
5359 * infcmd.c (float_info): Update call.
5360
5361 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5362
5363 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5364 the front of the initialize list.
5365
5366 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5367
5368 * infrun.c (struct inferior_status): Replace fields
5369 selected_frame_address and selected_level with field
5370 selected_frame_id.
5371 (save_inferior_status): Update. Use get_frame_id.
5372 (struct restore_selected_frame_args): Delete.
5373 (restore_selected_frame): Update. Use frame_find_by_id.
5374 (restore_inferior_status): Update.
5375
5376 * breakpoint.h (struct breakpoint): Change type of
5377 watchpoint_frame to frame_id.
5378 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5379 call to get_current_frame.
5380 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5381 get_current_frame.
5382 (watchpoint_check): Use frame_find_by_id.
5383
5384 * frame.h (record_selected_frame): Delete declaration.
5385 * stack.c (record_selected_frame): Delete function.
5386
5387 * frame.h (struct frame_id): Define.
5388 (get_frame_id): Declare.
5389 (frame_find_by_id): Declare.
5390 * frame.c (frame_find_by_id): New function.
5391 (get_frame_id): New function.
5392
5393 2002-06-10 Andrey Volkov <avolkov@transas.com>
5394
5395 * ser-e7kpc.c: Fix duplicated define and call of
5396 _initialize_ser_e7000pc
5397
5398 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5399
5400 * signals/signals.c (target_signal_from_host): Fix #ifdef
5401 SIGRTMIN case.
5402 (do_target_signal_to_host): Likewise.
5403
5404 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5405
5406 * mips-tdep.c (mips_find_abi_section): New function.
5407 (mips_gdbarch_init): Call it.
5408
5409 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5410
5411 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5412 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5413 after Andrew's 2002-06-08 gdbarch change.
5414
5415 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5416
5417 * i386-linux-nat.c (suppy_gregset): Don't supply
5418 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5419 register cache.
5420 (fill_gregset): Don't fetch it under the same circumstances.
5421
5422 2002-06-09 Andrew Cagney <cagney@redhat.com>
5423
5424 * Makefile.in (callback_h): Define.
5425 (remote_sim_h): Update path to remote-sim.h.
5426 (remote-rdp.o): Add $(callback_h).
5427 (remote-sim.o): Use $(callback_h).
5428 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5429 * remote-rdp.c: Include "gdb/callback.h".
5430
5431 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5432
5433 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5434 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5435
5436 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5437
5438 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5439 * rdi-share/serpardr.c: Ditto.
5440 * rdi-share/unixcomm.c: Ditto.
5441 * rdi-share/serdrv.c: Ditto.
5442 * rdi-share/hostchan.h: Ditto.
5443 * rdi-share/hostchan.c: Ditto.
5444 * rdi-share/host.h: Ditto.
5445 * rdi-share/devsw.c: Ditto.
5446
5447 * objfiles.h: Change type of obj_private to void pointer.
5448 * pa64solib.c: Update copyright. Don't include "assert.h", use
5449 strcmp instead of STREQ, use LONGEST, do not use PTR
5450 * somsolib.c: Ditto.
5451
5452 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5453 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5454 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5455
5456 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5457
5458 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5459 (default_get_saved_register): Delete function.
5460 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5461 generic_unwind_get_saved_register.
5462 * gdbarch.h, gdbarch.c: Re-generate.
5463
5464 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5465
5466 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5467 generic_func_frame_chain_valid.
5468 * gdbarch.h, gdbarch.c: Re-generate.
5469 * blockframe.c (generic_func_frame_chain_valid): Only check
5470 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5471 passing FP to PC_IN_CALL_DUMMY.
5472 Fix PR gdb/360.
5473
5474 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5475
5476 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5477 (register_gdbarch_data): Initialize init_p.
5478 (gdbarch_data): Initialize data pointer using the init function.
5479 (init_gdbarch_data): Delete function.
5480 (gdbarch_update_p): Update.
5481 (initialize_non_multiarch): Update.
5482 (struct gdbarch): Add field initialized_p.
5483 * gdbarch.h, gdbarch.c: Re-generate.
5484
5485 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5486
5487 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5488 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5489 better do the things actually here.
5490 * x86-64-tdep.c (x86_64_register_name2nr): New.
5491 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5492 (x86_64_gdbarch_init): Respect the above change.
5493 * x86-64-tdep.h (x86_64_register_name2nr)
5494 (x86_64_register_nr2name): Add prototypes.
5495 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5496
5497 2002-06-06 Michael Snyder <msnyder@redhat.com>
5498
5499 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5500 Delete extra braces and re-indent.
5501 (d10v_store_return_value): Char return values
5502 must be shifted over by one byte in R0.
5503 (d10v_extract_return_value): Delete extra braces, re-indent.
5504
5505 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5506
5507 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5508 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5509 (d10v_integer_to_address): Rewrite.
5510 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5511 the d10v specific functions which take care of converting to the
5512 correct space.
5513
5514 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5515
5516 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5517 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5518
5519 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5520
5521 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5522 includes.
5523 * config/tm-linux.h: Ditto.
5524 * config/alpha/tm-alphalinux.h: Ditto.
5525 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5526 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5527 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5528 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5529 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5530 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5531 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5532 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5533 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5534 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5535 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5536 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5537 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5538 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5539 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5540 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5541 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5542 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5543 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5544 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5545 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5546 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5547 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5548 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5549 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5550 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5551 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5552 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5553 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5554 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5555 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5556 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5557 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5558 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5559 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5560 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5561 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5562
5563 2002-05-04 Aidan Skinner <aidan@velvet.net>
5564
5565 * ada-exp.tab.c: New file
5566 * ada-exp.y: New file
5567 * ada-lang.c: New file
5568 * ada-lang.h: New file
5569 * ada-lex.c: New file
5570 * ada-lex.l: New file
5571 * ada-tasks.c: New file
5572 * ada-typeprint.c: New file
5573 * ada-valprint.c: New file
5574
5575 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5576
5577 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5578 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5579
5580 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5581
5582 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5583 insetead of ppc-linux-tdep.o.
5584 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5585 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5586
5587 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5588
5589 2002-05-07 Christian Groessler <chris@groessler.org>
5590 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5591 bit register contents for little endian hosts.
5592
5593 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5594
5595 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5596 any maintainer.
5597
5598 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5599
5600 * gdbarch.h: Regenerate.
5601
5602 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5603
5604 * MAINTAINERS: Add everyone to write-after-approval list.
5605
5606 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5607
5608 * stack.c (frame_info): Use frame_register_unwind instead of
5609 saved_regs. Mention when the SP is on the stack or in a register.
5610
5611 * frame.h (frame_register_unwind_ftype): Define. Document.
5612 (struct frame_info): Add field register_unwind and
5613 register_unwind_cache.
5614 (frame_register_unwind): Declare.
5615 (generic_unwind_get_saved_register): Declare.
5616
5617 * frame.c (frame_register_unwind): New function.
5618 (generic_unwind_get_saved_register): New function.
5619
5620 * blockframe.c (generic_call_dummy_register_unwind): New function.
5621 (frame_saved_regs_register_unwind): New function.
5622 (set_unwind_by_pc): New function.
5623 (create_new_frame): New function.
5624 (get_prev_frame): New function.
5625
5626 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5627
5628 * a29k-share/: Delete directory.
5629 * remote-vx29k.c: Delete file.
5630
5631 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5632
5633 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5634 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5635
5636 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5637
5638 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5639 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5640 (sparc64nbsd-nat.o)
5641 (sparcnbsd-nat.o)
5642 (sparcnbsd-tdep.o): New dependency lists.
5643 * NEWS: Note new UltraSPARC NetBSD native configuration.
5644 * configure.host (sparc64-*-netbsd*): New host.
5645 * configure.tgt (sparc-*-netbsdelf*)
5646 (sparc-*-netbsd*): Set gdb_target to nbsd.
5647 (sparc64-*-netbsd*): New target.
5648 * sparc64nbsd-nat.c: New file.
5649 * sparcnbsd-nat.c: New file.
5650 * sparcnbsd-tdep.c: New file.
5651 * sparcnbsd-tdep.h: New file.
5652 * config/sparc/nbsd.mt: New file.
5653 * config/sparc/nbsd64.mh: New file.
5654 * config/sparc/nbsd64.mt: New file.
5655 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5656 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5657 (HOST_IPC): Remove.
5658 * config/sparc/nbsdaout.mt: Remove.
5659 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5660 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5661 (HOST_IPC): Remove.
5662 * config/sparc/nbsdelf.mt: Remove.
5663 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5664 sparc-nat.c compatiblity defines.
5665 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5666 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5667 * config/sparc/tm-nbsd64.h: New file.
5668 * config/sparc/tm-nbsdaout.h: Remove.
5669 * config/sparc/xm-nbsd.h: Remove.
5670
5671 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5672
5673 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5674 * sparc-tdep.c: Include osabi.h.
5675 (gdbarch_tdep): Add osabi member.
5676 (_initialize_sparc_tdep): Use gdbarch_register.
5677 (sparc_gdbarch_init): Use generic OS ABI framework.
5678 (sparc_dump_tdep): New function.
5679
5680 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5681
5682 * corefile.c (do_captured_read_memory_integer): Return non-zero
5683 result.
5684 (safe_read_memory_integer): Copy result of memory read when
5685 status is non-zero. Also, add comments.
5686
5687 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5688
5689 * Makefile.in (ppc_tdep_h): Define.
5690 (ppc-linux-nat.o)
5691 (ppc-linux-tdep.o)
5692 (rs6000-tdep.o): Use $(ppc_tdep_h).
5693 (ppc-sysv-tdep.o)
5694 (ppcnbsd-nat.o)
5695 (ppcnbsd-tdep.o): New dependency lists.
5696 * ppc-tdep.h: Use generic OS ABI framework.
5697 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5698 (ppc_linux_init_abi): New functions.
5699 (ppc_sysv_abi_broken_use_struct_convention)
5700 (ppc_sysv_abi_use_struct_convention)
5701 (ppc_sysv_abi_push_arguments): Move to...
5702 * ppc-sysv-tdep.c: ...here.
5703 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5704 * rs6000-tdep.c (process_note_abi_tag_sections)
5705 (get_elfosabi): Remove.
5706 (rs6000_gdbarch_init): Use generic OS ABI framework.
5707 (rs6000_dump_tdep): New function.
5708 (_initialize_rs6000_tdep): Use gdbarch_register.
5709 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5710 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5711 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5712 of ppc-linux-tdep.o.
5713 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5714 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5715 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5716 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5717 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5718 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5719
5720 2002-05-29 Jim Blandy <jimb@redhat.com>
5721
5722 * macroscope.c (default_macro_scope): Put `void' in empty argument
5723 list.
5724
5725 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5726
5727 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5728 * arch-utils.c: Include "sim-regno.h".
5729 * gdbarch.sh: Don't include "sim-regno.h".
5730 * gdbarch.h, gdbarch.c: Regenerate.
5731 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5732 here.
5733 * arch-utils.h (legacy_register_sim_regno): To here.
5734 * remote-sim.c (legacy_register_sim_regno): Move function from
5735 here.
5736 * arch-utils.c (legacy_register_sim_regno): To here.
5737
5738 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5739
5740 * sim-regno.h: New file.
5741 * Makefile.in (sim_regno_h): Define.
5742 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5743 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5744 (legacy_register_sim_regno): New function.
5745 (one2one_register_sim_regno): New function.
5746 (gdbsim_fetch_register): Rewrite.
5747 (gdbsim_store_register): Only store a register when
5748 REGISTER_SIM_REGNO is valid.
5749 * d10v-tdep.c: Include "sim-regno.h".
5750 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5751 (d10v_ts3_register_sim_regno): Ditto.
5752 * gdbarch.sh: Include "sim-regno.h".
5753 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5754 * gdbarch.h, gdbarch.c: Regenerate.
5755 * arch-utils.h (default_register_sim_regno): Delete declaration.
5756 * arch-utils.c (default_register_sim_regno): Delete function.
5757
5758 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5759
5760 * ppcnbsd-nat.c: Rewrite.
5761 * ppcnbsd-tdep.c: New file.
5762 * ppcnbsd-tdep.h: New file.
5763 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5764 solib.o, and solib-svr4.o.
5765 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5766 nbsd-tdep.o, and corelow.o.
5767
5768 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5769
5770 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5771 `tr' and `sed'. Mention that `broken' targets are not expected to
5772 build.
5773
5774 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5775
5776 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5777 Let PC point right after the prologue before looking up symbols.
5778
5779 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5780
5781 * i386-tdep.c (i386_register_virtual_type): Return
5782 builtin_type_vec128i for SSE registers.
5783
5784 * gdbtypes.h (builtin_type_vec128i): Declare.
5785
5786 * gdbtypes.c (build_builtin_type_vec128i): New function.
5787 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5788 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5789 (build_gdbtypes): Initialize new builtin vector types.
5790 (_initialize_gdbtypes): Register new vector types with gdbarch.
5791
5792 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5793
5794 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5795 since it has been multi-arch'd.
5796 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5797 Move Alpha and VAX multi-arch news entries to same section
5798 as other multi-arch news.
5799
5800 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5801
5802 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5803 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5804 static. Rename some register numbers to put them in ns32k-tdep
5805 private namespace.
5806 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5807 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5808 functions.
5809 (_initialize_ns32k_tdep): Use gdbarch_register.
5810 * ns32k-tdep.h: New file.
5811 * ns32knbsd-tdep.c: New file.
5812 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5813 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5814 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5815 REGISTER_BYTES, REGISTER_BYTE): Remove.
5816 * config/ns32k/tm-ns32k.h: New file.
5817 * config/ns32k/tm-umax.h: Remove.
5818
5819 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5820
5821 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5822 ns32k_store_struct_return, ns32k_extract_return_value,
5823 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5824 functions.
5825 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5826 ns32k_saved_pc_after_call.
5827 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5828 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5829 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5830 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5831 ns32k_extract_struct_value_address.
5832
5833 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5834
5835 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5836 ns32k_fix_call_dummy): New.
5837 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5838 ns32k_call_dummy_words.
5839 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5840 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5841 CALL_DUMMY_NARGS): Remove.
5842 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5843
5844 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5845
5846 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5847 ns32k_frame_saved_pc, ns32k_frame_args_address,
5848 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5849 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5850 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5851 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5852 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5853 (BREAKPOINT): Remove..
5854 (FRAME_CHAIN): Define as ns32k_frame_chain.
5855 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5856 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5857 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5858 (FRAME_FIND_SAVED_REGS): Remove.
5859 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5860 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5861 (POP_FRAME): Define as ns32k_pop_frame.
5862
5863 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5864
5865 * ns32k-tdep.c (ns32k_register_byte_32082,
5866 ns32k_register_byte_32382, ns32k_register_raw_size,
5867 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5868 functions.
5869 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5870 ns32k_register_byte_32382.
5871 * config/ns32k/tm-umax.h: Update copyright years.
5872 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5873 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5874 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5875 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5876 (ns32k_get_enter_addr): Fix prototype.
5877
5878 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5879
5880 * ns32k-tdep.c: Update copyright years.
5881 (ns32k_register_name_32082): New function.
5882 (ns32k_register_name_32382): Ditto.
5883 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5884 (REGISTER_NAME): Define as ns32k_register_name_32382.
5885 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5886 (REGISTER_NAME): Define as ns32k_register_name_32082.
5887
5888 2002-05-24 Jim Blandy <jimb@redhat.com>
5889
5890 * dwarf2read.c (free_line_header): Use xfree, not free.
5891
5892 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5893
5894 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5895 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5896
5897 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5898
5899 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5900
5901 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5902
5903 From Ross Alexander at NEC Europe:
5904 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5905
5906 2002-05-23 Michael Snyder <msnyder@redhat.com>
5907
5908 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5909 for input, rather than parse_and_eval_address.
5910
5911 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5912
5913 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5914 * Makefile.in (sim_d10v_h): Update definition.
5915
5916 2002-05-24 Andrew Cagney <cagney@redhat.com>
5917
5918 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5919 change `2002-05-22 Michael Snyder' below.
5920 (d10v_push_arguments): Ditto.
5921 (d10v_extract_return_value): Ditto.
5922
5923 2002-05-23 Jim Blandy <jimb@redhat.com>
5924
5925 * macrotab.c (check_for_redefinition): Don't complain if the new
5926 definition is the same as the previous one. Take more arguments
5927 to allow the comparison.
5928 (macro_define_object, macro_define_function): Pass more arguments
5929 to check_for_redefinition.
5930
5931 2002-05-22 Michael Snyder <msnyder@redhat.com>
5932
5933 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5934 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5935 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5936 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5937 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5938 Add a temp variable to save a call (and a memory read).
5939 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5940 if possible (so that PC_IN_CALL_DUMMY will work).
5941
5942 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5943
5944 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5945
5946 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5947
5948 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5949 fde->cie_ptr.
5950 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5951 (dwarf2_build_frame_info): Add offset to fde->initial_location
5952 so that frames of shared libraries are mapped correctly.
5953 (execute_stack_op): Change type of 'result' from ULONGEST to
5954 CORE_ADDR.
5955
5956 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5957
5958 * config/alpha/tm-nbsd.h: Include solib.h.
5959
5960 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5961
5962 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5963 assumptions about the host's byte order.
5964
5965 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5966
5967 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5968 to dependency list.
5969 * alphanbsd-tdep.c: Include solib-svr4.h.
5970 * shnbsd-tdep.c: Ditto.
5971
5972 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5973
5974 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5975 nbsd-tdep.h to dependency list.
5976 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5977 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5978 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5979 nbsdaout.mh and nbsdelf.mh consistently.
5980 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5981 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5982 nbsdaout.mt and nbsdelf.mh consistently.
5983 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5984 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5985 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5986 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5987 a.out shared library stuff from here...
5988 * config/nm-nbsdaout.h: ...to here.
5989 * config/tm-nbsd.h: Remove.
5990 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5991 * config/arm/nbsd.mh: Remove.
5992 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5993 nbsd-tdep.o.
5994 * config/arm/nbsdaout.mh: New file.
5995 * config/arm/nbsdelf.mh: New file.
5996 * config/arm/nm-nbsdaout.h: New file.
5997 * config/i386/nbsd.mh: Remove.
5998 * config/i386/nbsd.mt: Remove.
5999 * config/i386/nbsdaout.mh: New file.
6000 * config/i386/nbsdaout.mt: New file.
6001 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6002 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6003 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6004 i386_register_u_addr): Remove.
6005 * config/i386/nm-nbsdaout.h: New file.
6006 * config/i386/nm-nbsdelf.h: Remove.
6007 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6008 (USE_STRUCT_CONVENTION): Remove.
6009 * config/i386/tm-nbsdaout.h: New file.
6010 * config/i386/tm-nbsdelf.h: Remove.
6011 * config/m68k/nbsd.mh: Remove.
6012 * config/m68k/nbsd.mt: Remove.
6013 * config/m68k/nbsdaout.mh: New file.
6014 * config/m68k/nbsdaout.mt: New file.
6015 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6016 * config/m68k/nm-nbsdaout.h: New file.
6017 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6018 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6019 * config/ns32k/nbsd.mh: Remove.
6020 * config/ns32k/nbsd.mt: Remove.
6021 * config/ns32k/nbsdaout.mh: New file.
6022 * config/ns32k/nbsdaout.mt: New file.
6023 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6024 * config/ns32k/nm-nbsdaout.h: New file.
6025 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6026 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6027 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6028 (SVR4_SHARED_LIBS): Remove.
6029 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6030 * config/sparc/nbsd.mh: Remove.
6031 * config/sparc/nbsd.mt: Remove.
6032 * config/sparc/nbsdaout.mh: New file.
6033 * config/sparc/nbsdaout.mt: New file.
6034 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6035 * config/sparc/nbsdelf.mt: New file.
6036 * config/sparc/nm-nbsdaout.h: New file.
6037 * config/sparc/nm-nbsdelf.h: Remove.
6038 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6039 * config/sparc/tm-nbsdaout.h: New file.
6040
6041 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6042
6043 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6044 mipsnbsd-tdep.c
6045 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6046
6047 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6048
6049 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6050 shnbsd-nat.c.
6051 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6052
6053 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6054
6055 * NEWS: Note new MIPS NetBSD native configuration.
6056 * configure.host (mips*-*-netbsd*): New host.
6057 * configure.tgt (mips*-*-netbsd*): New target.
6058 * mipsnbsd-nat.c: New file.
6059 * mipsnbsd-tdep.c: New file.
6060 * mipsnbsd-tdep.h: New file.
6061 * config/mips/nbsd.mh: New file.
6062 * config/mips/nbsd.mt: New file.
6063 * config/mips/nm-nbsd.h: New file.
6064 * config/mips/tm-nbsd.h: New file.
6065
6066 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6067
6068 * Makefile.in (SFILES): Add osabi.c.
6069 (COMMON_OBS): Add osabi.o.
6070 (osabi.o): New dependency list.
6071 * osabi.c: New file.
6072 * osabi.h: New file.
6073 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6074
6075 * Makefile.in (alpha_tdep_h): Define and use instead of
6076 alpha-tdep.h.
6077 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6078 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6079 Remove.
6080 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6081 * alpha-tdep.h: Include osabi.h.
6082 (alpha_abi): Remove.
6083 (gdbarch_tdep): Use generic OS ABI framework.
6084 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6085 gdbarch_register_osabi.
6086 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6087 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6088 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6089
6090 * Makefile.in (sh_tdep_h): Add osabi.h.
6091 * sh-tdep.h (sh_osabi): Remove.
6092 (gdbarch_tdep): Use generic OS ABI framework.
6093 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6094 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6095 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6096 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6097
6098 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6099 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6100 gdbarch_register_osabi.
6101 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6102 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6103 (get_elfosabi): Rename to...
6104 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6105 ABI framework support routines.
6106 (arm_gdbarch_init): Use generic OS ABI framework.
6107 (arm_dump_tdep): Likewise.
6108 (_initialize_arm_tdep): Likewise.
6109 * arm-tdep.h: Include osabi.h.
6110 (arm_abi): Remove.
6111 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6112 osabi member.
6113 (arm_gdbarch_register_os_abi): Remove prototype.
6114 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6115 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6116
6117 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6118 * mips-tdep.c: Include osabi.h.
6119 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6120 OS ABI framework.
6121
6122 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6123
6124 * h8300-tdep.c: Fix formatting.
6125
6126 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6127
6128 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6129 printing vector registers.
6130
6131 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6132
6133 From Fernando Nasser:
6134 * remote.c (remote_async_open_1): Re-throw the exception when the
6135 connection fails.
6136 (remote_cisco_open): Ditto.
6137 (remote_open_1): Ditto.
6138
6139 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6140
6141 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6142 (remote_start_remote): Add uiout parameter. Pass through to
6143 remote_start_remote_dummy.
6144 (remote_open_1): Use catch_exception instead of catch_errors.
6145 (remote_async_open_1): Ditto.
6146 (remote_cisco_open): Ditto.
6147
6148 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6149
6150 * remote.c (remote_start_remote): Replace PTR with void pointer.
6151 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6152 static.
6153
6154 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6155
6156 * gdb_indent.sh: Allow the script to be run in the sim directory.
6157
6158 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6159
6160 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6161 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6162
6163 * corelow.c (core_open): Only call set_gdbarch_from_file if
6164 exec_bfd is NULL.
6165
6166 2002-05-17 Andrey Volkov <avolkov@transas.com>
6167
6168 * h8300-tdep.c: Add support of EXR register
6169 * config/h8300/tm-h8300.h: Ditto.
6170
6171 2002-05-17 Andrey Volkov <avolkov@transas.com>
6172
6173 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6174
6175 2002-05-17 Andrey Volkov <avolkov@transas.com>
6176
6177 * h8300-tdep.c: Change literal regnums to REGNO.
6178
6179 2002-05-17 Jim Blandy <jimb@redhat.com>
6180
6181 * NEWS: Note addition of macro support.
6182
6183 Expand preprocessor macros in C expressions.
6184 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6185 (scan_macro_expansion, scanning_macro_expansion,
6186 finished_macro_expansion): New function declarations.
6187 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6188 variable declarations.
6189 * parser-defs.h (expression_context_pc): New declaration.
6190 * parse.c (expression_context_pc): New variable.
6191 (parse_exp_1): Set expression_context_pc, as well as
6192 expression_context_block.
6193 * c-exp.y (yylex): If we're not already reading the result of a
6194 macro expansion, try to macro-expand the next token. When we're
6195 done scanning a macro expansion, switch back to the mainline text.
6196 Commas and `if's in a macro's expansion don't terminate the input.
6197 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6198 (macro_original_text, macro_expanded_text,
6199 expression_macro_lookup_func, expression_macro_lookup_baton): New
6200 variables.
6201 (scan_macro_expansion, scanning_macro_expansion,
6202 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6203 c_preprocess_and_parse): New functions.
6204 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6205 c_preprocess_and_parse, instead of c_parse.
6206 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6207 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6208
6209 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6210
6211 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6212 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6213 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6214
6215 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6216
6217 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6218
6219 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6220
6221 * Makefile.in (sh_tdep_h): Define and use.
6222 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6223 register enum): Move to...
6224 * * sh-tdep.h: ...here.
6225 * sh-tdep.c: Include sh-tdep.h.
6226 * sh3-rom.c: Likewise.
6227 * shnbsd-tdep.c: Likewise.
6228
6229 2002-05-16 Michael Snyder <msnyder@redhat.com>
6230
6231 * arm-tdep.c: Spelling fix in comment.
6232
6233 2002-05-16 Jim Blandy <jimb@redhat.com>
6234
6235 Add commands for manually expanding macros and showing their
6236 definitions.
6237 * macrocmd.c, macroscope.c, macroscope.h: New files.
6238 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6239 (macroscope_h): New variable.
6240 (HFILES_NO_SRCDIR): Add macroscope.h.
6241 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6242 (macroscope.o, macrocmd.o): New rules.
6243
6244 Teach the Dwarf 2 reader to read macro information.
6245 * dwarf2read.c: #include "macrotab.h".
6246 (dwarf_macinfo_buffer): New variable.
6247 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6248 dwarf_macinfo_size.
6249 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6250 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6251 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6252 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6253 dwarf2_macro_spaces_in_definition): New complaints.
6254 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6255 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6256 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6257 the partial symbol table.
6258 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6259 from what's recorded in the partial symbol table.
6260 (read_file_scope): If the compilation unit has a
6261 `DW_AT_macro_info' attribute, read its macro information.
6262 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6263
6264 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6265
6266 Fix PR gdb/546
6267 * ser-tcp.c: Don't include <netinet/udp.h>.
6268
6269 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6270
6271 * MAINTAINERS: Update my email address.
6272
6273 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6274
6275 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6276 include file of the same name.
6277
6278 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6279
6280 * configure.tgt: Mark v850 as multi-arched.
6281 * config/v850/tm-v850.h: Remove file.
6282 * config/v850/v850.mt: Eliminate TM_FILE.
6283
6284 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6285
6286 * v850-tdep.c: Full multi-arch.
6287 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6288 Define GDB_MULTI_ARCH to 2.
6289
6290 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6291
6292 * p-exp.y (current_type): New static variable.
6293 Carries the type of the expression at the position that is parsed.
6294 (push_current_type, pop_current_type): Two new functions. Used
6295 to store/restore current_type in expression on specific tokens.
6296 (search_field): New static variable. Set to one after parsing a point
6297 as at that point only a FIELDNAME token should be searched.
6298 (FIELDNAME): New token. After a point only a token belonging to
6299 current_type type definition is allowed.
6300 (all over token rules): reset and change current_type according
6301 to rules.
6302 (exp '[' rule): insert implicit array index field if
6303 exp is a pascal string type.
6304
6305 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6306
6307 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6308 frame info. Use frame_info's saved_regs instead of matching member
6309 in extra_frame_info throughout.
6310 (v850_frame_init_saved_regs): New function.
6311 (v850_init_extra_frame_info): Move most functionality into
6312 v850_frame_init_saved_regs().
6313 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6314 (v850_frame_find_saved_regs): Remove declaration.
6315 (FRAME_FIND_SAVED_REGS): Remove definition.
6316 (v850_frame_init_saved_regs): Add declaration.
6317 (FRAME_INIT_SAVED_REGS): Add definition.
6318
6319 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6320
6321 * v850-tdep.c: Begin multi-arch'ing v850.
6322 (v850_target_architecture_hook): Remove function.
6323 (v850_gdbarch_init): New function. Add code previously in
6324 v850_target_architecture_hook().
6325 (_initialize_v850_tdep): Don't set target_architecture_hook.
6326 Call register_gdbarch_init() instead.
6327
6328 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6329
6330 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6331 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6332 (fixup_class_method_type): Likewise.
6333
6334 2002-05-15 Jim Blandy <jimb@redhat.com>
6335
6336 Add macro structures to GDB's symbol tables. Nobody puts anything
6337 in them yet.
6338 * symtab.h (struct symtab): New member: `macro_table'.
6339 * buildsym.h (pending_macros): New global variable.
6340 * buildsym.c: #include "macrotab.h".
6341 (buildsym_init): Initialize `pending_macros'.
6342 (end_symtab): If we found macro information while reading a CU's
6343 debugging info, do build a symtab structure for it. Make the
6344 symtab point to the macro information, and clear the
6345 `pending_macros' pointer which held it while we were reading the
6346 debug info.
6347 (really_free_pendings): Free any pending macro table.
6348 * objfiles.h (struct objfile): New member: `macro_cache'.
6349 * objfiles.c (allocate_objfile): Set allocate and free functions
6350 for the macro cache's objstack.
6351 (free_objfile): Empty the macro cache's obstack.
6352 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6353 set new allocate and free functions for it.
6354 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6355 free functions for the macro cache's objstack. (Why is this
6356 function building its own objfile?)
6357 * symmisc.c (print_objfile_statistics): Print statistics on the
6358 macro bcache.
6359 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6360
6361 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6362
6363 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6364 (REGISTER_U_ADDR): Delete definition.
6365 (arm_register_u_addr): Delete declaration.
6366
6367 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6368
6369 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6370 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6371
6372 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6373
6374 * regcache.c (register_valid): Revise comments refering to "Not
6375 available" and "unavailable".
6376 * frame.c (frame_register_read): Ditto.
6377 * findvar.c (value_of_register): Ditto.
6378
6379 2002-05-15 Andrew Cagney <cagney@redhat.com>
6380
6381 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6382 (remote-sim.o): Update dependencies.
6383 (d10v-tdep.o): Specify dependencies.
6384 (sim_d10v_h): Define.
6385
6386 2002-05-14 Jim Blandy <jimb@redhat.com>
6387
6388 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6389 * macrotab.c (macro_lookup_inclusion, find_definition,
6390 new_macro_table): Same.
6391
6392 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6393 not `! strcmp ()'. This is a dubious improvement.
6394 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6395
6396 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6397 although it's not necessary, to avoid a warning.
6398
6399 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6400
6401 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6402 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6403 TYPE_INSTANCE_FLAGS.
6404 (struct main_type): New.
6405 (struct type): Move most members to struct main_type. Change
6406 cv_type and as_type to new type_chain member. Add instance_flags.
6407 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6408 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6409 (finish_cv_type): Remove prototype.
6410 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6411 Set TYPE_CHAIN.
6412 (alloc_type_instance): New function.
6413 (smash_type): New function.
6414 (make_pointer_type, make_reference_type, make_function_type)
6415 (smash_to_member_type, smash_to_method_type): Call smash_type.
6416 (make_qualified_type): New function.
6417 (make_type_with_address_space): Call make_qualified_type.
6418 (make_cv_type): Likewise.
6419 (finish_cv_type): Remove unnecessary function.
6420 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6421 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6422 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6423 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6424 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6425 * hpread.c (hpread_read_struct_type): Likewise.
6426 * stabsread.c (read_struct_type): Likewise.
6427
6428 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6429
6430 * configure.tgt: Add a catch all sh* target, for cases like
6431 sh[2,3,4]-elf and sh-hms.
6432
6433 2002-05-14 Keith Seitz <keiths@redhat.com>
6434
6435 * event-loop.c (create_file_handler): Don't do anything but
6436 update data when we are given a fd which we are already
6437 monitoring.
6438
6439 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6440
6441 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6442 (update_context): Use __func__ in warnings.
6443
6444 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6445
6446 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6447 and tcp_close to net_open and net_close.
6448 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6449 using UDP if requested. Don't try to disable Nagle on UDP
6450 sockets.
6451 * remote.c (remote_serial_open): New function. Warn about UDP.
6452 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6453
6454 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6455
6456 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6457
6458 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6459
6460 * configure.tgt: Remove sh-hms target.
6461 * MAINTAINERS: Don't list sh-hms as a separate target.
6462
6463 2002-05-13 Jim Blandy <jimb@redhat.com>
6464
6465 Add first preprocessor macro-expansion files.
6466 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6467 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6468 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6469 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6470 (COMMON_OBS): Add macrotab.o, macroexp.o.
6471 (macroexp.o, macrotab.o): New rules.
6472
6473 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6474
6475 * config/m88k/tm-m88k.h: Update copyright.
6476 (m88k_target_write_pc): Declare
6477 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6478 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6479 (SHIFT_INST_REGS): Update definition.
6480 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6481 using old definition of TARGET_WRITE_PC.
6482 * regcache.c (generic_target_write_pc): Delete code handling
6483 NNPC_REGNUM.
6484 * gdbarch.sh (NNPC_REGNUM): Delete.
6485 * gdbarch.h, gdbarch.c: Regenerate.
6486
6487 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6488
6489 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6490 builtin reg number.
6491
6492 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6493
6494 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6495 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6496 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6497 access macros.
6498 * c-typeprint.c (cp_type_print_method_args): Likewise.
6499 (c_type_print_args): Likewise.
6500 * d10v-tdep.c (d10v_push_arguments): Likewise.
6501 (d10v_extract_return_value): Likewise.
6502 * expprint.c (print_subexp): Likewise.
6503 * gdbtypes.c (lookup_primitive_typename): Likewise.
6504 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6505 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6506 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6507 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6508 (TYPE_VECTOR): Likewise.
6509 * hpread.c (hpread_read_struct_type)
6510 (fix_static_member_physnames, fixup_class_method_type)
6511 (hpread_type_lookup): Likewise.
6512 * mdebugread.c (parse_symbol, parse_type): Likewise.
6513 * p-lang.c (is_pascal_string_type): Likewise.
6514 * valops.c (hand_function_call): Likewise.
6515 * x86-64-tdep.c (classify_argument): Likewise.
6516
6517 * hpread.c (hpread_read_function_type)
6518 (hpread_read_doc_function_type): Call replace_type.
6519 * dstread.c (create_new_type): Delete.
6520 (decode_dst_structure, process_dst_function): Call alloc_type.
6521 Use type access macros.
6522
6523 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6524
6525 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6526 the're not supported by the current architecture.
6527 (i387_fill_fxsave): Likewise.
6528
6529 2002-05-12 Fred Fish <fnf@redhat.com>
6530
6531 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6532 sect_index_xxx members to index the first slot in section_offsets
6533 if all of the section_offsets are zero.
6534
6535 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6536
6537 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6538 checked in with last change.
6539
6540 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6541
6542 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6543 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6544 config.sub.
6545
6546 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6547
6548 * Makefile.in: Update dependencies.
6549
6550 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6551
6552 * language.c (local_hex_string_custom): Simplify. Do not depend
6553 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6554
6555 * memattr.c (mem_info_command): Replace calls to
6556 longest_local_hex_string and longest_local_hex_string_custom.
6557 * buildsym.c (make_blockvector): Ditto.
6558 * solib.c (info_sharedlibrary_command): Ditto.
6559 * tracepoint.c (tracepoints_info): Ditto.
6560 * symtab.c (print_msymbol_info): Ditto.
6561
6562 * language.c (local_hex_string): Delete.
6563 (local_hex_string_custom): Delete.
6564 (longest_local_hex_string): Rename to local_hex_string.
6565 (longest_local_hex_string_custom): Rename to
6566 local_hex_string_custom.
6567 * language.h (local_hex_string): Change parameter type to LONGEST.
6568 (local_hex_string_custom): Ditto.
6569 (longest_local_hex_string): Delete declaration.
6570 (longest_local_hex_string_custom): Ditto.
6571
6572 * solib.c: Update copyright.
6573 * memattr.c: Update copyright.
6574
6575 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6576
6577 * arch-utils.h (legacy_register_to_value): Declare.
6578 (legacy_value_to_register): Declare.
6579 (legacy_convert_register_p): Declare.
6580 * arch-utils.c (legacy_register_to_value): New function.
6581 (legacy_value_to_register): New function.
6582 (legacy_convert_register_p): New function.
6583
6584 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6585 (VALUE_TO_REGISTER): Define.
6586 (CONVERT_REGISTER_P): Define.
6587 * gdbarch.h, gdbarch.c: Regenerate.
6588
6589 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6590 VALUE_TO_REGISTER.
6591 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6592 CONVERT_REGISTER_P.
6593
6594 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6595 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6596
6597 * Makefile.in: Update dependencies for valops.c.
6598 * valops.c: Include "gdb_assert.h".
6599 (typecmp): Skip THIS parameter to methods.
6600 (find_method_list): Remove static_memfuncp argument,
6601 update callers. Check for stub methods.
6602 (find_value_oload_method_list): Don't set *static_memfuncp.
6603 (find_overload_match): Don't check for stub methods. Assert
6604 that methods are not stubbed. Handle static methods.
6605 (value_find_oload_method_list): Remove static_memfuncp argument.
6606 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6607 to the argument list for static stub methods.
6608 * value.h (value_find_oload_method_list): Update prototype.
6609
6610 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6611
6612 * arch-utils.h (generic_register_size): Declare.
6613 (generic_register_raw_size, generic_register_virtual_size): Delete
6614 declarations.
6615 * arch-utils.c (generic_register_raw_size): Delete.
6616 (generic_register_size): New function.
6617 (generic_register_virtual_size): Delete.
6618
6619 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6620 default generic_register_size.
6621 * gdbarch.h, gdbarch.c: Re-generate.
6622
6623 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6624 register_virtual_size.
6625 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6626 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6627
6628 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6629
6630 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6631 * gdbarch.h, gdbarch.c: Regenerate.
6632 * gnu-v3-abi.c: Update copyright.
6633 (vtable_address_point_offset): Update.
6634 (gnuv3_rtti_type): Update.
6635 (gnuv3_baseclass_offset): Update.
6636 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6637 (init_fetch_link_map_offsets): Update.
6638 * remote.c (get_remote_state): Update.
6639
6640 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6641
6642 * TODO: Remove value_headof/value_from_vtable_info comment.
6643 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6644 * values.c (value_headof, value_from_vtable_info): Delete.
6645 * value.h (value_from_vtable_info): Delete prototype.
6646
6647 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6648
6649 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6650 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6651 $(gdb_regex_h).
6652 (gdb_assert_h): Define.
6653 (gdb_wait_h): Define.
6654 (gdb_regex_h): Define.
6655
6656 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6657
6658 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6659 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6660
6661 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6662
6663 * nbsd-tdep.c: Fix comment.
6664
6665 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6666
6667 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6668 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6669 (nbsd-tdep.o): New dependency list.
6670 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6671 nbsd-tdep.h.
6672 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6673 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6674 * nbsd-tdep.c: New file.
6675 * nbsd-tdep.h: New file.
6676 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6677 nbsd-tdep.h.
6678 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6679 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6680 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6681 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6682
6683 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6684
6685 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6686 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6687 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6688 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6689 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6690 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6691
6692 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6693
6694 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6695 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6696 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6697 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6698 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6699 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6700 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6701
6702 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6703
6704 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6705 fetch_elfcore_registers to...
6706 * i386nbsd-tdep.c: ...here.
6707 (i386nbsd_use_struct_convention): Rename to...
6708 (i386nbsd_aout_use_struct_convention): ...this.
6709 (i386nbsd_supply_reg): New function.
6710 (i386nbsd_fill_reg): New function.
6711 (fetch_core_registers): Use i386nbsd_supply_reg.
6712 (fetch_elfcore_registers): Likewise.
6713 (_initialize_i386nbsd_tdep): New function.
6714 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6715 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6716 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6717 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6718 (i386nbsd_aout_use_struct_convention): ...this.
6719
6720 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6721
6722 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6723 (store_inferior_registers): Use shnbsd_fill_reg.
6724 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6725 sh_nbsd_supply_register): Collapse into...
6726 (shnbsd_supply_reg): ...this.
6727 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6728 (shnbsd_fill_reg): ...this.
6729 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6730 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6731 (fetch_core_registers): Use shnbsd_supply_reg.
6732 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6733 (sh_nbsd_core_fns): Rename to...
6734 (shnbsd_core_fns): ...this.
6735 (sh_nbsd_elfcore_fns): Rename to...
6736 (shnbsd_elfcore_fns): ...this.
6737 (sh_nbsd_init_abi): Rename to...
6738 (shnbsd_init_abi): ...this.
6739 (_initialize_sh_nbsd_tdep): Rename to...
6740 (_initialize_shnbsd_tdep): ...this.
6741 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6742 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6743 sh_nbsd_fill_register): Remove prototypes.
6744 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6745
6746 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6747
6748 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6749 (i387-nat.o): Delete dependency list.
6750 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6751 (x86-64-linux-nat.o): Likewise.
6752 * i387-nat.c: Delete file, moving contents to...
6753 * i387-tdep.c: ...here.
6754 * i387-nat.h: Rename...
6755 * i387-tdep.h: ...to this.
6756 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6757 * i386-linux-nat.c: Likewise.
6758 * i386bsd-nat.c: Likewise.
6759 * i386gnu-nat.c: Likewise.
6760 * i386nbsd-nat.c: Likewise.
6761 * i386v4-nat.c: Likewise.
6762 * x86-64-linux-nat.c: Likewise.
6763 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6764 * config/i386/go32.mh (NATDEPFILES): Likewise.
6765 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6766 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6767 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6768 * config/i386/linux.mh (NATDEPFILES): Likewise.
6769 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6770 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6771 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6772 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6773
6774 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6775
6776 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6777 (alphanbsd-nat.o): Remove dependency list.
6778 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6779 * alphanbsd-nat.c: Delete. Contents moved to...
6780 * alphanbsd-tdep.c: ...here.
6781 (_initialize_alphanbsd_tdep): Register core functions.
6782 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6783
6784 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6785
6786 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6787 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6788 (alphanbsd-nat.o): Likewise.
6789 (alphabsd-tdep.o): New dependency list.
6790 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6791 (fill_gregset): Use alphabsd_fill_reg.
6792 (supply_fpregset): Use alphabsd_supply_fpreg.
6793 (fill_fpregset): Use alphabsd_fill_fpreg.
6794 (fetch_inferior_registers): Use struct reg and struct fpreg
6795 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6796 and alphabsd_supply_fpreg.
6797 (store_inferior_registers): Use struct reg and struct fpreg
6798 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6799 and alphabsd_fill_fpreg.
6800 * alphabsd-tdep.c: New file.
6801 * alphabsd-tdep.h: New file.
6802 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6803 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6804 alphabsd_supply_fpreg.
6805 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6806 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6807
6808 2002-05-11 Eric Christopher <echristo@redhat.com>
6809
6810 * mips-tdep.c (mips_double_register_type): Fix thinko.
6811 (mips_single_register_type): Ditto.
6812 * MAINTAINERS: Add self.
6813
6814 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6815
6816 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6817 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6818 right thing on architectures with different endianness and/or
6819 integer sizes.
6820
6821 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6822
6823 From Christian Limpach <chris@Pin.LU>
6824 * configure.in: Change sed expression which comments out
6825 NATDEPFILES to also comment out continuation lines.
6826 * configure: Regenerate.
6827
6828 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6829
6830 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6831 big patch.
6832
6833 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6834
6835 * sh-tdep.c: Include correct file.
6836
6837 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6838
6839 New support for sh64-elf (sh5) target.
6840
6841 * configure.tgt: For sh64-elf target, default to sh-elf.
6842
6843 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6844 (struct gdbarch_tdep): Add new fields for new registers and ABI
6845 info.
6846
6847 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6848 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6849 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6850 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6851 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6852 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6853 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6854 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6855 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6856 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6857 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6858 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6859 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6860 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6861 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6862 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6863 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6864 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6865 sign_extend, sh64_nofp_frame_init_saved_regs,
6866 sh64_init_extra_frame_info, sh64_get_saved_register,
6867 sh64_extract_struct_value_address, sh64_pop_frame,
6868 sh64_push_arguments, sh64_extract_return_value,
6869 sh64_store_return_value, sh64_show_media_regs,
6870 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6871 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6872 sh_sh64_register_virtual_type,
6873 sh_sh64_register_convert_to_virtual,
6874 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6875 sh64_register_read, sh64_pseudo_register_write,
6876 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6877 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6878 sh64_do_pseudo_register, sh_compact_do_registers_info,
6879 sh64_do_registers_info, sh_gdbarch_init): New functions.
6880
6881 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6882
6883 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6884
6885 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6886
6887 * linespec.c (decode_line_1): Check for a double quote after
6888 a filename correctly.
6889
6890 2002-05-10 Jim Blandy <jimb@redhat.com>
6891
6892 Properly track the size of the current objfile's .debug_line section.
6893 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6894 (DWARF_LINE_SIZE): New macro.
6895 (dwarf2_build_psymtabs_hard): Record the line section's size in
6896 the partial symbol table.
6897 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6898 symbol table.
6899
6900 2002-05-10 Petr Sorfa <petrs@caldera.com>
6901
6902 * ia64-tdep.c: Handle breakpoints on L instruction type
6903 in MLX instruction bundle by moving the breakpoint to
6904 the third slot (X instruction type) as L holds only data.
6905
6906 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6907
6908 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6909 (process_one_symbol): Complain about discarding local symbols
6910 due to a misplaced N_LBRAC entry.
6911
6912 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6913
6914 From Daniel Berlin <dan@cgsoftware.com>
6915 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6916 decrease the depth we are at, in the case of templates.
6917
6918 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6919
6920 * mips-tdep.c (mips_float_register_type): New function.
6921 (mips_double_register_type): New function.
6922 (mips_print_register): Use them.
6923 (do_fp_register_row): Likewise.
6924
6925 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6926
6927 * signals/signals.c (signals): Remove conditional compilation around
6928 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6929 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6930
6931 2002-05-09 Michael Snyder <msnyder@redhat.com>
6932
6933 * remote-rdp.c (remote_rdp_can_run): Remove.
6934
6935 2002-05-09 Tom Tromey <tromey@redhat.com>
6936
6937 * jv-valprint.c (java_val_print): Handle `char' as a special case
6938 of TYPE_CODE_INT.
6939
6940 2002-05-09 Michael Snyder <msnyder@redhat.com>
6941
6942 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6943 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6944 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6945 str r(0123),[sp,#nn].
6946 (arm_skip_prologue): Ditto. Also make disassembly
6947 order-independent by placing it in a loop.
6948
6949 2002-05-06 Michael Snyder <msnyder@redhat.com>
6950
6951 * stabsread.c (read_type): Add recognition for new attribute:
6952 "@V;" means that an array type is actually a vector.
6953 This is analogous to the vector flag that's been added to dwarf2.
6954
6955 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6956
6957 * i386-tdep.h (i386_abi): New enum.
6958 (struct gdbarch_tdep): Replace os_ident member with abi.
6959 (i386_gdbarch_register_os_abi): New prototype.
6960 * i386-tdep.c (i386_abi_names): New array.
6961 (process_note_abi_tag_sections): Removed.
6962 (process_note_sections): New function.
6963 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6964 (struct i386_abi_handler): New struct.
6965 (i386_abi_handler_list): New variable.
6966 (i386_gdbarch_register_os_abi): New function.
6967 (i386_gdbarch_init): Adapt for the changes given above.
6968
6969 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6970
6971 * gregset.h: Say "GNU/Linux".
6972
6973 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6974
6975 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6976 (build_gdbtypes): Build builtin_type_v2_float.
6977 (_initialize_gdbtypes): Register new builtin type.
6978
6979 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6980
6981 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6982 (clear_gdbarch_swap): New function.
6983 (initialize_non_multiarch): Call.
6984 (gdbarch_update_p): Before calling init(), swap out and clear the
6985 existing architecture.
6986 * gdbarch.c: Regenerate.
6987
6988 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6989
6990 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6991 alphanbsd-tdep.c.
6992
6993 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6994
6995 * sh-nbsd-nat.c: Rename to...
6996 * shnbsd-nat.c: ...this.
6997 * sh-nbsd-tdep.c: Rename to...
6998 * shnbsd-tdep.c: ...this.
6999 * sh-nbsd-tdep.h: Rename to...
7000 * shnbsd-tdep.h: ...this.
7001 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7002 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7003
7004 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7005
7006 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7007 concatenation for command help messages.
7008
7009 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7010
7011 * NEWS: Note new sh*-*-netbsdelf* configuration.
7012 * configure.host: Set gdb_host_cpu to sh for all sh*.
7013 (sh*-*-netbsdelf*): New host.
7014 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7015 (sh*-*-netbsdelf*): New target.
7016 * sh-nbsd-nat.c: New file.
7017 * sh-nbsd-tdep.c: New file.
7018 * sh-nbsd-tdep.h: New file.
7019 * config/sh/nbsd.mh: New file.
7020 * config/sh/nbsd.mt: New file.
7021 * config/sh/nm-nbsd.h: New file.
7022 * config/sh/tm-nbsd.h: New file.
7023
7024 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7025
7026 * sh-tdep.c (sh_osabi_names): Declare.
7027 (process_note_abi_tag_sections): New function.
7028 (get_elfosabi): Ditto.
7029 (sh_gdbarch_register_os_abi): Ditto.
7030 (sh_dump_tdep): Ditto.
7031 _initialize_sh_tdep): Use gdbarch_register to register
7032 sh_gdbarch_init and sh_dump_tdep.
7033 * config/sh/tm-sh.h (sh_osabi): Declare.
7034 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7035
7036 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7037
7038 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7039 (thumb_scan_prologue): Ditto.
7040 (arm_find_callers_reg): Ditto.
7041 (arm_frame_chain): Ditto.
7042 (arm_init_extra_frame_info): Ditto.
7043 (arm_frame_saved_pc): Ditto.
7044 (arm_pop_frame): Ditto.
7045 (arm_push_return_address): New function.
7046 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7047 call_dummy_location, call_dummy_breakpoint_offset_p,
7048 call_dummy_breakpoint_offset, call_dummy_p,
7049 call_dummy_stack_adjust_p, call_dummy_words,
7050 sizeof_call_dummy_words, call_dummy_start_offset,
7051 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7052 call_dummy_address, push_return_address and push_dummy_frame for
7053 generic dummy frames.
7054
7055 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7056
7057 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7058 size computation for alloca.
7059 (sh_fp_frame_init_saved_regs): Likewise.
7060
7061 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7062
7063 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7064 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7065 * arm-tdep.c (arm_store_return_value): Use them.
7066 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7067 * remote-rdp.c (remote_rdp_fetch_register): Use
7068 ARM_MAX_REGISTER_RAW_SIZE.
7069 (remote_rdp_store_register): Likewise.
7070
7071 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7072
7073 * dwarf2cfi.c: Code cleanup, removed unused variables,
7074 added default labels to switch {} statements.
7075 * x86-64-tdep.c: Ditto.
7076 * x86-64-linux-nat.c: Ditto.
7077
7078 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7079
7080 * solib.h: Protect against multiple inclusion.
7081
7082 2002-05-06 Jim Blandy <jimb@redhat.com>
7083
7084 Add first preprocessor macro-expansion files.
7085 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7086 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7087 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7088 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7089 (COMMON_OBS): Add macrotab.o, macroexp.o.
7090 (macroexp.o, macrotab.o): New rules.
7091
7092 Separate the job of reading the line number info statement program
7093 header (...expialidocious) out into its own function.
7094 * dwarf2read.c (struct line_head, struct filenames, struct
7095 directories): Replace with...
7096 (struct line_header): New structure, containing the full
7097 contents of the statement program header, including the
7098 include directory and file name tables.
7099 (read_file_scope): If we have line number info, instead of just
7100 calling dwarf_decode_lines to do all the work, call
7101 dwarf_decode_line_header first to get a `struct line_header'
7102 containing the data in the statement program header, and then
7103 pass that to dwarf_decode_lines, which will pick up where that
7104 left off. Be sure to clean up the `struct line_header' object.
7105 (dwarf_decode_line_header, free_line_header, add_include_dir,
7106 add_file_name): New functions.
7107 (dwarf_decode_lines): Move all the code to read the statement
7108 program header into dwarf_decode_line_header. Take the line
7109 header it built as the first argument, instead of the offset to
7110 the compilation unit's line number info. Use the new `struct
7111 line_header' type instead of the old structures. No need to do
7112 cleanups here now, since we don't allocate anything.
7113 (dwarf2_statement_list_fits_in_line_number_section,
7114 dwarf2_line_header_too_long): New complaints.
7115
7116 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7117
7118 * gdbtypes.c (init_vector_type): New function.
7119 (build_builtin_type_vec128): Simplify the representation of SIMD
7120 registers.
7121 (build_gdbtypes): Initialize new builtin vector types.
7122 (_initialize_gdbtypes): Register new vector types with gdbarch.
7123 (builtin_type_v4_float, builtin_type_v4_int32,
7124 builtin_type_v8_int16, builtin_type_v16_int8,
7125 builtin_type_v2_int32, builtin_type_v4_int16,
7126 builtin_type_v8_int8): New (renamed) SIMD types.
7127
7128 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7129
7130 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7131 (i387_fill_fxsave): Likewise.
7132
7133 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7134
7135 * alpha-tdep.c (alpha_extract_return_value): Don't use
7136 non-constant array size in prototype.
7137
7138 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7139
7140 From Brian Taylor <briant at model dot com>:
7141 * ui-out.c (ui_out_field_core_addr): Use the function
7142 longest_local_hex_string_custom'to format addresses > 32 bits
7143 wide.
7144
7145 * ui-out.c (ui_out_field_core_addr): Update comment.
7146
7147 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7148
7149 * stack.c (select_and_print_frame): Make static. Delete the
7150 parameter `level'.
7151 (func_command): Update call.
7152 (select_frame_command): Delete code computing the frame level.
7153 * frame.h (select_and_print_frame): Delete declaration.
7154
7155 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7156
7157 * sparc-tdep.c (sparc_get_saved_register): Comment why
7158 get_prev_frame call is safe.
7159
7160 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7161
7162 * frame.h (select_frame): Delete level parameter.
7163 * stack.c (select_frame): Update. Use frame_relative_level to
7164 obtain the frame's level.
7165 (select_and_print_frame): Update call.
7166 (select_frame_command): Ditto.
7167 (up_silently_base): Ditto.
7168 (down_silently_base): Ditto.
7169 * ocd.c (ocd_start_remote): Ditto.
7170 * remote-rdp.c (remote_rdp_open): Ditto.
7171 * remote-mips.c (mips_initialize): Ditto.
7172 (common_open): Ditto.
7173 * remote-e7000.c (e7000_start_remote): Ditto.
7174 * m3-nat.c (select_thread): Ditto.
7175 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7176 (child_get_current_exception_event): Ditto.
7177 * varobj.c (varobj_create): Ditto.
7178 (varobj_update): Ditto.
7179 (c_value_of_root): Ditto.
7180 * tracepoint.c (finish_tfind_command): Ditto.
7181 * corelow.c (core_open): Ditto.
7182 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7183 * thread.c (info_threads_command): Ditto.
7184 (switch_to_thread): Ditto.
7185 * infrun.c (normal_stop): Ditto.
7186 (restore_selected_frame): Ditto.
7187 (restore_inferior_status): Ditto.
7188 * breakpoint.c (insert_breakpoints): Ditto.
7189 (watchpoint_check): Ditto.
7190 (bpstat_stop_status): Ditto.
7191 (do_enable_breakpoint): Ditto.
7192 * blockframe.c (flush_cached_frames): Ditto.
7193 (reinit_frame_cache): Ditto.
7194
7195 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7196
7197 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7198 maintainer.
7199
7200 2002-05-04 Jim Blandy <jimb@redhat.com>
7201
7202 * gdbtypes.c (replace_type): Doc fix.
7203
7204 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7205
7206 * valprint.c (strcat_longest): Delete commented out function.
7207 Update copyright.
7208
7209 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7210
7211 * MAINTAINERS: Mark a29k as deleted.
7212 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7213 Move new configurations to the top.
7214 * configure.tgt: Remove a29k.
7215 * config/a29k/tm-vx29k.h: Delete.
7216 * config/a29k/vx29k.mt: Delete.
7217 * config/a29k/tm-a29k.h: Delete.
7218 * config/a29k/a29k-udi.mt: Delete.
7219 * config/a29k/a29k.mt: Delete.
7220 * a29k-tdep.c: Delete.
7221 * remote-udi.c: Delete.
7222 * remote-mm.c: Delete.
7223 * remote-eb.c: Delete.
7224 * remote-adapt.c: Delete.
7225 * Makefile.in: Remove obsolete code.
7226 * config/s390/s390x.mt: Ditto.
7227 * config/s390/s390.mt: Ditto.
7228 * config/sparc/sparclynx.mh: Ditto.
7229 * config/sparc/linux.mh: Ditto.
7230 * config/pa/hppaosf.mh: Ditto.
7231 * config/pa/hppabsd.mh: Ditto.
7232 * config/ns32k/nbsd.mt: Ditto.
7233 * config/mips/vr5000.mt: Ditto.
7234 * config/m68k/sun3os4.mh: Ditto.
7235 * config/m68k/nbsd.mt: Ditto.
7236 * config/m68k/m68klynx.mh: Ditto.
7237 * config/m32r/m32r.mt: Ditto.
7238 * config/i386/x86-64linux.mt: Ditto.
7239 * config/i386/nbsdelf.mt: Ditto.
7240 * config/i386/nbsd.mt: Ditto.
7241 * config/i386/i386lynx.mh: Ditto.
7242
7243 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7244
7245 * target.c (debug_print_register): New function. Handle oversize
7246 registers.
7247 (debug_to_fetch_registers): Call.
7248 (debug_to_store_registers): Call.
7249
7250 2002-05-03 Jim Blandy <jimb@redhat.com>
7251
7252 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7253 (read_type): Doc fix.
7254 * gdbtypes.c (replace_type): Doc fix.
7255
7256 * stabsread.c (multiply_defined_struct): New complaint.
7257 (read_struct_type): If the type we were passed isn't empty, or
7258 incomplete, don't read the new struct type into it; complain,
7259 and return the original type unchanged. Take a new `type_code'
7260 argument, which is the type code for the new type.
7261 (read_type): Rather than storing the type's type code here, pass
7262 it as an argument to read_struct_type, and let that take care of
7263 storing it. That way, we don't overwrite the original type code,
7264 so read_struct_type can use it to decide whether we're overwriting
7265 something we shouldn't.
7266 (complain_about_struct_wipeout): New function.
7267
7268 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7269
7270 * gdbarch.sh: Assert that gdbarch is non-NULL.
7271 * gdbarch.c: Regenerate.
7272
7273 2002-05-03 Jason Merrill <jason@redhat.com>
7274
7275 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7276 and return NULL.
7277
7278 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7279
7280 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7281 (x86_64_dwarf2gdb_regno_map_length),
7282 (x86_64_dwarf2_reg_to_regnum): Added.
7283 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7284 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7285 (_initialize_x86_64_tdep): Synced with the change above.
7286 (x86_64_skip_prologue): Reformulated message.
7287
7288 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7289
7290 * f-exp.y: Also use new prev_lexptr variable
7291 to improve error reporting. Based on Michael Snyder
7292 2002-04-24 dated patch to c-exp.y.
7293 * jv-exp.y: Likewise.
7294 * m2-exp.y: Likewise.
7295
7296 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7297
7298 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7299 we are dealing with vectors.
7300
7301 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7302
7303 * config/m68k/tm-nbsd.h: Obvious fix,
7304 correct machine name.
7305
7306 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7307
7308 * p-typeprint.c (pascal_type_print_base): Add support
7309 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7310
7311 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7312
7313 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7314 for fondamental pascal 'char' type.
7315
7316 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7317
7318 * p-lang.h (is_pascal_string_type): Declaration changed,
7319 new sixth argument of type char ** added.
7320 * p-lang.c (is_pascal_string_type): Implementation
7321 changed. Args length_pos, length_size, string_pos, char_size
7322 can now be NULL. New argument arrayname set to the field
7323 name of the char array. Return value set to char array
7324 field index plus one.
7325 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7326 is_pascal_string_type function.
7327
7328 2002-05-02 Andrew Cagney <cagney@redhat.com>
7329
7330 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7331 <cagney@redhat.com> change.
7332 * gdbarch.c: Regenerate.
7333
7334 2002-05-02 Andrew Cagney <cagney@redhat.com>
7335
7336 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7337 before probing for a new one. Detect errorenous gdbarch_init
7338 functions.
7339 * gdbarch.c: Regenerate.
7340
7341 2002-05-01 Andrew Cagney <cagney@redhat.com>
7342
7343 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7344 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7345 * config/v850/tm-v850.h: Ditto. Update copyright.
7346
7347 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7348
7349 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7350 current_gdbarch.
7351
7352 2002-04-30 Michael Snyder <msnyder@redhat.com>
7353
7354 * arm-tdep.c: Whitespace clean-ups.
7355 (arm_skip_prologue): Fix thinko; two lines
7356 should have been removed as part of 4/24 change.
7357
7358 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7359
7360 * rs6000-tdep.c: Added comment describing how fpscr register
7361 numbers were chosen.
7362
7363 2002-04-30 Michael Snyder <msnyder@redhat.com>
7364
7365 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7366
7367 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7368
7369 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7370 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7371 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7372
7373 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7374
7375 From Louis Hamilton <hamilton@redhat.com>:
7376 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7377 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7378 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7379 not bfd-private xcoff data, to determine wordsize.
7380 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7381
7382 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7383
7384 GDB 5.2 released from 5.2 branch.
7385
7386 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7387
7388 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7389 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7390 (x86_64_register_info_table): Added comments with register numbers.
7391
7392 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7393
7394 * rs6000-tdep.c (rs6000_extract_return_value,
7395 rs6000_store_return_value): Handle returning vectors.
7396 (rs6000_gdbarch_init): Use
7397 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7398 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7399 New function.
7400 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7401 vectors.
7402 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7403 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7404
7405 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7406
7407 * hpread.c (hpread_psymtab_to_symtab_1,
7408 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7409 with fprintf_unfiltered (gdb_stderr,...).
7410
7411 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7412
7413 * remote-array.c (printf_monitor, write_monitor,
7414 array_insert_breakpoint, array_remove_breakpoint ):
7415 Replace fprintf (stderr,...
7416 with fprintf_unfiltered (gdb_stderr,....
7417 * remote-es.c: Likewise.
7418 * remote-os9k.c: Likewise.
7419 * remote-st.c: Likewise.
7420
7421 2002-04-28 Andreas Schwab <schwab@suse.de>
7422
7423 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7424 linux-proc.o and gcore.o.
7425
7426 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7427
7428 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7429 code without frame pointers.
7430
7431 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7432
7433 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7434 ON_STACK is needed.
7435
7436 2002-04-26 Ben Elliston <bje@redhat.com>
7437
7438 * target.c (do_xfer_memory): Correct reference to the new option
7439 "trust-readonly-sections".
7440
7441 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7442
7443 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7444 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7445 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7446 vectors.
7447 (read_array_type): Record the fact that this array type is really a
7448 vector (i.e. are passed in by value).
7449
7450 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7451
7452 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7453 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7454 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7455 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7456 * alpha-linux-tdep.c: Include frame.h.
7457 (alpha_linux_sigcontext_addr): New function.
7458 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7459 alpha_linux_sigcontext_addr.
7460 * alpha-osf1-tdep.c: Include gdbcore.h.
7461 (alpha_osf1_sigcontext_addr): New function.
7462 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7463 alpha_osf1_sigcontext_addr.
7464 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7465 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7466
7467 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7468
7469 * stack.c (selected_frame_level):
7470 (select_frame): Do not set selected_frame_level.
7471 * frame.h (selected_frame_level): Delete declaration.
7472
7473 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7474
7475 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7476 convert_from_func_ptr-addr when AIX / PowerOpen.
7477
7478 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7479
7480 * valops.c (hand_function_call): Call
7481 generic_save_call_dummy_addr.
7482 * frame.h (generic_save_call_dummy_addr): Declare.
7483 * blockframe.c (struct dummy_frame): Add fields call_lo and
7484 call_hi.
7485 (generic_find_dummy_frame): Check for PC in range call_lo to
7486 call_hi instead of entry_point_address.
7487 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7488 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7489 (generic_save_call_dummy_addr): New function.
7490
7491 2002-04-24 David S. Miller <davem@redhat.com>
7492
7493 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7494 sparc_skip_prologue.
7495 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7496 information to find prologue when possible.
7497 (sparc_prologue_frameless_p): Call examine_prologue directly.
7498 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7499 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7500 second argument.
7501 (SKIP_PROLOGUE): Likewise.
7502
7503 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7504
7505 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7506 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7507 indicate that the condition it was testing is always true.
7508 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7509 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7510 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7511
7512 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7513
7514 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7515 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7516 tdep->jb_pc and tdep->jb_elt_size.
7517 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7518 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7519 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7520 * alpha-nat.c (get_longjmp_target): Remove.
7521 (JB_ELEMENT_SIZE): Ditto.
7522 (JB_PC): Ditto.
7523 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7524 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7525 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7526 to alpha_get_longjmp_target.
7527 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7528 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7529 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7530
7531 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7532
7533 * README: Update to GDB 5.2.
7534
7535 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7536
7537 * gdbarch.sh (LC_ALL): Set to `c'.
7538
7539 2002-04-25 Theodore A. Roth <troth@verinet.com>
7540
7541 * avr-tdep.c: Ran through gdb_indent.sh.
7542
7543 2002-04-25 Theodore A. Roth <troth@verinet.com>
7544
7545 * MAINTAINERS: Add myself as AVR maintainer.
7546 * NEWS: Note new target avr.
7547
7548 2002-04-25 Theodore A. Roth <troth@verinet.com>
7549
7550 * Makefile.in: Add support for AVR target.
7551 * configure.tgt: Add support for AVR target.
7552 * avr-tdep.c: New file
7553 * config/avr/avr.mt: New file.
7554
7555 2002-04-25 Theodore A. Roth <troth@verinet.com>
7556
7557 * MAINTAINERS: Add myself to write-after-approval.
7558
7559 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7560
7561 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7562 with fprintf_unfiltered (gdb_stderr,....
7563
7564 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7565
7566 Fix PR gdb/508.
7567 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7568
7569 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7570
7571 * p-exp.y: Also use new prev_lexptr variable
7572 to improve error reporting. Based on Michael Snyder
7573 2002-04-24 dated patch to c-exp.y.
7574
7575 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7576
7577 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7578 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7579 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7580 to 0.
7581 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7582 and struct value.
7583 (FUNCTION_START_OFFSET): Remove.
7584 (BREAKPOINT): Ditto.
7585
7586 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7587
7588 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7589 * NEWS: Ditto.
7590
7591 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7592
7593 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7594 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7595 alpha_linux_pc_in_sigtramp.
7596 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7597 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7598 alpha_osf1_pc_in_sigtramp.
7599 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7600 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7601 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7602 alphafbsd_pc_in_sigtramp.
7603 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7604 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7605 alphanbsd_pc_in_sigtramp.
7606 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7607 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7608
7609 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7610
7611 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7612
7613 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7614
7615 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7616 alphanbsd-tdep.c.
7617 (alphanbsd-nat.o): New dependency list.
7618 (alphanbsd-tdep.o): Ditto.
7619 * NEWS: Note new native NetBSD/alpha configuration.
7620 * alphanbsd-nat.c: New file.
7621 * alphanbsd-tdep.c: Ditto.
7622 * configure.host (alpha*-*-netbsd*): New host.
7623 * configure.tgt (alpha*-*-netbsd*): New target.
7624 * config/alpha/nbsd.mh: New file.
7625 * config/alpha/nbsd.mt: Ditto.
7626 * config/alpha/nm-nbsd.h: Ditto.
7627 * config/alpha/tm-nbsd.h: Ditto.
7628
7629 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7630
7631 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7632 (alpha-osf1-tdep.o): New dependency list.
7633 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7634 and skip_sigtramp_frame members.
7635 * alpha-linux-tdep.c: Include gdbcore.h.
7636 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7637 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7638 * alpha-osf1-tdep.c: New file.
7639 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7640 alpha-osf1-dep.c.
7641 (alpha_frame_past_sigtramp_frame): New function.
7642 (alpha_dynamic_sigtramp_offset): Ditto.
7643 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7644 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7645 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7646 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7647 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7648 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7649 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7650 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7651 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7652 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7653 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7654 to find_solib_trampoline_target.
7655 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7656 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7657 (SKIP_TRAMPOLINE_CODE): Remove.
7658 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7659 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7660 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7661 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7662 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7663 (PROC_SIGTRAMP_MAGIC): Ditto.
7664 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7665 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7666 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7667 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7668 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7669
7670 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7671
7672 * NEWS: Note that Alpha targets are now multi-arch.
7673
7674 2002-04-24 Michael Snyder <msnyder@redhat.com>
7675
7676 * parser-defs.h (prev_lexptr): New external variable.
7677 * parse.c (parse_exp_1): Set prev_lexptr to null before
7678 calling the language-specific parser.
7679 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7680 (yyerror): Use prev_lexptr in error reporting.
7681
7682 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7683
7684 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7685 * gregset.h: If FILL_FPXREGSET is defined, provide
7686 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7687 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7688 is defined, call fill_fpxregset.
7689
7690 2002-04-24 Roland McGrath <roland@frob.com>
7691
7692 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7693 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7694 (supply_gregset, supply_fpregset): New functions.
7695
7696 * gnu-nat.c (gnu_find_memory_regions): New function.
7697 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7698 (gnu_xfer_memory): Add a cast.
7699
7700 2002-04-24 Michael Snyder <msnyder@redhat.com>
7701
7702 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7703 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7704 of argument regs ("str r(0123), [r11, #-nn"]).
7705 (arm_skip_prologue): Better handling for frameless functions.
7706 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7707 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7708
7709 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7710
7711 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7712 NUM_PSEUDO_REGS can be used.
7713
7714 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7715
7716 * arch-utils.h: Update copyright.
7717
7718 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7719 * gdbarch.h, gdbarch.c: Re-generate.
7720
7721 * inferior.h (IN_SIGTRAMP): Delete definition.
7722 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7723 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7724
7725 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7726 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7727 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7728 (find_proc_framesize): Ditto.
7729 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7730 (alpha_init_extra_frame_info): Ditto.
7731 * infrun.c (handle_inferior_event): Ditto.
7732 (handle_inferior_event): Ditto.
7733 (check_sigtramp2): Ditto.
7734 * blockframe.c (create_new_frame): Ditto.
7735 (get_prev_frame): Ditto.
7736 * ppc-linux-tdep.c: Update comments.
7737 * i386-linux-tdep.c: Update comments.
7738 * breakpoint.c (bpstat_what): Update comment.
7739
7740 2002-04-24 David S. Miller <davem@redhat.com>
7741
7742 * i960-tdep.c (register_in_window_p): New function.
7743 (i960_find_saved_register): Use it instead of
7744 REGISTER_IN_WINDOW_P.
7745 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7746
7747 * symtab.h (find_stab_function_addr): Kill extern.
7748 * minsyms.c (find_stab_function_addr): Remove from here...
7749 * dbxread.c: ... to here, and mark it static.
7750
7751 2002-04-20 David S. Miller <davem@redhat.com>
7752
7753 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7754 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7755
7756 2002-04-21 David S. Miller <davem@redhat.com>
7757
7758 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7759 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7760 (vx_write_register): Likewise.
7761
7762 2002-04-23 J. Brobecker <brobecker@gnat.com>
7763
7764 * source.c (is_regular_file): New function.
7765 (openp): Check wether file to open is a regular file
7766 to avoid opening directories.
7767
7768 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7769
7770 * findvar.c (extract_signed_integer): Cast printf argument
7771 to suppress format warning.
7772 (extract_unsigned_integer): Likewise.
7773 * infcmd.c (registers_info): Likewise.
7774 * top.c (get_prompt_1): Likewise.
7775 * valops.c (value_assign): Likewise.
7776 * valprint.c (print_decimal): Likewise.
7777
7778 2002-04-22 H.J. Lu (hjl@gnu.org)
7779
7780 * c-exp.y (typebase): Support
7781
7782 [long|long long|short] [signed|unsigned] [int|]
7783
7784 and
7785
7786 signed [long|long long|short] int
7787
7788 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7789
7790 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7791 and vax-tdep.h.
7792 * vax-tdep.h: New file.
7793 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7794 Make several routines static.
7795 (vax_get_saved_register): New function.
7796 (vax_gdbarch_init): New function.
7797 (_initialize_vax_tdep): Register vax_gdbarch_init.
7798 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7799 Remove macros now under the control of gdbarch.
7800
7801 2002-04-22 Michael Snyder <msnyder@redhat.com>
7802
7803 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7804 Some whitespace and coding standards tweaks.
7805
7806 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7807
7808 * vax-tdep.c: Include regcache.h.
7809 (vax_call_dummy_words): New.
7810 (sizeof_vax_call_dummy_words): New.
7811 (vax_fix_call_dummy): New function.
7812 (vax_saved_pc_after_call): Ditto.
7813 * config/vax/tm-vax.h: Don't include regcache.h.
7814 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7815 (CALL_DUMMY): Remove.
7816 (CALL_DUMMY_WORDS): Define.
7817 (SIZEOF_CALL_DUMMY_WORDS): Define.
7818 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7819
7820 2002-04-18 Michael Snyder <msnyder@redhat.com>
7821
7822 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7823
7824 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7825
7826 * vax-tdep.c (vax_frame_chain): New function.
7827 (vax_push_dummy_frame): Ditto.
7828 (vax_pop_frame): Ditto.
7829 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7830 (FRAMELESS_FUNCTION_INVOCATION): Use
7831 generic_frameless_function_invocation_not.
7832 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7833 (POP_FRAME): Use vax_pop_frame.
7834
7835 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7836
7837 * vax-tdep.c (vax_store_struct_return): New function.
7838 (vax_extract_return_value): Ditto.
7839 (vax_store_return_value): Ditto.
7840 (vax_extract_struct_value_address): Ditto.
7841 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7842 vax_store_struct_return.
7843 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7844 (STORE_RETURN_VALUE): Use vax_store_return_value.
7845 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7846
7847 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7848
7849 * vax-tdep.c (vax_frame_saved_pc): New function.
7850 (vax_frame_args_address_correct): Ditto.
7851 (vax_frame_args_address): Ditto.
7852 (vax_frame_locals_address): Ditto.
7853 (vax_frame_num_args): Move code to be in proximity to
7854 other frame-related functions.
7855 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7856 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7857 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7858 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7859 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7860
7861 2002-04-22 H.J. Lu (hjl@gnu.org)
7862
7863 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7864 includedir.
7865
7866 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7867
7868 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7869 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7870 (FRAME_INIT_SAVED_REGS): New macro.
7871
7872 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7873
7874 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7875
7876 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7877
7878 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7879 where needed.
7880 (fetch_osf_core_registers): Likewise.
7881 (supply_gregset): Likewise.
7882
7883 2002-04-22 J. Brobecker <brobecker@gnat.com>
7884
7885 * symfile.h (get_section_index): Define.
7886 * symfile.c (get_section_index): New function.
7887 * mdebugread.c (SC_IS_SBSS): New macro.
7888 (SC_IS_BSS): Return true for the scBss storage class only, as
7889 the scSBss storage class refers to the .sbss section.
7890 (parse_partial_symbols): Discard the symbols which associated
7891 section does not exist.
7892 Make sure to use the .sbss section index for symbols which
7893 storage class is scBss, rather than using the .bss section index.
7894
7895 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7896
7897 * vax-tdep.c: Update copyright years.
7898 (vax_register_name): New function.
7899 (vax_register_byte): Ditto.
7900 (vax_register_raw_size): Ditto.
7901 (vax_register_virtual_size): Ditto.
7902 (vax_register_virtual_type): Ditto.
7903 * config/vax/tm-vax.h: Update copyright years.
7904 (REGISTER_NAMES): Remove.
7905 (REGISTER_NAME): Define.
7906 (REGISTER_BYTE): Use vax_register_byte.
7907 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7908 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7909 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7910
7911 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7912
7913 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7914 declaration
7915 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7916
7917 2002-04-21 David S. Miller <davem@redhat.com>
7918
7919 * arch-utils.c (generic_prologue_frameless_p): Kill
7920 SKIP_PROLOGUE_FRAMELESS_P code.
7921 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7922 references.
7923 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7924 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7925 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7926 references.
7927 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7928 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7929 (sparc_gdbarch_init): Pass it to
7930 set_gdbarch_prologue_frameless_p.
7931
7932 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7933
7934 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7935 (alphabsd-nat.o): New dependency list.
7936
7937 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7938
7939 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7940 alphafbsd-tdep.c.
7941 (alpha-linux-tdep.o): New dependency list.
7942 (alphafbsd-tdep.o): Likewise.
7943
7944 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7945
7946 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7947 to here...
7948 * alpha-tdep.c: ...from here.
7949 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7950
7951 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7952
7953 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7954 prototype from here...
7955 * alpha-tdep.h: ...to here.
7956
7957 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7958
7959 * frame.h (selected_frame_level): Document as deprecated.
7960 (frame_relative_level): Declare.
7961 * stack.c (frame_relative_level): New function.
7962 (selected_frame_level): Document as deprecated.
7963 (select_frame): Do not set the selected_frame_level.
7964
7965 * stack.c (frame_info, record_selected_frame): Update.
7966 (frame_command, current_frame_command): Update.
7967 (up_silently_base, up_command, down_silently_base): Update.
7968 (down_command): Update.
7969 * inflow.c (kill_command): Update.
7970 * tracepoint.c (finish_tfind_command): Update.
7971 * corelow.c (core_open): Update.
7972 * thread.c (info_threads_command): Update.
7973 (do_captured_thread_select): Update.
7974 * infcmd.c (finish_command): Update.
7975 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7976
7977 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7978
7979 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7980
7981 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7982
7983 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7984 type const.
7985
7986 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7987
7988 * alphafbsd-tdep.c: Update copyright years. Include
7989 alpha-tdep.h.
7990 (alphafbsd_use_struct_convention): Make static.
7991 (alphafbsd_init_abi): New function.
7992 (_initialize_alphafbsd_tdep): New function.
7993 * config/alpha/tm-fbsd.h: Update copyright years.
7994 (USE_STRUCT_CONVENTION): Remove.
7995
7996 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7997
7998 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7999 an Alpha ABI variant.
8000 (alpha_abi_handler_list): Declare.
8001 (alpha_gdbarch_register_os_abi): New function.
8002 (alpha_gdbarch_init): Give registered ABI variant handlers a
8003 chance to tweak the gdbarch once we have set up defaults.
8004 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8005
8006 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8007
8008 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8009 to standard_coerce_float_to_double.
8010 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8011
8012 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8013
8014 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8015 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8016 from gdbarch_tdep rather than a constant.
8017 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8018 the default text address for all Alpha Unix ABIs.
8019 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8020 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8021
8022 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8023
8024 * alpha-tdep.h: New file. Includes several Alpha target constants
8025 taken from...
8026 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8027 let gdbarch deal with.
8028 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8029 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8030 to dependency list.
8031 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8032 Alpha target register names.
8033 * alphabsd-nat.c: Likewise.
8034 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8035 Alpha target register names. Make serveral routines static.
8036 (alpha_get_saved_register): New function.
8037 (alpha_abi_names): New.
8038 (process_note_abi_tag_sections): New function.
8039 (get_elfosabi): New function.
8040 (alpha_gdbarch_init): New function.
8041 (alpha_dump_tdep): New function.
8042 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8043
8044 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8045
8046 * frame.c (find_saved_register): Delete #ifdef
8047 HAVE_REGISTER_WINDOWS code.
8048 * config/sparc/tm-sparc.h: Update comments.
8049 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8050
8051 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8052
8053 * i960-tdep.c (i960_find_saved_register): New function.
8054 (i960_get_saved_register): New function.
8055 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8056 (i960_get_saved_register): Declare.
8057 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8058
8059 2002-04-20 David S. Miller <davem@redhat.com>
8060
8061 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8062
8063 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8064
8065 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8066 instead of NUM_PSEUDO_REGS.
8067
8068 2002-04-20 David S. Miller <davem@redhat.com>
8069
8070 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8071 GDB_MULTI_ARCH_PARTIAL
8072 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8073 define, let tm-sp64.h do it.
8074
8075 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8076
8077 * frame.c (find_saved_register): Avoid a NULL pointer
8078 dereference and actually walk the frame list.
8079
8080 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8081
8082 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8083 sorted in most most-recent-used order. Document.
8084 * gdbarch.h, gdbarch.c: Regenerate.
8085
8086 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8087
8088 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8089 instead of ->prev.
8090 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8091 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8092 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8093 instead of ->prev.
8094
8095 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8096
8097 Fix PR gdb/471.
8098 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8099 (build_builtin_type_vec128): Ditto.
8100 (append_composite_type_field): Fix calculation of type length in
8101 union case.
8102
8103 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8104
8105 * config/djgpp/README: Update.
8106
8107 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8108 compiler warnings.
8109
8110 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8111
8112 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8113 (alpha_setup_arbitrary_frame): ...to this.
8114 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8115 for alpha_setup_arbitrary_frame.
8116
8117 2002-04-18 Andrew Cagney <cagney@redhat.com>
8118
8119 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8120 * gdbarch.h, gdbarch.c: Regenerate.
8121
8122 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8123 * target.h (memory_breakpoint_from_pc): Update declaration.
8124 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8125
8126 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8127 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8128 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8129 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8130 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8131 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8132 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8133 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8134 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8135 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8136 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8137 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8138
8139 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8140 const pointer.
8141 * monitor.c (monitor_insert_breakpoint): Ditto.
8142 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8143
8144 * config/mcore/tm-mcore.h: Update copyright.
8145 * mem-break.c: Ditto.
8146 * xstormy16-tdep.c: Ditto.
8147
8148 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8149
8150 * p-exp.y: Add precedence rule for '^' token.
8151 This removes the shift/reduce conflicts.
8152 Remove the comment concerning these shift/reduce conflicts.
8153
8154 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8155
8156 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8157 (registers_powerpc_nofp): New register set for processors
8158 without floating point unit.
8159
8160 2002-04-18 David S. Miller <davem@redhat.com>
8161
8162 * MAINTAINERS: Add myself to write-after-approval.
8163
8164 2002-04-17 Michael Snyder <msnyder@redhat.com>
8165
8166 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8167
8168 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8169
8170 * rs6000-tdep.c (frame_initial_stack_address): Use
8171 frame_register_read to read the alloca_reg.
8172
8173 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8174
8175 * frame.c (find_saved_register): Find saved registers in the next
8176 not prev frame.
8177 Fix PR gdb/365.
8178
8179 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8180
8181 * gdbarch.sh (LANG): Set to ``c''.
8182
8183 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8184
8185 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8186
8187 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8188
8189 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8190 Update copyright.
8191
8192 * hpread.c (hpread_get_lntt): Add declaration.
8193 Also fix PR gdb/391.
8194
8195 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8196
8197 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8198 * aclocal.m4, configure: Re-generate.
8199 Fix PR gdb/391.
8200
8201 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8202
8203 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8204 instead of tm_print_insn.
8205
8206 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8207
8208 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8209
8210 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8211
8212 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8213 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8214 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8215
8216 2002-04-12 Don Howard <dhoward@redhat.com>
8217
8218 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8219 max_user_call_depth.
8220 (init_cmd_lists): Initialize the new value;
8221 * cli/cli-script.c (execute_user_command): Limit the call depth of
8222 user defined commands. This avoids a core-dump when user commands
8223 are infinitly recursive.
8224
8225 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8226
8227 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8228 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8229 from tdep struct instead of DEFAULT_LR_SAVE.
8230 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8231 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8232 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8233
8234 2002-04-12 Michael Snyder <msnyder@redhat.com>
8235
8236 * Remote.c: Spelling fix.
8237 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8238 If no symbol found for "sbrk", try "_sbrk".
8239 (make_output_phdrs): Use bfd_section_name.
8240 (gcore_copy_callback): Use bfd_section_name.
8241 * eval.c: Indentation fix-ups.
8242 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8243 in case it gets applied to an address that is already
8244 in the instruction space.
8245 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8246 * symfile.c: Fix indentation, long lines.
8247 * source.c: White space fix-up.
8248
8249 2002-04-12 Andrew Cagney <cagney@redhat.com>
8250
8251 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8252 * frame.c (frame_register_read): New function. Return non-zero on
8253 success.
8254 (read_relative_register_raw_bytes_for_frame): Delete.
8255 (read_relative_register_raw_bytes): Delete.
8256 * frame.h (frame_register_read): Declare.
8257 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8258 * sh-tdep.c: Ditto.
8259 * infcmd.c (do_registers_info): Ditto.
8260 * hppa-tdep.c: Ditto.
8261 * rs6000-tdep.c: Ditto.
8262 * h8500-tdep.c: Ditto.
8263 * mips-tdep.c: Ditto.
8264 * h8300-tdep.c: Ditto.
8265 * z8k-tdep.c: Ditto.
8266
8267 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8268
8269 From Jimi X <jimix@watson.ibm.com>:
8270 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8271 64-bit SysV ABI.
8272
8273 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8274
8275 From Jimi X <jimix@watson.ibm.com>:
8276 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8277 bfd info.
8278
8279 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8280
8281 From Jimi X <jimix@watson.ibm.com>:
8282 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8283 register sets for these processor variants.
8284
8285 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8286
8287 * regformats/reg-ppc.dat: Support FPSCR.
8288
8289 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8290
8291 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8292 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8293 Add fpscr as an invalid/unfetchable register.
8294 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8295 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8296 (fill_fpregset): Add support for register fpscr.
8297 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8298 (fill_gregset): Account for the fact that register ``mq'' might
8299 not exist.
8300 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8301 (registers_power): Add fpscr to register set at slot 71.
8302 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8303 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8304
8305 2002-04-11 Michael Snyder <msnyder@redhat.com>
8306
8307 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8308 * configure: Regenerate.
8309 * config.in: Regenerate.
8310 * acconfig.h: Add define for _SYSCALL32.
8311 * core-sol2.c: Remove #define _SYSCALL32.
8312 * solib-legacy.c: Remove #define _SYSCALL32.
8313
8314 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8315
8316 * stack.c (select_frame): Cleanup internal error message, do not
8317 use %p.
8318
8319 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8320
8321 * stack.c (select_frame): Check that selected_frame and the
8322 specified level are as expected.
8323 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8324 Update copyright.
8325 * frame.h (struct frame_info): Add field `level'. Update
8326 copyright.
8327 Work-in-progress PR gdb/464.
8328
8329 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8330
8331 * maint.c (maint_print_section_info): Rename print_section_info.
8332 (print_bfd_section_info, print_objfile_section_info): Update.
8333 * inferior.h (struct gdbarch): Add opaque declaration.
8334 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8335 * gdbarch.h: Regenerate.
8336
8337 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8338
8339 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8340 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8341 (kernel_u_size): Added.
8342 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8343 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8344
8345 2002-04-04 Jim Ingham <jingham@apple.com>
8346
8347 * valarith.c (find_size_for_pointer_math): New function, either returns
8348 the size for a pointer's target, returns 1 for void *, or errors for
8349 incomplete types.
8350 (value_add, value_sub): use find_size_for_pointer_math.
8351
8352 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8353
8354 * linux-low.c (linux_look_up_symbols): New hook.
8355 (linux_target_ops): Add linux_look_up_symbols.
8356 * remote-utils.c (decode_address): New function.
8357 (look_up_one_symbol): New function.
8358 * server.c (handle_query): Call target look_up_symbols hook.
8359 * server.h (look_up_one_symbol): Add prototype.
8360 * target.h (struct target_ops): Add look_up_symbols hook.
8361
8362 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8363
8364 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8365 override FP_REGNUM with frame->fp. Update copyright.
8366 * parse.c (num_std_regs, std_regs): Delete.
8367 (target_map_name_to_register): Do not search std_regs. Update
8368 function description.
8369 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8370 declarations. Update copyright.
8371 Fix PR gdb/251.
8372
8373 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8374
8375 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8376 after the last symbol in a block.
8377
8378 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8379
8380 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8381 is non zero as a found symbol.
8382
8383 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8384
8385 * findvar.c: Include "builtin-regs.h".
8386 (value_of_register): Call value_of_builtin_reg when applicable.
8387 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8388 (target_map_name_to_register): Call
8389 builtin_reg_map_name_to_regnum.
8390 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8391 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8392 (builtin_regs_h): Define.
8393 (builtin-regs.o): New target.
8394 (findvar.o): Add $(builtin_regs_h).
8395 * builtin-regs.c, builtin-regs.h: New files.
8396 * std-regs.c: New file.
8397 Partial fix for PR gdb/251.
8398
8399 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8400
8401 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8402 it's no longer required.
8403
8404 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8405
8406 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8407
8408 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8409
8410 From Jimi X <jimix@watson.ibm.com>:
8411 * rs6000-tdep.c (rs6000_software_single_step): Use
8412 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8413 and size. Use target_insert_breakpoint() and
8414 target_remove_breakpoint() to insert and remove breakpoints
8415 instead of explicit memory reads and writes.
8416
8417 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8418
8419 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8420 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8421 ELF_OBJECT_FORMAT ifdef.
8422
8423 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8424
8425 From Jimi X <jimix@watson.ibm.com>:
8426 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8427
8428 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8429
8430 From Jimi X <jimix@watson.ibm.com>:
8431 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8432 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8433
8434 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8435
8436 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8437 s/asprintf/xasprintf/.
8438 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8439
8440 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8441
8442 I believe Jeff Law denies responsability for this one:
8443 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8444 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8445 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8446 Work-around for PR gdb/366.
8447
8448 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8449
8450 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8451 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8452 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8453
8454 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8455
8456 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8457 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8458 information.
8459
8460 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8461
8462 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8463 maintainer.
8464
8465 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8466
8467 * README (Reporting Bugs in GDB): Document the bug web page as the
8468 prefered way of submitting bugs.
8469 Fix PR gdb/402.
8470
8471 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8472
8473 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8474 -1. Update comment.
8475 * gdbarch.h, gdbarch.c: Re-generate.
8476
8477 2002-04-07 Andreas Schwab <schwab@suse.de>
8478
8479 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8480 buffer to regcache_collect.
8481
8482 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8483
8484 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8485 * gdbarch.c, gdbarch.h: Re-generate.
8486
8487 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8488
8489 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8490 declaration. Fix -Werror.
8491
8492 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8493
8494 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8495 * gdbarch.c: Regenerate.
8496
8497 2002-04-05 Michael Snyder <msnyder@redhat.com>
8498
8499 * breakpoint.c (clear_command): Rewrite middle section to
8500 combine two loops with identical control conditions.
8501 Add a cleanup to eliminate a memory leak.
8502 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8503
8504 2002-04-05 H.J. Lu (hjl@gnu.org)
8505
8506 * solib-svr4.c (bkpt_names): Add "__start".
8507
8508 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8509
8510 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8511 as test for 64 bit target.
8512
8513 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8514
8515 * h8500-tdep.c (h8500_write_fp): Delete function.
8516 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8517 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8518 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8519 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8520 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8521 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8522 (s390_write_fp):
8523 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8524 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8525 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8526 (d10v_write_fp): Delete function.
8527 * inferior.h (write_fp, generic_target_write_fp): Delete
8528 declarations.
8529 * regcache.c (generic_target_write_fp): Delete function.
8530 (write_fp): Delete function.
8531 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8532 * gdbarch.h, gdbarch.c: Regenerate.
8533 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8534 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8535 (sparc64_write_fp): Delete declaration.
8536 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8537 (h8500_write_fp): Delete declaration.
8538
8539 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8540
8541 * sparc-tdep.c (sparc64_write_fp): Delete.
8542 (sparc_push_dummy_frame): Replace write_fp call with code to store
8543 the FP directly.
8544 (sparc_gdbarch_init): Do not initialize write_fp.
8545
8546 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8547
8548 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8549 clause.
8550
8551 2002-03-29 Jim Blandy <jimb@redhat.com>
8552
8553 * stack.c (get_selected_block): Add new argument `addr_in_block',
8554 used to return the exact code address we used to select the block,
8555 not just the block.
8556 * blockframe.c (get_frame_block, get_current_block): Same.
8557 * frame.h (get_frame_block, get_current_block,
8558 get_selected_block): Update declarations.
8559 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8560 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8561
8562 2002-04-05 Michael Snyder <msnyder@redhat.com>
8563
8564 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8565 warning message.
8566
8567 2002-04-05 J. Brobecker <brobecker@gnat.com>
8568
8569 * utils.c (xfullpath): New function.
8570 * defs.h (xfullpath): Add declaration.
8571 * source.c (openp): Use xfullpath in place of gdb_realpath to
8572 avoid resolving the basename part of filenames when the
8573 associated file is a symbolic link. This fixes a potential
8574 inconsistency between the filenames known to GDB and the
8575 filenames it prints in the annotations.
8576 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8577 to be able to match a filename with either the real filename, or
8578 the name of any symbolic link to this file.
8579 (lookup_partial_symtab): Ditto.
8580
8581 2002-04-04 Michael Snyder <msnyder@redhat.com>
8582
8583 * breakpoint.c: Add support for hardware breakpoints in overlays.
8584 (overlay_events_enabled): New state variable.
8585 (insert_breakpoints): Use overlay_events_enabled to decide
8586 whether to attempt to set a breakpoint at the overlay load addr.
8587 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8588 (remove_breakpoint): Use overlay_events_enabled to decide
8589 whether breakpoints need to be removed from overlay load addr.
8590 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8591 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8592 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8593 disable_overlay_breakpoints): Update overlay_events_enabled.
8594
8595 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8596
8597 * dwarf2read.c (struct function_range): New.
8598 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8599 (check_cu_functions): New.
8600 (read_file_scope): Initialize global function lists.
8601 Call dwarf_decode_line after processing children.
8602 (read_func_scope): Add to global function list.
8603 (dwarf_decode_lines): Call check_cu_functions everywhere
8604 record_line is called. Call record_line with a linenumber
8605 of 0 to mark sequence ends.
8606
8607 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8608
8609 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8610 change sync with glibc.
8611
8612 2002-04-03 Jim Blandy <jimb@redhat.com>
8613
8614 * configure.in: Call AC_C_INLINE.
8615 * configure: Regenerated.
8616
8617 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8618
8619 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8620 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8621
8622 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8623
8624 * NEWS: Mention gcore support on FreeBSD/i386.
8625
8626 * fbsd-proc.c: New file.
8627 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8628 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8629
8630 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8631 while statement.
8632
8633 2002-03-29 Jim Blandy <jimb@redhat.com>
8634
8635 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8636 unescaped newlines in string literals, but newer ones don't. So
8637 escape them.
8638
8639 2002-03-26 Michael Snyder <msnyder@redhat.com>
8640 Andrew Cagney <cagney@redhat.com>
8641
8642 * cli/cli-dump.c: New file. Dump memory to file,
8643 restore file to memory.
8644 * cli/cli-dump.h: New file.
8645 * Makefile.in: Add rules, dependencies for cli-dump.o.
8646 * NEWS: Mention new commands.
8647
8648 2002-03-28 Michael Snyder <msnyder@redhat.com>
8649
8650 * symfile.c (symbol_file_add): Move test for null symbols to later.
8651
8652 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8653
8654 From veksler at il.ibm.com:
8655 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8656 the xstrduped original path.
8657 Fix PR gdb/417.
8658
8659 2002-03-27 Michael Snyder <msnyder@redhat.com>
8660
8661 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8662 * infcmd.c (_initialize_infcmd): Ditto.
8663 * language.c (_initialize_language): Ditto.
8664 * symfile.c (_initialize_symfile): Ditto.
8665 * top.c (_init_main): Ditto.
8666 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8667
8668 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8669
8670 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8671 vector registers handling.
8672 (skip_prologue): Handle new AltiVec instructions. Fill in new
8673 fields of frame data.
8674 (frame_get_saved_regs): Fill in information for AltiVec registers.
8675
8676 2002-03-27 Jim Blandy <jimb@redhat.com>
8677
8678 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8679 a function; leave this macro here to invoke that function.
8680 (symbol_init_mangled_name): Declaration for that function.
8681 * symtab.c (symbol_init_mangled_name): New function.
8682
8683 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8684
8685 * valarith.c: Replace strerror with safe_strerror.
8686 * tracepoint.c: Ditto.
8687 * lin-lwp.c: Ditto.
8688 * go32-nat.c: Ditto.
8689 * inflow.c: Ditto.
8690 * gnu-nat.c: Ditto.
8691
8692 2002-03-27 Andreas Schwab <schwab@suse.de>
8693
8694 * event-top.c (command_line_handler): Remove useless if.
8695
8696 2002-03-27 Andreas Jaeger <aj@suse.de>
8697
8698 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8699 comment.
8700
8701 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8702
8703 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8704 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8705 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8706 (x86_64_linux_dr_get_status, supply_gregset),
8707 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8708 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8709 (x86_64_register_info_table): Add.
8710 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8711 (x86_64_register_raw_size, x86_64_register_virtual_type),
8712 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8713 general x86_64_register_info_table.
8714 (i386_gdbarch_init): gdbarch_register_bytes is now set
8715 dynamicaly during initialization.
8716 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8717 * gdbserver/linux-x86-64-low.c: Ditto.
8718
8719 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8720
8721 * gdbserver/server.c (main): Call target_signal_to_host_p
8722 and target_signal_to_host on signals received from the remote.
8723 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8724 target_signal_from_host on signals sent to the remote.
8725 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8726 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8727
8728 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8729
8730 * signals/signals.c: Include "server.h" in gdbserver build.
8731 (target_signal_from_name): Don't use STREQ.
8732 (_initialize_signals): Likewise. Don't include function in
8733 gdbserver build.
8734
8735 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8736
8737 * signals.c: Moved to...
8738 * signals/signals.c: Here.
8739 * Makefile (signals.o): Update.
8740
8741 2002-03-26 Jeff Law (law@redhat.com)
8742
8743 * somread.c (som_symtab_read): Remove some commented out code and
8744 updated related comments. Do not set the minimal symbol table to
8745 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8746 in a dynamic executable.
8747 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8748 where we are unable to find the minimal symbol for the given
8749 PC value.
8750
8751 2002-03-25 Jeff Law (law@redhat.com)
8752
8753 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8754
8755 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8756
8757 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8758
8759 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8760
8761 * command.h: Update copyright.
8762 (struct cmd_list_element): Replace definition with opaque
8763 declaration.
8764 (enum cmd_types): Document that it will eventually be moved to
8765 cli/cli-decode.h
8766 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8767 (MALLOCED_REPLACEMENT): Delete macro.
8768 * Makefile.in (cli_decode_h): Add $(command_h).
8769 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8770 * top.c: Include "cli/cli-decode.h".
8771 * completer.c: Include "cli/cli-decode.h".
8772 * maint.c: Include "cli/cli-decode.h".
8773 * cli/cli-decode.h: Include "command.h".
8774 (enum command_class): Delete.
8775 (enum cmd_types): Comment out.
8776 (enum cmd_auto_boolean): Delete.
8777 (enum var_types): Delete.
8778
8779 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8780
8781 * cli/cli-decode.c: Include "gdb_assert.h".
8782 (add_set_or_show_cmd): New static function.
8783 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8784 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8785 all fields, such as func, from the set command.
8786
8787 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8788
8789 * MAINTAINERS (sh-elf): Change warning flag to -w.
8790
8791 2002-03-23 Andrew Cagney <cagney@redhat.com>
8792
8793 * defs.h (error): Add printf format attribute.
8794 * thread-db.c (thread_from_lwp): Fix error format string.
8795 * stack.c (parse_frame_specification): Ditto.
8796 * cli/cli-decode.c (undef_cmd_error): Ditto.
8797 * scm-lang.c (scm_lookup_name): Ditto.
8798 * tracepoint.c (trace_error): Ditto.
8799 * remote-utils.c (usage): Ditto.
8800 * remote.c (compare_sections_command): Ditto.
8801 Fix PR gdb/328.
8802
8803 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8804
8805 * gdbtypes.c (append_composite_type_field): New function.
8806 (init_composite_type): New function.
8807 * gdbtypes.h (append_composite_type_field): Declare.
8808 (init_composite_type): Ditto.
8809
8810 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8811
8812 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8813 function.
8814 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8815 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8816 structure returning convention for SYSV ABI case, but not
8817 for GNU/Linux, FreeBSD, or NetBSD.
8818
8819 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8820
8821 * symtab.h (lookup_block_symbol): Add mangled_name argument
8822 to prototype.
8823
8824 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8825 with new mangled_name argument.
8826 * linespec.c (decode_line_1): Likewise.
8827 * valops (value_of_this): Likewise.
8828 * symtab.c (lookup_transparent_type): Likewise.
8829 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8830 (lookup_symbol): If we are given a mangled name, pass it down
8831 to lookup_symbol_aux.
8832 (lookup_block_symbol): If we are given a mangled name to check
8833 against, only return symbols which match it.
8834
8835 2002-03-22 Christopher Faylor <cgf@redhat.com>
8836
8837 * win32-nat.c (child_create_inferior): Check for proper shell to use
8838 here, in case the user changes it on the fly.
8839 (_initialize_inftarg): Remove shell path considerations.
8840
8841 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8842
8843 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8844 for gdbarch_max_register_raw_size and max_register_virtual_size.
8845 Adjust copyright year.
8846
8847 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8848
8849 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8850 in a function to cover the entire beginning of the function
8851 as well if it does not already.
8852
8853 2002-03-21 Tom Rix <trix@redhat.com>
8854
8855 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8856 (rs6000_ptrace64): Renamed from ptrace64.
8857
8858 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8859
8860 * gdbserver/remote-utils.c (remote_open): Don't call
8861 getprotobyname, we're all using TCP here so just use
8862 IPPROTO_TCP.
8863 * gdbserver/gdbreplay.c (remote_open): Ditto.
8864
8865 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8866
8867 * regcache.c (_initialize_regcache): No need to call
8868 build_regcache() at this time; it gets called whenever
8869 the gdbarch changes.
8870
8871 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8872
8873 * sparc-nat.c: Include sys/param.h where possible.
8874
8875 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8876
8877 Fix PR gdb/422.
8878 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8879 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8880 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8881 complex types.
8882 * stabsread.c (rs6000_builtin_type): Likewise.
8883 (read_sun_floating_type): Likewise.
8884
8885 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8886
8887 * stabsread.c (read_member_functions): Remove skip code for duplicate
8888 constructor/destructor methods. Use standard parsing for these
8889 methods and just do not chain them to the list of methods after
8890 parsing.
8891
8892 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8893
8894 * coffread.c: Remove redundant static declarations. Replace
8895 occurrences of `PTR' with `void *'.
8896 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8897 * top.h (quit_cover): Likewise.
8898 * defs.h (catch_errors): Likewise.
8899
8900 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8901
8902 * defs.h (XMALLOC): Define.
8903 * gdb-events.sh (XMALLOC): Delete macro.
8904 * gdb-events.c, gdb-events.h: Regenerate.
8905 * gdbarch.sh (XMALLOC): Delete macro.
8906 * gdbarch.c: Regenerate.
8907 * serial.c (XMALLOC): Delete macro.
8908 * ui-file.c (XMALLOC): Ditto.
8909 * ser-unix.h (XMALLOC): Ditto.
8910 * sh-tdep.c (XMALLOC): Ditto.
8911 * ui-out.c (XMALLOC): Ditto.
8912 * utils.c (XMALLOC): Ditto.
8913 * i386-tdep.c (XMALLOC): Ditto.
8914 * gdb-events.c (XMALLOC): Ditto.
8915 * d10v-tdep.c (XMALLOC): Ditto.
8916 * cli-out.c (XMALLOC): Ditto.
8917
8918 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8919 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8920 * ui-file.c, ui-out.c: Ditto.
8921
8922 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8923
8924 * command.h (struct cmd_list_element): Add field context.
8925 (set_cmd_context, get_cmd_context): Declare.
8926 * cli/cli-decode.h: Ditto.
8927 * cli/cli-decode.c (get_cmd_context): New function.
8928 (set_cmd_context): New function.
8929 (add_cmd): Initialize context.
8930 Part of fixing PR gdb/145 and PR gdb/146.
8931
8932 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8933
8934 * cli/cli-decode.c (cmd_type): New function.
8935 * command.h (cmd_type): Declare.
8936 * infrun.c (set_schedlock_func): Call function cmd_type.
8937 * kod.c (kod_set_os): Call cmd_type.
8938 * cris-tdep.c (cris_version_update): Use function cmd_type.
8939 (cris_mode_update, cris_abi_update): Ditto.
8940
8941 * command.h: (execute_cmd_post_hook): Declare.
8942 (execute_cmd_pre_hook): Declare.
8943 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8944 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8945 functions. Execute pre/post hook while ensuring that afterwords
8946 hook_in is cleared.
8947 * top.c (execute_command): Use execute_cmd_post_hook, and
8948 execute_cmd_pre_hook to execute pre/post commands.
8949 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8950 hook_stop_stub.
8951 (hook_stop_stub): Call execute_cmd_pre_hook.
8952
8953 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8954
8955 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8956 set'' and this leads to a core dump. Move xstrdup of
8957 operating_system to after check that it is not NULL.
8958
8959 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8960
8961 * kod.c (kod_set_os): Remove unnecessary check that
8962 ``command->type'' is set_cmd.
8963
8964 * valprint.c (set_input_radix): Use input_radix.
8965 (set_output_radix): Use output_radix.
8966 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8967 isn't reverted.
8968
8969 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8970
8971 * value.h (struct value): Delete field ``substring_addr''. Change
8972 aligner fields to force_doublest_align, force_longest_align,
8973 force_core_addr_align and force_pointer_aligh.
8974
8975 * value.h (struct value): Fix typo in above change.
8976
8977 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8978
8979 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8980 to fix internal_error from ``maintenance print architecture''.
8981
8982 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8983
8984 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8985 for gcc versions after gcc-2.8.1.
8986
8987 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8988
8989 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8990 for method resolution. Restore adjustment of ``this'' pointer after
8991 calling value_struct_elt, which was accidentally removed during the
8992 HP merge.
8993
8994 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8995
8996 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8997 value_of_register.
8998 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8999 get_saved_register.
9000 * value.h (value_of_register): Update.
9001
9002 2002-03-14 Richard Henderson <rth@redhat.com>
9003
9004 * configure.in: Detect declaration for canonicalize_file_name.
9005 * utils.c (canonicalize_file_name): Declare, if needed.
9006 (gdb_realpath): Prefer realpath if available and usable.
9007 * config.in, configure: Rebuild.
9008
9009 2002-03-14 Richard Henderson <rth@redhat.com>
9010
9011 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9012 a constant array bound.
9013
9014 * MAINTAINERS: Add myself to write-after-approval.
9015
9016 2002-03-14 Michael Snyder <msnyder@redhat.com>
9017
9018 * symfile.c (syms_from_objfile): Return immediately if no syms.
9019 (symbol_file_add): Return immediately if no syms.
9020 (find_sym_fns): Return immediately if no syms.
9021
9022 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9023
9024 * gdbserver/remote-util.c (remote_open): Print remote-side's
9025 IP address when remote debugging over the network.
9026
9027 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9028
9029 * config/sparc/fbsd.mh: Fix copyright.
9030 * config/sparc/fbsd.mt: Likewise.
9031
9032 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9033
9034 * MAINTAINERS: Fix typo in name of gdb warnings option.
9035 (x86-64): Fix formating so that this can be parsed by awk.
9036
9037 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9038
9039 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9040 * defs.h: Include "gdb/signals.h".
9041 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9042
9043 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9044
9045 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9046 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9047 from x86-64-tdep.h
9048
9049 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9050 Don Howard <dhoward@redhat.com>
9051
9052 * mips-tdep.c (ST0_FR): Define.
9053 (mips2_fp_compat): New function, temporarily disabled.
9054 (mips_read_fp_register_single): New function.
9055 (mips_read_fp_register_double): New function.
9056 (mips_print_register): Use them.
9057 (do_fp_register_row): Likewise.
9058
9059 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9060
9061 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9062 approval''.
9063
9064 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9065
9066 * stabsread.c (read_member_functions): Fix is_stub test for
9067 static member functions, improve comment.
9068
9069 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9070
9071 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9072 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9073 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9074 commands that set boolean values.
9075 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9076 (arm_rdi_resume): Always initialize PC.
9077 (arm_rdi_open): Don't use rslt as a boolean.
9078 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9079 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9080 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9081 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9082
9083 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9084
9085 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9086 * configure: Rebuilt.
9087
9088 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9089
9090 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9091 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9092
9093 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9094
9095 * cli/cli-decode.c (set_cmd_completer): New function.
9096 * command.h (set_cmd_completer): Declare.
9097 * cli/cli-decode.h (set_cmd_completer): Ditto.
9098
9099 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9100 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9101 * win32-nat.c (_initialize_inftarg): Ditto.
9102 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9103 * proc-api.c (_initialize_proc_api): Ditto.
9104 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9105 * source.c (_initialize_source): Ditto.
9106 * exec.c (_initialize_exec): Ditto.
9107 * solib.c (_initialize_solib): Ditto.
9108 * top.c (init_main): Ditto.
9109 * tracepoint.c (_initialize_tracepoint): Ditto.
9110 * symfile.c (_initialize_symfile): Ditto.
9111 * printcmd.c (_initialize_printcmd): Ditto.
9112 * infcmd.c (_initialize_infcmd): Ditto.
9113 * corefile.c (_initialize_core): Ditto.
9114
9115 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9116
9117 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9118
9119 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9120
9121 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9122
9123 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9124
9125 * NEWS: Update headings, 5.2 has branched.
9126
9127 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9128
9129 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9130 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9131 (register_addr, REGISTER_RAW_SIZE): Likewise.
9132 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9133 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9134
9135 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9136
9137 * MAINTAINERS (x86-64): Add myself.
9138 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9139 changed value_ptr -> struct value *
9140
9141 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9142
9143 * configure.host (sparc64-*-freebsd): Add.
9144 * configure.tgt: Likewise.
9145 * config/sparc/fbsd.mh: New file.
9146 * config/sparc/fbsd.mt: Likewise.
9147 * config/sparc/nm-fbsd.h: Likewise.
9148 * config/sparc/tm-fbsd.h: Likewise.
9149
9150 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9151
9152 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9153 regformats/reg-s390x.dat.
9154
9155 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9156
9157 * utils.c: Add FIXME explaining true/false problem.
9158
9159 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9160
9161 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9162
9163 2002-02-28 Michael Chastain <mec@shout.net>
9164
9165 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9166
9167 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9168
9169 * gdbserver/linux-s390-low.c: New file.
9170 * regformats/reg-s390.dat: New file.
9171 * regformats/reg-s390x.dat: New file.
9172 * gdbserver/configure.srv: Add S/390.
9173 * gdbserver/Makefile.in: Add S/390.
9174 * configure.tgt: Enable gdbserver for S/390.
9175
9176 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9177
9178 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9179 first line of the doc string for "info dos", except at the end of
9180 the sentence, since the short help stops at the first period.
9181
9182 2002-02-28 Jason Merrill <jason@redhat.com>
9183
9184 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9185
9186 2002-02-27 Fred Fish <fnf@redhat.com>
9187
9188 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9189 comment (dumy -> dummy).
9190
9191 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9192
9193 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9194
9195 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9196
9197 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9198
9199 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9200
9201 * gdbserver/acconfig.h: New file.
9202 * gdbserver/i387-fp.c: New file.
9203 * gdbserver/i387-fp.h: New file.
9204 * gdbserver/linux-x86-64.c: New file.
9205 * regformats/reg-x86-64.dat: New file.
9206 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9207 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9208 * gdbserver/configure.in: Add support for regsets.
9209 * gdbserver/config.in: Regenerate.
9210 * gdbserver/configure: Regenerate.
9211 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9212 * gdbserver/linux-low.h: New file.
9213 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9214 for regsets.
9215 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9216 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9217 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9218 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9219 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9220 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9221 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9222 "i387-fp.h". Add PTRACE_GETREGS and friends.
9223 * gdbserver/regcache.c (supply_register): New function.
9224 (supply_register_by_name): New function.
9225 (collect_register): New function.
9226 (collect_register_by_name): New function.
9227
9228 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9229
9230 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9231 (config.status): Add configure.srv dependency.
9232 (server_h): Add config.h dependency.
9233
9234 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9235
9236 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9237 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9238 * gdbserver/configure.srv: Change i386-*-linux* to use
9239 reg-i386-linux.o.
9240
9241 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9242
9243 * x86-64-tdep.c: Re-indent. Update copyright date.
9244
9245 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9246
9247 From Michal Ludvig <mludvig@suse.cz>:
9248 * x86-64-tdep.c (value.h): Delete.
9249 (gdb_assert.h): Include.
9250 (x86_64_register_convert_to_virtual,
9251 x86_64_register_convert_to_raw ): Add check which lets only
9252 floating-point values to be converted.
9253 (value_push): Delete.
9254 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9255 (i386_gdbarch_init): Number of register_bytes fixed.
9256
9257 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9258
9259 * MAINTAINERS: Add x86-64 target.
9260
9261 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9262
9263 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9264 * osfsolib.c (solib_map_sections): Ditto.
9265 * irix5-nat.c (solib_map_sections): Ditto.
9266 * corelow.c (gdb_check_format): Ditto.
9267 * symfile.c (symfile_bfd_open): Ditto.
9268 * solib.c (solib_map_sections): Ditto.
9269 Fix PR gdb/354.
9270
9271 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9272
9273 * remote.c (_initialize_remote): By default, disable ``e'' and
9274 ``E'' step out-of-range packets.
9275
9276 2002-02-26 Andreas Schwab <schwab@suse.de>
9277
9278 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9279 m68k_linux_frame_saved_pc.
9280 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9281 in_sigtramp.
9282 (SIGCONTEXT_PC_OFFSET): Remove.
9283 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9284 m68k_linux_sigtramp_saved_pc): New functions.
9285 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9286 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9287 (UCONTEXT_PC_OFFSET): Define.
9288 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9289 non-RT and RT signal trampolines.
9290
9291 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9292
9293 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9294 (TARGET_NBPG, STACK_END_ADDR): Delete
9295 (VARIABLES_INSIDE_BLOCK): Delete.
9296
9297 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9298
9299 * utils.c (perror_with_name): Make string parameter constant.
9300 (print_sys_errmsg): Ditto.
9301 (query): Ditto.
9302 * defs.h (perror_with_name): Update.
9303 (print_sys_errmsg): Update.
9304 (query): Update.
9305
9306 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9307
9308 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9309 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9310
9311 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9312
9313 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9314 if it already matches the current architecture from the exec file.
9315 Include arch-utils.h for gdbarch_info_init prototype.
9316 * Makefile.in (rs6000-nat.o): Update dependencies.
9317
9318 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9319
9320 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9321 list of exported variables.
9322
9323 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9324
9325 * gdbserver/configure.srv: New file.
9326 * gdbserver/configure.in: Use configure.srv instead
9327 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9328 from it.
9329 * gdbserver/configure: Regenerated.
9330 * gdbserver/terminal.h: New file.
9331 * gdbserver/Makefile.in: Update for configure changes. Remove
9332 more unneeded include paths.
9333
9334 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9335
9336 From wiz at danbala:
9337 * config/sparc/tm-sp64.h: Fix grammar and typos.
9338 Fix PR gdb/287.
9339
9340 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9341
9342 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9343 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9344 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9345 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9346 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9347 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9348 * s390-tdep.c: Ditto.
9349 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9350 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9351 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9352 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9353 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9354 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9355 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9356 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9357 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9358 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9359 Fix PR gdb/378.
9360
9361 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9362
9363 * lin-thread.c: Delete file.
9364 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9365 to gdb_proc_service.h.
9366 * configure: Re-generate.
9367
9368 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9369 * serial.c (serial_open): Delete check for "ocd".
9370 Fix PR gdb/349.
9371
9372 * Makefile.in (linux-thread.o): Delete target.
9373 * linux-thread.c: Delete file.
9374
9375 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9376 renamed SH files to be consistent.
9377
9378 * symtab.c (sort_search_symbols): Use xfree.
9379
9380 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9381
9382 * arm-linux-tdep.c (arm_linux_init_abi): Register
9383 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9384 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9385 definition with undef, since we don't want the sysvr4 definition.
9386 (SKIP_TRAMPOLINE_CODE): Likewise.
9387
9388 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9389
9390 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9391
9392 * configure.in: (AC_CHECK_FUNCS) Added test for
9393 canonicalize_file_name Regenerated.
9394 * config.in, configure: Regenerated.
9395 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9396 defined use canonicalize_file_name.
9397
9398 2002-02-23 Michael Chastain <mec@shout.net>
9399
9400 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9401
9402 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9403
9404 * README: Remove references to cygnus.com.
9405 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9406 dot com'' form. Remove references to cygnus.com and sourceware.
9407
9408 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9409
9410 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9411 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9412 1003.1-2001 no longer allows "head -1".
9413 * gdb/Makefile.in (version.c): Likewise.
9414 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9415 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9416 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9417
9418 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9419
9420 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9421 * command.h (cmd_cfunc_eq): Declare.
9422 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9423
9424 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9425 ``struct cmd_list_element *''.
9426 * cli/cli-cmds.c (is_complete_command): Update. Use
9427 cmd_cfunc_eq.
9428 * top.c (execute_command): Pass the command to
9429 is_complete_command.
9430 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9431
9432 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9433
9434 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9435 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9436 architecture defines.
9437 * s390-tdep.c (s390_gdbarch_init): Likewise.
9438
9439 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9440
9441 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9442 (arm_linux_push_arguments): Likewise.
9443 (arm_linux_init_abi): Register them. Also register linux-specific
9444 call_dummy_words.
9445 (find_minsym_and_objfile): Use strcmp, not STREQ.
9446 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9447 (arm_linux_call_dummy_words): Delete declaration.
9448 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9449 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9450 declarations.
9451 (LOWEST_PC): Delete.
9452
9453 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9454
9455 * maint.c (print_section_info): Do not prepend `0x' to filepos
9456 output, it will be handled by local_hex_string_custom.
9457
9458 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9459
9460 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9461 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9462 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9463
9464 2002-02-22 Jim Blandy <jimb@redhat.com>
9465
9466 Indicate that the bcache functions don't change the strings
9467 they're passed.
9468 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9469 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9470
9471 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9472
9473 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9474
9475 2002-02-21 Christopher Faylor <cgf@redhat.com>
9476
9477 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9478 find the complete path to a loaded DLL.
9479
9480 2002-02-21 Fred Fish <fnf@redhat.com>
9481
9482 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9483 that marks the end of the range of a function, enter a line number
9484 entry that has a line number of zero and a PC offset that matches
9485 the end of the function. This starts a range of PC's for which no
9486 line number information is known.
9487 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9488 PC's for which no line number info is found (line number is zero)
9489 then we didn't find any valid line information.
9490 * symtab.h: Document use of zero line number entry.
9491
9492 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9493
9494 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9495 (have_ptrace_getvrregs): Define for run time checks.
9496 (gdb_vrregset_t): New type for Altivec register handling.
9497 (fetch_register, store_register): Fetch/store altivec register
9498 when needed.
9499 (fetch_altivec_register, store_altivec_register): New functions.
9500 (supply_vrregset, fill_vrregset): New functions.
9501 (fetch_altivec_registers, store_altivec_registers): New functions.
9502 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9503 registers as well.
9504
9505 2002-02-21 Jiri Smid <smid@suse.cz>
9506
9507 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9508
9509 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9510
9511 * Makefile.in (armnbsd-nat.o): Update dependencies.
9512 * armnbsd-nat.c (supply_gregset): New function. Common code to
9513 supply the integer register set.
9514 (supply_fparegset): New function. Similar for FPA registers.
9515 (fetch_regs, fetch_fp_regs): Use them.
9516 (fetch_core_registers): Likewise.
9517 (fetch_elfcore_registers): New function.
9518 (arm_netbsd_elfcore_fns): New core-file type specification.
9519 (_initialize_arm_netbsd_nat): Register it.
9520
9521 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9522
9523 * armnbsd-nat.c: Include gdbcore.h.
9524 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9525 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9526 'void' to declaration, to shut up ARI.
9527 (fetch_core_registers): Make static. Rewrite using supply_register.
9528 (arm_netbsd_core_fns): New core-file type specification.
9529 (_initialize_arm_netbsd_nat): New function.
9530
9531 2002-02-21 Christopher Faylor <cgf@redhat.com>
9532
9533 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9534 value.
9535
9536 2002-02-20 Christopher Faylor <cgf@redhat.com>
9537
9538 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9539 fails.
9540
9541 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9542
9543 * jv-exp.y (parse_number): Change type of implicit longs
9544 to builtin_type_uint64.
9545
9546 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9547
9548 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9549 to be an integer instead of a `union wait'.
9550
9551 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9552
9553 * mips-linux-nat.c: Call the operating system GNU/Linux.
9554 * mips-linux-tdep.c: Likewise.
9555 * mips-tdep.c: Likewise.
9556
9557 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9558
9559 Fix PR gdb/265.
9560 * jv-exp.y (parse_number): Handle 64-bit integers.
9561
9562 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9563
9564 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9565 AC_STDC_HEADERS to AC_HEADER_STDC.
9566 * gdbserver/configure: Regenerated.
9567
9568 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9569
9570 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9571 is defined.
9572 * sparc-tdep.c (get_longjmp_target): Likewise.
9573
9574 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9575
9576 * News: Add news about ARM and Multi-arch. Mention the new target
9577 arm*-*-netbsd*.
9578
9579 2002-02-19 Jim Blandy <jimb@redhat.com>
9580
9581 * stabsread.c (error_type_complaint): Improve error message.
9582
9583 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9584
9585 * gdbserver/README: Update documentation.
9586 * gdbserver/configure.in: Update configury to match documentation.
9587 * gdbserver/Makefile.in: Likewise.
9588 * gdbserver/configure: Regenerated.
9589 * gdbserver/aclocal.m4: New file, generated by aclocal.
9590 * gdbserver/config.in: New file, generated by autoheader.
9591
9592 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9593
9594 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9595 armnbsd-nat.c.
9596
9597 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9598
9599 * arm-tdep.h (enum arm_float_model): New enum.
9600 (struct gdbarch_tdep): Add fp_model.
9601 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9602 up floating-point conversions until we know the floating-point model
9603 in use by the inferior. Don't complain about being unable to
9604 determine the ABI of the inferior when we don't have one.
9605 (arm_extract_return_value): Support different floating-point models.
9606 (arm_store_return_value): Likewise.
9607 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9608 ARM_FLOAT_SOFT.
9609 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9610
9611 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9612
9613 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9614 of ``current_gdbarch''.
9615
9616 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9617
9618 * armnbsd-nat.c : ANSIfy all function declarations.
9619 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9620 (fetch_inferior_registers): Re-implement in terms of above.
9621 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9622 (store_inferior_registers): Re-implement in terms of above.
9623
9624 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9625
9626 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9627 kernel.
9628 * arm-linux-tdep.c: Likewise.
9629 * config/arm/tm-linux.h: Likewise.
9630
9631 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9632
9633 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9634 * config/arm/nbsd.mt (TM_FILE): Delete.
9635 * config/arm/tm-nbsd.h: Delete.
9636
9637 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9638
9639 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9640 Initialize CALL_DUMMY_LENGTH.
9641
9642 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9643
9644 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9645 function.
9646 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9647 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9648 defines one thing and that is incorrect for this port.
9649 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9650
9651 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9652
9653 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9654
9655 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9656
9657 * win32-nat.c (display_selector): New function. Displays information
9658 about the information returned by GetThreadSelectorEntry API function.
9659 (display_selectors): New function. Displays the infomation of
9660 the selector given as argument, or of CS, DS ans FS selectors
9661 if no argument is given.
9662 ( _initialize_inftarg): Add "w32" as info prefix command.
9663 Add "info w32 selector" as command calling display_selectors.
9664
9665 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9666
9667 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9668 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9669 if not defined.
9670
9671 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9672
9673 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9674
9675 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9676
9677 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9678 (arm_fix_call_dummy): Call it.
9679 (arm_call_dummy_breakpoint_offset): Delete.
9680 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9681 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9682
9683 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9684
9685 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9686 Default to func_frame_chain_valid.
9687 * gdbarch.h, gdbarch.c: Re-generate.
9688 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9689
9690 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9691
9692 * ppc-linux-nat.c: Update copyright.
9693 (fetch_register, store_register): Add tid parameter, don't compute
9694 tid here.
9695 (fetch_ppc_registers, store_ppc_registers): Add tid
9696 parameter. Pass it along to callees.
9697 (fetch_inferior_registers, store_inferior_registers): Compute tid
9698 here, and pass it to calleed functions.
9699 (fill_gregset, supply_fpregset): Clean up formatting.
9700
9701 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9702
9703 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9704 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9705
9706 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9707
9708 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9709 * gdbarch.c gdbarch.h: Regenerate.
9710 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9711 function.
9712 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9713 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9714 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9715
9716 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9717 * arm-tdep.c (arm_get_longjmp_target): New function.
9718 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9719 this to a positive value register arm_get_longjmp_target as the
9720 longjmp handler.
9721 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9722 (arm_linux_init_abi): Set up longjmp description in tdep.
9723 * armnbsd-nat.c (get_longjmp_target): Delete.
9724 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9725 description in tdep.
9726 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9727 (get_longjmp_target): Delete declaration.
9728 (GET_LONGJMP_TARGET): Delete.
9729 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9730 (GET_LONGJMP_TARGET): Delete.
9731
9732 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9733
9734 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9735 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9736 of ``current_gdbarch''.
9737
9738 2002-02-17 Tom Tromey <tromey@redhat.com>
9739
9740 * cli/cli-cmds.c (compare_strings): New function.
9741 (complete_command): Only print each unique item once.
9742 * completer.h (complete_line): Declare.
9743 * completer.c (complete_line): New function.
9744 (line_completion_function): Use it.
9745
9746 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9747
9748 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9749 * gdbarch.h, gdbarch.c: Re-generate.
9750
9751 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9752
9753 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9754
9755 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9756
9757 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9758 * valops.c (value_arg_coerce): Don't take the address of a reference
9759 to convert an argument to a reference.
9760
9761 2002-02-15 Christopher Faylor <cgf@redhat.com>
9762
9763 * win32-nat.c (get_image_name): New function.
9764 (handle_load_dll): Use get_image_name function.
9765 (get_child_debug_event): Avoid registering debug events until possibly
9766 execed process is started.
9767 (child_create_inferior): Allow invocation via shell so that command
9768 line redirection, etc. works ok.
9769 (_initialize_inftarg): Add new command: "set shell" to control whether
9770 a shell is used to start a process.
9771
9772 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9773
9774 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9775 instead of find_register_by_number.
9776 (cannot_store_register): Likewise.
9777
9778 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9779
9780 * dwarf2read.c: Replace fprintf (stderr, ...) by
9781 fprintf_unfiltered (gdb_stderr, ...).
9782
9783 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9784
9785 * gdbserver/gdbserver.1: Document --attach.
9786
9787 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9788
9789 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9790 descriptions.
9791 * arm-tdep.c (arm_default_arm_le_breakpoint)
9792 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9793 (arm_default_thumb_be_breakpoint): New. Initialize them from
9794 traditional breakpoint defines.
9795 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9796 (arm_gdbarch_init): Initialize new breakpoint variables.
9797 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9798 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9799 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9800 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9801 code out to ...
9802 (arm_netbsd_init_abi_common): ... here; new function.
9803 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9804 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9805 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9806 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9807
9808 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9809
9810 * arm-tdep.h (enum arm_abi): New enum.
9811 (struct gdbarch_tdep): New structure.
9812 (LOWEST_PC): Provide a default.
9813 (arm_gdbarch_register_os_abi): Declare new function.
9814 * arm-tdep.c (arm_abi_names): New array.
9815 (process_note_abi_tag_sections): New function.
9816 (get_elfosabi): New function.
9817 (arm_gdbarch_register_os_abi): New function.
9818 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9819 support for that ABI has been built in, then call the appropriate
9820 configuration routine. Use gdbarch_num_regs() to get the number
9821 of registers.
9822 (arm_dump_tdep): New function.
9823 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9824 place-holder functions.
9825 (_initialize_arm_tdep): Register them.
9826 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9827
9828 * armnbsd-tdep.c: New file.
9829 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9830 * config/arm/nbsd.mt (TDEPFILES): Add it.
9831 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9832
9833 * armnbsd-nat.c: Include regcache.h.
9834 * Makefile.in (armnbsd-nat.o): Update dependency list.
9835
9836 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9837
9838 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9839
9840 * gdbserver/Makefile.in: Fix typos in target rules.
9841
9842 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9843
9844 Fix part of PR gdb/267.
9845 * linespec.c (find_methods): Handle constructors specially for now.
9846
9847 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9848
9849 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9850 handling.
9851 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9852 standard_coerce_float_to_double().
9853
9854 2002-02-14 Christopher Faylor <cgf@redhat.com>
9855
9856 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9857 GDBINIT_FILENAME.
9858
9859 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9860
9861 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9862 find_variant_by_name, because it confuses the multiarch
9863 framework. Return NULL if there isn't an architecture with the
9864 user supplied name, instead of forcing a different one without
9865 recording the change with the multiarch machinery.
9866 (find_variant_by_name): Delete.
9867
9868 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9869
9870 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9871 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9872
9873 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9874
9875 * stack.c (print_frame_info_base): When calling
9876 print_frame_info_listing_hook, set current_source_symtab.
9877
9878 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9879
9880 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9881 and remove unused $(INCLUDE_DIR).
9882 Add regcache.c to OBS.
9883 Add generated register protocol files to clean target.
9884 Update dependencies for new objects, obsolete old target code.
9885
9886 * gdbserver/linux-low.c: Remove all platform-specific code to
9887 new files. Remove various dead code. Update to use regcache
9888 functionality.
9889 * gdbserver/remote-utils.c (fromhex): Add return statement
9890 to quiet warning.
9891 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9892 constant.
9893 (input_interrupt): Add integer parameter to match prototype
9894 of a signal handler.
9895 (outreg): Use register_data ().
9896 (prepare_resume_reply): Use gdbserver_expedite_regs.
9897 * gdbserver/server.c (main): Dynamically allocate own_buf because
9898 PBUFSIZ is no longer constant. Use registers_to_string () and
9899 registers_from_string ().
9900 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9901 for error (), fatal (), and warning (). Update definition of
9902 PBUFSIZ to use regcache functionality. Add include guard.
9903 * gdbserver/utils.c (fatal): Add missing ``const''.
9904 (warning): New function.
9905
9906 * regformats/regdat.sh: Include "regcache.h" in generated files.
9907 Provide init_registers () function.
9908 * regformats/regdef.h: Add prototype for set_register_cache ().
9909 Add include guard.
9910
9911 * gdbserver/linux-arm-low.c: New file.
9912 * gdbserver/linux-i386-low.c: New file.
9913 * gdbserver/linux-ia64-low.c: New file.
9914 * gdbserver/linux-m68k-low.c: New file.
9915 * gdbserver/linux-mips-low.c: New file.
9916 * gdbserver/linux-ppc-low.c: New file.
9917 * gdbserver/linux-sh-low.c: New file.
9918
9919 * gdbserver/regcache.c: New file.
9920 * gdbserver/regcache.h: New file.
9921
9922 * gdbserver/low-linux.c: Removed obsolete file.
9923
9924 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9925
9926 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9927 * config/i386/linux.mt: Likewise.
9928 * config/ia64/linux.mt: Likewise.
9929 * config/m68k/linux.mh: Likewise.
9930 * config/powerpc/linux.mh: Likewise.
9931 * config/mips/linux.mt: Likewise.
9932
9933 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9934
9935 * config/i386/i386lynx.mh: Mark gdbserver variables
9936 as (currently) obsolete for this target.
9937 * config/i386/nbsd.mt: Likewise.
9938 * config/i386/nbsdelf.mt: Likewise.
9939 * config/m32r/m32r.mt: Likewise.
9940 * config/m68k/m68klynx.mh: Likewise.
9941 * config/m68k/nbsd.mt: Likewise.
9942 * config/m68k/sun3os4.mh: Likewise.
9943 * config/mips/vr5000.mt: Likewise.
9944 * config/ns32k/nbsd.mt: Likewise.
9945 * config/pa/hppabsd.mh: Likewise.
9946 * config/pa/hppaosf.mh: Likewise.
9947 * config/powerpc/nbsd.mt: Likewise.
9948 * config/rs6000/rs6000lynx.mh: Likewise.
9949 * config/s390/s390.mt: Likewise.
9950 * config/s390/s390x.mt: Likewise.
9951 * config/sparc/sparclynx.mh: Likewise.
9952 * config/sparc/sun4os4.mh: Likewise.
9953 * config/i386/x86-64linux.mt: Likewise.
9954 * config/sparc/linux.mh: Likewise.
9955
9956 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9957
9958 * configure.tgt: Configure gdbserver only for known working
9959 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9960 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9961 SUBDIRS if it is configured. Update comment for ${nativefile}.
9962 * configure: Regenerated.
9963
9964 2002-02-13 Michael Snyder <msnyder@redhat.com>
9965
9966 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9967
9968 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9969 (default_gcore_mach): Just return 0, work around a problem in bfd.
9970 (default_gcore_target): OK to return NULL if exec_bfd is null.
9971 (make_mem_sec): Use a cast, avoid a warning.
9972
9973 * procfs.c (find_memory_regions_callback): Use a cast instead of
9974 calling host_pointer_to_address (which complains if
9975 sizeof (host pointer) != sizeof (target pointer)).
9976 (procfs_make_note_section): Avoid overflow in psargs string.
9977
9978 * procfs.c (procfs_make_note_section): Make the default
9979 implementation return an error.
9980
9981 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9982
9983 * procfs.c (procfs_make_note_section): Provide a default definition
9984 (for alpha-dec-osf4.0f). Fix typos.
9985
9986 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9987
9988 * linux-proc.c: Add include of regcache.h.
9989 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9990
9991 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9992
9993 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9994 * memattr.c (create_mem_region): Disallow useless empty region.
9995 Regions are half-open intervals, so allow [A..B) [B..C) as
9996 non-overlapping.
9997
9998 2002-02-13 Michael Chastain <mec@shout.net>
9999
10000 * defs.h: Kill CONST_PTR.
10001 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10002 * c-lang.c (c_builtin_types): Likewise.
10003 * ch-lang.c (ch_builtin_types): Likewise.
10004 * f-lang.c (f_builtin_types): Likewise.
10005 * language.c (unknown_builtin_types): Likewise.
10006 * m2-lang.c (m2_builtin_types): Likewise.
10007 * p-lang.c (pascal_builtin_types): Likewise.
10008 * scm-lang.c (c_builtin_types): Likewise.
10009
10010 2002-02-13 Keith Seitz <keiths@redhat.com>
10011
10012 * arm-tdep.h (arm_get_next_pc): Add declaration.
10013
10014 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10015
10016 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10017 with other related struct-returning functions.
10018 (arm_extract_struct_value_address): New function.
10019 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10020 initialize float_format, double_format and long_double_format as
10021 appropriate to the endianness of the target.
10022 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10023 (arm_use_struct_convention): Delete declaration.
10024 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10025
10026 2002-02-13 Keith Seitz <keiths@redhat.com>
10027
10028 * defs.h (core_addr_to_string_nz): New function.
10029
10030 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10031
10032 Apply missing bits of 2002-01-15 patch.
10033 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10034 (fill_fpregset): Use i387_fill_fsave.
10035
10036 2002-02-12 Keith Seitz <keiths@redhat.com>
10037
10038 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10039 (core_addr_to_string_nz): New function.
10040
10041 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10042
10043 * arm-linux-nat.c: Really include arm-tdep.h.
10044 * config/arm/tm-linux.h (struct type, struct value): Declare.
10045
10046 2002-02-11 Michael Snyder <msnyder@redhat.com>
10047
10048 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10049 (gcore section): Ifdef for Solaris and Unixware only.
10050 (procfs_do_thread_registers): Unixware needs one lwpstatus
10051 per thread (not one prstatus or pstatus).
10052 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10053 not over all gdb threads. For unixware, call elfcore_write_pstatus
10054 once before iterating over threads.
10055
10056 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10057
10058 * arm-tdep.h: New file.
10059 * arm-tdep.c: Include arm-tdep.h.
10060 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10061 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10062 (arm_print_float_info, arm_register_type, convert_to_extended)
10063 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10064 (arm_extract_return_value, arm_register_name): Make static.
10065 (arm_software_single_step): Similarly. Fix types in declaration.
10066 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10067 (arm_store_return_value, arm_store_struct_return): New functions.
10068 (arm_gdbarch_init): Register the above functions. Also register
10069 call_dummy_start_offset, sizeof_call_dummy_words,
10070 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10071 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10072 max_register_virtual_size, register_size. Set up
10073 prologue_cache.saved_regs here, rather than ...
10074 (_initialize_arm_tdep): ... here.
10075 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10076 declarations.
10077 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10078 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10079 (arm_print_float_info, arm_register_type, convert_to_extended)
10080 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10081 (arm_extract_return_value, arm_register_name): Delete declarations.
10082 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10083 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10084 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10085 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10086 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10087 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10088 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10089 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10090 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10091 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10092 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10093 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10094 interface.
10095 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10096 * remote-rdi.c remote-rdp.c: Likewise.
10097 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10098 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10099 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10100 definition.
10101
10102 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10103 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10104 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10105 from non-ARM_ prefixed definitions.
10106 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10107 all uses of above.
10108 * remote-rdi.c remote-rdp.c: Likewise.
10109 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10110
10111 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10112
10113 * arm-tdep.c (arm_frameless_function_invocation)
10114 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10115 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10116 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10117 (arm_pop_frame, arm_get_next_pc): Make static.
10118 (arm_gdbarch_init): Register above in gdbarch structure.
10119 (arm_read_fp): Renamed from arm_target_read_fp.
10120 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10121 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10122 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10123 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10124 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10125 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10126 (arm_pc_is_thumb_dummy): Delete declarations.
10127 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10128 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10129 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10130 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10131
10132 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10133
10134 * symtab.c (compare_search_syms): New function.
10135 (sort_search_symbols): New function.
10136 (search_symbols): Sort symbols after searching rather than
10137 before.
10138
10139 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10140
10141 * NEWS: Linux -> GNU/Linux.
10142
10143 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10144
10145 * gdbarch.sh: For for level one methods, disallow a definition
10146 when partially multi-arched. Add comments explaining rationale.
10147 * gdbarch.h: Re-generate.
10148
10149 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10150
10151 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10152 multi-arch partial.
10153
10154 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10155
10156 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10157 field. Use diff -u.
10158 * gdbarch.c: Re-generate.
10159
10160 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10161
10162 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10163 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10164 partial.
10165
10166 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10167
10168 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10169 multi-arch partial.
10170 (PUSH_ARGUMENTS): Switch to using predefault.
10171 * gdbarch.c: Regenerate.
10172
10173 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10174
10175 * valops.c (PUSH_ARGUMENTS): Delete definition.
10176 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10177 partial. Default to default_push_arguments.
10178 * gdbarch.h, gdbarch.c: Regenerate.
10179
10180 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10181
10182 * defs.h (throw_exception): Rename return_to_top_level. Update
10183 comments.
10184 * utils.c (error_stream, internal_verror, quit): Ditto.
10185 * top.c (throw_exception, catcher): Ditto.
10186 * sparclet-rom.c (sparclet_load): Ditto.
10187 * remote.c (interrupt_query, minitelnet): Ditto.
10188 * remote-sds.c (interrupt_query): Ditto.
10189 * remote-mips.c (mips_error, mips_kill): Ditto.
10190 * ocd.c (interrupt_query): Ditto.
10191 * monitor.c (monitor_interrupt_query): Ditto.
10192 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10193 * target.h: Update comment.
10194
10195 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10196
10197 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10198
10199 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10200 default_double_format.
10201 * gdbarch.h, gdbarch.c: Re-generate.
10202 * findvar.c (floatformat_unknown): Delete variable definition.
10203 * doublest.h (floatformat_unknown): Delete variable declaration.
10204
10205 2002-02-09 Jim Blandy <jimb@redhat.com>
10206
10207 * stabsread.c (read_type): Add code to parse Sun's syntax for
10208 prototyped function types.
10209
10210 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10211
10212 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10213 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10214
10215 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10216
10217 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10218 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10219 now _initialize_xcoffsolib gets called again and overrides the
10220 commands from solib.c in a native configuration.
10221
10222 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10223
10224 * doublest.c (store_typed_floating): Don't try to return a value.
10225 Fixes PR gdb/290.
10226
10227 2002-02-08 Jim Blandy <jimb@redhat.com>
10228
10229 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10230 is prototyped and has no arguments, print its argument list as
10231 `(void)'.
10232
10233 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10234
10235 * MAINTAINERS (write-after-approval): Add myself.
10236 (paper-trail): I've escaped!
10237
10238 2002-02-08 Christopher Faylor <cgf@redhat.com>
10239
10240 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10241 changes.
10242 (_initialize_check_for_gdb_ini): Ditto.
10243
10244 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10245
10246 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10247 xaprintf -> xasprintf.
10248
10249 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10250
10251 * win32-nat.c: Remove use of printf and sprintf functions.
10252
10253 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10254
10255 * arm-tdep.c (arm_frame_chain_valid): Make static.
10256 (arm_push_arguments): Likewise.
10257 (arm_gdbarch_init): New function.
10258 (_initialize_arm_tdep): Call it.
10259 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10260 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10261 (FRAME_CHAIN_VALID): Delete.
10262 (arm_frame_chain_valid): Delete declaration.
10263 (PUSH_ARGUMENTS): Delete.
10264 (arm_push_arguments): Delete declaration.
10265 (CALL_DUMMY_P): Delete.
10266
10267 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10268 Corinna Vinschen <vinschen@redhat.com>
10269
10270 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10271 on builtin float types.
10272
10273 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10274
10275 * utils.c: Include <curses.h> before "bfd.h".
10276 * tui/tui-hooks.c: Likewise.
10277 * tui/tui.c: Likewise.
10278 * tui/tuiCommand.c: Likewise.
10279 * tui/tuiData.c: Likewise.
10280 * tui/tuiDataWin.c: Likewise.
10281 * tui/tuiDisassem.c: Likewise.
10282 * tui/tuiGeneralWin.c: Likewise.
10283 * tui/tuiIO.c: Likewise.
10284 * tui/tuiLayout.c: Likewise.
10285 * tui/tuiRegs.c: Likewise.
10286 * tui/tuiSource.c: Likewise.
10287 * tui/tuiSourceWin.c: Likewise.
10288 * tui/tuiStack.c: Likewise.
10289 * tui/tuiWin.c: Likewise.
10290
10291 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10292
10293 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10294 to include space for pseudoregs as well. Update loops accordingly.
10295 (sh_fp_frame_init_saved_regs): Ditto.
10296 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10297
10298 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10299
10300 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10301 Add Richard Earnshaw to Arm maintainers.
10302
10303 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10304
10305 * defs.h (warning_begin): Delete declaration.
10306
10307 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10308 Delete macro.
10309
10310 2002-02-07 Michael Snyder <msnyder@redhat.com>
10311
10312 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10313 Logic bug, remove misplaced else.
10314
10315 2002-02-07 Klee Dienes <klee@apple.com>
10316
10317 * fork-inferior.c (fork_inferior): Add '!' to the list of
10318 characters that need to be quoted when building a string for the
10319 shell. Quote '!' specifically with a backslash, since CSH chokes
10320 when trying to evaluate "str!str".
10321
10322 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10323
10324 * rdi-share/host.h: Only provide a typedef for bool if it is not
10325 defined.
10326
10327 2002-02-04 Michael Snyder <msnyder@redhat.com>
10328
10329 * breakpoint.h (enum bptype): Add new overlay event bp type.
10330 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10331
10332 * breakpoint.c (create_internal_breakpoint): New function.
10333 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10334 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10335 (create_thread_event_breakpoint): Ditto.
10336 (create_solib_event_breakpoint): Ditto.
10337 (create_overlay_event_breakpoint): New function.
10338 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10339 (update_breakpoints_after_exec): Delete and re-initialize
10340 overlay event breakpoints after an exec. Add FIXME comment
10341 about longjmp breakpoint.
10342 (print_it_typical): Ignore overlay event breakpoints.
10343 (print_one_breakpoint): Ditto.
10344 (mention): Ditto.
10345 (bpstat_what): Do not stop for overlay event breakpoints.
10346 (delete_breakpoint): Don't delete overlay event breakpoints.
10347 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10348 (breakpoint_re_set): Re-create overlay event breakpoint.
10349
10350 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10351 (overlay_manual_command): Disable overlay breakpoints.
10352 (overlay_off_command): Disable overlay breakpoints.
10353
10354 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10355
10356 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10357 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10358 to here from config/tm-arm.h.
10359 (coff_sym_is_thumb): Make static.
10360 (arm_elf_make_msymbol_special): New function.
10361 (arm_coff_make_msymbol_special): New function.
10362 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10363 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10364 (coff_sym_is_thumb): Delete declaration.
10365 (arm_elf_make_msymbol_special): Declare.
10366 (arm_coff_make_msymbol_special): Declare.
10367 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10368 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10369
10370 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10371
10372 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10373
10374 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10375
10376 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10377 * gdbarch.c gdbarch.h: Regenerate.
10378 * arch-utils.c (default_print_float_info): New function.
10379 * arch-utils.h (default_print_float_info): Prototype it.
10380 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10381 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10382 (PRINT_FLOAT_INFO): Document it.
10383
10384 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10385 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10386 (PRINT_FLOAT_INFO): Define.
10387
10388 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10389
10390 * win32-nat.c (_initialize_check_for_gdb_ini):
10391 Add typecast to sprintf argument to suppress a warning.
10392
10393 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10394
10395 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10396 to allow easier handling of pass state.
10397 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10398 that gives exception name and address.
10399 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10400 and set last_sig value to ourstatus->value.sig. Some missing
10401 exceptions added.
10402 (child_continue): Correctly report continue_status.
10403 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10404 TARGET_SIGNAL_0 (new default value).
10405 (child_resume): consider sig argument passed to decide if
10406 the exception should be passed to debuggee or not.
10407
10408 2002-02-05 Michael Snyder <msnyder@redhat.com>
10409
10410 * regcache.c (fetch_register): Call target_fetch_register
10411 only if we don't call FETCH_PSEUDO_REGISTER.
10412 (store_register): Call target_store_register only if we
10413 don't call STORE_PSEUDO_REGISTER.
10414
10415 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10416
10417 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10418 ELF_MAKE_MSYMBOL_SPECIAL.
10419 * gdbarch.c, gdbarch.h: Regenerate.
10420 * arch-utils.c (default_make_msymbol_special): New function.
10421 * arch-utils.h (default_make_msymbol_special): Export.
10422 * elfread.c (elf_symtab_read): Compile use of
10423 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10424 multiarched.
10425 * coffread.c (coff_symtab_read): Ditto, for
10426 COFF_MAKE_MSYMBOL_SPECIAL.
10427
10428 2002-02-05 Jim Blandy <jimb@redhat.com>
10429
10430 * solib-svr4.c (svr4_truncate_ptr): New function.
10431 (svr4_relocate_section_addresses): Do the address arithmetic with
10432 the appropriate truncation for target addresses, even when
10433 CORE_ADDR is larger than a target address.
10434
10435 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10436
10437 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10438 to (int *).
10439
10440 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10441
10442 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10443 code.
10444
10445 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10446
10447 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10448
10449 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10450
10451 * gdbserver/linux-low.c: Remove unused include files.
10452
10453 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10454
10455 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10456 (read_inferior_memory): Use it.
10457 (write_inferior_memory): Likewise.
10458
10459 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10460
10461 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10462 grubbing through sys_errlist.
10463
10464 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10465
10466 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10467
10468 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10469 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10470
10471 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10472
10473 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10474 (do_sfunc, set_cmd_sfunc): New functions.
10475
10476 * command.h (struct cmd_list_element): Add field func.
10477 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10478 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10479 * cli/cli-decode.h: Ditto.
10480
10481 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10482 (help_all, help_cmd_list): Ditto.
10483 (find_cmd, complete_on_cmdlist): Ditto.
10484 * top.c (execute_command): Ditto.
10485
10486 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10487 function.sfunc.
10488
10489 * infcmd.c (notice_args_read): Fix function signature.
10490
10491 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10492 * cli/cli-decode.c (add_set_cmd): Ditto.
10493 * utils.c (initialize_utils): Ditto.
10494 * maint.c (_initialize_maint_cmds): Ditto.
10495 * infrun.c (_initialize_infrun): Ditto.
10496 * demangle.c (_initialize_demangler): Ditto.
10497 * remote.c (add_packet_config_cmd): Ditto.
10498 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10499 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10500 * proc-api.c (_initialize_proc_api): Ditto.
10501 * kod.c (_initialize_kod): Ditto.
10502 * valprint.c (_initialize_valprint): Ditto.
10503 * top.c (init_main): Ditto.
10504 * infcmd.c (_initialize_infcmd): Ditto.
10505 * corefile.c (_initialize_core): Ditto.
10506 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10507 * arch-utils.c (initialize_current_architecture): Ditto.
10508 (_initialize_gdbarch_utils): Ditto.
10509 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10510
10511 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10512 * wince.c (_initialize_inftarg): Ditto.
10513 * symfile.c (_initialize_symfile): Ditto.
10514 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10515 * language.c (_initialize_language): Ditto.
10516 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10517
10518 2002-02-04 Michael Snyder <msnyder@redhat.com>
10519
10520 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10521
10522 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10523
10524 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10525 Add rules for building the register data files.
10526
10527 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10528
10529 * regformats/regdat.sh: Add braces to the definition of
10530 expedite_regs_${arch}.
10531
10532 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10533
10534 * regformats/regdef.h (struct reg): Add comment describing the
10535 requirements for offset and size fields.
10536
10537 2002-02-04 Andreas Schwab <schwab@suse.de>
10538
10539 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10540 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10541
10542 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10543
10544 * gdbarch.sh (copyright): Update years in generated header.
10545 (SMASH_TEXT_ADDRESS): Add rule.
10546 * gdbarch.h, gdbarch.c: Re-generate.
10547 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10548 * dbxread.c: Likewise.
10549 * dwarfread.c: Likewise.
10550 * elfread.c: Likewise.
10551 * somread.c: Likewise.
10552
10553 * arm-tdep.c (arm_smash_text_address): New function.
10554 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10555
10556 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10557
10558 Add support for hardware watchpoints on win32 native.
10559 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10560 CONTEXT_DEBUG_REGISTERS.
10561 (dr variable): New variable. Static array containing a local copy
10562 of debug registers.
10563 (debug_registers_changed): New variable. Reflects when debug registers
10564 are changed and need to be written to inferior.
10565 (debug_registers_used): New variable. Reflects when any debug register
10566 was set, used when new threads are created.
10567 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10568 i386-nat code.
10569 (thread_rec): Set dr array if id is the thread of current_event .
10570 (child_continue, child_resume): Change the debug registers for all
10571 threads if debug_registers_changed.
10572 (child_add_thread): Change the debug registers if debug_registers_used.
10573 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10574 Link nm.h to new nm-cygwin.h file.
10575 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10576 of hardware registers.
10577
10578 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10579
10580 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10581 Restore behavour broken by 2002-01-20 Andrew Cagney
10582 <ac131313@redhat.com> IEEE_FLOAT removal.
10583
10584 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10585
10586 * c-valprint.c (c_val_print): Pass a proper valaddr to
10587 cp_print_class_method.
10588 * valops.c (search_struct_method): If there is only one method
10589 and args is NULL, return that method.
10590
10591 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10592
10593 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10594 accessing tag_name directly.
10595
10596 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10597
10598 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10599 of accessing tag_name directly.
10600
10601 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10602
10603 PR gdb/280
10604 * gdbtypes.c (replace_type): New function.
10605 * gdbtypes.h (replace_type): Add prototype.
10606 * stabsread.c (read_type): Use replace_type.
10607
10608 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10609
10610 * Makefile.in (memattr.o): Add missing dependencies rule.
10611
10612 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10613
10614 * breakpoint.c (break_at_finish_command): Really export.
10615 (break_at_finish_at_depth_command): Ditto.
10616 (tbreak_at_finish_command): Ditto.
10617 * hppa-tdep.c: Include completer.h.
10618 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10619 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10620
10621 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10622
10623 * utils.c (do_write): New function.
10624 (error_stream): Rewrite combining the code from error_begin and
10625 verror.
10626 (verror): Rewrite using error_stream.
10627 (error_begin): Delete function.
10628
10629 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10630
10631 * utils.c (error_begin): Make static.
10632 * defs.h (error_begin): Delete declaration.
10633
10634 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10635 (decode_line_1): Use cplusplus_error instead of error_begin,
10636 cplusplus_hint and return_to_top_level.
10637 * coffread.c (coff_symfile_read): Use error instead of error_begin
10638 and return_to_top_level.
10639 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10640
10641 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10642
10643 * language.h (type_error, range_error): Make string parameter
10644 constant.
10645 * language.c (warning_pre_print): Delete extern declaration.
10646 * dwarfread.c (warning_pre_print): Ditto.
10647 * language.c (type_error, range_error): Rewrite to use verror and
10648 vwarning instead of warning_begin.
10649
10650 2002-02-01 Michael Snyder <msnyder@redhat.com>
10651
10652 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10653 (set_ignore_count): Move misplaced comment back where it belongs.
10654
10655 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10656
10657 * command.h (NO_FUNCTION): Delete macro.
10658 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10659 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10660 * tracepoint.c (_initialize_tracepoint): Ditto.
10661 * cli/cli-decode.c (add_set_cmd): Ditto.
10662 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10663
10664 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10665
10666 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10667 Update ``this'' pointer when calling virtual functions.
10668
10669 2002-02-01 Michael Snyder <msnyder@redhat.com>
10670
10671 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10672 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10673
10674 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10675
10676 * regformats/reg-arm.dat: New file.
10677 * regformats/reg-i386.dat: New file.
10678 * regformats/reg-ia64.dat: New file.
10679 * regformats/reg-m68k.dat: New file.
10680 * regformats/reg-mips.dat: New file.
10681 * regformats/reg-ppc.dat: New file.
10682 * regformats/reg-sh.dat: New file.
10683 * regformats/regdef.h: New file.
10684 * regformats/regdat.sh: New file.
10685
10686 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10687
10688 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10689 (arm_frame_args_address, arm_frame_locals_address): New functions.
10690 (arm_frame_num_args): New function.
10691 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10692 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10693 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10694
10695 2002-01-31 Michael Snyder <msnyder@redhat.com>
10696
10697 * breakpoint.c (break_at_finish_command): Export.
10698 (break_at_finish_at_depth_command): Export.
10699 (tbreak_at_finish_command): Export.
10700 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10701 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10702 "txbreak" commands, which are HPPA specific.
10703
10704 * printcmd.c (disassemble_command): Remove an ancient
10705 artifact of an old merge.
10706
10707 * symfile.h (enum overlay_debugging_state):
10708 Define enum constant values for overlay mode.
10709 * symfile.c (overlay_debugging): Use enums instead of literals.
10710 (overlay_is_mapped, overlay_auto_command,
10711 overlay_manual_command): Ditto.
10712
10713 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10714 breakpoint_here_p, breakpoint_inserted_here_p,
10715 breakpoint_thread_match, bpstat_stop_status,
10716 describe_other_breakpoints, check_duplicates, clear_command):
10717 Coding standard fixes.
10718
10719 * target.c (target_xfer_memory): Add spaces, coding standard.
10720 (do_xfer_memory): Add missing line to trust-readonly
10721 code: check bfd SEC_READONLY flag for section.
10722
10723 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10724
10725 * PROBLEMS: Fix typo, 5.1->5.1.1.
10726
10727 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10728
10729 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10730 data symbols, since we search based on textlow and texthigh.
10731 (find_pc_sect_symtab): Likewise.
10732
10733 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10734
10735 * defs.h (vwarning): Declare.
10736 * utils.c (vwarning): New function.
10737 (warning): Call vwarning.
10738 (warning_begin): Delete function.
10739
10740 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10741 the warning message.
10742 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10743 warning_begin.
10744
10745 2002-01-30 Michael Snyder <msnyder@redhat.com>
10746
10747 * NEWS: Mention "set trust-readonly-sections" command.
10748 Mention generate-core-file command.
10749
10750 2002-01-15 Michael Snyder <msnyder@redhat.com>
10751
10752 * target.c: New command, "set trust-readonly-sections on".
10753 (do_xfer_memory): Honor the suggestion to trust readonly sections
10754 by reading them from the object file instead of from the target.
10755 (initialize_targets): Register command "set trust-readonly-sections".
10756
10757 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10758
10759 * parse.c (target_map_name_to_register): Simplify, search regs and
10760 pseudo-regs using a single loop.
10761
10762 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10763
10764 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10765
10766 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10767
10768 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10769 * config/i386/i386v42mp.mh: Add i387-nat.o .
10770 * i386v4-nat.c: Include i387-nat.h.
10771 (supply_fpregset): Use i387_supply_fsave.
10772 (fill_fpregset): Use i387_fill_fsave.
10773
10774 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10775
10776 * arm-tdep.c (arm_call_dummy_words): Define.
10777 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10778 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10779 (CALL_DUMMY_WORDS): Define.
10780 (arm_call_dummy_words): Declare.
10781 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10782 (arm_linux_call_dummy_words): Declare.
10783
10784 2002-01-30 Andreas Schwab <schwab@suse.de>
10785
10786 * m68klinux-nat.c: Fix last change to use regcache_collect
10787 instead of referencing registers[] directly.
10788
10789 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10790
10791 * parse.c (target_map_name_to_register): Delete code wrapped in
10792 #ifdef REGISTER_NAME_ALIAS_HOOK.
10793
10794 2002-01-28 Michael Snyder <msnyder@redhat.com>
10795
10796 * regcache.c (legacy_read_register_gen): Need to be able to
10797 read pseudo-register as well as real register.
10798 (legacy_write_register_gen): Ditto.
10799
10800 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10801
10802 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10803 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10804 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10805 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10806 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10807 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10808 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10809 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10810 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10811 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10812 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10813 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10814 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10815 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10816 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10817 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10818 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10819 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10820 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10821 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10822
10823 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10824
10825 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10826 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10827 (initialize_current_architecture): Update target_byte_order using
10828 information from BFD.
10829 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10830 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10831
10832 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10833
10834 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10835 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10836
10837 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10838 #ifdef INVALID_FLOAT.
10839 * infcmd.c (do_registers_info): Ditto.
10840 * values.c (unpack_double): Ditto. Add comment.
10841
10842 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10843 already commented out.
10844
10845 2002-01-26 Andreas Schwab <schwab@suse.de>
10846
10847 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10848 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10849 registers and add support for PTRACE_GETREGS.
10850
10851 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10852
10853 GDB 5.1.1 released from 5.1 branch.
10854 * NEWS: Add 5.1.1 news.
10855 * README: Sync with 5.1 branch.
10856
10857 2002-01-23 Fred Fish <fnf@redhat.com>
10858
10859 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10860 stabstring on initial malloc. Reallocing will copy it for us,
10861 if necessary.
10862
10863 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10864
10865 * Makefile.in (hpread_h): Delete.
10866 (HFILES_NO_SRCDIR): Remove hpread.h.
10867 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10868 (hpread.o): Update dependencies.
10869 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10870
10871 * hp-psymtab-read.c: Remove file.
10872 * hp-symtab-read.c: Remove file.
10873 * hpread.h: Remove file.
10874
10875 * hpread.c: Merge all contents of hp-psymtab-read.c,
10876 hp-symtab-read.c and hpread.h into this file, as it was prior to
10877 January 1999.
10878
10879 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10880 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10881 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10882 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10883
10884 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10885
10886 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10887 fill_gregset): Call gdbarch_tdep() just once, assign result to
10888 variable and use that, instead of calling the function several
10889 times.
10890
10891 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10892
10893 * configure.host: Accept sparcv9 as alias for sparc64.
10894 * configure.tgt: Likewise.
10895
10896 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10897
10898 * solib-aix5.c (build_so_list_from_mapfile)
10899 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10900 arguments is not reversed.
10901 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10902 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10903
10904 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10905
10906 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10907 modified version of obsolete sh_fetch_pseudo_register.
10908 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10909 (sh4_register_read): New function.
10910 (sh_pseudo_register_write): New function. Renamed and modified
10911 version of obsolete sh_store_pseudo_register.
10912 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10913 (sh4_register_write): New function.
10914 (sh_gdbarch_init): Remove setting of gdbarch function
10915 fetch_pseudo_register and store_pseudo_register. Remove setting of
10916 register_convert_to_raw, register_convert_to_virtual,
10917 register_convertible.
10918 (sh_sh4_register_convertible): Delete. No longer needed. All is
10919 taken care by architecture specific functions
10920 register_read/register_write.
10921 (sh_sh4_register_convert_to_virtual): Make static.
10922 (sh_sh4_register_convert_to_raw): Ditto.
10923
10924 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10925
10926 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10927 (floatformat_is_nan, floatformat_mantissa): Ditto.
10928
10929 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10930 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10931 builtin_type_ieee_double_little,
10932 builtin_type_ieee_double_littlebyte_bigword,
10933 builtin_type_m68881_ext, builtin_type_i960_ext,
10934 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10935 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10936 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10937 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10938
10939 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10940
10941 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10942 parameter. Set frameless flag if it exists and depended of
10943 whether the scanned function is frameless or not.
10944 (xstormy16_skip_prologue): If function is frameless, return
10945 result of xstormy16_scan_prologue().
10946 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10947 call.
10948
10949 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10950
10951 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10952 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10953 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10954 sh_sh4_register_byte, sh_sh4_register_raw_size,
10955 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10956 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10957 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10958 sh_store_pseudo_register, sh_do_pseudo_register): Call
10959 gdbarch_tdep() just once, assign result to variable and use that,
10960 instead of calling the function several times.
10961
10962 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10963
10964 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10965 macros instead of LAST_FPU_CTRL_REGNUM.
10966 (store_register): Likewise.
10967
10968 2002-01-21 Jim Blandy <jimb@redhat.com>
10969
10970 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10971 is up-to-date before running the program, not just when a program
10972 exits.
10973
10974 2002-01-21 Fred Fish <fnf@redhat.com>
10975
10976 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10977 when we have found all instructions we are looking for.
10978
10979 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10980
10981 * arm-tdep.c (arm_register_name): New function.
10982 (arm_registers_names): Make static.
10983 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10984 (arm_register_name): Declare.
10985 (REGISTER_NAME): Use it.
10986
10987 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10988 Kevin Buettner <kevinb@redhat.com>
10989
10990 Convert arm targets to new FRAME interface.
10991 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10992 (arm_frame_find_save_regs): Delete.
10993 (arm_frame_init_saved_regs): New.
10994 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10995 Allocate extra_info as required. Convert all uses of fsr.regs
10996 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10997 to use extra_info.
10998 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10999 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11000 (check_prologue_cache, save_prologue_cache): Likewise.
11001 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11002 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11003 (FRAME_FIND_SAVED_REGS): Delete.
11004 (arm_frame_find_saved_regs): Delete prototype.
11005 (arm_frame_init_saved_regs): New prototype.
11006 (FRAME_INIT_SAVED_REGS): Define.
11007
11008 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11009
11010 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11011
11012 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11013
11014 From Jeff Law <law@redhat.com>:
11015 * infttrace.c: Include <sys/pstat.h>.
11016 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11017 exec file if the ttrace equivalent fails.
11018
11019 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11020
11021 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11022 (closeLogFile): Ditto.
11023
11024 2002-01-20 Michael Chastain <mec@shout.net>
11025
11026 * top.c (print_gdb_version): Bump copyright year to 2002.
11027
11028 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11029
11030 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11031 Zannoni and Eli Zaretskii.
11032
11033 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11034
11035 * buildsym.c: Update copyright years.
11036 * c-typeprint.c: Likewise.
11037 * dwarf2read.c: Likewise.
11038 * f-typeprint.c: Likewise.
11039 * gdbtypes.c: Likewise.
11040 * gdbtypes.h: Likewise.
11041 * hp-symtab-read.c: Likewise.
11042 * hpread.c: Likewise.
11043 * mdebugread.c: Likewise.
11044 * p-typeprint.c: Likewise.
11045
11046 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11047
11048 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11049 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11050 byte-order selectable.
11051 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11052 * arch-utils.c: Ditto.
11053 (set_endian): Ditto.
11054 (set_endian_from_file): Ditto.
11055 * gdbserver/low-sim.c (create_inferior): Ditto.
11056 * gdbarch.sh: Ditto.
11057 * gdbarch.h: Re-generate.
11058 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11059 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11060 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11061 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11062 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11063 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11064 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11065 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11066 macro definition.
11067 * config/mips/tm-wince.h: Remove #undef of macro
11068 TARGET_BYTE_ORDER_SELECTABLE.
11069 * config/sh/tm-wince.h: Ditto.
11070
11071 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11072
11073 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11074 member function fields. Add accessor macro
11075 TYPE_FN_FIELD_ARTIFICIAL.
11076 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11077 * c-typeprint.c (c_type_print_base): Skip artificial member
11078 functions.
11079
11080 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11081
11082 * f-typeprint.c: Delete unused function f_type_print_args.
11083 * p-typeprint.c: Delete unused function pascal_type_print_args.
11084
11085 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11086
11087 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11088 comment. Add ``artificial'' to ``union field_location''.
11089
11090 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11091
11092 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11093 * mdebugread.c (parse_symbol): Likewise.
11094 * stabsread.c (define_symbol): Likewise.
11095 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11096 initializing TYPE_FIELD_BITPOS to n (obsolete).
11097 (hpread_doc_function_type): Likewise.
11098 * hpread.c (hpread_function_type): Likewise.
11099
11100 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11101
11102 * configure.in (host_makefile_frag): Only require a host makefile
11103 fragment when a native build.
11104 * configure: Re-generate.
11105
11106 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11107
11108 * doublest.h (floatformat_from_type): Declare.
11109 * doublest.c (floatformat_from_type): New function.
11110 (convert_typed_floating): Use.
11111
11112 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11113 call to function floatformat_from_type.
11114
11115 * gdbarch.sh (IEEE_FLOAT): Delete.
11116 * gdbarch.h, gdbarch.c: Re-generate.
11117 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11118 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11119 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11120 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11121 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11122 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11123 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11124 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11125 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11126 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11127 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11128 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11129
11130 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11131 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11132 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11133 * sh-tdep.c (sh_gdbarch_init): Ditto.
11134 * mips-tdep.c (mips_gdbarch_init): Ditto.
11135 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11136 * cris-tdep.c (cris_gdbarch_init): Ditto.
11137
11138 2002-01-20 Jiri Smid <smid@suse.cz>
11139
11140 * configure.host, configure.tgt: Support x86-64.
11141 * NEWS: Note new target x86-64.
11142
11143 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11144 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11145 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11146 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11147 x86-64-linux-nat.o): Fix dependencies.
11148
11149 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11150
11151 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11152 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11153 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11154 * config/sparc/xm-sun4os4.h: Delete file.
11155 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11156
11157 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11158
11159 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11160 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11161 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11162 * config/i386/i386lynx.mh (XM_FILE): Delete.
11163 * config/rs6000/xm-rs6000ly.h: Delete file.
11164 * config/sparc/xm-sparclynx.h: Delete file.
11165 * config/m68k/xm-m68klynx.h: Delete file.
11166 * config/i386/xm-i386lynx.h: Delete file.
11167 * config/xm-lynx.h: Delete file.
11168 * config/djgpp/fnchange.lst: Update.
11169
11170 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11171
11172 * alpha-tdep.c (alpha_register_byte): New function.
11173 (alpha_register_raw_size): Ditto.
11174 (alpha_register_virtual_size): Ditto.
11175 (alpha_skip_prologue_internal): Renamed from
11176 alpha_skip_prologue.
11177 (alpha_skip_prologue): New version that calls
11178 alpha_skip_prologue_internal.
11179 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11180 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11181 second argument from alpha_skip_prologue.
11182 (REGISTER_BYTE): Use alpha_register_byte.
11183 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11184 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11185 (FRAMELESS_FUNCTION_INVOCATION): Use
11186 generic_frameless_function_invocation_not.
11187 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11188 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11189
11190 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11191
11192 * config/mips/xm-news-mips.h: Delete file.
11193 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11194
11195 * config/m88k/xm-m88k.h: Delete file.
11196 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11197 * config/m88k/xm-delta88v4.h: Ditto.
11198 * config/m88k/xm-delta88.h: Ditto.
11199
11200 * config/alpha/xm-fbsd.h: Delete file.
11201 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11202
11203 * config/sparc/xm-sparc.h: Delete file.
11204 * Makefile.in (xm-sun4os4.h): Delete dependency.
11205 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11206 * config/sparc/xm-sun4os4.h: Ditto.
11207 * config/sparc/xm-linux.h: Ditto.
11208
11209 * config/i386/xm-windows.h: Delete file.
11210
11211 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11212
11213 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11214 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11215
11216 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11217
11218 * alpha-tdep.c (alpha_call_dummy_words): New.
11219 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11220 (CALL_DUMMY_P): Define.
11221 (CALL_DUMMY_WORDS): Define.
11222 (SIZEOF_CALL_DUMMY_WORDS): Define.
11223
11224 2002-01-19 Per Bothner <per@bothner.com>
11225
11226 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11227 isn't NULL, which can happen with some gcj-3.x-produced code.
11228
11229 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11230
11231 * alpha-tdep.c (alpha_register_virtual_type): New function.
11232 (alpha_init_frame_pc_first): Ditto.
11233 (alpha_fix_call_dummy): Ditto.
11234 (alpha_store_struct_return): Ditto.
11235 (alpha_extract_struct_value_address): Ditto.
11236 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11237 alpha_register_virtual_type.
11238 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11239 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11240 alpha_extract_struct_value_address.
11241 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11242 (INIT_FRAME_PC): Use init_frame_pc_noop.
11243 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11244
11245 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11246
11247 * i386gnu-nat.c: Include "i386-tdep.h".
11248 (fetch_fpregs): Simplify code dealing with uninitialized floating
11249 point states such that it doesn't require FP7_REGNUM.
11250
11251 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11252
11253 * alpha-tdep.c (frame_extra_info): New.
11254 (alpha_find_saved_regs): Make static. Use
11255 frame->extra_info.
11256 (alpha_frame_init_saved_regs): New function.
11257 (alpha_frame_saved_pc): Use frame->extra_info.
11258 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11259 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11260 (init_extra_frame_info): Rename to...
11261 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11262 (alpha_print_extra_frame_info): New function.
11263 (alpha_frame_locals_address): Ditto.
11264 (alpha_frame_args_address): Ditto.
11265 (alpha_pop_frame): Use frame->extra_info.
11266 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11267 alpha_frame_args_address.
11268 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11269 (alpha_find_saved_regs): Remove prototype.
11270 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11271 (EXTRA_FRAME_INFO): Remove.
11272 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11273 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11274
11275 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11276
11277 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11278 (alpha_cannot_fetch_register): Ditto.
11279 (alpha_cannot_store_register): Ditto.
11280 (alpha_register_convertible): Ditto.
11281 (alpha_use_struct_convention): Ditto.
11282 * config/alpha/tm-alpha.h: Update copyright years.
11283 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11284 (INNER_THAN): Use core_addr_lessthan.
11285 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11286 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11287 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11288 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11289 (FRAME_CHAIN): Remove unnecessary cast.
11290
11291 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11292
11293 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11294 obsolete.
11295
11296 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11297
11298 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11299 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11300 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11301 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11302 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11303 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11304 * x86-64-linux-nat.c: Ditto.
11305
11306 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11307
11308 * alpha-tdep.c (alpha_register_name): New function.
11309 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11310 (REGISTER_NAME): Define.
11311
11312 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11313
11314 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11315
11316 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11317
11318 * alpha-tdep.c: Update copyright years.
11319 (alpha_next_pc): New function.
11320 (alpha_software_single_step): Ditto.
11321 * config/alpha/tm-alpha.h: Add prototype for
11322 alpha_software_single_step.
11323
11324 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11325
11326 * alphabsd-nat.c: Update copyright years.
11327 (fill_gregset): Use regcache_collect.
11328 (fill_fpregset): Likewise.
11329 (fetch_inferior_registers): Only fetch integer registers
11330 if requested to do so.
11331 (store_inferior_registers): Only store integer registers
11332 if requested to do so.
11333
11334 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11335
11336 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11337 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11338 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11339 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11340 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11341 * config/arm/linux.mh (XDEPFILES): Delete.
11342 * config/arm/nbsd.mh (XDEPFILES): Delete.
11343 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11344 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11345 * config/i386/i386m3.mh (XDEPFILES): Delete.
11346 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11347 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11348 * config/i386/fbsd.mh (XDEPFILES): Delete.
11349 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11350 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11351 * config/i386/i386v4.mh (XDEPFILES): Delete.
11352 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11353 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11354 * config/i386/i386aix.mh (XDEPFILES): Delete.
11355 * config/i386/go32.mh (XDEPFILES): Delete.
11356 * config/i386/cygwin.mh (XDEPFILES): Delete.
11357 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11358 * config/i386/i386mach.mh (XDEPFILES): Delete.
11359 * config/i386/i386v32.mh (XDEPFILES): Delete.
11360 * config/i386/linux.mh (XDEPFILES): Delete.
11361 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11362 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11363 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11364 * config/i386/i386sco.mh (XDEPFILES): Delete.
11365 * config/i386/i386v.mh (XDEPFILES): Delete.
11366 * config/i386/nbsd.mh (XDEPFILES): Delete.
11367 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11368 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11369 * config/i386/symmetry.mh (XDEPFILES): Delete.
11370 * config/i386/obsd.mh (XDEPFILES): Delete.
11371 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11372 * config/ia64/linux.mh (XDEPFILES): Delete.
11373 * config/ia64/aix.mh (XDEPFILES): Delete.
11374 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11375 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11376 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11377 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11378 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11379 * config/m68k/linux.mh (XDEPFILES): Delete.
11380 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11381 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11382 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11383 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11384 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11385 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11386 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11387 * config/m88k/delta88.mh (XDEPFILES): Delete.
11388 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11389 * config/m88k/m88k.mh (XDEPFILES): Delete.
11390 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11391 * config/mips/linux.mh (XDEPFILES): Delete.
11392 * config/mips/irix6.mh (XDEPFILES): Delete.
11393 * config/mips/irix5.mh (XDEPFILES): Delete.
11394 * config/mips/irix4.mh (XDEPFILES): Delete.
11395 * config/mips/irix3.mh (XDEPFILES): Delete.
11396 * config/mips/decstation.mh (XDEPFILES): Delete.
11397 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11398 (NATDEPFILES): Move core-aout.o to here.
11399 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11400 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11401 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11402 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11403 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11404 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11405 * config/pa/hpux11.mh (XDEPFILES): Delete.
11406 * config/powerpc/aix.mh (XDEPFILES): Delete.
11407 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11408 * config/powerpc/linux.mh (XDEPFILES): Delete.
11409 * config/romp/rtbsd.mh: Rename XDEPFILES.
11410 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11411 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11412 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11413 * config/s390/s390.mh (XDEPFILES): Delete.
11414 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11415 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11416 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11417 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11418 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11419 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11420 * config/sparc/linux.mh (XDEPFILES): Delete.
11421 * config/vax/vaxult.mh (XDEPFILES): Delete.
11422 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11423 * Makefile.in (DEPFILES): Remove XDEPFILES.
11424
11425 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11426
11427 * utils.c (internal_verror): Fix comments, default is yes not no.
11428 Update queries to match. Default to quit and dump core.
11429
11430 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11431
11432 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11433 copyright.
11434 * defs.h, event-top.c, gdbcmd.h: Ditto.
11435 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11436 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11437 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11438 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11439 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11440 * mi/mi-main.c:Ditto.
11441
11442 * stack.c, symfile.c: Update copyright.
11443
11444 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11445
11446 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11447 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11448 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11449 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11450
11451 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11452
11453 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11454 * gdbserver/low-lynx.c (myattach): Likewise.
11455 * gdbserver/low-nbsd.c (myattach): Likewise.
11456 * gdbserver/low-sim.c (myattach): Likewise.
11457 * gdbserver/low-sparc.c (myattach): Likewise.
11458 * gdbserver/low-sun3.c (myattach): Likewise.
11459
11460 * gdbserver/low-linux.c (myattach): New function.
11461
11462 * gdbserver/server.c (attach_inferior): New function.
11463 (main): Handle "--attach".
11464
11465 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11466
11467 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11468 maintainer.
11469
11470 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11471
11472 * c-typeprint.c (is_type_conversion_operator): Add additional
11473 check for non-conversion operators.
11474
11475 2002-01-15 Michael Snyder <msnyder@redhat.com>
11476
11477 * linux-proc.c: Add "info proc" command, a la procfs.c.
11478 (read_mapping): New function, abstract and re-use code.
11479 (linux_find_memory_regions): Use new func read_mapping.
11480 (linux_info_proc_cmd): New function, implement "info proc".
11481 (_initialize_linux_proc): Add new command "info proc".
11482
11483 2002-01-15 Michael Snyder <msnyder@redhat.com>
11484
11485 * symfile.c (generic_load): Use bfd_map_over_sections method
11486 instead of manipulating bfd structure members directly.
11487 (add_section_size_callback): New function, bfd sections callback
11488 used by generic_load.
11489 (load_sections_callback): New function, bfd sections callback
11490 used by generic_load.
11491
11492 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11493
11494 [Based on work by Jim Blandy]
11495 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11496 (builtin_type_vec128): Export.
11497 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11498 types.
11499 (builtin_type_vec128): New builtin type for 128 bit vector
11500 registers.
11501 (build_gdbtypes): Initialize builtin_type_v16qi and
11502 builtin_type_v8hi. Create the vec128 register builtin type
11503 structure.
11504 (build_builtin_type_vec128): New function.
11505 (_initialize_gdbtypes): Register builtin_type_v16qi and
11506 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11507 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11508 AltiVec register to new builtin type.
11509
11510 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11511
11512 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11513 to make_cv_type.
11514
11515 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11516
11517 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11518 CLEAN_UP_REGISTER_VALUE.
11519 * regcache.c (supply_register): Update only call.
11520
11521 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11522
11523 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11524 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11525 a29k-*-vxworks* targets as obsolete.
11526
11527 2002-01-14 Michael Snyder <msnyder@redhat.com>
11528
11529 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11530 until we can resolve portability issues.
11531 * gregset.h: Remove references to fpxregs.
11532 * gcore.c (gcore_command): Initialize note_sec to NULL.
11533
11534 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11535
11536 * signals.c (target_signal_to_name): Rewrite. Only use
11537 signals[].name when in bounds and non-NULL.
11538
11539 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11540
11541 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11542 * signals.c (target_signal_to_name): Verify that SIG is within the
11543 bounds of the signals array.
11544
11545 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11546
11547 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11548
11549 2002-01-13 Keith Seitz <keiths@redhat.com>
11550
11551 * stack.c (print_frame_info_base): Print the frame's pc
11552 only if when print_frame_info_listing_hook is not defined.
11553
11554 2002-01-13 Keith Seitz <keiths@redhat.com>
11555
11556 * varobj.c (varobj_set_value): Make sure that there were no
11557 errors evaluating the object before attempting to set its
11558 value.
11559 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11560 so this offset adjustment is no longer necessary.
11561 (create_child): Don't set the error flag if the child is
11562 a CPLUS_FAKE_CHILD.
11563 (value_of_child): If value_fetch_lazy fails, return NULL
11564 so that callers will be notified that an error occurred.
11565 (c_value_of_variable): Delay check of variable's validity
11566 until later. We actually want all structs and unions to have
11567 the value "{...}".
11568 Do not return "???" for variables which could not be evaluated.
11569 This error condition must be returned to the caller so that it
11570 can get the error condition from gdb.
11571 (cplus_name_of_child): Adjust index for vptr before figuring
11572 out the name of the child.
11573 (cplus_value_of_child): If a child's (real) parent is not valid,
11574 don't even bother trying to give a value for it. Just return
11575 an error. Change all instances in this function.
11576 (cplus_type_of_child): If our parent is one of the "fake"
11577 parents, we need to get at the type of the real parent, and
11578 derive the child's true type using this information.
11579
11580 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11581
11582 From 2002-01-09 John Marshall <johnm@falch.net>:
11583 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11584 sources.redhat.com, and tweak some related URLs which had
11585 suffered from linkrot.
11586
11587 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11588
11589 From Jeff law:
11590 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11591 structures passed in registers.
11592
11593 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11594
11595 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11596 white space which prevented compilation. Reported by DSK
11597 <dsk@student.unsw.edu.au>.
11598
11599 2002-01-11 Michael Snyder <msnyder@redhat.com>
11600
11601 * symfile.c (build_section_addr_info_from_section_tab):
11602 Use bfd access method instead of manipulating bfd directly.
11603 (syms_from_objfile): Ditto.
11604 (simple_overlay_update_1): Ditto.
11605 (simple_overlay_update): Ditto.
11606 (generic_load): Ditto.
11607 (overlay_unmapped_address): FIXME comment, bfd access methods.
11608 (sections_overlap): FIXME comment, bfd access methods.
11609 (pc_in_mapped_range): FIXME comment, bfd access methods.
11610 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11611 (section_is_mapped): FIXME comment, bfd access methods.
11612 (section_is_overlay): FIXME comment, bfd access methods.
11613
11614 * symfile.c (generic_load): Whitespace and long line cleanups.
11615 Remove duplicate variable, change several local variables to
11616 more appropriate data types.
11617 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11618
11619 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11620
11621 From Peter Schauer:
11622 * language.c (longest_local_hex_string_custom): Use phex_nz to
11623 convert NUM to a hex string.
11624
11625 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11626
11627 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11628 the function.
11629 Update Copyright year.
11630
11631 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11632
11633 * language.c (longest_raw_hex_string): Delete unused function.
11634
11635 2002-01-11 Petr Sorfa <petrs@caldera.com>
11636
11637 * MAINTAINERS (write-after-approval): Add myself.
11638 * dwarf2read.c (read_tag_string_type): Handling of
11639 DW_AT_byte_size.
11640 (read_tag_string_type): FORTRAN fix to prevent propagation of
11641 first string size.
11642 (set_cu_language): Handling of DW_LANG_Fortran95
11643
11644 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11645
11646 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11647 GETPID(inferior_ptid).
11648 (store_inferior_registers): Likewise.
11649
11650 2002-01-10 Jason Merrill <jason@redhat.com>
11651
11652 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11653 Fix DW_OP_minus.
11654
11655 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11656
11657 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11658 and bfd/elf32-sh-nbsd.c.
11659
11660 2002-01-10 Michael Snyder <msnyder@redhat.com>
11661
11662 * NEWS: Mention --pid and corefile/proc-id behavior change.
11663
11664 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11665 * gcore.c: Include cli/cli-decode.h instead of command.h.
11666
11667 * main.c (captured_main): Add new command line option "--pid".
11668 If the second command line argument (following the symbol-file)
11669 begins with a digit, try to attach to it before trying to open
11670 it as a corefile.
11671 (print_gdb_help): Document the "--pid" argument.
11672
11673 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11674
11675 * completer.c (command_completer): New function.
11676
11677 * completer.h <command_completer>: Add prototype.
11678
11679 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11680 completer for the "help" command.
11681
11682 2002-01-09 Jason Merrill <jason@redhat.com>
11683
11684 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11685
11686 2002-01-09 Michael Snyder <msnyder@redhat.com>
11687
11688 * i386-linux-nat.c (fill_fpxregset): Make global.
11689 (store_fpxregset): Ditto.
11690
11691 * gregset.h (gdb_fpxregset_t): Define.
11692 (supply_fpxregset): Prototype.
11693 (fill_fpxregset): Prototype.
11694
11695 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11696
11697 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11698
11699 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11700 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11701 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11702
11703 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11704
11705 * MAINTAINERS: Update target maintainer rules so that any
11706 Maintainer can approve a tested patch for a maintenance-only
11707 target.
11708
11709 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11710
11711 * MAINTAINERS (write-after-approval): Add myself.
11712
11713 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11714 IN_SIGTRAMP.
11715
11716 2002-01-08 Michael Snyder <msnyder@redhat.com>
11717
11718 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11719 real name of the executable, rather than the /proc name.
11720
11721 2002-01-03 Michael Snyder <msnyder@redhat.com>
11722
11723 Implement a "generate-core-file" command in gdb, save target state.
11724 * gcore.c: New file. Implement new command 'generate-core-file'.
11725 Save a corefile image of the current state of the inferior.
11726 * linux-proc.c: Add linux-specific code for saving corefiles.
11727 * target.h (struct target_ops): Add new target vectors for saving
11728 corefiles; to_find_memory_regions and to_make_corefile_notes.
11729 (target_find_memory_regions): New macro.
11730 (target_make_corefile_notes): New macro.
11731 * target.c (update_current_target): Inherit new target methods.
11732 (dummy_find_memory_regions): New place-holder method.
11733 (dummy_make_corefile_notes): New place-holder method.
11734 (init_dummy_target): Initialize new dummy target vectors.
11735 * exec.c (exec_set_find_memory_regions): New function.
11736 Allow the exec_ops vector for memory regions to be taken over.
11737 (exec_make_note_section): New function, target vector method.
11738 * defs.h (exec_set_find_memory_regions): Export prototype.
11739 * procfs.c (proc_find_memory_regions): New function, corefile method.
11740 (procfs_make_note_section): New function, corefile method.
11741 (init_procfs_ops): Set new target vector pointers.
11742 (find_memory_regions_callback): New function.
11743 (procfs_do_thread_registers): New function.
11744 (procfs_corefile_thread_callback): New function.
11745 * sol-thread.c (sol_find_memory_regions): New function.
11746 (sol_make_note_section): New function.
11747 (init_sol_thread_ops): Initialize new target vectors.
11748 * inftarg.c (inftarg_set_find_memory_regions): New function.
11749 Allow to_find_memory_regions vector to be taken over.
11750 (inftarg_set_make_corefile_notes): New function.
11751 Allow to_make_corefile_notes vector to be taken over.
11752 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11753 interface layer if not target_has_execution (may be a corefile).
11754 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11755 * config/sparc/sun4sol2.mh: Ditto.
11756 * config/alpha/alpha-linux.mh: Ditto.
11757 * config/arm/linux.mh: Ditto.
11758 * config/i386/x86-64linux.mh: Ditto.
11759 * config/ia64/linux.mh: Ditto.
11760 * config/m68k/linux.mh: Ditto.
11761 * config/mips/linux.mh: Ditto.
11762 * config/powerpc/linux.mh: Ditto.
11763 * config/sparc/linux.mh: Ditto.
11764
11765 2002-01-07 Michael Snyder <msnyder@redhat.com>
11766
11767 * arm-linux-nat.c: Remove references to regcache.c internal data
11768 (registers[] and register_valid[]).
11769
11770 2002-01-07 Michael Snyder <msnyder@redhat.com>
11771
11772 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11773 so that attaching to a pid will automatically read the process's
11774 symbol file and shlibs.
11775 * Makefile.in: Add rule for linux-proc.o.
11776 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11777 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11778 * config/arm/linux.mh: Ditto.
11779 * config/i386/linux.mh: Ditto.
11780 * config/i386/x86-64linux.mh: Ditto.
11781 * config/ia64/linux.mh: Ditto.
11782 * config/m68k/linux.mh: Ditto.
11783 * config/mips/linux.mh: Ditto.
11784 * config/powerpc/linux.mh: Ditto.
11785 * config/sparc/linux.mh: Ditto.
11786
11787 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11788
11789 * win32-nat.c: Add i386-tdep.h dependency.
11790
11791 2002-01-07 Michael Snyder <msnyder@redhat.com>
11792
11793 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11794 instead of bfd_get_arch_size. Don't bail out just because
11795 there's no exec_bfd.
11796
11797 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11798 * p-valprint.c (pascal_object_print_value): Ditto.
11799 * somread.c (som_symtab_read): Ditto.
11800 * symfile.c (simple_free_overlay_region_table): Ditto.
11801 * valops.c (value_assign): Ditto.
11802
11803 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11804 use tilde_expand and strerror for opening save-tracepoints file.
11805
11806 * thread-db.c (thread_db_new_objfile): Indendation fix.
11807
11808 * infptrace.c (GDB_MAX_ALLOCA): New define.
11809 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11810 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11811 can be overridden with whatever value is appropriate to the host).
11812 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11813 alloca to allocate potentially large buffer.
11814 * rs6000-nat.c (child_xfer_memory): Ditto.
11815 * symm-nat.c (child_xfer_memory): Ditto.
11816 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11817
11818 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11819
11820 From Nick Clifton <nickc@redhat.com>
11821 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11822
11823 2002-01-07 Michael Snyder <msnyder@redhat.com>
11824
11825 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11826 Don't use exec_bfd if it's NULL.
11827
11828 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11829
11830 * valops.c (value_arg_coerce): Fix formatting.
11831
11832 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11833
11834 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11835 * gnu-nat.c: Ditto.
11836
11837 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11838
11839 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11840 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11841 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11842 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11843 z8k-coff have not been multi-arched. Update z8k-coff build
11844 status.
11845
11846 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11847
11848 * MAINTAINERS: Mark a29k target as obsolete.
11849 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11850 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11851 comments.
11852 * NEWS: Note that a29k targets are obsolete.
11853 * a29k-tdep.c: Mark as obsolete.
11854 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11855 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11856 a29k-*-vxworks* targets as obsolete.
11857 * remote-adapt.c: Obsolete.
11858 * remote-eb.c: Obsolete.
11859 * remote-mm.c: Obsolete.
11860 * remote-udi.c: Obsolete.
11861 * config/a29k/a29k-udi.mt: Obsolete.
11862 * config/a29k/a29k.mt: Obsolete.
11863 * config/a29k/tm-a29k.h: Obsolete.
11864 * config/a29k/tm-vx29k.h: Obsolete.
11865 * config/a29k/vx29k.mt: Obsolete.
11866
11867 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11868
11869 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11870 with BFD_ENDIAN_BIG.
11871
11872 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11873
11874 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11875 * configure, config.in: Re-generate.
11876 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11877 * defs.h: Do not include <endian.h>.
11878
11879 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11880
11881 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11882 * config.in: Regenerate.
11883 * configure.in: Update copyright years.
11884 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11885 * configure: Regenerate.
11886 * i386bsd-nat.c: Update copyright years.
11887 (fill_gregset): Use regcache_collect.
11888 (fetch_inferior_registers): Only fetch integer registers
11889 if requested to do so. Add support for XMM registers
11890 using PT_GETXMMREGS.
11891 (store_inferior_registers): Only store integer registers
11892 if requested to do so. Add support for XMM registers
11893 using PT_SETXMMREGS.
11894 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11895 (store_inferior_registers): Remove.
11896 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11897 (fetch_elfcore_registers): New function.
11898 (i386nbsd_elfcore_fns): New.
11899 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11900 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11901 i386bsd-nat.o.
11902 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11903 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11904 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11905 * config/i386/tm-nbsd.h: Update copyright years.
11906 (HAVE_SSE_REGS): Define.
11907 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11908 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11909 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11910 (SIGCONTEXT_PC_OFFSET): Remove.
11911 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11912
11913 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11914
11915 * configure.tgt: Remove powerpc-*-macos* target.
11916 * config/m68k/xm-mpw.h: Delete file.
11917 * config/xm-mpw.h: Delete file.
11918 * ser-mac.c: Delete file.
11919 * mpw-make.sed: Delete file.
11920 * mpw-config.in: Delete file.
11921 * mac-xdep.c: Delete file.
11922 * mac-gdb.r: Delete file.
11923 * mac-defs.h: Delete file.
11924 * mac-nat.c: Delete file.
11925 * config/powerpc/macos.mh: Delete file.
11926 * config/powerpc/macos.mt: Delete file.
11927 * config/powerpc/nm-macos.h: Delete file.
11928 * config/powerpc/tm-macos.h: Delete file.
11929 * source.c (openp, open_source_file): Remove obsolete code.
11930 * top.c (gdb_readline): Ditto.
11931 * utils.c (query): Ditto.
11932 * event-top.c (display_gdb_prompt): Ditto.
11933 * Makefile.in (ser-mac.o): Delete obsolete target.
11934 * NEWS: Update.
11935
11936 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11937
11938 * defs.h (BIG_ENDIAN): Delete macro definition.
11939 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11940 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11941 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11942 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11943 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11944 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11945 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11946 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11947 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11948 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11949 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11950 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11951 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11952 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11953 * gdbarch.c: Re-generate.
11954
11955 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11956
11957 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11958 for core files.
11959
11960 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11961
11962 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11963
11964 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11965
11966 * value.h (value_ptr): Delete typedef.
11967
11968 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11969
11970 * i386nbsd-nat.c: Update copyright years.
11971 Include i386-tdep.h.
11972
11973 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11974
11975 * stabsread.c: Update copyright years.
11976
11977 From Debashis Mahata <debashis.mahata@wipro.com>:
11978 (read_struct_fields): Deal with Sun C compiler erroneous stab
11979 output for structs and unions.
11980 Fix PR gdb/269.
11981
11982 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11983
11984 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11985 prototype.
11986
11987 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11988
11989 * cp-abi.c: Fix whitespace.
11990 (baseclass_offset): New wrapper function.
11991 * cp-abi.h (baseclass_offset): Add prototype.
11992 (struct cp_abi_ops): Add baseclass_offset pointer.
11993
11994 * valops.c (vb_match): Move to...
11995 * gnu-v2-abi.c (vb_match): here.
11996 * valops.c (baseclass_offset): Move to...
11997 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11998
11999 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12000
12001 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12002 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12003 * hpacc-abi.c (init_hpacc_ops): Likewise.
12004
12005 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12006
12007 * valops.c (find_overload_match): Accept obj as a
12008 reference parameter. Update it before returning.
12009 * value.h (find_overload_match): Update prototype.
12010 * eval.c (evaluate_subexp_standard): Pass object to
12011 find_overload_match by reference.
12012
12013 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12014
12015 * valarith.c: Replace value_ptr with struct value pointer. Remove
12016 register attribute from value declarations.
12017 * valops.c: Ditto.
12018 * value.h: Ditto.
12019 * scm-lang.c (scm_lookup_name): Ditto.
12020
12021 2002-01-03 Michael Snyder <msnyder@redhat.com>
12022
12023 Abstract the functionality of iterating over mapped memory
12024 regions into a general purpose iterator function.
12025 * procfs.c (iterate_over_mappings): New function, general purpose
12026 iterator for memory sections.
12027 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12028 (solib_mappings_callback): New function, callback for above.
12029 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12030 (info_mappings_callback): New function, callback for above.
12031
12032 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12033
12034 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12035
12036 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12037 * i386-tdep.c: Include "elf-bfd.h".
12038 (process_note_abi_tag_sections): New function.
12039 (i386_gdbarch_init): Add code to recognize various OS/ABI
12040 combinations.
12041
12042 * maint.c (_initialize_maint_cmds): Add missing \ in
12043 string-literal.
12044
12045 For older changes see ChangeLog-2001
12046 \f
12047 Local Variables:
12048 mode: change-log
12049 left-margin: 8
12050 fill-column: 74
12051 version-control: never
12052 End: